Skip to content

Commit 8a9bbb0

Browse files
author
kevin
committed
release(0.2.53): Release php SDK
1 parent dab47df commit 8a9bbb0

File tree

7 files changed

+155
-7
lines changed

7 files changed

+155
-7
lines changed

docs/Model/CreateDeepNewsRequest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ Name | Type | Description | Notes
2626
**max_depth** | **int** | | [optional] [default to 4]
2727
**sources** | [**\AskNews\Model\Sources1**](Sources1.md) | | [optional]
2828
**return_sources** | **bool** | | [optional] [default to true]
29+
**include_coordinates** | **bool** | | [optional] [default to false]
30+
**include_entities** | **bool** | | [optional] [default to true]
31+
**include_graphs** | **bool** | | [optional] [default to false]
2932

3033
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Configuration
8585
*
8686
* @var string
8787
*/
88-
protected $userAgent = 'asknews-sdk-php-0.2.52';
88+
protected $userAgent = 'asknews-sdk-php-0.2.53';
8989

9090
/**
9191
* Debug switch (default set to false)

lib/Model/CreateAlertRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ public function getModelName()
293293
public const MODEL_GPT_4O = 'gpt-4o';
294294
public const MODEL_O3_MINI = 'o3-mini';
295295
public const MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT = 'meta-llama/Meta-Llama-3.3-70B-Instruct';
296+
public const MODEL_GPT_4_1_2025_04_14 = 'gpt-4.1-2025-04-14';
297+
public const MODEL_GPT_4_1_NANO_2025_04_14 = 'gpt-4.1-nano-2025-04-14';
298+
public const MODEL_GPT_4_1_MINI_2025_04_14 = 'gpt-4.1-mini-2025-04-14';
296299

297300
/**
298301
* Gets allowable values of the enum
@@ -307,6 +310,9 @@ public function getModelAllowableValues()
307310
self::MODEL_GPT_4O,
308311
self::MODEL_O3_MINI,
309312
self::MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT,
313+
self::MODEL_GPT_4_1_2025_04_14,
314+
self::MODEL_GPT_4_1_NANO_2025_04_14,
315+
self::MODEL_GPT_4_1_MINI_2025_04_14,
310316
];
311317
}
312318

lib/Model/CreateDeepNewsRequest.php

Lines changed: 108 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ class CreateDeepNewsRequest implements ModelInterface, ArrayAccess, \JsonSeriali
7878
'search_depth' => 'int',
7979
'max_depth' => 'int',
8080
'sources' => '\AskNews\Model\Sources1',
81-
'return_sources' => 'bool'
81+
'return_sources' => 'bool',
82+
'include_coordinates' => 'bool',
83+
'include_entities' => 'bool',
84+
'include_graphs' => 'bool'
8285
];
8386

8487
/**
@@ -110,7 +113,10 @@ class CreateDeepNewsRequest implements ModelInterface, ArrayAccess, \JsonSeriali
110113
'search_depth' => null,
111114
'max_depth' => null,
112115
'sources' => null,
113-
'return_sources' => null
116+
'return_sources' => null,
117+
'include_coordinates' => null,
118+
'include_entities' => null,
119+
'include_graphs' => null
114120
];
115121

116122
/**
@@ -140,7 +146,10 @@ class CreateDeepNewsRequest implements ModelInterface, ArrayAccess, \JsonSeriali
140146
'search_depth' => false,
141147
'max_depth' => false,
142148
'sources' => false,
143-
'return_sources' => false
149+
'return_sources' => false,
150+
'include_coordinates' => false,
151+
'include_entities' => false,
152+
'include_graphs' => false
144153
];
145154

146155
/**
@@ -250,7 +259,10 @@ public function isNullableSetToNull(string $property): bool
250259
'search_depth' => 'search_depth',
251260
'max_depth' => 'max_depth',
252261
'sources' => 'sources',
253-
'return_sources' => 'return_sources'
262+
'return_sources' => 'return_sources',
263+
'include_coordinates' => 'include_coordinates',
264+
'include_entities' => 'include_entities',
265+
'include_graphs' => 'include_graphs'
254266
];
255267

256268
/**
@@ -280,7 +292,10 @@ public function isNullableSetToNull(string $property): bool
280292
'search_depth' => 'setSearchDepth',
281293
'max_depth' => 'setMaxDepth',
282294
'sources' => 'setSources',
283-
'return_sources' => 'setReturnSources'
295+
'return_sources' => 'setReturnSources',
296+
'include_coordinates' => 'setIncludeCoordinates',
297+
'include_entities' => 'setIncludeEntities',
298+
'include_graphs' => 'setIncludeGraphs'
284299
];
285300

286301
/**
@@ -310,7 +325,10 @@ public function isNullableSetToNull(string $property): bool
310325
'search_depth' => 'getSearchDepth',
311326
'max_depth' => 'getMaxDepth',
312327
'sources' => 'getSources',
313-
'return_sources' => 'getReturnSources'
328+
'return_sources' => 'getReturnSources',
329+
'include_coordinates' => 'getIncludeCoordinates',
330+
'include_entities' => 'getIncludeEntities',
331+
'include_graphs' => 'getIncludeGraphs'
314332
];
315333

316334
/**
@@ -409,6 +427,9 @@ public function __construct(array $data = null)
409427
$this->setIfExists('max_depth', $data ?? [], 4);
410428
$this->setIfExists('sources', $data ?? [], null);
411429
$this->setIfExists('return_sources', $data ?? [], true);
430+
$this->setIfExists('include_coordinates', $data ?? [], false);
431+
$this->setIfExists('include_entities', $data ?? [], true);
432+
$this->setIfExists('include_graphs', $data ?? [], false);
412433
}
413434

414435
/**
@@ -1096,6 +1117,87 @@ public function setReturnSources($return_sources)
10961117

10971118
return $this;
10981119
}
1120+
1121+
/**
1122+
* Gets include_coordinates
1123+
*
1124+
* @return bool|null
1125+
*/
1126+
public function getIncludeCoordinates()
1127+
{
1128+
return $this->container['include_coordinates'];
1129+
}
1130+
1131+
/**
1132+
* Sets include_coordinates
1133+
*
1134+
* @param bool|null $include_coordinates include_coordinates
1135+
*
1136+
* @return self
1137+
*/
1138+
public function setIncludeCoordinates($include_coordinates)
1139+
{
1140+
if (is_null($include_coordinates)) {
1141+
throw new \InvalidArgumentException('non-nullable include_coordinates cannot be null');
1142+
}
1143+
$this->container['include_coordinates'] = $include_coordinates;
1144+
1145+
return $this;
1146+
}
1147+
1148+
/**
1149+
* Gets include_entities
1150+
*
1151+
* @return bool|null
1152+
*/
1153+
public function getIncludeEntities()
1154+
{
1155+
return $this->container['include_entities'];
1156+
}
1157+
1158+
/**
1159+
* Sets include_entities
1160+
*
1161+
* @param bool|null $include_entities include_entities
1162+
*
1163+
* @return self
1164+
*/
1165+
public function setIncludeEntities($include_entities)
1166+
{
1167+
if (is_null($include_entities)) {
1168+
throw new \InvalidArgumentException('non-nullable include_entities cannot be null');
1169+
}
1170+
$this->container['include_entities'] = $include_entities;
1171+
1172+
return $this;
1173+
}
1174+
1175+
/**
1176+
* Gets include_graphs
1177+
*
1178+
* @return bool|null
1179+
*/
1180+
public function getIncludeGraphs()
1181+
{
1182+
return $this->container['include_graphs'];
1183+
}
1184+
1185+
/**
1186+
* Sets include_graphs
1187+
*
1188+
* @param bool|null $include_graphs include_graphs
1189+
*
1190+
* @return self
1191+
*/
1192+
public function setIncludeGraphs($include_graphs)
1193+
{
1194+
if (is_null($include_graphs)) {
1195+
throw new \InvalidArgumentException('non-nullable include_graphs cannot be null');
1196+
}
1197+
$this->container['include_graphs'] = $include_graphs;
1198+
1199+
return $this;
1200+
}
10991201
/**
11001202
* Returns true if offset exists. False otherwise.
11011203
*

lib/Model/ReportRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ public function getModelName()
246246
public const MODEL_CLAUDE_3_5_SONNET_LATEST = 'claude-3-5-sonnet-latest';
247247
public const MODEL_META_LLAMA_META_LLAMA_3_1_405_B_INSTRUCT = 'meta-llama/Meta-Llama-3.1-405B-Instruct';
248248
public const MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT = 'meta-llama/Meta-Llama-3.3-70B-Instruct';
249+
public const MODEL_GPT_4_1_2025_04_14 = 'gpt-4.1-2025-04-14';
250+
public const MODEL_GPT_4_1_MINI_2025_04_14 = 'gpt-4.1-mini-2025-04-14';
249251

250252
/**
251253
* Gets allowable values of the enum
@@ -261,6 +263,8 @@ public function getModelAllowableValues()
261263
self::MODEL_CLAUDE_3_5_SONNET_LATEST,
262264
self::MODEL_META_LLAMA_META_LLAMA_3_1_405_B_INSTRUCT,
263265
self::MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT,
266+
self::MODEL_GPT_4_1_2025_04_14,
267+
self::MODEL_GPT_4_1_MINI_2025_04_14,
264268
];
265269
}
266270

lib/Model/UpdateAlertRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ public function getModelName()
293293
public const MODEL_GPT_4O = 'gpt-4o';
294294
public const MODEL_O3_MINI = 'o3-mini';
295295
public const MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT = 'meta-llama/Meta-Llama-3.3-70B-Instruct';
296+
public const MODEL_GPT_4_1_2025_04_14 = 'gpt-4.1-2025-04-14';
297+
public const MODEL_GPT_4_1_NANO_2025_04_14 = 'gpt-4.1-nano-2025-04-14';
298+
public const MODEL_GPT_4_1_MINI_2025_04_14 = 'gpt-4.1-mini-2025-04-14';
296299

297300
/**
298301
* Gets allowable values of the enum
@@ -307,6 +310,9 @@ public function getModelAllowableValues()
307310
self::MODEL_GPT_4O,
308311
self::MODEL_O3_MINI,
309312
self::MODEL_META_LLAMA_META_LLAMA_3_3_70_B_INSTRUCT,
313+
self::MODEL_GPT_4_1_2025_04_14,
314+
self::MODEL_GPT_4_1_NANO_2025_04_14,
315+
self::MODEL_GPT_4_1_MINI_2025_04_14,
310316
];
311317
}
312318

test/Model/CreateDeepNewsRequestTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,31 @@ public function testPropertyReturnSources()
276276
// TODO: implement
277277
self::markTestIncomplete('Not implemented');
278278
}
279+
280+
/**
281+
* Test attribute "include_coordinates"
282+
*/
283+
public function testPropertyIncludeCoordinates()
284+
{
285+
// TODO: implement
286+
self::markTestIncomplete('Not implemented');
287+
}
288+
289+
/**
290+
* Test attribute "include_entities"
291+
*/
292+
public function testPropertyIncludeEntities()
293+
{
294+
// TODO: implement
295+
self::markTestIncomplete('Not implemented');
296+
}
297+
298+
/**
299+
* Test attribute "include_graphs"
300+
*/
301+
public function testPropertyIncludeGraphs()
302+
{
303+
// TODO: implement
304+
self::markTestIncomplete('Not implemented');
305+
}
279306
}

0 commit comments

Comments
 (0)