@leonardo-ai/sdk 4.19.6 → 4.19.7

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 CHANGED
@@ -157,10 +157,6 @@ run();
157
157
  * [performInpaintingLCM](docs/sdks/realtimecanvas/README.md#performinpaintinglcm) - Perform inpainting on a LCM image
158
158
  * [performInstantRefine](docs/sdks/realtimecanvas/README.md#performinstantrefine) - Perform instant refine on a LCM image
159
159
 
160
- ### [styles](docs/sdks/styles/README.md)
161
-
162
- * [listPlatformStyles](docs/sdks/styles/README.md#listplatformstyles) - List Platform Styles
163
-
164
160
  ### [texture](docs/sdks/texture/README.md)
165
161
 
166
162
  * [createTextureGeneration](docs/sdks/texture/README.md#createtexturegeneration) - Create Texture Generation
@@ -423,7 +419,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
423
419
  - [`realtimeCanvasPerformAlchemyUpscaleLCM`](docs/sdks/realtimecanvas/README.md#performalchemyupscalelcm) - Perform Alchemy Upscale on a LCM image
424
420
  - [`realtimeCanvasPerformInpaintingLCM`](docs/sdks/realtimecanvas/README.md#performinpaintinglcm) - Perform inpainting on a LCM image
425
421
  - [`realtimeCanvasPerformInstantRefine`](docs/sdks/realtimecanvas/README.md#performinstantrefine) - Perform instant refine on a LCM image
426
- - [`stylesListPlatformStyles`](docs/sdks/styles/README.md#listplatformstyles) - List Platform Styles
427
422
  - [`textureCreateTextureGeneration`](docs/sdks/texture/README.md#createtexturegeneration) - Create Texture Generation
428
423
  - [`textureDeleteTextureGenerationById`](docs/sdks/texture/README.md#deletetexturegenerationbyid) - Delete Texture Generation by ID
429
424
  - [`threeDModelAssetsDelete3DModelById`](docs/sdks/threedmodelassets/README.md#delete3dmodelbyid) - Delete 3D Model by ID
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: "v1.0.0";
30
- readonly sdkVersion: "4.19.6";
30
+ readonly sdkVersion: "4.19.7";
31
31
  readonly genVersion: "2.484.0";
32
- readonly userAgent: "speakeasy-sdk/typescript 4.19.6 2.484.0 v1.0.0 @leonardo-ai/sdk";
32
+ readonly userAgent: "speakeasy-sdk/typescript 4.19.7 2.484.0 v1.0.0 @leonardo-ai/sdk";
33
33
  };
34
34
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -31,8 +31,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
31
31
  exports.SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "v1.0.0",
34
- sdkVersion: "4.19.6",
34
+ sdkVersion: "4.19.7",
35
35
  genVersion: "2.484.0",
36
- userAgent: "speakeasy-sdk/typescript 4.19.6 2.484.0 v1.0.0 @leonardo-ai/sdk",
36
+ userAgent: "speakeasy-sdk/typescript 4.19.7 2.484.0 v1.0.0 @leonardo-ai/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardo-ai/sdk",
3
- "version": "4.19.6",
3
+ "version": "4.19.7",
4
4
  "author": "leonardoai",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -28,7 +28,6 @@ export * from "./getuserself.js";
28
28
  export * from "./getvariationbyid.js";
29
29
  export * from "./listelements.js";
30
30
  export * from "./listplatformmodels.js";
31
- export * from "./listplatformstyles.js";
32
31
  export * from "./performalchemyupscalelcm.js";
33
32
  export * from "./performinpaintinglcm.js";
34
33
  export * from "./performinstantrefine.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC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jC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
@@ -47,7 +47,6 @@ __exportStar(require("./getuserself.js"), exports);
47
47
  __exportStar(require("./getvariationbyid.js"), exports);
48
48
  __exportStar(require("./listelements.js"), exports);
49
49
  __exportStar(require("./listplatformmodels.js"), exports);
50
- __exportStar(require("./listplatformstyles.js"), exports);
51
50
  __exportStar(require("./performalchemyupscalelcm.js"), exports);
52
51
  __exportStar(require("./performinpaintinglcm.js"), exports);
53
52
  __exportStar(require("./performinstantrefine.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,2DAAyC;AACzC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,wDAAsC;AACtC,oDAAkC;AAClC,mDAAiC;AACjC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,6DAA2C;AAC3C,0DAAwC;AACxC,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,2DAAyC;AACzC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,wDAAsC;AACtC,oDAAkC;AAClC,mDAAiC;AACjC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,6DAA2C;AAC3C,0DAAwC;AACxC,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC"}
package/sdk/sdk.d.ts CHANGED
@@ -8,7 +8,6 @@ import { Motion } from "./motion.js";
8
8
  import { PricingCalculator } from "./pricingcalculator.js";
9
9
  import { Prompt } from "./prompt.js";
10
10
  import { RealtimeCanvas } from "./realtimecanvas.js";
11
- import { Styles } from "./styles.js";
12
11
  import { Texture } from "./texture.js";
13
12
  import { ThreeDModelAssets } from "./threedmodelassets.js";
14
13
  import { User } from "./user.js";
@@ -34,8 +33,6 @@ export declare class Leonardo extends ClientSDK {
34
33
  get models(): Models;
35
34
  private _threeDModelAssets?;
36
35
  get threeDModelAssets(): ThreeDModelAssets;
37
- private _styles?;
38
- get styles(): Styles;
39
36
  private _pricingCalculator?;
40
37
  get pricingCalculator(): PricingCalculator;
41
38
  private _prompt?;
package/sdk/sdk.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CA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AED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,IAAI,iBAAiB,IAAI,iBAAiB,CAEzC;IAED,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,IAAI,iBAAiB,IAAI,iBAAiB,CAEzC;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;CACF"}
package/sdk/sdk.js CHANGED
@@ -14,7 +14,6 @@ const motion_js_1 = require("./motion.js");
14
14
  const pricingcalculator_js_1 = require("./pricingcalculator.js");
15
15
  const prompt_js_1 = require("./prompt.js");
16
16
  const realtimecanvas_js_1 = require("./realtimecanvas.js");
17
- const styles_js_1 = require("./styles.js");
18
17
  const texture_js_1 = require("./texture.js");
19
18
  const threedmodelassets_js_1 = require("./threedmodelassets.js");
20
19
  const user_js_1 = require("./user.js");
@@ -50,9 +49,6 @@ class Leonardo extends sdks_js_1.ClientSDK {
50
49
  get threeDModelAssets() {
51
50
  return (this._threeDModelAssets ?? (this._threeDModelAssets = new threedmodelassets_js_1.ThreeDModelAssets(this._options)));
52
51
  }
53
- get styles() {
54
- return (this._styles ?? (this._styles = new styles_js_1.Styles(this._options)));
55
- }
56
52
  get pricingCalculator() {
57
53
  return (this._pricingCalculator ?? (this._pricingCalculator = new pricingcalculator_js_1.PricingCalculator(this._options)));
58
54
  }
package/sdk/sdk.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6CAAuC;AACvC,+CAAyC;AACzC,yCAAmC;AACnC,mDAA6C;AAC7C,2CAAqC;AACrC,2CAAqC;AACrC,iEAA2D;AAC3D,2CAAqC;AACrC,2DAAqD;AACrD,2CAAqC;AACrC,6CAAuC;AACvC,iEAA2D;AAC3D,uCAAiC;AACjC,iDAA2C;AAE3C,MAAa,QAAS,SAAQ,mBAAS;IAErC,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,KAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,kCAAc,CAAC,IAAI,CAAC,QAAQ,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I,CAAC,UAAU,GAAK,IAAI,wBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;CACF;AAjED,4BAiEC"}
package/src/lib/config.ts CHANGED
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "v1.0.0",
60
- sdkVersion: "4.19.6",
60
+ sdkVersion: "4.19.7",
61
61
  genVersion: "2.484.0",
62
- userAgent: "speakeasy-sdk/typescript 4.19.6 2.484.0 v1.0.0 @leonardo-ai/sdk",
62
+ userAgent: "speakeasy-sdk/typescript 4.19.7 2.484.0 v1.0.0 @leonardo-ai/sdk",
63
63
  } as const;
@@ -32,7 +32,6 @@ export * from "./getuserself.js";
32
32
  export * from "./getvariationbyid.js";
33
33
  export * from "./listelements.js";
34
34
  export * from "./listplatformmodels.js";
35
- export * from "./listplatformstyles.js";
36
35
  export * from "./performalchemyupscalelcm.js";
37
36
  export * from "./performinpaintinglcm.js";
38
37
  export * from "./performinstantrefine.js";
package/src/sdk/sdk.ts CHANGED
@@ -12,7 +12,6 @@ import { Motion } from "./motion.js";
12
12
  import { PricingCalculator } from "./pricingcalculator.js";
13
13
  import { Prompt } from "./prompt.js";
14
14
  import { RealtimeCanvas } from "./realtimecanvas.js";
15
- import { Styles } from "./styles.js";
16
15
  import { Texture } from "./texture.js";
17
16
  import { ThreeDModelAssets } from "./threedmodelassets.js";
18
17
  import { User } from "./user.js";
@@ -69,11 +68,6 @@ export class Leonardo extends ClientSDK {
69
68
  return (this._threeDModelAssets ??= new ThreeDModelAssets(this._options));
70
69
  }
71
70
 
72
- private _styles?: Styles;
73
- get styles(): Styles {
74
- return (this._styles ??= new Styles(this._options));
75
- }
76
-
77
71
  private _pricingCalculator?: PricingCalculator;
78
72
  get pricingCalculator(): PricingCalculator {
79
73
  return (this._pricingCalculator ??= new PricingCalculator(this._options));
@@ -1,79 +0,0 @@
1
- # Styles
2
- (*styles*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [listPlatformStyles](#listplatformstyles) - List Platform Styles
9
-
10
- ## listPlatformStyles
11
-
12
- Get a list of public Platform Styles available for use with generations.
13
-
14
- ### Example Usage
15
-
16
- ```typescript
17
- import { Leonardo } from "@leonardo-ai/sdk";
18
-
19
- const leonardo = new Leonardo({
20
- bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
21
- });
22
-
23
- async function run() {
24
- const result = await leonardo.styles.listPlatformStyles();
25
-
26
- // Handle the result
27
- console.log(result);
28
- }
29
-
30
- run();
31
- ```
32
-
33
- ### Standalone function
34
-
35
- The standalone function version of this method:
36
-
37
- ```typescript
38
- import { LeonardoCore } from "@leonardo-ai/sdk/core.js";
39
- import { stylesListPlatformStyles } from "@leonardo-ai/sdk/funcs/stylesListPlatformStyles.js";
40
-
41
- // Use `LeonardoCore` for best tree-shaking performance.
42
- // You can create one instance of it to use across an application.
43
- const leonardo = new LeonardoCore({
44
- bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
45
- });
46
-
47
- async function run() {
48
- const res = await stylesListPlatformStyles(leonardo);
49
-
50
- if (!res.ok) {
51
- throw res.error;
52
- }
53
-
54
- const { value: result } = res;
55
-
56
- // Handle the result
57
- console.log(result);
58
- }
59
-
60
- run();
61
- ```
62
-
63
- ### Parameters
64
-
65
- | Parameter | Type | Required | Description |
66
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
67
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
68
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
69
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
70
-
71
- ### Response
72
-
73
- **Promise\<[operations.ListPlatformStylesResponse](../../sdk/models/operations/listplatformstylesresponse.md)\>**
74
-
75
- ### Errors
76
-
77
- | Error Type | Status Code | Content Type |
78
- | --------------- | --------------- | --------------- |
79
- | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,15 +0,0 @@
1
- import { LeonardoCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
4
- import { SDKError } from "../sdk/models/errors/sdkerror.js";
5
- import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
6
- import * as operations from "../sdk/models/operations/index.js";
7
- import { Result } from "../sdk/types/fp.js";
8
- /**
9
- * List Platform Styles
10
- *
11
- * @remarks
12
- * Get a list of public Platform Styles available for use with generations.
13
- */
14
- export declare function stylesListPlatformStyles(client: LeonardoCore, options?: RequestOptions): Promise<Result<operations.ListPlatformStylesResponse, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
15
- //# sourceMappingURL=stylesListPlatformStyles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stylesListPlatformStyles.d.ts","sourceRoot":"","sources":["../src/funcs/stylesListPlatformStyles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA2EA"}
@@ -1,96 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.stylesListPlatformStyles = void 0;
30
- const M = __importStar(require("../lib/matchers.js"));
31
- const security_js_1 = require("../lib/security.js");
32
- const url_js_1 = require("../lib/url.js");
33
- const operations = __importStar(require("../sdk/models/operations/index.js"));
34
- /**
35
- * List Platform Styles
36
- *
37
- * @remarks
38
- * Get a list of public Platform Styles available for use with generations.
39
- */
40
- async function stylesListPlatformStyles(client, options) {
41
- const path = (0, url_js_1.pathToFunc)("/platform-styles")();
42
- const headers = new Headers({
43
- Accept: "application/json",
44
- });
45
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
46
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
47
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
48
- const context = {
49
- operationID: "listPlatformStyles",
50
- oAuth2Scopes: [],
51
- resolvedSecurity: requestSecurity,
52
- securitySource: client._options.bearerAuth,
53
- retryConfig: options?.retries
54
- || client._options.retryConfig
55
- || { strategy: "none" },
56
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
57
- };
58
- const requestRes = client._createRequest(context, {
59
- security: requestSecurity,
60
- method: "GET",
61
- baseURL: options?.serverURL,
62
- path: path,
63
- headers: headers,
64
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
65
- }, options);
66
- if (!requestRes.ok) {
67
- return requestRes;
68
- }
69
- const req = requestRes.value;
70
- const doResult = await client._do(req, {
71
- context,
72
- errorCodes: [],
73
- retryConfig: context.retryConfig,
74
- retryCodes: context.retryCodes,
75
- });
76
- if (!doResult.ok) {
77
- return doResult;
78
- }
79
- const response = doResult.value;
80
- const responseFields = {
81
- ContentType: response.headers.get("content-type")
82
- ?? "application/octet-stream",
83
- StatusCode: response.status,
84
- RawResponse: response,
85
- Headers: {},
86
- };
87
- const [result] = await M.match(M.json(200, operations.ListPlatformStylesResponse$inboundSchema, {
88
- key: "object",
89
- }))(response, { extraFields: responseFields });
90
- if (!result.ok) {
91
- return result;
92
- }
93
- return result;
94
- }
95
- exports.stylesListPlatformStyles = stylesListPlatformStyles;
96
- //# sourceMappingURL=stylesListPlatformStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stylesList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SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * columns and relationships of "style"
6
- */
7
- export type Style = {
8
- akUUID?: string | null | undefined;
9
- description?: string | null | undefined;
10
- name?: string | undefined;
11
- };
12
- /**
13
- * Responses for GET /api/rest/v1/platform-styles
14
- */
15
- export type ListPlatformStylesResponseBody = {
16
- style?: Array<Style> | undefined;
17
- };
18
- export type ListPlatformStylesResponse = {
19
- /**
20
- * HTTP response content type for this operation
21
- */
22
- contentType: string;
23
- /**
24
- * HTTP response status code for this operation
25
- */
26
- statusCode: number;
27
- /**
28
- * Raw HTTP response; suitable for custom response parsing
29
- */
30
- rawResponse: Response;
31
- /**
32
- * Responses for GET /api/rest/v1/platform-styles
33
- */
34
- object?: ListPlatformStylesResponseBody | undefined;
35
- };
36
- /** @internal */
37
- export declare const Style$inboundSchema: z.ZodType<Style, z.ZodTypeDef, unknown>;
38
- /** @internal */
39
- export type Style$Outbound = {
40
- akUUID?: string | null | undefined;
41
- description?: string | null | undefined;
42
- name?: string | undefined;
43
- };
44
- /** @internal */
45
- export declare const Style$outboundSchema: z.ZodType<Style$Outbound, z.ZodTypeDef, Style>;
46
- /**
47
- * @internal
48
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
- */
50
- export declare namespace Style$ {
51
- /** @deprecated use `Style$inboundSchema` instead. */
52
- const inboundSchema: z.ZodType<Style, z.ZodTypeDef, unknown>;
53
- /** @deprecated use `Style$outboundSchema` instead. */
54
- const outboundSchema: z.ZodType<Style$Outbound, z.ZodTypeDef, Style>;
55
- /** @deprecated use `Style$Outbound` instead. */
56
- type Outbound = Style$Outbound;
57
- }
58
- export declare function styleToJSON(style: Style): string;
59
- export declare function styleFromJSON(jsonString: string): SafeParseResult<Style, SDKValidationError>;
60
- /** @internal */
61
- export declare const ListPlatformStylesResponseBody$inboundSchema: z.ZodType<ListPlatformStylesResponseBody, z.ZodTypeDef, unknown>;
62
- /** @internal */
63
- export type ListPlatformStylesResponseBody$Outbound = {
64
- style?: Array<Style$Outbound> | undefined;
65
- };
66
- /** @internal */
67
- export declare const ListPlatformStylesResponseBody$outboundSchema: z.ZodType<ListPlatformStylesResponseBody$Outbound, z.ZodTypeDef, ListPlatformStylesResponseBody>;
68
- /**
69
- * @internal
70
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
- */
72
- export declare namespace ListPlatformStylesResponseBody$ {
73
- /** @deprecated use `ListPlatformStylesResponseBody$inboundSchema` instead. */
74
- const inboundSchema: z.ZodType<ListPlatformStylesResponseBody, z.ZodTypeDef, unknown>;
75
- /** @deprecated use `ListPlatformStylesResponseBody$outboundSchema` instead. */
76
- const outboundSchema: z.ZodType<ListPlatformStylesResponseBody$Outbound, z.ZodTypeDef, ListPlatformStylesResponseBody>;
77
- /** @deprecated use `ListPlatformStylesResponseBody$Outbound` instead. */
78
- type Outbound = ListPlatformStylesResponseBody$Outbound;
79
- }
80
- export declare function listPlatformStylesResponseBodyToJSON(listPlatformStylesResponseBody: ListPlatformStylesResponseBody): string;
81
- export declare function listPlatformStylesResponseBodyFromJSON(jsonString: string): SafeParseResult<ListPlatformStylesResponseBody, SDKValidationError>;
82
- /** @internal */
83
- export declare const ListPlatformStylesResponse$inboundSchema: z.ZodType<ListPlatformStylesResponse, z.ZodTypeDef, unknown>;
84
- /** @internal */
85
- export type ListPlatformStylesResponse$Outbound = {
86
- ContentType: string;
87
- StatusCode: number;
88
- RawResponse: never;
89
- object?: ListPlatformStylesResponseBody$Outbound | undefined;
90
- };
91
- /** @internal */
92
- export declare const ListPlatformStylesResponse$outboundSchema: z.ZodType<ListPlatformStylesResponse$Outbound, z.ZodTypeDef, ListPlatformStylesResponse>;
93
- /**
94
- * @internal
95
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
96
- */
97
- export declare namespace ListPlatformStylesResponse$ {
98
- /** @deprecated use `ListPlatformStylesResponse$inboundSchema` instead. */
99
- const inboundSchema: z.ZodType<ListPlatformStylesResponse, z.ZodTypeDef, unknown>;
100
- /** @deprecated use `ListPlatformStylesResponse$outboundSchema` instead. */
101
- const outboundSchema: z.ZodType<ListPlatformStylesResponse$Outbound, z.ZodTypeDef, ListPlatformStylesResponse>;
102
- /** @deprecated use `ListPlatformStylesResponse$Outbound` instead. */
103
- type Outbound = ListPlatformStylesResponse$Outbound;
104
- }
105
- export declare function listPlatformStylesResponseToJSON(listPlatformStylesResponse: ListPlatformStylesResponse): string;
106
- export declare function listPlatformStylesResponseFromJSON(jsonString: string): SafeParseResult<ListPlatformStylesResponse, SDKValidationError>;
107
- //# sourceMappingURL=listplatformstyles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listplatformstyles.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/operations/listplatformstyles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAA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1,140 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.listPlatformStylesResponseFromJSON = exports.listPlatformStylesResponseToJSON = exports.ListPlatformStylesResponse$ = exports.ListPlatformStylesResponse$outboundSchema = exports.ListPlatformStylesResponse$inboundSchema = exports.listPlatformStylesResponseBodyFromJSON = exports.listPlatformStylesResponseBodyToJSON = exports.ListPlatformStylesResponseBody$ = exports.ListPlatformStylesResponseBody$outboundSchema = exports.ListPlatformStylesResponseBody$inboundSchema = exports.styleFromJSON = exports.styleToJSON = exports.Style$ = exports.Style$outboundSchema = exports.Style$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const primitives_js_1 = require("../../../lib/primitives.js");
32
- const schemas_js_1 = require("../../../lib/schemas.js");
33
- /** @internal */
34
- exports.Style$inboundSchema = z
35
- .object({
36
- akUUID: z.nullable(z.string()).optional(),
37
- description: z.nullable(z.string()).optional(),
38
- name: z.string().optional(),
39
- });
40
- /** @internal */
41
- exports.Style$outboundSchema = z.object({
42
- akUUID: z.nullable(z.string()).optional(),
43
- description: z.nullable(z.string()).optional(),
44
- name: z.string().optional(),
45
- });
46
- /**
47
- * @internal
48
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
- */
50
- var Style$;
51
- (function (Style$) {
52
- /** @deprecated use `Style$inboundSchema` instead. */
53
- Style$.inboundSchema = exports.Style$inboundSchema;
54
- /** @deprecated use `Style$outboundSchema` instead. */
55
- Style$.outboundSchema = exports.Style$outboundSchema;
56
- })(Style$ || (exports.Style$ = Style$ = {}));
57
- function styleToJSON(style) {
58
- return JSON.stringify(exports.Style$outboundSchema.parse(style));
59
- }
60
- exports.styleToJSON = styleToJSON;
61
- function styleFromJSON(jsonString) {
62
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Style$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Style' from JSON`);
63
- }
64
- exports.styleFromJSON = styleFromJSON;
65
- /** @internal */
66
- exports.ListPlatformStylesResponseBody$inboundSchema = z.object({
67
- style: z.array(z.lazy(() => exports.Style$inboundSchema)).optional(),
68
- });
69
- /** @internal */
70
- exports.ListPlatformStylesResponseBody$outboundSchema = z.object({
71
- style: z.array(z.lazy(() => exports.Style$outboundSchema)).optional(),
72
- });
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- var ListPlatformStylesResponseBody$;
78
- (function (ListPlatformStylesResponseBody$) {
79
- /** @deprecated use `ListPlatformStylesResponseBody$inboundSchema` instead. */
80
- ListPlatformStylesResponseBody$.inboundSchema = exports.ListPlatformStylesResponseBody$inboundSchema;
81
- /** @deprecated use `ListPlatformStylesResponseBody$outboundSchema` instead. */
82
- ListPlatformStylesResponseBody$.outboundSchema = exports.ListPlatformStylesResponseBody$outboundSchema;
83
- })(ListPlatformStylesResponseBody$ || (exports.ListPlatformStylesResponseBody$ = ListPlatformStylesResponseBody$ = {}));
84
- function listPlatformStylesResponseBodyToJSON(listPlatformStylesResponseBody) {
85
- return JSON.stringify(exports.ListPlatformStylesResponseBody$outboundSchema.parse(listPlatformStylesResponseBody));
86
- }
87
- exports.listPlatformStylesResponseBodyToJSON = listPlatformStylesResponseBodyToJSON;
88
- function listPlatformStylesResponseBodyFromJSON(jsonString) {
89
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPlatformStylesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPlatformStylesResponseBody' from JSON`);
90
- }
91
- exports.listPlatformStylesResponseBodyFromJSON = listPlatformStylesResponseBodyFromJSON;
92
- /** @internal */
93
- exports.ListPlatformStylesResponse$inboundSchema = z.object({
94
- ContentType: z.string(),
95
- StatusCode: z.number().int(),
96
- RawResponse: z.instanceof(Response),
97
- object: z.lazy(() => exports.ListPlatformStylesResponseBody$inboundSchema).optional(),
98
- }).transform((v) => {
99
- return (0, primitives_js_1.remap)(v, {
100
- "ContentType": "contentType",
101
- "StatusCode": "statusCode",
102
- "RawResponse": "rawResponse",
103
- });
104
- });
105
- /** @internal */
106
- exports.ListPlatformStylesResponse$outboundSchema = z.object({
107
- contentType: z.string(),
108
- statusCode: z.number().int(),
109
- rawResponse: z.instanceof(Response).transform(() => {
110
- throw new Error("Response cannot be serialized");
111
- }),
112
- object: z.lazy(() => exports.ListPlatformStylesResponseBody$outboundSchema)
113
- .optional(),
114
- }).transform((v) => {
115
- return (0, primitives_js_1.remap)(v, {
116
- contentType: "ContentType",
117
- statusCode: "StatusCode",
118
- rawResponse: "RawResponse",
119
- });
120
- });
121
- /**
122
- * @internal
123
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
- */
125
- var ListPlatformStylesResponse$;
126
- (function (ListPlatformStylesResponse$) {
127
- /** @deprecated use `ListPlatformStylesResponse$inboundSchema` instead. */
128
- ListPlatformStylesResponse$.inboundSchema = exports.ListPlatformStylesResponse$inboundSchema;
129
- /** @deprecated use `ListPlatformStylesResponse$outboundSchema` instead. */
130
- ListPlatformStylesResponse$.outboundSchema = exports.ListPlatformStylesResponse$outboundSchema;
131
- })(ListPlatformStylesResponse$ || (exports.ListPlatformStylesResponse$ = ListPlatformStylesResponse$ = {}));
132
- function listPlatformStylesResponseToJSON(listPlatformStylesResponse) {
133
- return JSON.stringify(exports.ListPlatformStylesResponse$outboundSchema.parse(listPlatformStylesResponse));
134
- }
135
- exports.listPlatformStylesResponseToJSON = listPlatformStylesResponseToJSON;
136
- function listPlatformStylesResponseFromJSON(jsonString) {
137
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPlatformStylesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPlatformStylesResponse' from JSON`);
138
- }
139
- exports.listPlatformStylesResponseFromJSON = listPlatformStylesResponseFromJSON;
140
- //# sourceMappingURL=listplatformstyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listplatformstyles.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/listplatformstyles.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAuCpD,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,oBAAoB,GAI7B,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAA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AE;IAC5B,WAAW,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;QACjD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qDAA6C,CAAC;SAChE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,YAAY;QACxB,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAND,4EAMC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
package/sdk/styles.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as operations from "./models/operations/index.js";
3
- export declare class Styles extends ClientSDK {
4
- /**
5
- * List Platform Styles
6
- *
7
- * @remarks
8
- * Get a list of public Platform Styles available for use with generations.
9
- */
10
- listPlatformStyles(options?: RequestOptions): Promise<operations.ListPlatformStylesResponse>;
11
- }
12
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/sdk/styles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAMlD"}
package/sdk/styles.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Styles = void 0;
7
- const stylesListPlatformStyles_js_1 = require("../funcs/stylesListPlatformStyles.js");
8
- const sdks_js_1 = require("../lib/sdks.js");
9
- const fp_js_1 = require("./types/fp.js");
10
- class Styles extends sdks_js_1.ClientSDK {
11
- /**
12
- * List Platform Styles
13
- *
14
- * @remarks
15
- * Get a list of public Platform Styles available for use with generations.
16
- */
17
- async listPlatformStyles(options) {
18
- return (0, fp_js_1.unwrapAsync)((0, stylesListPlatformStyles_js_1.stylesListPlatformStyles)(this, options));
19
- }
20
- }
21
- exports.Styles = Styles;
22
- //# sourceMappingURL=styles.js.map
package/sdk/styles.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/sdk/styles.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sFAAgF;AAChF,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,MAAO,SAAQ,mBAAS;IACnC;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAfD,wBAeC"}
@@ -1,117 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { LeonardoCore } from "../core.js";
6
- import * as M from "../lib/matchers.js";
7
- import { RequestOptions } from "../lib/sdks.js";
8
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
- import { pathToFunc } from "../lib/url.js";
10
- import {
11
- ConnectionError,
12
- InvalidRequestError,
13
- RequestAbortedError,
14
- RequestTimeoutError,
15
- UnexpectedClientError,
16
- } from "../sdk/models/errors/httpclienterrors.js";
17
- import { SDKError } from "../sdk/models/errors/sdkerror.js";
18
- import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
19
- import * as operations from "../sdk/models/operations/index.js";
20
- import { Result } from "../sdk/types/fp.js";
21
-
22
- /**
23
- * List Platform Styles
24
- *
25
- * @remarks
26
- * Get a list of public Platform Styles available for use with generations.
27
- */
28
- export async function stylesListPlatformStyles(
29
- client: LeonardoCore,
30
- options?: RequestOptions,
31
- ): Promise<
32
- Result<
33
- operations.ListPlatformStylesResponse,
34
- | SDKError
35
- | SDKValidationError
36
- | UnexpectedClientError
37
- | InvalidRequestError
38
- | RequestAbortedError
39
- | RequestTimeoutError
40
- | ConnectionError
41
- >
42
- > {
43
- const path = pathToFunc("/platform-styles")();
44
-
45
- const headers = new Headers({
46
- Accept: "application/json",
47
- });
48
-
49
- const secConfig = await extractSecurity(client._options.bearerAuth);
50
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
51
- const requestSecurity = resolveGlobalSecurity(securityInput);
52
-
53
- const context = {
54
- operationID: "listPlatformStyles",
55
- oAuth2Scopes: [],
56
-
57
- resolvedSecurity: requestSecurity,
58
-
59
- securitySource: client._options.bearerAuth,
60
- retryConfig: options?.retries
61
- || client._options.retryConfig
62
- || { strategy: "none" },
63
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
64
- };
65
-
66
- const requestRes = client._createRequest(context, {
67
- security: requestSecurity,
68
- method: "GET",
69
- baseURL: options?.serverURL,
70
- path: path,
71
- headers: headers,
72
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
73
- }, options);
74
- if (!requestRes.ok) {
75
- return requestRes;
76
- }
77
- const req = requestRes.value;
78
-
79
- const doResult = await client._do(req, {
80
- context,
81
- errorCodes: [],
82
- retryConfig: context.retryConfig,
83
- retryCodes: context.retryCodes,
84
- });
85
- if (!doResult.ok) {
86
- return doResult;
87
- }
88
- const response = doResult.value;
89
-
90
- const responseFields = {
91
- ContentType: response.headers.get("content-type")
92
- ?? "application/octet-stream",
93
- StatusCode: response.status,
94
- RawResponse: response,
95
- Headers: {},
96
- };
97
-
98
- const [result] = await M.match<
99
- operations.ListPlatformStylesResponse,
100
- | SDKError
101
- | SDKValidationError
102
- | UnexpectedClientError
103
- | InvalidRequestError
104
- | RequestAbortedError
105
- | RequestTimeoutError
106
- | ConnectionError
107
- >(
108
- M.json(200, operations.ListPlatformStylesResponse$inboundSchema, {
109
- key: "object",
110
- }),
111
- )(response, { extraFields: responseFields });
112
- if (!result.ok) {
113
- return result;
114
- }
115
-
116
- return result;
117
- }
@@ -1,231 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../../lib/primitives.js";
7
- import { safeParse } from "../../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- /**
12
- * columns and relationships of "style"
13
- */
14
- export type Style = {
15
- akUUID?: string | null | undefined;
16
- description?: string | null | undefined;
17
- name?: string | undefined;
18
- };
19
-
20
- /**
21
- * Responses for GET /api/rest/v1/platform-styles
22
- */
23
- export type ListPlatformStylesResponseBody = {
24
- style?: Array<Style> | undefined;
25
- };
26
-
27
- export type ListPlatformStylesResponse = {
28
- /**
29
- * HTTP response content type for this operation
30
- */
31
- contentType: string;
32
- /**
33
- * HTTP response status code for this operation
34
- */
35
- statusCode: number;
36
- /**
37
- * Raw HTTP response; suitable for custom response parsing
38
- */
39
- rawResponse: Response;
40
- /**
41
- * Responses for GET /api/rest/v1/platform-styles
42
- */
43
- object?: ListPlatformStylesResponseBody | undefined;
44
- };
45
-
46
- /** @internal */
47
- export const Style$inboundSchema: z.ZodType<Style, z.ZodTypeDef, unknown> = z
48
- .object({
49
- akUUID: z.nullable(z.string()).optional(),
50
- description: z.nullable(z.string()).optional(),
51
- name: z.string().optional(),
52
- });
53
-
54
- /** @internal */
55
- export type Style$Outbound = {
56
- akUUID?: string | null | undefined;
57
- description?: string | null | undefined;
58
- name?: string | undefined;
59
- };
60
-
61
- /** @internal */
62
- export const Style$outboundSchema: z.ZodType<
63
- Style$Outbound,
64
- z.ZodTypeDef,
65
- Style
66
- > = z.object({
67
- akUUID: z.nullable(z.string()).optional(),
68
- description: z.nullable(z.string()).optional(),
69
- name: z.string().optional(),
70
- });
71
-
72
- /**
73
- * @internal
74
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
- */
76
- export namespace Style$ {
77
- /** @deprecated use `Style$inboundSchema` instead. */
78
- export const inboundSchema = Style$inboundSchema;
79
- /** @deprecated use `Style$outboundSchema` instead. */
80
- export const outboundSchema = Style$outboundSchema;
81
- /** @deprecated use `Style$Outbound` instead. */
82
- export type Outbound = Style$Outbound;
83
- }
84
-
85
- export function styleToJSON(style: Style): string {
86
- return JSON.stringify(Style$outboundSchema.parse(style));
87
- }
88
-
89
- export function styleFromJSON(
90
- jsonString: string,
91
- ): SafeParseResult<Style, SDKValidationError> {
92
- return safeParse(
93
- jsonString,
94
- (x) => Style$inboundSchema.parse(JSON.parse(x)),
95
- `Failed to parse 'Style' from JSON`,
96
- );
97
- }
98
-
99
- /** @internal */
100
- export const ListPlatformStylesResponseBody$inboundSchema: z.ZodType<
101
- ListPlatformStylesResponseBody,
102
- z.ZodTypeDef,
103
- unknown
104
- > = z.object({
105
- style: z.array(z.lazy(() => Style$inboundSchema)).optional(),
106
- });
107
-
108
- /** @internal */
109
- export type ListPlatformStylesResponseBody$Outbound = {
110
- style?: Array<Style$Outbound> | undefined;
111
- };
112
-
113
- /** @internal */
114
- export const ListPlatformStylesResponseBody$outboundSchema: z.ZodType<
115
- ListPlatformStylesResponseBody$Outbound,
116
- z.ZodTypeDef,
117
- ListPlatformStylesResponseBody
118
- > = z.object({
119
- style: z.array(z.lazy(() => Style$outboundSchema)).optional(),
120
- });
121
-
122
- /**
123
- * @internal
124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
- */
126
- export namespace ListPlatformStylesResponseBody$ {
127
- /** @deprecated use `ListPlatformStylesResponseBody$inboundSchema` instead. */
128
- export const inboundSchema = ListPlatformStylesResponseBody$inboundSchema;
129
- /** @deprecated use `ListPlatformStylesResponseBody$outboundSchema` instead. */
130
- export const outboundSchema = ListPlatformStylesResponseBody$outboundSchema;
131
- /** @deprecated use `ListPlatformStylesResponseBody$Outbound` instead. */
132
- export type Outbound = ListPlatformStylesResponseBody$Outbound;
133
- }
134
-
135
- export function listPlatformStylesResponseBodyToJSON(
136
- listPlatformStylesResponseBody: ListPlatformStylesResponseBody,
137
- ): string {
138
- return JSON.stringify(
139
- ListPlatformStylesResponseBody$outboundSchema.parse(
140
- listPlatformStylesResponseBody,
141
- ),
142
- );
143
- }
144
-
145
- export function listPlatformStylesResponseBodyFromJSON(
146
- jsonString: string,
147
- ): SafeParseResult<ListPlatformStylesResponseBody, SDKValidationError> {
148
- return safeParse(
149
- jsonString,
150
- (x) => ListPlatformStylesResponseBody$inboundSchema.parse(JSON.parse(x)),
151
- `Failed to parse 'ListPlatformStylesResponseBody' from JSON`,
152
- );
153
- }
154
-
155
- /** @internal */
156
- export const ListPlatformStylesResponse$inboundSchema: z.ZodType<
157
- ListPlatformStylesResponse,
158
- z.ZodTypeDef,
159
- unknown
160
- > = z.object({
161
- ContentType: z.string(),
162
- StatusCode: z.number().int(),
163
- RawResponse: z.instanceof(Response),
164
- object: z.lazy(() => ListPlatformStylesResponseBody$inboundSchema).optional(),
165
- }).transform((v) => {
166
- return remap$(v, {
167
- "ContentType": "contentType",
168
- "StatusCode": "statusCode",
169
- "RawResponse": "rawResponse",
170
- });
171
- });
172
-
173
- /** @internal */
174
- export type ListPlatformStylesResponse$Outbound = {
175
- ContentType: string;
176
- StatusCode: number;
177
- RawResponse: never;
178
- object?: ListPlatformStylesResponseBody$Outbound | undefined;
179
- };
180
-
181
- /** @internal */
182
- export const ListPlatformStylesResponse$outboundSchema: z.ZodType<
183
- ListPlatformStylesResponse$Outbound,
184
- z.ZodTypeDef,
185
- ListPlatformStylesResponse
186
- > = z.object({
187
- contentType: z.string(),
188
- statusCode: z.number().int(),
189
- rawResponse: z.instanceof(Response).transform(() => {
190
- throw new Error("Response cannot be serialized");
191
- }),
192
- object: z.lazy(() => ListPlatformStylesResponseBody$outboundSchema)
193
- .optional(),
194
- }).transform((v) => {
195
- return remap$(v, {
196
- contentType: "ContentType",
197
- statusCode: "StatusCode",
198
- rawResponse: "RawResponse",
199
- });
200
- });
201
-
202
- /**
203
- * @internal
204
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
205
- */
206
- export namespace ListPlatformStylesResponse$ {
207
- /** @deprecated use `ListPlatformStylesResponse$inboundSchema` instead. */
208
- export const inboundSchema = ListPlatformStylesResponse$inboundSchema;
209
- /** @deprecated use `ListPlatformStylesResponse$outboundSchema` instead. */
210
- export const outboundSchema = ListPlatformStylesResponse$outboundSchema;
211
- /** @deprecated use `ListPlatformStylesResponse$Outbound` instead. */
212
- export type Outbound = ListPlatformStylesResponse$Outbound;
213
- }
214
-
215
- export function listPlatformStylesResponseToJSON(
216
- listPlatformStylesResponse: ListPlatformStylesResponse,
217
- ): string {
218
- return JSON.stringify(
219
- ListPlatformStylesResponse$outboundSchema.parse(listPlatformStylesResponse),
220
- );
221
- }
222
-
223
- export function listPlatformStylesResponseFromJSON(
224
- jsonString: string,
225
- ): SafeParseResult<ListPlatformStylesResponse, SDKValidationError> {
226
- return safeParse(
227
- jsonString,
228
- (x) => ListPlatformStylesResponse$inboundSchema.parse(JSON.parse(x)),
229
- `Failed to parse 'ListPlatformStylesResponse' from JSON`,
230
- );
231
- }
package/src/sdk/styles.ts DELETED
@@ -1,25 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { stylesListPlatformStyles } from "../funcs/stylesListPlatformStyles.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "./models/operations/index.js";
8
- import { unwrapAsync } from "./types/fp.js";
9
-
10
- export class Styles extends ClientSDK {
11
- /**
12
- * List Platform Styles
13
- *
14
- * @remarks
15
- * Get a list of public Platform Styles available for use with generations.
16
- */
17
- async listPlatformStyles(
18
- options?: RequestOptions,
19
- ): Promise<operations.ListPlatformStylesResponse> {
20
- return unwrapAsync(stylesListPlatformStyles(
21
- this,
22
- options,
23
- ));
24
- }
25
- }