@widgetic/api-sdk-ts 1.11.109 → 1.11.111

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.
Files changed (64) hide show
  1. package/dist/apis/BrandKitApi.d.ts +130 -0
  2. package/dist/apis/BrandKitApi.js +381 -0
  3. package/dist/apis/PartnerApi.d.ts +113 -1
  4. package/dist/apis/PartnerApi.js +325 -1
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/BrandKitApi.js +344 -0
  8. package/dist/esm/apis/PartnerApi.js +325 -1
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/BrandColor.js +64 -0
  11. package/dist/esm/models/BrandFont.js +72 -0
  12. package/dist/esm/models/BrandKitAssetView.js +96 -0
  13. package/dist/esm/models/BrandKitFigmaSource.js +59 -0
  14. package/dist/esm/models/BrandKitTokens.js +56 -0
  15. package/dist/esm/models/BrandKitTokensFonts.js +48 -0
  16. package/dist/esm/models/BrandKitView.js +75 -0
  17. package/dist/esm/models/BrandKitViewOwner.js +54 -0
  18. package/dist/esm/models/BrandKitViewResponse.js +51 -0
  19. package/dist/esm/models/BrandSpacing.js +71 -0
  20. package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
  21. package/dist/esm/models/PatchBrandKitRequest.js +54 -0
  22. package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
  23. package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
  24. package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
  25. package/dist/esm/models/PutBrandKitRequest.js +49 -0
  26. package/dist/esm/models/index.js +16 -0
  27. package/dist/esm/runtime.js +1 -1
  28. package/dist/models/BrandColor.d.ts +60 -0
  29. package/dist/models/BrandColor.js +72 -0
  30. package/dist/models/BrandFont.d.ts +73 -0
  31. package/dist/models/BrandFont.js +80 -0
  32. package/dist/models/BrandKitAssetView.d.ts +130 -0
  33. package/dist/models/BrandKitAssetView.js +104 -0
  34. package/dist/models/BrandKitFigmaSource.d.ts +56 -0
  35. package/dist/models/BrandKitFigmaSource.js +66 -0
  36. package/dist/models/BrandKitTokens.d.ts +53 -0
  37. package/dist/models/BrandKitTokens.js +63 -0
  38. package/dist/models/BrandKitTokensFonts.d.ts +51 -0
  39. package/dist/models/BrandKitTokensFonts.js +55 -0
  40. package/dist/models/BrandKitView.d.ts +90 -0
  41. package/dist/models/BrandKitView.js +82 -0
  42. package/dist/models/BrandKitViewOwner.d.ts +46 -0
  43. package/dist/models/BrandKitViewOwner.js +62 -0
  44. package/dist/models/BrandKitViewResponse.d.ts +46 -0
  45. package/dist/models/BrandKitViewResponse.js +58 -0
  46. package/dist/models/BrandSpacing.d.ts +74 -0
  47. package/dist/models/BrandSpacing.js +78 -0
  48. package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
  49. package/dist/models/PatchBrandKitAssetRequest.js +76 -0
  50. package/dist/models/PatchBrandKitRequest.d.ts +65 -0
  51. package/dist/models/PatchBrandKitRequest.js +61 -0
  52. package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
  53. package/dist/models/PatchBrandKitRequestFonts.js +55 -0
  54. package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
  55. package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
  56. package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
  57. package/dist/models/PostBrandKitIconRequest.js +54 -0
  58. package/dist/models/PutBrandKitRequest.d.ts +46 -0
  59. package/dist/models/PutBrandKitRequest.js +56 -0
  60. package/dist/models/index.d.ts +16 -0
  61. package/dist/models/index.js +16 -0
  62. package/dist/runtime.d.ts +2 -2
  63. package/dist/runtime.js +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostBrandKitIconRequest interface.
16
+ */
17
+ export function instanceOfPostBrandKitIconRequest(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('svg' in value) || value['svg'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostBrandKitIconRequestFromJSON(json) {
25
+ return PostBrandKitIconRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PostBrandKitIconRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'svg': json['svg'],
34
+ };
35
+ }
36
+ export function PostBrandKitIconRequestToJSON(json) {
37
+ return PostBrandKitIconRequestToJSONTyped(json, false);
38
+ }
39
+ export function PostBrandKitIconRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'svg': value['svg'],
46
+ };
47
+ }
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { BrandKitTokensFromJSON, BrandKitTokensToJSON, } from './BrandKitTokens.js';
15
+ import { BrandKitFigmaSourceFromJSON, BrandKitFigmaSourceToJSON, } from './BrandKitFigmaSource.js';
16
+ /**
17
+ * Check if a given object implements the PutBrandKitRequest interface.
18
+ */
19
+ export function instanceOfPutBrandKitRequest(value) {
20
+ if (!('tokens' in value) || value['tokens'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PutBrandKitRequestFromJSON(json) {
25
+ return PutBrandKitRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PutBrandKitRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'tokens': BrandKitTokensFromJSON(json['tokens']),
33
+ 'figmaSource': json['figmaSource'] == null ? undefined : BrandKitFigmaSourceFromJSON(json['figmaSource']),
34
+ 'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'],
35
+ };
36
+ }
37
+ export function PutBrandKitRequestToJSON(json) {
38
+ return PutBrandKitRequestToJSONTyped(json, false);
39
+ }
40
+ export function PutBrandKitRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'tokens': BrandKitTokensToJSON(value['tokens']),
46
+ 'figmaSource': BrandKitFigmaSourceToJSON(value['figmaSource']),
47
+ 'expectedVersion': value['expectedVersion'],
48
+ };
49
+ }
@@ -13,6 +13,16 @@ export * from './AiAnswersKnowledgeDocument.js';
13
13
  export * from './AiAnswersKnowledgeRemoval.js';
14
14
  export * from './AiAnswersKnowledgeTotals.js';
15
15
  export * from './ApiKeyScope.js';
16
+ export * from './BrandColor.js';
17
+ export * from './BrandFont.js';
18
+ export * from './BrandKitAssetView.js';
19
+ export * from './BrandKitFigmaSource.js';
20
+ export * from './BrandKitTokens.js';
21
+ export * from './BrandKitTokensFonts.js';
22
+ export * from './BrandKitView.js';
23
+ export * from './BrandKitViewOwner.js';
24
+ export * from './BrandKitViewResponse.js';
25
+ export * from './BrandSpacing.js';
16
26
  export * from './Canvas.js';
17
27
  export * from './CanvasResponse.js';
18
28
  export * from './CheckCompositionAccessResponse.js';
@@ -226,9 +236,14 @@ export * from './PartnerStorageUsage.js';
226
236
  export * from './PartnerStorageUsageOfManagedUser.js';
227
237
  export * from './PartnerStorageUsageResponse.js';
228
238
  export * from './PartnerStorageUsageTotals.js';
239
+ export * from './PatchBrandKitAssetRequest.js';
240
+ export * from './PatchBrandKitRequest.js';
241
+ export * from './PatchBrandKitRequestFonts.js';
242
+ export * from './PatchBrandKitRequestSpacing.js';
229
243
  export * from './PersonalWorkspaceDomain.js';
230
244
  export * from './PersonalWorkspaceDomainResult.js';
231
245
  export * from './PersonalWorkspaceDomainResultResponse.js';
246
+ export * from './PostBrandKitIconRequest.js';
232
247
  export * from './PostPublicCompositionEmbedStatus200Response.js';
233
248
  export * from './PostPublicCompositionEmbedStatus200ResponseData.js';
234
249
  export * from './PostPublicCompositionEmbedStatusRequest.js';
@@ -254,6 +269,7 @@ export * from './PublicWorkflowTranslation.js';
254
269
  export * from './PublishWorkspaceWorkflow200Response.js';
255
270
  export * from './PublishWorkspaceWorkflowRequest.js';
256
271
  export * from './PurposeStorageBucket.js';
272
+ export * from './PutBrandKitRequest.js';
257
273
  export * from './RemoveAiAnswersKnowledgeDocument200Response.js';
258
274
  export * from './RemovePartnerWorkflowPreset200Response.js';
259
275
  export * from './RemoveUserAdapterConnection200Response.js';
@@ -29,7 +29,7 @@ export const BASE_PATH = "https://api.widgetic.com/v1".replace(/\/+$/, "");
29
29
  // runs. The version is the one in this package's package.json: `scripts/deploy-sdk.sh` reads it and hands it to the
30
30
  // generator as `npmVersion`, so the number a call reports is the number on npm.
31
31
  export const SDK_NAME = "@widgetic/api-sdk-ts";
32
- export const SDK_VERSION = "1.11.109";
32
+ export const SDK_VERSION = "1.11.111";
33
33
  export const SDK_VERSION_HEADER = "X-SDK-Version";
34
34
  export const SDK_VERSION_HEADER_VALUE = `${SDK_NAME}/${SDK_VERSION}`;
35
35
  export class Configuration {
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface BrandColor
16
+ */
17
+ export interface BrandColor {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrandColor
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BrandColor
28
+ */
29
+ hex: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrandColor
34
+ */
35
+ role?: BrandColorRoleEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const BrandColorRoleEnum: {
41
+ readonly Primary: 'primary';
42
+ readonly Secondary: 'secondary';
43
+ readonly Accent: 'accent';
44
+ readonly Background: 'background';
45
+ readonly Surface: 'surface';
46
+ readonly Text: 'text';
47
+ readonly Title: 'title';
48
+ readonly Sub: 'sub';
49
+ readonly Border: 'border';
50
+ readonly Error: 'error';
51
+ };
52
+ export type BrandColorRoleEnum = typeof BrandColorRoleEnum[keyof typeof BrandColorRoleEnum];
53
+ /**
54
+ * Check if a given object implements the BrandColor interface.
55
+ */
56
+ export declare function instanceOfBrandColor(value: object): value is BrandColor;
57
+ export declare function BrandColorFromJSON(json: any): BrandColor;
58
+ export declare function BrandColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandColor;
59
+ export declare function BrandColorToJSON(json: any): BrandColor;
60
+ export declare function BrandColorToJSONTyped(value?: BrandColor | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BrandColorRoleEnum = void 0;
17
+ exports.instanceOfBrandColor = instanceOfBrandColor;
18
+ exports.BrandColorFromJSON = BrandColorFromJSON;
19
+ exports.BrandColorFromJSONTyped = BrandColorFromJSONTyped;
20
+ exports.BrandColorToJSON = BrandColorToJSON;
21
+ exports.BrandColorToJSONTyped = BrandColorToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BrandColorRoleEnum = {
26
+ Primary: 'primary',
27
+ Secondary: 'secondary',
28
+ Accent: 'accent',
29
+ Background: 'background',
30
+ Surface: 'surface',
31
+ Text: 'text',
32
+ Title: 'title',
33
+ Sub: 'sub',
34
+ Border: 'border',
35
+ Error: 'error'
36
+ };
37
+ /**
38
+ * Check if a given object implements the BrandColor interface.
39
+ */
40
+ function instanceOfBrandColor(value) {
41
+ if (!('name' in value) || value['name'] === undefined)
42
+ return false;
43
+ if (!('hex' in value) || value['hex'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function BrandColorFromJSON(json) {
48
+ return BrandColorFromJSONTyped(json, false);
49
+ }
50
+ function BrandColorFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'name': json['name'],
56
+ 'hex': json['hex'],
57
+ 'role': json['role'] == null ? undefined : json['role'],
58
+ };
59
+ }
60
+ function BrandColorToJSON(json) {
61
+ return BrandColorToJSONTyped(json, false);
62
+ }
63
+ function BrandColorToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'name': value['name'],
69
+ 'hex': value['hex'],
70
+ 'role': value['role'],
71
+ };
72
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface BrandFont
16
+ */
17
+ export interface BrandFont {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrandFont
22
+ */
23
+ family: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BrandFont
28
+ */
29
+ source: BrandFontSourceEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof BrandFont
34
+ */
35
+ weight?: BrandFontWeightEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof BrandFont
40
+ */
41
+ sizeMax?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const BrandFontSourceEnum: {
47
+ readonly Google: 'google';
48
+ readonly Upload: 'upload';
49
+ };
50
+ export type BrandFontSourceEnum = typeof BrandFontSourceEnum[keyof typeof BrandFontSourceEnum];
51
+ /**
52
+ * @export
53
+ */
54
+ export declare const BrandFontWeightEnum: {
55
+ readonly NUMBER_100: 100;
56
+ readonly NUMBER_200: 200;
57
+ readonly NUMBER_300: 300;
58
+ readonly NUMBER_400: 400;
59
+ readonly NUMBER_500: 500;
60
+ readonly NUMBER_600: 600;
61
+ readonly NUMBER_700: 700;
62
+ readonly NUMBER_800: 800;
63
+ readonly NUMBER_900: 900;
64
+ };
65
+ export type BrandFontWeightEnum = typeof BrandFontWeightEnum[keyof typeof BrandFontWeightEnum];
66
+ /**
67
+ * Check if a given object implements the BrandFont interface.
68
+ */
69
+ export declare function instanceOfBrandFont(value: object): value is BrandFont;
70
+ export declare function BrandFontFromJSON(json: any): BrandFont;
71
+ export declare function BrandFontFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandFont;
72
+ export declare function BrandFontToJSON(json: any): BrandFont;
73
+ export declare function BrandFontToJSONTyped(value?: BrandFont | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BrandFontWeightEnum = exports.BrandFontSourceEnum = void 0;
17
+ exports.instanceOfBrandFont = instanceOfBrandFont;
18
+ exports.BrandFontFromJSON = BrandFontFromJSON;
19
+ exports.BrandFontFromJSONTyped = BrandFontFromJSONTyped;
20
+ exports.BrandFontToJSON = BrandFontToJSON;
21
+ exports.BrandFontToJSONTyped = BrandFontToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BrandFontSourceEnum = {
26
+ Google: 'google',
27
+ Upload: 'upload'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.BrandFontWeightEnum = {
33
+ NUMBER_100: 100,
34
+ NUMBER_200: 200,
35
+ NUMBER_300: 300,
36
+ NUMBER_400: 400,
37
+ NUMBER_500: 500,
38
+ NUMBER_600: 600,
39
+ NUMBER_700: 700,
40
+ NUMBER_800: 800,
41
+ NUMBER_900: 900
42
+ };
43
+ /**
44
+ * Check if a given object implements the BrandFont interface.
45
+ */
46
+ function instanceOfBrandFont(value) {
47
+ if (!('family' in value) || value['family'] === undefined)
48
+ return false;
49
+ if (!('source' in value) || value['source'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function BrandFontFromJSON(json) {
54
+ return BrandFontFromJSONTyped(json, false);
55
+ }
56
+ function BrandFontFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'family': json['family'],
62
+ 'source': json['source'],
63
+ 'weight': json['weight'] == null ? undefined : json['weight'],
64
+ 'sizeMax': json['sizeMax'] == null ? undefined : json['sizeMax'],
65
+ };
66
+ }
67
+ function BrandFontToJSON(json) {
68
+ return BrandFontToJSONTyped(json, false);
69
+ }
70
+ function BrandFontToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'family': value['family'],
76
+ 'source': value['source'],
77
+ 'weight': value['weight'],
78
+ 'sizeMax': value['sizeMax'],
79
+ };
80
+ }
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface BrandKitAssetView
16
+ */
17
+ export interface BrandKitAssetView {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrandKitAssetView
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BrandKitAssetView
28
+ */
29
+ kind: BrandKitAssetViewKindEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrandKitAssetView
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof BrandKitAssetView
40
+ */
41
+ createdAt: Date;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BrandKitAssetView
46
+ */
47
+ family?: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof BrandKitAssetView
52
+ */
53
+ weight?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof BrandKitAssetView
58
+ */
59
+ style?: BrandKitAssetViewStyleEnum;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof BrandKitAssetView
64
+ */
65
+ format?: BrandKitAssetViewFormatEnum;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof BrandKitAssetView
70
+ */
71
+ bytes?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof BrandKitAssetView
76
+ */
77
+ url?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof BrandKitAssetView
82
+ */
83
+ slug?: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof BrandKitAssetView
88
+ */
89
+ exportName?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof BrandKitAssetView
94
+ */
95
+ svg?: string;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const BrandKitAssetViewKindEnum: {
101
+ readonly Font: 'font';
102
+ readonly Icon: 'icon';
103
+ };
104
+ export type BrandKitAssetViewKindEnum = typeof BrandKitAssetViewKindEnum[keyof typeof BrandKitAssetViewKindEnum];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const BrandKitAssetViewStyleEnum: {
109
+ readonly Normal: 'normal';
110
+ readonly Italic: 'italic';
111
+ };
112
+ export type BrandKitAssetViewStyleEnum = typeof BrandKitAssetViewStyleEnum[keyof typeof BrandKitAssetViewStyleEnum];
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const BrandKitAssetViewFormatEnum: {
117
+ readonly Woff2: 'woff2';
118
+ readonly Woff: 'woff';
119
+ readonly Ttf: 'ttf';
120
+ readonly Otf: 'otf';
121
+ };
122
+ export type BrandKitAssetViewFormatEnum = typeof BrandKitAssetViewFormatEnum[keyof typeof BrandKitAssetViewFormatEnum];
123
+ /**
124
+ * Check if a given object implements the BrandKitAssetView interface.
125
+ */
126
+ export declare function instanceOfBrandKitAssetView(value: object): value is BrandKitAssetView;
127
+ export declare function BrandKitAssetViewFromJSON(json: any): BrandKitAssetView;
128
+ export declare function BrandKitAssetViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandKitAssetView;
129
+ export declare function BrandKitAssetViewToJSON(json: any): BrandKitAssetView;
130
+ export declare function BrandKitAssetViewToJSONTyped(value?: BrandKitAssetView | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BrandKitAssetViewFormatEnum = exports.BrandKitAssetViewStyleEnum = exports.BrandKitAssetViewKindEnum = void 0;
17
+ exports.instanceOfBrandKitAssetView = instanceOfBrandKitAssetView;
18
+ exports.BrandKitAssetViewFromJSON = BrandKitAssetViewFromJSON;
19
+ exports.BrandKitAssetViewFromJSONTyped = BrandKitAssetViewFromJSONTyped;
20
+ exports.BrandKitAssetViewToJSON = BrandKitAssetViewToJSON;
21
+ exports.BrandKitAssetViewToJSONTyped = BrandKitAssetViewToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BrandKitAssetViewKindEnum = {
26
+ Font: 'font',
27
+ Icon: 'icon'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.BrandKitAssetViewStyleEnum = {
33
+ Normal: 'normal',
34
+ Italic: 'italic'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.BrandKitAssetViewFormatEnum = {
40
+ Woff2: 'woff2',
41
+ Woff: 'woff',
42
+ Ttf: 'ttf',
43
+ Otf: 'otf'
44
+ };
45
+ /**
46
+ * Check if a given object implements the BrandKitAssetView interface.
47
+ */
48
+ function instanceOfBrandKitAssetView(value) {
49
+ if (!('id' in value) || value['id'] === undefined)
50
+ return false;
51
+ if (!('kind' in value) || value['kind'] === undefined)
52
+ return false;
53
+ if (!('name' in value) || value['name'] === undefined)
54
+ return false;
55
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ function BrandKitAssetViewFromJSON(json) {
60
+ return BrandKitAssetViewFromJSONTyped(json, false);
61
+ }
62
+ function BrandKitAssetViewFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'id': json['id'],
68
+ 'kind': json['kind'],
69
+ 'name': json['name'],
70
+ 'createdAt': (new Date(json['createdAt'])),
71
+ 'family': json['family'] == null ? undefined : json['family'],
72
+ 'weight': json['weight'] == null ? undefined : json['weight'],
73
+ 'style': json['style'] == null ? undefined : json['style'],
74
+ 'format': json['format'] == null ? undefined : json['format'],
75
+ 'bytes': json['bytes'] == null ? undefined : json['bytes'],
76
+ 'url': json['url'] == null ? undefined : json['url'],
77
+ 'slug': json['slug'] == null ? undefined : json['slug'],
78
+ 'exportName': json['exportName'] == null ? undefined : json['exportName'],
79
+ 'svg': json['svg'] == null ? undefined : json['svg'],
80
+ };
81
+ }
82
+ function BrandKitAssetViewToJSON(json) {
83
+ return BrandKitAssetViewToJSONTyped(json, false);
84
+ }
85
+ function BrandKitAssetViewToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'kind': value['kind'],
92
+ 'name': value['name'],
93
+ 'createdAt': ((value['createdAt']).toISOString()),
94
+ 'family': value['family'],
95
+ 'weight': value['weight'],
96
+ 'style': value['style'],
97
+ 'format': value['format'],
98
+ 'bytes': value['bytes'],
99
+ 'url': value['url'],
100
+ 'slug': value['slug'],
101
+ 'exportName': value['exportName'],
102
+ 'svg': value['svg'],
103
+ };
104
+ }