@orq-ai/node 1.31.1 → 1.31.11
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/README.md +17 -45
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/bulkfileupload.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/deploymentgetconfig.d.ts +96 -96
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +135 -136
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +49 -46
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +63 -61
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +53 -53
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +67 -66
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -10
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/bulkfileupload.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/deploymentgetconfig.ts +188 -255
- package/src/models/operations/deploymentinvoke.ts +81 -95
- package/src/models/operations/deployments.ts +88 -101
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -12
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/prompts/README.md +0 -533
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/promptSnippetsFindOne.d.ts +0 -12
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js +0 -107
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js +0 -107
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreate.d.ts +0 -12
- package/funcs/promptsCreate.d.ts.map +0 -1
- package/funcs/promptsCreate.js +0 -104
- package/funcs/promptsCreate.js.map +0 -1
- package/funcs/promptsCreateVersion.d.ts +0 -12
- package/funcs/promptsCreateVersion.d.ts.map +0 -1
- package/funcs/promptsCreateVersion.js +0 -108
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDelete.d.ts +0 -12
- package/funcs/promptsDelete.d.ts.map +0 -1
- package/funcs/promptsDelete.js +0 -108
- package/funcs/promptsDelete.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js +0 -108
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts +0 -12
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js +0 -107
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js +0 -108
- package/funcs/promptsGetOne.js.map +0 -1
- package/funcs/promptsUpdate.d.ts +0 -13
- package/funcs/promptsUpdate.d.ts.map +0 -1
- package/funcs/promptsUpdate.js +0 -112
- package/funcs/promptsUpdate.js.map +0 -1
- package/models/errors/updateprompt.d.ts +0 -36
- package/models/errors/updateprompt.d.ts.map +0 -1
- package/models/errors/updateprompt.js +0 -79
- package/models/errors/updateprompt.js.map +0 -1
- package/models/operations/createprompt.d.ts +0 -2035
- package/models/operations/createprompt.d.ts.map +0 -1
- package/models/operations/createprompt.js +0 -1853
- package/models/operations/createprompt.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2001
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1848
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/deleteprompt.d.ts +0 -32
- package/models/operations/deleteprompt.d.ts.map +0 -1
- package/models/operations/deleteprompt.js +0 -69
- package/models/operations/deleteprompt.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js +0 -69
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -6278
- package/models/operations/findonepromptsnippet.d.ts.map +0 -1
- package/models/operations/findonepromptsnippet.js +0 -5891
- package/models/operations/findonepromptsnippet.js.map +0 -1
- package/models/operations/getallprompts.d.ts +0 -6613
- package/models/operations/getallprompts.d.ts.map +0 -1
- package/models/operations/getallprompts.js +0 -6161
- package/models/operations/getallprompts.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/models/operations/getoneprompt.d.ts +0 -32
- package/models/operations/getoneprompt.d.ts.map +0 -1
- package/models/operations/getoneprompt.js +0 -69
- package/models/operations/getoneprompt.js.map +0 -1
- package/models/operations/updateprompt.d.ts +0 -7251
- package/models/operations/updateprompt.d.ts.map +0 -1
- package/models/operations/updateprompt.js +0 -6678
- package/models/operations/updateprompt.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -21
- package/sdk/prompt.js.map +0 -1
- package/sdk/prompts.d.ts +0 -33
- package/sdk/prompts.d.ts.map +0 -1
- package/sdk/prompts.js +0 -61
- package/sdk/prompts.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/promptSnippetsFindOne.ts +0 -127
- package/src/funcs/promptTemplatesGetAll.ts +0 -129
- package/src/funcs/promptsCreate.ts +0 -123
- package/src/funcs/promptsCreateVersion.ts +0 -128
- package/src/funcs/promptsDelete.ts +0 -127
- package/src/funcs/promptsDuplicate.ts +0 -127
- package/src/funcs/promptsGetAll.ts +0 -127
- package/src/funcs/promptsGetOne.ts +0 -127
- package/src/funcs/promptsUpdate.ts +0 -135
- package/src/models/errors/updateprompt.ts +0 -71
- package/src/models/operations/createprompt.ts +0 -3455
- package/src/models/operations/createpromptversion.ts +0 -3697
- package/src/models/operations/deleteprompt.ts +0 -69
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/src/models/operations/getallprompts.ts +0 -13390
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/models/operations/getoneprompt.ts +0 -69
- package/src/models/operations/updateprompt.ts +0 -14407
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/prompts.ts +0 -114
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
package/README.md
CHANGED
|
@@ -174,27 +174,6 @@ run();
|
|
|
174
174
|
* [bulkUpload](docs/sdks/files/README.md#bulkupload) - Bulk upload file
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
### [prompt](docs/sdks/prompt/README.md)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
#### [prompt.snippets](docs/sdks/snippets/README.md)
|
|
181
|
-
|
|
182
|
-
* [findOne](docs/sdks/snippets/README.md#findone) - Get one prompt snippet
|
|
183
|
-
|
|
184
|
-
#### [prompt.templates](docs/sdks/templates/README.md)
|
|
185
|
-
|
|
186
|
-
* [getAll](docs/sdks/templates/README.md#getall) - Get all prompt templates
|
|
187
|
-
|
|
188
|
-
### [prompts](docs/sdks/prompts/README.md)
|
|
189
|
-
|
|
190
|
-
* [create](docs/sdks/prompts/README.md#create) - Create a new prompt
|
|
191
|
-
* [createVersion](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
|
|
192
|
-
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
193
|
-
* [getOne](docs/sdks/prompts/README.md#getone) - Get one prompt
|
|
194
|
-
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
195
|
-
* [duplicate](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
|
|
196
|
-
* [getAll](docs/sdks/prompts/README.md#getall) - Get all prompts
|
|
197
|
-
|
|
198
177
|
### [remoteconfig](docs/sdks/remoteconfig/README.md)
|
|
199
178
|
|
|
200
179
|
* [getConfig](docs/sdks/remoteconfig/README.md#getconfig) - Get Configurations
|
|
@@ -226,15 +205,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
226
205
|
- [`feedbackCreate`](docs/sdks/feedback/README.md#create) - Submit feedback
|
|
227
206
|
- [`filesBulkUpload`](docs/sdks/files/README.md#bulkupload) - Bulk upload file
|
|
228
207
|
- [`filesUpload`](docs/sdks/files/README.md#upload) - Upload file
|
|
229
|
-
- [`promptsCreate`](docs/sdks/prompts/README.md#create) - Create a new prompt
|
|
230
|
-
- [`promptsCreateVersion`](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
|
|
231
|
-
- [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
232
|
-
- [`promptsDuplicate`](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
|
|
233
|
-
- [`promptsGetAll`](docs/sdks/prompts/README.md#getall) - Get all prompts
|
|
234
|
-
- [`promptsGetOne`](docs/sdks/prompts/README.md#getone) - Get one prompt
|
|
235
|
-
- [`promptSnippetsFindOne`](docs/sdks/snippets/README.md#findone) - Get one prompt snippet
|
|
236
|
-
- [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
237
|
-
- [`promptTemplatesGetAll`](docs/sdks/templates/README.md#getall) - Get all prompt templates
|
|
238
208
|
- [`remoteconfigGetConfig`](docs/sdks/remoteconfig/README.md#getconfig) - Get Configurations
|
|
239
209
|
|
|
240
210
|
</details>
|
|
@@ -380,25 +350,15 @@ run();
|
|
|
380
350
|
<!-- Start Error Handling [errors] -->
|
|
381
351
|
## Error Handling
|
|
382
352
|
|
|
383
|
-
All
|
|
384
|
-
|
|
385
|
-
If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
|
|
386
|
-
|
|
387
|
-
| HTTP Client Error | Description |
|
|
388
|
-
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
389
|
-
| RequestAbortedError | HTTP request was aborted by the client |
|
|
390
|
-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
391
|
-
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
392
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
393
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
394
|
-
|
|
395
|
-
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `all` method may throw the following errors:
|
|
353
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `all` method may throw the following errors:
|
|
396
354
|
|
|
397
355
|
| Error Type | Status Code | Content Type |
|
|
398
356
|
| ------------------- | ----------- | ---------------- |
|
|
399
357
|
| errors.HonoApiError | 500 | application/json |
|
|
400
358
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
401
359
|
|
|
360
|
+
If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.
|
|
361
|
+
|
|
402
362
|
```typescript
|
|
403
363
|
import { Orq } from "@orq-ai/node";
|
|
404
364
|
import { HonoApiError, SDKValidationError } from "@orq-ai/node/models/errors";
|
|
@@ -416,8 +376,9 @@ async function run() {
|
|
|
416
376
|
console.log(result);
|
|
417
377
|
} catch (err) {
|
|
418
378
|
switch (true) {
|
|
379
|
+
// The server response does not match the expected SDK schema
|
|
419
380
|
case (err instanceof SDKValidationError): {
|
|
420
|
-
//
|
|
381
|
+
// Pretty-print will provide a human-readable multi-line error message
|
|
421
382
|
console.error(err.pretty());
|
|
422
383
|
// Raw value may also be inspected
|
|
423
384
|
console.error(err.rawValue);
|
|
@@ -429,6 +390,7 @@ async function run() {
|
|
|
429
390
|
return;
|
|
430
391
|
}
|
|
431
392
|
default: {
|
|
393
|
+
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
432
394
|
throw err;
|
|
433
395
|
}
|
|
434
396
|
}
|
|
@@ -439,7 +401,17 @@ run();
|
|
|
439
401
|
|
|
440
402
|
```
|
|
441
403
|
|
|
442
|
-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
404
|
+
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
405
|
+
|
|
406
|
+
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
|
|
407
|
+
|
|
408
|
+
| HTTP Client Error | Description |
|
|
409
|
+
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
410
|
+
| RequestAbortedError | HTTP request was aborted by the client |
|
|
411
|
+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
412
|
+
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
413
|
+
| InvalidRequestError | Any input used to create a request is invalid |
|
|
414
|
+
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
443
415
|
<!-- End Error Handling [errors] -->
|
|
444
416
|
|
|
445
417
|
<!-- Start Server Selection [server] -->
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "2.0";
|
|
30
|
-
readonly sdkVersion: "1.31.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.31.
|
|
30
|
+
readonly sdkVersion: "1.31.11";
|
|
31
|
+
readonly genVersion: "2.479.3";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.31.11 2.479.3 2.0 @orq-ai/node";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "2.0",
|
|
32
|
-
sdkVersion: "1.31.
|
|
33
|
-
genVersion: "2.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.31.
|
|
32
|
+
sdkVersion: "1.31.11",
|
|
33
|
+
genVersion: "2.479.3",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.31.11 2.479.3 2.0 @orq-ai/node",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,mBAAmB;CACX,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,mBAAmB;CACX,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,2DAA2D;CAC9D,CAAC"}
|
package/models/errors/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
package/models/errors/index.js
CHANGED
|
@@ -21,5 +21,4 @@ __exportStar(require("./apierror.js"), exports);
|
|
|
21
21
|
__exportStar(require("./honoapierror.js"), exports);
|
|
22
22
|
__exportStar(require("./httpclienterrors.js"), exports);
|
|
23
23
|
__exportStar(require("./sdkvalidationerror.js"), exports);
|
|
24
|
-
__exportStar(require("./updateprompt.js"), exports);
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC"}
|
|
@@ -160,7 +160,7 @@ exports.ResponseBody$inboundSchema = z.object({
|
|
|
160
160
|
purpose: exports.BulkFileUploadFilesPurpose$inboundSchema,
|
|
161
161
|
bytes: z.number(),
|
|
162
162
|
file_name: z.string(),
|
|
163
|
-
created: z.string().datetime({ offset: true }).default("2024-12-
|
|
163
|
+
created: z.string().datetime({ offset: true }).default("2024-12-16T16:28:54.131Z").transform(v => new Date(v)),
|
|
164
164
|
}).transform((v) => {
|
|
165
165
|
return (0, primitives_js_1.remap)(v, {
|
|
166
166
|
"_id": "id",
|
|
@@ -175,7 +175,7 @@ exports.ResponseBody$outboundSchema = z.object({
|
|
|
175
175
|
purpose: exports.BulkFileUploadFilesPurpose$outboundSchema,
|
|
176
176
|
bytes: z.number(),
|
|
177
177
|
fileName: z.string(),
|
|
178
|
-
created: z.date().default(() => new Date("2024-12-
|
|
178
|
+
created: z.date().default(() => new Date("2024-12-16T16:28:54.131Z"))
|
|
179
179
|
.transform(v => v.toISOString()),
|
|
180
180
|
}).transform((v) => {
|
|
181
181
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -102,7 +102,7 @@ exports.CreateContactResponseBody$inboundSchema = z.object({
|
|
|
102
102
|
metadata: z.record(z.any()).optional(),
|
|
103
103
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
104
104
|
.optional(),
|
|
105
|
-
updated: z.string().datetime({ offset: true }).default("2024-12-
|
|
105
|
+
updated: z.string().datetime({ offset: true }).default("2024-12-16T16:28:53.856Z").transform(v => new Date(v)),
|
|
106
106
|
}).transform((v) => {
|
|
107
107
|
return (0, primitives_js_1.remap)(v, {
|
|
108
108
|
"external_id": "externalId",
|
|
@@ -120,7 +120,7 @@ exports.CreateContactResponseBody$outboundSchema = z.object({
|
|
|
120
120
|
tags: z.array(z.string()).optional(),
|
|
121
121
|
metadata: z.record(z.any()).optional(),
|
|
122
122
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
123
|
-
updated: z.date().default(() => new Date("2024-12-
|
|
123
|
+
updated: z.date().default(() => new Date("2024-12-16T16:28:53.856Z"))
|
|
124
124
|
.transform(v => v.toISOString()),
|
|
125
125
|
}).transform((v) => {
|
|
126
126
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -347,7 +347,7 @@ export type DeploymentGetConfigMessages = {
|
|
|
347
347
|
/**
|
|
348
348
|
* Only supported on `image` models.
|
|
349
349
|
*/
|
|
350
|
-
export declare const
|
|
350
|
+
export declare const Format: {
|
|
351
351
|
readonly Url: "url";
|
|
352
352
|
readonly B64Json: "b64_json";
|
|
353
353
|
readonly Text: "text";
|
|
@@ -356,39 +356,39 @@ export declare const DeploymentGetConfigFormat: {
|
|
|
356
356
|
/**
|
|
357
357
|
* Only supported on `image` models.
|
|
358
358
|
*/
|
|
359
|
-
export type
|
|
359
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
360
360
|
/**
|
|
361
361
|
* Only supported on `image` models.
|
|
362
362
|
*/
|
|
363
|
-
export declare const
|
|
363
|
+
export declare const Quality: {
|
|
364
364
|
readonly Standard: "standard";
|
|
365
365
|
readonly Hd: "hd";
|
|
366
366
|
};
|
|
367
367
|
/**
|
|
368
368
|
* Only supported on `image` models.
|
|
369
369
|
*/
|
|
370
|
-
export type
|
|
370
|
+
export type Quality = ClosedEnum<typeof Quality>;
|
|
371
371
|
export declare const DeploymentGetConfigResponseFormatType: {
|
|
372
372
|
readonly JsonObject: "json_object";
|
|
373
373
|
};
|
|
374
374
|
export type DeploymentGetConfigResponseFormatType = ClosedEnum<typeof DeploymentGetConfigResponseFormatType>;
|
|
375
|
-
export type
|
|
375
|
+
export type ResponseFormat2 = {
|
|
376
376
|
type: DeploymentGetConfigResponseFormatType;
|
|
377
377
|
};
|
|
378
|
-
export declare const
|
|
378
|
+
export declare const ResponseFormatType: {
|
|
379
379
|
readonly JsonSchema: "json_schema";
|
|
380
380
|
};
|
|
381
|
-
export type
|
|
382
|
-
export type
|
|
381
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
382
|
+
export type JsonSchema = {
|
|
383
383
|
name: string;
|
|
384
384
|
strict: boolean;
|
|
385
385
|
schema: {
|
|
386
386
|
[k: string]: any;
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
|
-
export type
|
|
390
|
-
type:
|
|
391
|
-
jsonSchema:
|
|
389
|
+
export type ResponseFormat1 = {
|
|
390
|
+
type: ResponseFormatType;
|
|
391
|
+
jsonSchema: JsonSchema;
|
|
392
392
|
};
|
|
393
393
|
/**
|
|
394
394
|
* An object specifying the format that the model must output.
|
|
@@ -401,29 +401,29 @@ export type DeploymentGetConfigResponseFormat1 = {
|
|
|
401
401
|
*
|
|
402
402
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
403
403
|
*/
|
|
404
|
-
export type
|
|
404
|
+
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
405
405
|
/**
|
|
406
406
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
407
407
|
*/
|
|
408
|
-
export declare const
|
|
408
|
+
export declare const PhotoRealVersion: {
|
|
409
409
|
readonly V1: "v1";
|
|
410
410
|
readonly V2: "v2";
|
|
411
411
|
};
|
|
412
412
|
/**
|
|
413
413
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
414
414
|
*/
|
|
415
|
-
export type
|
|
415
|
+
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
416
416
|
/**
|
|
417
417
|
* The format to return the embeddings
|
|
418
418
|
*/
|
|
419
|
-
export declare const
|
|
419
|
+
export declare const EncodingFormat: {
|
|
420
420
|
readonly Float: "float";
|
|
421
421
|
readonly Base64: "base64";
|
|
422
422
|
};
|
|
423
423
|
/**
|
|
424
424
|
* The format to return the embeddings
|
|
425
425
|
*/
|
|
426
|
-
export type
|
|
426
|
+
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
427
427
|
/**
|
|
428
428
|
* Model Parameters: Not all parameters apply to every model
|
|
429
429
|
*/
|
|
@@ -463,7 +463,7 @@ export type ParametersT = {
|
|
|
463
463
|
/**
|
|
464
464
|
* Only supported on `image` models.
|
|
465
465
|
*/
|
|
466
|
-
format?:
|
|
466
|
+
format?: Format | undefined;
|
|
467
467
|
/**
|
|
468
468
|
* Only supported on `image` models.
|
|
469
469
|
*/
|
|
@@ -471,7 +471,7 @@ export type ParametersT = {
|
|
|
471
471
|
/**
|
|
472
472
|
* Only supported on `image` models.
|
|
473
473
|
*/
|
|
474
|
-
quality?:
|
|
474
|
+
quality?: Quality | undefined;
|
|
475
475
|
/**
|
|
476
476
|
* Only supported on `image` models.
|
|
477
477
|
*/
|
|
@@ -487,15 +487,15 @@ export type ParametersT = {
|
|
|
487
487
|
*
|
|
488
488
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
489
489
|
*/
|
|
490
|
-
responseFormat?:
|
|
490
|
+
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
491
491
|
/**
|
|
492
492
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
493
493
|
*/
|
|
494
|
-
photoRealVersion?:
|
|
494
|
+
photoRealVersion?: PhotoRealVersion | undefined;
|
|
495
495
|
/**
|
|
496
496
|
* The format to return the embeddings
|
|
497
497
|
*/
|
|
498
|
-
encodingFormat?:
|
|
498
|
+
encodingFormat?: EncodingFormat | undefined;
|
|
499
499
|
};
|
|
500
500
|
/**
|
|
501
501
|
* The type of the tool. Currently, only `function` is supported.
|
|
@@ -1510,22 +1510,22 @@ export declare namespace DeploymentGetConfigMessages$ {
|
|
|
1510
1510
|
export declare function deploymentGetConfigMessagesToJSON(deploymentGetConfigMessages: DeploymentGetConfigMessages): string;
|
|
1511
1511
|
export declare function deploymentGetConfigMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError>;
|
|
1512
1512
|
/** @internal */
|
|
1513
|
-
export declare const
|
|
1513
|
+
export declare const Format$inboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
1514
1514
|
/** @internal */
|
|
1515
|
-
export declare const
|
|
1515
|
+
export declare const Format$outboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
1516
1516
|
/**
|
|
1517
1517
|
* @internal
|
|
1518
1518
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1519
1519
|
*/
|
|
1520
|
-
export declare namespace
|
|
1521
|
-
/** @deprecated use `
|
|
1520
|
+
export declare namespace Format$ {
|
|
1521
|
+
/** @deprecated use `Format$inboundSchema` instead. */
|
|
1522
1522
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1523
1523
|
readonly Url: "url";
|
|
1524
1524
|
readonly B64Json: "b64_json";
|
|
1525
1525
|
readonly Text: "text";
|
|
1526
1526
|
readonly JsonObject: "json_object";
|
|
1527
1527
|
}>;
|
|
1528
|
-
/** @deprecated use `
|
|
1528
|
+
/** @deprecated use `Format$outboundSchema` instead. */
|
|
1529
1529
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1530
1530
|
readonly Url: "url";
|
|
1531
1531
|
readonly B64Json: "b64_json";
|
|
@@ -1534,20 +1534,20 @@ export declare namespace DeploymentGetConfigFormat$ {
|
|
|
1534
1534
|
}>;
|
|
1535
1535
|
}
|
|
1536
1536
|
/** @internal */
|
|
1537
|
-
export declare const
|
|
1537
|
+
export declare const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
1538
1538
|
/** @internal */
|
|
1539
|
-
export declare const
|
|
1539
|
+
export declare const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
1540
1540
|
/**
|
|
1541
1541
|
* @internal
|
|
1542
1542
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1543
1543
|
*/
|
|
1544
|
-
export declare namespace
|
|
1545
|
-
/** @deprecated use `
|
|
1544
|
+
export declare namespace Quality$ {
|
|
1545
|
+
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
1546
1546
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1547
1547
|
readonly Standard: "standard";
|
|
1548
1548
|
readonly Hd: "hd";
|
|
1549
1549
|
}>;
|
|
1550
|
-
/** @deprecated use `
|
|
1550
|
+
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
1551
1551
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1552
1552
|
readonly Standard: "standard";
|
|
1553
1553
|
readonly Hd: "hd";
|
|
@@ -1572,49 +1572,49 @@ export declare namespace DeploymentGetConfigResponseFormatType$ {
|
|
|
1572
1572
|
}>;
|
|
1573
1573
|
}
|
|
1574
1574
|
/** @internal */
|
|
1575
|
-
export declare const
|
|
1575
|
+
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1576
1576
|
/** @internal */
|
|
1577
|
-
export type
|
|
1577
|
+
export type ResponseFormat2$Outbound = {
|
|
1578
1578
|
type: string;
|
|
1579
1579
|
};
|
|
1580
1580
|
/** @internal */
|
|
1581
|
-
export declare const
|
|
1581
|
+
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
1582
1582
|
/**
|
|
1583
1583
|
* @internal
|
|
1584
1584
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1585
1585
|
*/
|
|
1586
|
-
export declare namespace
|
|
1587
|
-
/** @deprecated use `
|
|
1588
|
-
const inboundSchema: z.ZodType<
|
|
1589
|
-
/** @deprecated use `
|
|
1590
|
-
const outboundSchema: z.ZodType<
|
|
1591
|
-
/** @deprecated use `
|
|
1592
|
-
type Outbound =
|
|
1586
|
+
export declare namespace ResponseFormat2$ {
|
|
1587
|
+
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
1588
|
+
const inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1589
|
+
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
1590
|
+
const outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
1591
|
+
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
1592
|
+
type Outbound = ResponseFormat2$Outbound;
|
|
1593
1593
|
}
|
|
1594
|
-
export declare function
|
|
1595
|
-
export declare function
|
|
1594
|
+
export declare function responseFormat2ToJSON(responseFormat2: ResponseFormat2): string;
|
|
1595
|
+
export declare function responseFormat2FromJSON(jsonString: string): SafeParseResult<ResponseFormat2, SDKValidationError>;
|
|
1596
1596
|
/** @internal */
|
|
1597
|
-
export declare const
|
|
1597
|
+
export declare const ResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
1598
1598
|
/** @internal */
|
|
1599
|
-
export declare const
|
|
1599
|
+
export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
1600
1600
|
/**
|
|
1601
1601
|
* @internal
|
|
1602
1602
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1603
1603
|
*/
|
|
1604
|
-
export declare namespace
|
|
1605
|
-
/** @deprecated use `
|
|
1604
|
+
export declare namespace ResponseFormatType$ {
|
|
1605
|
+
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
1606
1606
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1607
1607
|
readonly JsonSchema: "json_schema";
|
|
1608
1608
|
}>;
|
|
1609
|
-
/** @deprecated use `
|
|
1609
|
+
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
1610
1610
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1611
1611
|
readonly JsonSchema: "json_schema";
|
|
1612
1612
|
}>;
|
|
1613
1613
|
}
|
|
1614
1614
|
/** @internal */
|
|
1615
|
-
export declare const
|
|
1615
|
+
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
1616
1616
|
/** @internal */
|
|
1617
|
-
export type
|
|
1617
|
+
export type JsonSchema$Outbound = {
|
|
1618
1618
|
name: string;
|
|
1619
1619
|
strict: boolean;
|
|
1620
1620
|
schema: {
|
|
@@ -1622,99 +1622,99 @@ export type DeploymentGetConfigResponseFormatJsonSchema$Outbound = {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
};
|
|
1624
1624
|
/** @internal */
|
|
1625
|
-
export declare const
|
|
1625
|
+
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1626
1626
|
/**
|
|
1627
1627
|
* @internal
|
|
1628
1628
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1629
1629
|
*/
|
|
1630
|
-
export declare namespace
|
|
1631
|
-
/** @deprecated use `
|
|
1632
|
-
const inboundSchema: z.ZodType<
|
|
1633
|
-
/** @deprecated use `
|
|
1634
|
-
const outboundSchema: z.ZodType<
|
|
1635
|
-
/** @deprecated use `
|
|
1636
|
-
type Outbound =
|
|
1630
|
+
export declare namespace JsonSchema$ {
|
|
1631
|
+
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1632
|
+
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
1633
|
+
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1634
|
+
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1635
|
+
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1636
|
+
type Outbound = JsonSchema$Outbound;
|
|
1637
1637
|
}
|
|
1638
|
-
export declare function
|
|
1639
|
-
export declare function
|
|
1638
|
+
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
1639
|
+
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
1640
1640
|
/** @internal */
|
|
1641
|
-
export declare const
|
|
1641
|
+
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1642
1642
|
/** @internal */
|
|
1643
|
-
export type
|
|
1643
|
+
export type ResponseFormat1$Outbound = {
|
|
1644
1644
|
type: string;
|
|
1645
|
-
json_schema:
|
|
1645
|
+
json_schema: JsonSchema$Outbound;
|
|
1646
1646
|
};
|
|
1647
1647
|
/** @internal */
|
|
1648
|
-
export declare const
|
|
1648
|
+
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
1649
1649
|
/**
|
|
1650
1650
|
* @internal
|
|
1651
1651
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1652
1652
|
*/
|
|
1653
|
-
export declare namespace
|
|
1654
|
-
/** @deprecated use `
|
|
1655
|
-
const inboundSchema: z.ZodType<
|
|
1656
|
-
/** @deprecated use `
|
|
1657
|
-
const outboundSchema: z.ZodType<
|
|
1658
|
-
/** @deprecated use `
|
|
1659
|
-
type Outbound =
|
|
1653
|
+
export declare namespace ResponseFormat1$ {
|
|
1654
|
+
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
1655
|
+
const inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1656
|
+
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
1657
|
+
const outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
1658
|
+
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
1659
|
+
type Outbound = ResponseFormat1$Outbound;
|
|
1660
1660
|
}
|
|
1661
|
-
export declare function
|
|
1662
|
-
export declare function
|
|
1661
|
+
export declare function responseFormat1ToJSON(responseFormat1: ResponseFormat1): string;
|
|
1662
|
+
export declare function responseFormat1FromJSON(jsonString: string): SafeParseResult<ResponseFormat1, SDKValidationError>;
|
|
1663
1663
|
/** @internal */
|
|
1664
|
-
export declare const
|
|
1664
|
+
export declare const ResponseFormat$inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
1665
1665
|
/** @internal */
|
|
1666
|
-
export type
|
|
1666
|
+
export type ResponseFormat$Outbound = ResponseFormat2$Outbound | ResponseFormat1$Outbound;
|
|
1667
1667
|
/** @internal */
|
|
1668
|
-
export declare const
|
|
1668
|
+
export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
1669
1669
|
/**
|
|
1670
1670
|
* @internal
|
|
1671
1671
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1672
1672
|
*/
|
|
1673
|
-
export declare namespace
|
|
1674
|
-
/** @deprecated use `
|
|
1675
|
-
const inboundSchema: z.ZodType<
|
|
1676
|
-
/** @deprecated use `
|
|
1677
|
-
const outboundSchema: z.ZodType<
|
|
1678
|
-
/** @deprecated use `
|
|
1679
|
-
type Outbound =
|
|
1673
|
+
export declare namespace ResponseFormat$ {
|
|
1674
|
+
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
1675
|
+
const inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
1676
|
+
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
1677
|
+
const outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
1678
|
+
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
1679
|
+
type Outbound = ResponseFormat$Outbound;
|
|
1680
1680
|
}
|
|
1681
|
-
export declare function
|
|
1682
|
-
export declare function
|
|
1681
|
+
export declare function responseFormatToJSON(responseFormat: ResponseFormat): string;
|
|
1682
|
+
export declare function responseFormatFromJSON(jsonString: string): SafeParseResult<ResponseFormat, SDKValidationError>;
|
|
1683
1683
|
/** @internal */
|
|
1684
|
-
export declare const
|
|
1684
|
+
export declare const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
1685
1685
|
/** @internal */
|
|
1686
|
-
export declare const
|
|
1686
|
+
export declare const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
1687
1687
|
/**
|
|
1688
1688
|
* @internal
|
|
1689
1689
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1690
1690
|
*/
|
|
1691
|
-
export declare namespace
|
|
1692
|
-
/** @deprecated use `
|
|
1691
|
+
export declare namespace PhotoRealVersion$ {
|
|
1692
|
+
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
1693
1693
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1694
1694
|
readonly V1: "v1";
|
|
1695
1695
|
readonly V2: "v2";
|
|
1696
1696
|
}>;
|
|
1697
|
-
/** @deprecated use `
|
|
1697
|
+
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
1698
1698
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1699
1699
|
readonly V1: "v1";
|
|
1700
1700
|
readonly V2: "v2";
|
|
1701
1701
|
}>;
|
|
1702
1702
|
}
|
|
1703
1703
|
/** @internal */
|
|
1704
|
-
export declare const
|
|
1704
|
+
export declare const EncodingFormat$inboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
1705
1705
|
/** @internal */
|
|
1706
|
-
export declare const
|
|
1706
|
+
export declare const EncodingFormat$outboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
1707
1707
|
/**
|
|
1708
1708
|
* @internal
|
|
1709
1709
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1710
1710
|
*/
|
|
1711
|
-
export declare namespace
|
|
1712
|
-
/** @deprecated use `
|
|
1711
|
+
export declare namespace EncodingFormat$ {
|
|
1712
|
+
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1713
1713
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1714
1714
|
readonly Float: "float";
|
|
1715
1715
|
readonly Base64: "base64";
|
|
1716
1716
|
}>;
|
|
1717
|
-
/** @deprecated use `
|
|
1717
|
+
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1718
1718
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1719
1719
|
readonly Float: "float";
|
|
1720
1720
|
readonly Base64: "base64";
|
|
@@ -1736,7 +1736,7 @@ export type ParametersT$Outbound = {
|
|
|
1736
1736
|
dimensions?: string | undefined;
|
|
1737
1737
|
quality?: string | undefined;
|
|
1738
1738
|
style?: string | undefined;
|
|
1739
|
-
responseFormat?:
|
|
1739
|
+
responseFormat?: ResponseFormat2$Outbound | ResponseFormat1$Outbound | null | undefined;
|
|
1740
1740
|
photoRealVersion?: string | undefined;
|
|
1741
1741
|
encoding_format?: string | undefined;
|
|
1742
1742
|
};
|