@scenario-labs/sdk 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/LICENSE +4 -198
- package/README.md +29 -29
- package/client.d.mts +35 -18
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -18
- package/client.d.ts.map +1 -1
- package/client.js +88 -50
- package/client.js.map +1 -1
- package/client.mjs +86 -48
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +8 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +8 -3
- package/index.d.ts.map +1 -1
- package/index.js +16 -6
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/lib/generate.d.mts +19 -0
- package/lib/generate.d.mts.map +1 -0
- package/lib/generate.d.ts +19 -0
- package/lib/generate.d.ts.map +1 -0
- package/lib/generate.js +35 -0
- package/lib/generate.js.map +1 -0
- package/lib/generate.mjs +31 -0
- package/lib/generate.mjs.map +1 -0
- package/lib/job.d.mts +48 -0
- package/lib/job.d.mts.map +1 -0
- package/lib/job.d.ts +48 -0
- package/lib/job.d.ts.map +1 -0
- package/lib/job.js +50 -0
- package/lib/job.js.map +1 -0
- package/lib/job.mjs +45 -0
- package/lib/job.mjs.map +1 -0
- package/lib/models.d.mts +20 -0
- package/lib/models.d.mts.map +1 -0
- package/lib/models.d.ts +20 -0
- package/lib/models.d.ts.map +1 -0
- package/lib/models.js +28 -0
- package/lib/models.js.map +1 -0
- package/lib/models.mjs +23 -0
- package/lib/models.mjs.map +1 -0
- package/lib/scenario.d.mts +39 -0
- package/lib/scenario.d.mts.map +1 -0
- package/lib/scenario.d.ts +39 -0
- package/lib/scenario.d.ts.map +1 -0
- package/lib/scenario.js +46 -0
- package/lib/scenario.js.map +1 -0
- package/lib/scenario.mjs +42 -0
- package/lib/scenario.mjs.map +1 -0
- package/lib/workflow.d.mts +48 -0
- package/lib/workflow.d.mts.map +1 -0
- package/lib/workflow.d.ts +48 -0
- package/lib/workflow.d.ts.map +1 -0
- package/lib/workflow.js +59 -0
- package/lib/workflow.js.map +1 -0
- package/lib/workflow.mjs +54 -0
- package/lib/workflow.mjs.map +1 -0
- package/package.json +14 -4
- package/resources/assets/assets.d.mts +401 -96
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +401 -96
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +2 -2
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +2 -2
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/index.d.mts +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.js.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/assets/public.d.mts +30 -27
- package/resources/assets/public.d.mts.map +1 -1
- package/resources/assets/public.d.ts +30 -27
- package/resources/assets/public.d.ts.map +1 -1
- package/resources/assets/public.js +2 -2
- package/resources/assets/public.js.map +1 -1
- package/resources/assets/public.mjs +2 -2
- package/resources/assets/public.mjs.map +1 -1
- package/resources/collections/assets.d.mts +2 -8
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts +2 -8
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +2 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +2 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts +5 -5
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts +5 -5
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts +2 -2
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts +2 -2
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.js.map +1 -1
- package/resources/collections/index.mjs +2 -2
- package/resources/collections/index.mjs.map +1 -1
- package/resources/collections/models.d.mts +2 -8
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts +2 -8
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +2 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +2 -2
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +4188 -1370
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +4188 -1370
- package/resources/generate.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +943 -33
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +943 -33
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +3 -2
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +3 -2
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +8 -8
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +8 -8
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +640 -34
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +640 -34
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +1323 -301
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +1323 -301
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +718 -90
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +718 -90
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +9 -4
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +9 -4
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts +2 -2
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts +2 -2
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/search.d.mts +6 -31
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +6 -31
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +6 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +6 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts +1 -1
- package/resources/tags.d.ts +1 -1
- package/resources/usages.d.mts +401 -16
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +401 -16
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +2738 -101
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +2738 -101
- package/resources/workflows.d.ts.map +1 -1
- package/src/client.ts +102 -44
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +8 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/request-options.ts +2 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/lib/generate.ts +77 -0
- package/src/lib/job.ts +78 -0
- package/src/lib/models.ts +27 -0
- package/src/lib/scenario.ts +39 -0
- package/src/lib/workflow.ts +90 -0
- package/src/resources/assets/assets.ts +742 -212
- package/src/resources/assets/index.ts +0 -1
- package/src/resources/assets/public.ts +151 -29
- package/src/resources/collections/assets.ts +2 -14
- package/src/resources/collections/collections.ts +3 -5
- package/src/resources/collections/index.ts +2 -14
- package/src/resources/collections/models.ts +2 -14
- package/src/resources/generate.ts +6254 -2217
- package/src/resources/index.ts +2 -3
- package/src/resources/jobs.ts +1355 -26
- package/src/resources/models/description.ts +50 -8
- package/src/resources/models/examples.ts +906 -56
- package/src/resources/models/models.ts +1867 -330
- package/src/resources/models/train.ts +976 -98
- package/src/resources/models/training-images.ts +2 -2
- package/src/resources/search.ts +13 -39
- package/src/resources/tags.ts +1 -1
- package/src/resources/usages.ts +544 -11
- package/src/resources/workflows.ts +4586 -914
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2026-04-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.3...v0.2.0](https://github.com/scenario-labs/scenario-sdk-typescript/compare/v0.1.3...v0.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** scenario-sdk to scenario and flatting the API ([eec0b4f](https://github.com/scenario-labs/scenario-sdk-typescript/commit/eec0b4fb7b7e92c4c5751fa7f67552d5f103ad4c))
|
|
10
|
+
* **sdk:** enhanced client with job.wait() and workflow helpers ([#4](https://github.com/scenario-labs/scenario-sdk-typescript/issues/4)) ([dfc8be8](https://github.com/scenario-labs/scenario-sdk-typescript/commit/dfc8be8918601b691fd6a7386247d3c0d1337e98))
|
|
11
|
+
* **sdk:** Job and WorkflowJob wrappers for all job-producing methods ([#2](https://github.com/scenario-labs/scenario-sdk-typescript/issues/2)) ([f868fcf](https://github.com/scenario-labs/scenario-sdk-typescript/commit/f868fcfeca6d2b9549b8834df3a4250ef53f7ade))
|
|
12
|
+
* **workflows:** add polling helper and accept both response types ([cb2819f](https://github.com/scenario-labs/scenario-sdk-typescript/commit/cb2819f796626f03121f80a7f7ee46db0087b2f6))
|
|
13
|
+
* **workflows:** add workflow node helper utilities ([5c2740c](https://github.com/scenario-labs/scenario-sdk-typescript/commit/5c2740c6ef39516a30e777ca8e9d43d1e70a2e48))
|
|
14
|
+
* **workflows:** add workflow node helpers and job polling ([05a0b71](https://github.com/scenario-labs/scenario-sdk-typescript/commit/05a0b7130e30ddd7276e65a3541b5c0f4a23759c))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **api:** auth key names ([668282f](https://github.com/scenario-labs/scenario-sdk-typescript/commit/668282fd9d162af1621c1519df52675a7216dcbb))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Refactors
|
|
23
|
+
|
|
24
|
+
* **sdk:** replace Job/WorkflowJob wrappers with high-level Scenario client ([#3](https://github.com/scenario-labs/scenario-sdk-typescript/issues/3)) ([4297b6b](https://github.com/scenario-labs/scenario-sdk-typescript/commit/4297b6bc32efd5e0d4c1d79881dfd17c8a36b202))
|
|
25
|
+
|
|
26
|
+
## 0.1.3 (2026-04-14)
|
|
27
|
+
|
|
28
|
+
Full Changelog: [v0.1.2...v0.1.3](https://github.com/scenario-labs/scenario-sdk-typescript/compare/v0.1.2...v0.1.3)
|
|
29
|
+
|
|
30
|
+
### Chores
|
|
31
|
+
|
|
32
|
+
* oidc auth method for npm publication ([13eea20](https://github.com/scenario-labs/scenario-sdk-typescript/commit/13eea2055d24d2c6bae1fc60ce34a0427d3d54b3))
|
|
33
|
+
|
|
3
34
|
## 0.1.2 (2026-04-14)
|
|
4
35
|
|
|
5
36
|
Full Changelog: [v0.1.1...v0.1.2](https://github.com/scenario-labs/scenario-sdk-typescript/compare/v0.1.1...v0.1.2)
|
package/LICENSE
CHANGED
|
@@ -1,201 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
1
|
+
Copyright 2026 scenario
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2026 Scenario SDK
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Scenario
|
|
1
|
+
# Scenario TypeScript API Library
|
|
2
2
|
|
|
3
3
|
[>)](https://npmjs.org/package/@scenario-labs/sdk) 
|
|
4
4
|
|
|
5
|
-
This library provides convenient access to the Scenario
|
|
5
|
+
This library provides convenient access to the Scenario REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
7
|
The REST API documentation can be found on [docs.scenario.com](https://docs.scenario.com/). The full API of this library can be found in [api.md](api.md).
|
|
8
8
|
|
|
@@ -20,10 +20,10 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
20
20
|
|
|
21
21
|
<!-- prettier-ignore -->
|
|
22
22
|
```js
|
|
23
|
-
import
|
|
23
|
+
import Scenario from '@scenario-labs/sdk';
|
|
24
24
|
|
|
25
|
-
const client = new
|
|
26
|
-
|
|
25
|
+
const client = new Scenario({
|
|
26
|
+
bearerAuth: process.env['SCENARIO_SDK_JWT'], // This is the default and can be omitted
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
const assets = await client.assets.list();
|
|
@@ -37,13 +37,13 @@ This library includes TypeScript definitions for all request params and response
|
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore -->
|
|
39
39
|
```ts
|
|
40
|
-
import
|
|
40
|
+
import Scenario from '@scenario-labs/sdk';
|
|
41
41
|
|
|
42
|
-
const client = new
|
|
43
|
-
|
|
42
|
+
const client = new Scenario({
|
|
43
|
+
bearerAuth: process.env['SCENARIO_SDK_JWT'], // This is the default and can be omitted
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
const assets:
|
|
46
|
+
const assets: Scenario.AssetListResponse = await client.assets.list();
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
@@ -57,7 +57,7 @@ a subclass of `APIError` will be thrown:
|
|
|
57
57
|
<!-- prettier-ignore -->
|
|
58
58
|
```ts
|
|
59
59
|
const assets = await client.assets.list().catch(async (err) => {
|
|
60
|
-
if (err instanceof
|
|
60
|
+
if (err instanceof Scenario.APIError) {
|
|
61
61
|
console.log(err.status); // 400
|
|
62
62
|
console.log(err.name); // BadRequestError
|
|
63
63
|
console.log(err.headers); // {server: 'nginx', ...}
|
|
@@ -91,7 +91,7 @@ You can use the `maxRetries` option to configure or disable this:
|
|
|
91
91
|
<!-- prettier-ignore -->
|
|
92
92
|
```js
|
|
93
93
|
// Configure the default for all requests:
|
|
94
|
-
const client = new
|
|
94
|
+
const client = new Scenario({
|
|
95
95
|
maxRetries: 0, // default is 2
|
|
96
96
|
});
|
|
97
97
|
|
|
@@ -108,7 +108,7 @@ Requests time out after 1 minute by default. You can configure this with a `time
|
|
|
108
108
|
<!-- prettier-ignore -->
|
|
109
109
|
```ts
|
|
110
110
|
// Configure the default for all requests:
|
|
111
|
-
const client = new
|
|
111
|
+
const client = new Scenario({
|
|
112
112
|
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
|
|
113
113
|
});
|
|
114
114
|
|
|
@@ -134,7 +134,7 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
|
|
|
134
134
|
|
|
135
135
|
<!-- prettier-ignore -->
|
|
136
136
|
```ts
|
|
137
|
-
const client = new
|
|
137
|
+
const client = new Scenario();
|
|
138
138
|
|
|
139
139
|
const response = await client.assets.list().asResponse();
|
|
140
140
|
console.log(response.headers.get('X-My-Header'));
|
|
@@ -155,13 +155,13 @@ console.log(assets.assets);
|
|
|
155
155
|
|
|
156
156
|
The log level can be configured in two ways:
|
|
157
157
|
|
|
158
|
-
1. Via the `
|
|
158
|
+
1. Via the `SCENARIO_LOG` environment variable
|
|
159
159
|
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
160
160
|
|
|
161
161
|
```ts
|
|
162
|
-
import
|
|
162
|
+
import Scenario from '@scenario-labs/sdk';
|
|
163
163
|
|
|
164
|
-
const client = new
|
|
164
|
+
const client = new Scenario({
|
|
165
165
|
logLevel: 'debug', // Show all log messages
|
|
166
166
|
});
|
|
167
167
|
```
|
|
@@ -187,13 +187,13 @@ When providing a custom logger, the `logLevel` option still controls which messa
|
|
|
187
187
|
below the configured level will not be sent to your logger.
|
|
188
188
|
|
|
189
189
|
```ts
|
|
190
|
-
import
|
|
190
|
+
import Scenario from '@scenario-labs/sdk';
|
|
191
191
|
import pino from 'pino';
|
|
192
192
|
|
|
193
193
|
const logger = pino();
|
|
194
194
|
|
|
195
|
-
const client = new
|
|
196
|
-
logger: logger.child({ name: '
|
|
195
|
+
const client = new Scenario({
|
|
196
|
+
logger: logger.child({ name: 'Scenario' }),
|
|
197
197
|
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
198
198
|
});
|
|
199
199
|
```
|
|
@@ -256,10 +256,10 @@ globalThis.fetch = fetch;
|
|
|
256
256
|
Or pass it to the client:
|
|
257
257
|
|
|
258
258
|
```ts
|
|
259
|
-
import
|
|
259
|
+
import Scenario from '@scenario-labs/sdk';
|
|
260
260
|
import fetch from 'my-fetch';
|
|
261
261
|
|
|
262
|
-
const client = new
|
|
262
|
+
const client = new Scenario({ fetch });
|
|
263
263
|
```
|
|
264
264
|
|
|
265
265
|
### Fetch options
|
|
@@ -267,9 +267,9 @@ const client = new ScenarioSDK({ fetch });
|
|
|
267
267
|
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
268
268
|
|
|
269
269
|
```ts
|
|
270
|
-
import
|
|
270
|
+
import Scenario from '@scenario-labs/sdk';
|
|
271
271
|
|
|
272
|
-
const client = new
|
|
272
|
+
const client = new Scenario({
|
|
273
273
|
fetchOptions: {
|
|
274
274
|
// `RequestInit` options
|
|
275
275
|
},
|
|
@@ -284,11 +284,11 @@ options to requests:
|
|
|
284
284
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
285
285
|
|
|
286
286
|
```ts
|
|
287
|
-
import
|
|
287
|
+
import Scenario from '@scenario-labs/sdk';
|
|
288
288
|
import * as undici from 'undici';
|
|
289
289
|
|
|
290
290
|
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
291
|
-
const client = new
|
|
291
|
+
const client = new Scenario({
|
|
292
292
|
fetchOptions: {
|
|
293
293
|
dispatcher: proxyAgent,
|
|
294
294
|
},
|
|
@@ -298,9 +298,9 @@ const client = new ScenarioSDK({
|
|
|
298
298
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
299
299
|
|
|
300
300
|
```ts
|
|
301
|
-
import
|
|
301
|
+
import Scenario from '@scenario-labs/sdk';
|
|
302
302
|
|
|
303
|
-
const client = new
|
|
303
|
+
const client = new Scenario({
|
|
304
304
|
fetchOptions: {
|
|
305
305
|
proxy: 'http://localhost:8888',
|
|
306
306
|
},
|
|
@@ -310,10 +310,10 @@ const client = new ScenarioSDK({
|
|
|
310
310
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
311
311
|
|
|
312
312
|
```ts
|
|
313
|
-
import
|
|
313
|
+
import Scenario from 'npm:@scenario-labs/sdk';
|
|
314
314
|
|
|
315
315
|
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
316
|
-
const client = new
|
|
316
|
+
const client = new Scenario({
|
|
317
317
|
fetchOptions: {
|
|
318
318
|
client: httpClient,
|
|
319
319
|
},
|
package/client.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import * as Errors from "./core/error.mjs";
|
|
|
6
6
|
import * as Uploads from "./core/uploads.mjs";
|
|
7
7
|
import * as API from "./resources/index.mjs";
|
|
8
8
|
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
-
import { Generate, GenerateCaptionParams, GenerateCaptionResponse, GenerateDescribeStyleParams, GenerateDescribeStyleResponse, GenerateDetectParams, GenerateEmbedParams, GenerateEmbedResponse, GeneratePatchParams, GenerateRunModelParams, GenerateRunModelResponse, GenerateTranslateParams, GenerateTranslateResponse
|
|
9
|
+
import { Generate, GenerateCaptionParams, GenerateCaptionResponse, GenerateDescribeStyleParams, GenerateDescribeStyleResponse, GenerateDetectParams, GenerateDetectResponse, GenerateEmbedParams, GenerateEmbedResponse, GeneratePatchParams, GeneratePatchResponse, GenerateRunModelParams, GenerateRunModelResponse, GenerateTranslateParams, GenerateTranslateResponse } from "./resources/generate.mjs";
|
|
10
10
|
import { JobListParams, JobListResponse, JobRetrieveResponse, JobTriggerActionParams, JobTriggerActionResponse, Jobs } from "./resources/jobs.mjs";
|
|
11
11
|
import { Oscu, OscuRetrievePricesResponse } from "./resources/oscu.mjs";
|
|
12
12
|
import { Search, SearchAssetSearchParams, SearchAssetSearchResponse, SearchModelSearchParams, SearchModelSearchResponse } from "./resources/search.mjs";
|
|
@@ -14,7 +14,7 @@ import { TagListParams, TagListResponse, Tags } from "./resources/tags.mjs";
|
|
|
14
14
|
import { UploadCreateParams, UploadCreateResponse, UploadRetrieveResponse, UploadTriggerActionParams, UploadTriggerActionResponse, Uploads as UploadsAPIUploads } from "./resources/uploads.mjs";
|
|
15
15
|
import { UsageListParams, UsageListResponse, Usages } from "./resources/usages.mjs";
|
|
16
16
|
import { WorkflowApproveUserParams, WorkflowApproveUserResponse, WorkflowCreateParams, WorkflowCreateResponse, WorkflowDeleteResponse, WorkflowGetTagsParams, WorkflowGetTagsResponse, WorkflowListParams, WorkflowListResponse, WorkflowRetrieveResponse, WorkflowRunParams, WorkflowRunResponse, WorkflowUpdateParams, WorkflowUpdateResponse, Workflows } from "./resources/workflows.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { AssetDeleteMultipleResponse, AssetDuplicateParams, AssetDuplicateResponse, AssetGetBulkParams, AssetGetBulkResponse, AssetListParams, AssetListResponse, AssetListSnapshotsParams, AssetListSnapshotsResponse, AssetLockParams, AssetLockResponse, AssetRetrieveParams, AssetRetrieveResponse, AssetUnlockParams, AssetUnlockResponse, AssetUpdateParams, AssetUpdateResponse, AssetUpdateTagsParams, AssetUpdateTagsResponse, AssetUploadParams, AssetUploadResponse, Assets } from "./resources/assets/assets.mjs";
|
|
18
18
|
import { CollectionCreateParams, CollectionCreateResponse, CollectionDeleteResponse, CollectionListParams, CollectionListResponse, CollectionRetrieveResponse, CollectionUpdateParams, CollectionUpdateResponse, Collections } from "./resources/collections/collections.mjs";
|
|
19
19
|
import { ModelCopyParams, ModelCopyResponse, ModelCreateParams, ModelCreateResponse, ModelDeleteImagesParams, ModelDeleteImagesResponse, ModelDeleteResponse, ModelDownloadParams, ModelDownloadResponse, ModelGetBulkParams, ModelGetBulkResponse, ModelListParams, ModelListResponse, ModelRetrieveParams, ModelRetrieveResponse, ModelTransferParams, ModelTransferResponse, ModelUpdateParams, ModelUpdateResponse, ModelUpdateTagsParams, ModelUpdateTagsResponse, Models } from "./resources/models/models.mjs";
|
|
20
20
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
@@ -25,11 +25,19 @@ export interface ClientOptions {
|
|
|
25
25
|
/**
|
|
26
26
|
* Defaults to process.env['SCENARIO_SDK_API_KEY'].
|
|
27
27
|
*/
|
|
28
|
-
apiKey?: string | undefined;
|
|
28
|
+
apiKey?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Defaults to process.env['SCENARIO_SDK_API_SECRET'].
|
|
31
|
+
*/
|
|
32
|
+
apiSecret?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Defaults to process.env['SCENARIO_SDK_JWT'].
|
|
35
|
+
*/
|
|
36
|
+
bearerAuth?: string | null | undefined;
|
|
29
37
|
/**
|
|
30
38
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
31
39
|
*
|
|
32
|
-
* Defaults to process.env['
|
|
40
|
+
* Defaults to process.env['SCENARIO_BASE_URL'].
|
|
33
41
|
*/
|
|
34
42
|
baseURL?: string | null | undefined;
|
|
35
43
|
/**
|
|
@@ -77,7 +85,7 @@ export interface ClientOptions {
|
|
|
77
85
|
/**
|
|
78
86
|
* Set the log level.
|
|
79
87
|
*
|
|
80
|
-
* Defaults to process.env['
|
|
88
|
+
* Defaults to process.env['SCENARIO_LOG'] or 'warn' if it isn't set.
|
|
81
89
|
*/
|
|
82
90
|
logLevel?: LogLevel | undefined;
|
|
83
91
|
/**
|
|
@@ -88,11 +96,13 @@ export interface ClientOptions {
|
|
|
88
96
|
logger?: Logger | undefined;
|
|
89
97
|
}
|
|
90
98
|
/**
|
|
91
|
-
* API Client for interfacing with the Scenario
|
|
99
|
+
* API Client for interfacing with the Scenario API.
|
|
92
100
|
*/
|
|
93
|
-
export declare class
|
|
101
|
+
export declare class Scenario {
|
|
94
102
|
#private;
|
|
95
|
-
apiKey: string;
|
|
103
|
+
apiKey: string | null;
|
|
104
|
+
apiSecret: string | null;
|
|
105
|
+
bearerAuth: string | null;
|
|
96
106
|
baseURL: string;
|
|
97
107
|
maxRetries: number;
|
|
98
108
|
timeout: number;
|
|
@@ -103,10 +113,12 @@ export declare class ScenarioSDK {
|
|
|
103
113
|
protected idempotencyHeader?: string;
|
|
104
114
|
private _options;
|
|
105
115
|
/**
|
|
106
|
-
* API Client for interfacing with the Scenario
|
|
116
|
+
* API Client for interfacing with the Scenario API.
|
|
107
117
|
*
|
|
108
|
-
* @param {string | undefined} [opts.apiKey=process.env['SCENARIO_SDK_API_KEY'] ??
|
|
109
|
-
* @param {string} [opts.
|
|
118
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['SCENARIO_SDK_API_KEY'] ?? null]
|
|
119
|
+
* @param {string | null | undefined} [opts.apiSecret=process.env['SCENARIO_SDK_API_SECRET'] ?? null]
|
|
120
|
+
* @param {string | null | undefined} [opts.bearerAuth=process.env['SCENARIO_SDK_JWT'] ?? null]
|
|
121
|
+
* @param {string} [opts.baseURL=process.env['SCENARIO_BASE_URL'] ?? https://api.cloud.scenario.com/v1] - Override the default base URL for the API.
|
|
110
122
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
111
123
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
112
124
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -114,14 +126,19 @@ export declare class ScenarioSDK {
|
|
|
114
126
|
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
115
127
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
116
128
|
*/
|
|
117
|
-
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
129
|
+
constructor({ baseURL, apiKey, apiSecret, bearerAuth, ...opts }?: ClientOptions);
|
|
118
130
|
/**
|
|
119
131
|
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
120
132
|
*/
|
|
121
133
|
withOptions(options: Partial<ClientOptions>): this;
|
|
122
134
|
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
123
135
|
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
124
|
-
protected authHeaders(opts: FinalRequestOptions
|
|
136
|
+
protected authHeaders(opts: FinalRequestOptions, schemes: {
|
|
137
|
+
scBearerAuth?: boolean;
|
|
138
|
+
scBasicAuth?: boolean;
|
|
139
|
+
}): Promise<NullableHeaders | undefined>;
|
|
140
|
+
protected scBearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
141
|
+
protected scBasicAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
125
142
|
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
126
143
|
private getUserAgent;
|
|
127
144
|
protected defaultIdempotencyKey(): string;
|
|
@@ -163,9 +180,9 @@ export declare class ScenarioSDK {
|
|
|
163
180
|
private buildHeaders;
|
|
164
181
|
private _makeAbort;
|
|
165
182
|
private buildBody;
|
|
166
|
-
static
|
|
183
|
+
static Scenario: typeof Scenario;
|
|
167
184
|
static DEFAULT_TIMEOUT: number;
|
|
168
|
-
static
|
|
185
|
+
static ScenarioError: typeof Errors.ScenarioError;
|
|
169
186
|
static APIError: typeof Errors.APIError;
|
|
170
187
|
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
171
188
|
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
@@ -191,11 +208,11 @@ export declare class ScenarioSDK {
|
|
|
191
208
|
usages: API.Usages;
|
|
192
209
|
workflows: API.Workflows;
|
|
193
210
|
}
|
|
194
|
-
export declare namespace
|
|
211
|
+
export declare namespace Scenario {
|
|
195
212
|
export type RequestOptions = Opts.RequestOptions;
|
|
196
|
-
export { Assets as Assets, type AssetRetrieveResponse as AssetRetrieveResponse, type AssetUpdateResponse as AssetUpdateResponse, type AssetListResponse as AssetListResponse, type AssetDeleteMultipleResponse as AssetDeleteMultipleResponse, type AssetDuplicateResponse as AssetDuplicateResponse, type AssetGetBulkResponse as AssetGetBulkResponse, type AssetListSnapshotsResponse as AssetListSnapshotsResponse, type AssetLockResponse as AssetLockResponse, type AssetUnlockResponse as AssetUnlockResponse, type AssetUpdateTagsResponse as AssetUpdateTagsResponse, type AssetUploadResponse as AssetUploadResponse, type AssetRetrieveParams as AssetRetrieveParams, type AssetUpdateParams as AssetUpdateParams, type AssetListParams as AssetListParams, type
|
|
213
|
+
export { Assets as Assets, type AssetRetrieveResponse as AssetRetrieveResponse, type AssetUpdateResponse as AssetUpdateResponse, type AssetListResponse as AssetListResponse, type AssetDeleteMultipleResponse as AssetDeleteMultipleResponse, type AssetDuplicateResponse as AssetDuplicateResponse, type AssetGetBulkResponse as AssetGetBulkResponse, type AssetListSnapshotsResponse as AssetListSnapshotsResponse, type AssetLockResponse as AssetLockResponse, type AssetUnlockResponse as AssetUnlockResponse, type AssetUpdateTagsResponse as AssetUpdateTagsResponse, type AssetUploadResponse as AssetUploadResponse, type AssetRetrieveParams as AssetRetrieveParams, type AssetUpdateParams as AssetUpdateParams, type AssetListParams as AssetListParams, type AssetDuplicateParams as AssetDuplicateParams, type AssetGetBulkParams as AssetGetBulkParams, type AssetListSnapshotsParams as AssetListSnapshotsParams, type AssetLockParams as AssetLockParams, type AssetUnlockParams as AssetUnlockParams, type AssetUpdateTagsParams as AssetUpdateTagsParams, type AssetUploadParams as AssetUploadParams, };
|
|
197
214
|
export { Collections as Collections, type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, };
|
|
198
|
-
export { Generate as Generate, type
|
|
215
|
+
export { Generate as Generate, type GenerateCaptionResponse as GenerateCaptionResponse, type GenerateDescribeStyleResponse as GenerateDescribeStyleResponse, type GenerateDetectResponse as GenerateDetectResponse, type GenerateEmbedResponse as GenerateEmbedResponse, type GeneratePatchResponse as GeneratePatchResponse, type GenerateRunModelResponse as GenerateRunModelResponse, type GenerateTranslateResponse as GenerateTranslateResponse, type GenerateCaptionParams as GenerateCaptionParams, type GenerateDescribeStyleParams as GenerateDescribeStyleParams, type GenerateDetectParams as GenerateDetectParams, type GenerateEmbedParams as GenerateEmbedParams, type GeneratePatchParams as GeneratePatchParams, type GenerateRunModelParams as GenerateRunModelParams, type GenerateTranslateParams as GenerateTranslateParams, };
|
|
199
216
|
export { Jobs as Jobs, type JobRetrieveResponse as JobRetrieveResponse, type JobListResponse as JobListResponse, type JobTriggerActionResponse as JobTriggerActionResponse, type JobListParams as JobListParams, type JobTriggerActionParams as JobTriggerActionParams, };
|
|
200
217
|
export { Models as Models, type ModelCreateResponse as ModelCreateResponse, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelUpdateResponse as ModelUpdateResponse, type ModelListResponse as ModelListResponse, type ModelDeleteResponse as ModelDeleteResponse, type ModelCopyResponse as ModelCopyResponse, type ModelDeleteImagesResponse as ModelDeleteImagesResponse, type ModelDownloadResponse as ModelDownloadResponse, type ModelGetBulkResponse as ModelGetBulkResponse, type ModelTransferResponse as ModelTransferResponse, type ModelUpdateTagsResponse as ModelUpdateTagsResponse, type ModelCreateParams as ModelCreateParams, type ModelRetrieveParams as ModelRetrieveParams, type ModelUpdateParams as ModelUpdateParams, type ModelListParams as ModelListParams, type ModelCopyParams as ModelCopyParams, type ModelDeleteImagesParams as ModelDeleteImagesParams, type ModelDownloadParams as ModelDownloadParams, type ModelGetBulkParams as ModelGetBulkParams, type ModelTransferParams as ModelTransferParams, type ModelUpdateTagsParams as ModelUpdateTagsParams, };
|
|
201
218
|
export { Oscu as Oscu, type OscuRetrievePricesResponse as OscuRetrievePricesResponse };
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,QAAQ,EACR,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,QAAQ,EACR,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EAC1B;OACM,EACL,aAAa,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