@scenario-labs/sdk 0.1.3 → 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 +23 -0
- package/LICENSE +1 -1
- 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 +13 -3
- 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,28 @@
|
|
|
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
|
+
|
|
3
26
|
## 0.1.3 (2026-04-14)
|
|
4
27
|
|
|
5
28
|
Full Changelog: [v0.1.2...v0.1.3](https://github.com/scenario-labs/scenario-sdk-typescript/compare/v0.1.2...v0.1.3)
|
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2026 scenario
|
|
1
|
+
Copyright 2026 scenario
|
|
2
2
|
|
|
3
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:
|
|
4
4
|
|
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;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C3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as Errors from "./core/error.js";
|
|
|
6
6
|
import * as Uploads from "./core/uploads.js";
|
|
7
7
|
import * as API from "./resources/index.js";
|
|
8
8
|
import { APIPromise } from "./core/api-promise.js";
|
|
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.js";
|
|
10
10
|
import { JobListParams, JobListResponse, JobRetrieveResponse, JobTriggerActionParams, JobTriggerActionResponse, Jobs } from "./resources/jobs.js";
|
|
11
11
|
import { Oscu, OscuRetrievePricesResponse } from "./resources/oscu.js";
|
|
12
12
|
import { Search, SearchAssetSearchParams, SearchAssetSearchResponse, SearchModelSearchParams, SearchModelSearchResponse } from "./resources/search.js";
|
|
@@ -14,7 +14,7 @@ import { TagListParams, TagListResponse, Tags } from "./resources/tags.js";
|
|
|
14
14
|
import { UploadCreateParams, UploadCreateResponse, UploadRetrieveResponse, UploadTriggerActionParams, UploadTriggerActionResponse, Uploads as UploadsAPIUploads } from "./resources/uploads.js";
|
|
15
15
|
import { UsageListParams, UsageListResponse, Usages } from "./resources/usages.js";
|
|
16
16
|
import { WorkflowApproveUserParams, WorkflowApproveUserResponse, WorkflowCreateParams, WorkflowCreateResponse, WorkflowDeleteResponse, WorkflowGetTagsParams, WorkflowGetTagsResponse, WorkflowListParams, WorkflowListResponse, WorkflowRetrieveResponse, WorkflowRunParams, WorkflowRunResponse, WorkflowUpdateParams, WorkflowUpdateResponse, Workflows } from "./resources/workflows.js";
|
|
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.js";
|
|
18
18
|
import { CollectionCreateParams, CollectionCreateResponse, CollectionDeleteResponse, CollectionListParams, CollectionListResponse, CollectionRetrieveResponse, CollectionUpdateParams, CollectionUpdateResponse, Collections } from "./resources/collections/collections.js";
|
|
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.js";
|
|
20
20
|
import { type Fetch } from "./internal/builtin-types.js";
|
|
@@ -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.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","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.ts","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,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,IAAI,EACL;OACM,EAAE,IAAI,EAAE,0BAA0B,EAAE;OACpC,EACL,MAAM,EACN,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EAC1B;OACM,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,EACL,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,OAAO,IAAI,iBAAiB,EAC7B;OACM,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,iBAA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