You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c3aacf0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: api.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1251,7 +1251,7 @@ SDKs
1251
1251
1252
1252
### List all SDKs
1253
1253
1254
-
List every SDK on the team.
1254
+
List every SDK on the team with the languages its config declares, each with its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
1255
1255
1256
1256
| Direction | Type |
1257
1257
| --- | --- |
@@ -1280,7 +1280,7 @@ sdk = client.sdks.create(
1280
1280
1281
1281
### Get an SDK
1282
1282
1283
-
Get a single SDK by its uid.
1283
+
Get a single SDK by its uid with the languages its config declares, its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
1284
1284
1285
1285
| Direction | Type |
1286
1286
| --- | --- |
@@ -1323,7 +1323,7 @@ sdk = client.sdks.delete(
1323
1323
1324
1324
### Build an SDK
1325
1325
1326
-
Start a build. Omit `version` to build the current work — the open draft, else the latest version — and the resolved version comes back in the response.
1326
+
Start a build with the SDK's saved config. Every input is optional: `version`is the version of the linked API description to build (default: its latest version), `customCodeRef`the branch, tag or commit each language merges as custom code (default: each language's `scalar-next` branch), and `languages`the languages to build (default: every language the config declares). The response names the version built. A 503 means the custom code could not be read from GitHub and nothing was built; try again.
1327
1327
1328
1328
| Direction | Type |
1329
1329
| --- | --- |
@@ -1342,7 +1342,7 @@ SDKs
1342
1342
1343
1343
#### Create an SDK version
1344
1344
1345
-
Create a new SDK version against a specific API version.
1345
+
Create a version label from a version of the SDK's API document and start its build. The label is the document version, and it becomes `latestVersion` when it is the highest.
1346
1346
1347
1347
| Direction | Type |
1348
1348
| --- | --- |
@@ -1353,13 +1353,12 @@ Create a new SDK version against a specific API version.
1353
1353
version = client.sdks.versions.create(
1354
1354
uid="UakgbKJ5m9gl0JDMbcJqL",
1355
1355
version="1.2.0",
1356
-
api_version="1.2.0",
1357
1356
)
1358
1357
```
1359
1358
1360
1359
#### Delete an SDK version
1361
1360
1362
-
Permanently delete one version of an SDK.
1361
+
Permanently delete one version label of an SDK and its builds. A label that is the current build of any language promoting manually is refused with 409 and nothing is deleted; promote or roll back to another build for that language first. Each other language whose current build was of that label moves to the active build of the highest remaining label that has one for the language, and has no current build when none has; `currentVersion` shows the result. Each language that moved to another build syncs it to its linked repository unless the repository already holds it. When it was `latestVersion`, that tag moves to the highest remaining label holding an active build. An SDK's last version cannot be deleted.
List every SDK on the team with the languages its config declares, each with its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
Get a single SDK by its uid with the languages its config declares, its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
198
198
199
199
Args:
200
200
uid: Path parameter.
@@ -232,7 +232,7 @@ def update(
232
232
is_private: bool|Omit=omit,
233
233
config: str|Omit=omit,
234
234
api_uid: Optional[Nanoid] |Omit=omit,
235
-
api_version: Optional[str]|Omit=omit,
235
+
api_version: object|Omit=omit,
236
236
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
237
237
# The extra values given here take precedence over values defined on the client or passed to this method.
238
238
extra_headers: Headers|None=None,
@@ -250,7 +250,7 @@ def update(
250
250
is_private: Body parameter.
251
251
config: Body parameter.
252
252
api_uid: Body parameter.
253
-
api_version: Body parameter.
253
+
api_version: Removed. A request that carries it is refused with a 400.
254
254
extra_headers: Send extra headers with the request.
255
255
extra_query: Send extra query parameters with the request.
256
256
extra_body: Send extra JSON properties with the request.
Start a build. Omit `version` to build the current work — the open draft, else the latest version — and the resolved version comes back in the response.
363
+
Start a build with the SDK's saved config. Every input is optional: `version` is the version of the linked API description to build (default: its latest version), `customCodeRef` the branch, tag or commit each language merges as custom code (default: each language's `scalar-next` branch), and `languages` the languages to build (default: every language the config declares). The response names the version built. A 503 means the custom code could not be read from GitHub and nothing was built; try again.
363
364
364
365
Args:
365
366
uid: Path parameter.
366
367
version: Body parameter.
368
+
custom_code_ref: Body parameter.
367
369
languages: Body parameter.
368
370
extra_headers: Send extra headers with the request.
369
371
extra_query: Send extra query parameters with the request.
List every SDK on the team with the languages its config declares, each with its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
Get a single SDK by its uid with the languages its config declares, its version labels highest first, the current version label per language (`current`), and the `currentVersion` and `latestVersion` tags.
549
552
550
553
Args:
551
554
uid: Path parameter.
@@ -583,7 +586,7 @@ async def update(
583
586
is_private: bool|Omit=omit,
584
587
config: str|Omit=omit,
585
588
api_uid: Optional[Nanoid] |Omit=omit,
586
-
api_version: Optional[str]|Omit=omit,
589
+
api_version: object|Omit=omit,
587
590
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
588
591
# The extra values given here take precedence over values defined on the client or passed to this method.
589
592
extra_headers: Headers|None=None,
@@ -601,7 +604,7 @@ async def update(
601
604
is_private: Body parameter.
602
605
config: Body parameter.
603
606
api_uid: Body parameter.
604
-
api_version: Body parameter.
607
+
api_version: Removed. A request that carries it is refused with a 400.
605
608
extra_headers: Send extra headers with the request.
606
609
extra_query: Send extra query parameters with the request.
607
610
extra_body: Send extra JSON properties with the request.
Start a build. Omit `version` to build the current work — the open draft, else the latest version — and the resolved version comes back in the response.
717
+
Start a build with the SDK's saved config. Every input is optional: `version` is the version of the linked API description to build (default: its latest version), `customCodeRef` the branch, tag or commit each language merges as custom code (default: each language's `scalar-next` branch), and `languages` the languages to build (default: every language the config declares). The response names the version built. A 503 means the custom code could not be read from GitHub and nothing was built; try again.
714
718
715
719
Args:
716
720
uid: Path parameter.
717
721
version: Body parameter.
722
+
custom_code_ref: Body parameter.
718
723
languages: Body parameter.
719
724
extra_headers: Send extra headers with the request.
720
725
extra_query: Send extra query parameters with the request.
0 commit comments