@widgetic/api-sdk-ts 2.0.0 → 2.0.2

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 (59) hide show
  1. package/dist/apis/BrandKitApi.d.ts +4 -4
  2. package/dist/apis/BrandKitApi.js +4 -4
  3. package/dist/apis/TokensApi.d.ts +2 -0
  4. package/dist/apis/TokensApi.js +2 -0
  5. package/dist/esm/apis/BrandKitApi.js +4 -4
  6. package/dist/esm/apis/TokensApi.js +2 -0
  7. package/dist/esm/models/BrandKitTokens.js +3 -0
  8. package/dist/esm/models/BrandTextStyle.js +65 -0
  9. package/dist/esm/models/GetOperationResponseData.js +3 -2
  10. package/dist/esm/models/GetOperationResponseDataMetadata.js +58 -0
  11. package/dist/esm/models/PatchBrandKitRequest.js +3 -0
  12. package/dist/esm/models/WidgetClarification.js +52 -0
  13. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  14. package/dist/esm/models/WidgetClarificationQuestion.js +60 -0
  15. package/dist/esm/models/WidgetNextStep.js +67 -0
  16. package/dist/esm/models/WidgetPlan.js +61 -0
  17. package/dist/esm/models/WidgetPlanDecisions.js +72 -0
  18. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  19. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  20. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  21. package/dist/esm/models/WidgetPlanTask.js +80 -0
  22. package/dist/esm/models/index.js +12 -0
  23. package/dist/esm/runtime.js +1 -1
  24. package/dist/models/BrandKitTokens.d.ts +8 -1
  25. package/dist/models/BrandKitTokens.js +3 -0
  26. package/dist/models/BrandKitView.d.ts +1 -1
  27. package/dist/models/BrandTextStyle.d.ts +59 -0
  28. package/dist/models/BrandTextStyle.js +73 -0
  29. package/dist/models/GetOperationResponseData.d.ts +3 -5
  30. package/dist/models/GetOperationResponseData.js +3 -2
  31. package/dist/models/GetOperationResponseDataMetadata.d.ts +65 -0
  32. package/dist/models/GetOperationResponseDataMetadata.js +66 -0
  33. package/dist/models/PatchBrandKitRequest.d.ts +7 -0
  34. package/dist/models/PatchBrandKitRequest.js +3 -0
  35. package/dist/models/WidgetClarification.d.ts +45 -0
  36. package/dist/models/WidgetClarification.js +59 -0
  37. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  38. package/dist/models/WidgetClarificationOption.js +58 -0
  39. package/dist/models/WidgetClarificationQuestion.d.ts +57 -0
  40. package/dist/models/WidgetClarificationQuestion.js +67 -0
  41. package/dist/models/WidgetNextStep.d.ts +63 -0
  42. package/dist/models/WidgetNextStep.js +75 -0
  43. package/dist/models/WidgetPlan.d.ts +58 -0
  44. package/dist/models/WidgetPlan.js +68 -0
  45. package/dist/models/WidgetPlanDecisions.d.ts +77 -0
  46. package/dist/models/WidgetPlanDecisions.js +79 -0
  47. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  48. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  49. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  50. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  51. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  52. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  53. package/dist/models/WidgetPlanTask.d.ts +77 -0
  54. package/dist/models/WidgetPlanTask.js +88 -0
  55. package/dist/models/index.d.ts +12 -0
  56. package/dist/models/index.js +12 -0
  57. package/dist/runtime.d.ts +2 -2
  58. package/dist/runtime.js +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,72 @@
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 { WidgetPlanDecisionsResponsiveFromJSON, WidgetPlanDecisionsResponsiveToJSON, } from './WidgetPlanDecisionsResponsive.js';
15
+ import { WidgetPlanDecisionsLibrariesInnerFromJSON, WidgetPlanDecisionsLibrariesInnerToJSON, } from './WidgetPlanDecisionsLibrariesInner.js';
16
+ import { WidgetPlanDecisionsAdaptersInnerFromJSON, WidgetPlanDecisionsAdaptersInnerToJSON, } from './WidgetPlanDecisionsAdaptersInner.js';
17
+ /**
18
+ * Check if a given object implements the WidgetPlanDecisions interface.
19
+ */
20
+ export function instanceOfWidgetPlanDecisions(value) {
21
+ if (!('libraries' in value) || value['libraries'] === undefined)
22
+ return false;
23
+ if (!('adapters' in value) || value['adapters'] === undefined)
24
+ return false;
25
+ if (!('look' in value) || value['look'] === undefined)
26
+ return false;
27
+ if (!('motion' in value) || value['motion'] === undefined)
28
+ return false;
29
+ if (!('improvements' in value) || value['improvements'] === undefined)
30
+ return false;
31
+ if (!('notes' in value) || value['notes'] === undefined)
32
+ return false;
33
+ if (!('elements' in value) || value['elements'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function WidgetPlanDecisionsFromJSON(json) {
38
+ return WidgetPlanDecisionsFromJSONTyped(json, false);
39
+ }
40
+ export function WidgetPlanDecisionsFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'libraries': (json['libraries'].map(WidgetPlanDecisionsLibrariesInnerFromJSON)),
46
+ 'adapters': (json['adapters'].map(WidgetPlanDecisionsAdaptersInnerFromJSON)),
47
+ 'look': json['look'],
48
+ 'motion': json['motion'],
49
+ 'improvements': json['improvements'],
50
+ 'notes': json['notes'],
51
+ 'responsive': json['responsive'] == null ? undefined : WidgetPlanDecisionsResponsiveFromJSON(json['responsive']),
52
+ 'elements': json['elements'],
53
+ };
54
+ }
55
+ export function WidgetPlanDecisionsToJSON(json) {
56
+ return WidgetPlanDecisionsToJSONTyped(json, false);
57
+ }
58
+ export function WidgetPlanDecisionsToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'libraries': (value['libraries'].map(WidgetPlanDecisionsLibrariesInnerToJSON)),
64
+ 'adapters': (value['adapters'].map(WidgetPlanDecisionsAdaptersInnerToJSON)),
65
+ 'look': value['look'],
66
+ 'motion': value['motion'],
67
+ 'improvements': value['improvements'],
68
+ 'notes': value['notes'],
69
+ 'responsive': WidgetPlanDecisionsResponsiveToJSON(value['responsive']),
70
+ 'elements': value['elements'],
71
+ };
72
+ }
@@ -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 WidgetPlanDecisionsAdaptersInner interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsAdaptersInner(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function WidgetPlanDecisionsAdaptersInnerFromJSON(json) {
25
+ return WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, false);
26
+ }
27
+ export function WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'label': json['label'],
34
+ };
35
+ }
36
+ export function WidgetPlanDecisionsAdaptersInnerToJSON(json) {
37
+ return WidgetPlanDecisionsAdaptersInnerToJSONTyped(json, false);
38
+ }
39
+ export function WidgetPlanDecisionsAdaptersInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'label': value['label'],
46
+ };
47
+ }
@@ -0,0 +1,51 @@
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 WidgetPlanDecisionsLibrariesInner interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsLibrariesInner(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ if (!('reason' in value) || value['reason'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WidgetPlanDecisionsLibrariesInnerFromJSON(json) {
27
+ return WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, false);
28
+ }
29
+ export function WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'label': json['label'],
36
+ 'reason': json['reason'],
37
+ };
38
+ }
39
+ export function WidgetPlanDecisionsLibrariesInnerToJSON(json) {
40
+ return WidgetPlanDecisionsLibrariesInnerToJSONTyped(json, false);
41
+ }
42
+ export function WidgetPlanDecisionsLibrariesInnerToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'label': value['label'],
49
+ 'reason': value['reason'],
50
+ };
51
+ }
@@ -0,0 +1,51 @@
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 WidgetPlanDecisionsResponsive interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsResponsive(value) {
18
+ if (!('mobile' in value) || value['mobile'] === undefined)
19
+ return false;
20
+ if (!('tablet' in value) || value['tablet'] === undefined)
21
+ return false;
22
+ if (!('desktop' in value) || value['desktop'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WidgetPlanDecisionsResponsiveFromJSON(json) {
27
+ return WidgetPlanDecisionsResponsiveFromJSONTyped(json, false);
28
+ }
29
+ export function WidgetPlanDecisionsResponsiveFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'mobile': json['mobile'],
35
+ 'tablet': json['tablet'],
36
+ 'desktop': json['desktop'],
37
+ };
38
+ }
39
+ export function WidgetPlanDecisionsResponsiveToJSON(json) {
40
+ return WidgetPlanDecisionsResponsiveToJSONTyped(json, false);
41
+ }
42
+ export function WidgetPlanDecisionsResponsiveToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'mobile': value['mobile'],
48
+ 'tablet': value['tablet'],
49
+ 'desktop': value['desktop'],
50
+ };
51
+ }
@@ -0,0 +1,80 @@
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
+ * @export
16
+ */
17
+ export const WidgetPlanTaskKindEnum = {
18
+ Read: 'read',
19
+ Layout: 'layout',
20
+ Content: 'content',
21
+ Style: 'style',
22
+ Library: 'library',
23
+ Adapter: 'adapter',
24
+ Motion: 'motion',
25
+ Behavior: 'behavior',
26
+ Polish: 'polish',
27
+ Check: 'check',
28
+ Other: 'other'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ export const WidgetPlanTaskStatusEnum = {
34
+ Pending: 'pending',
35
+ InProgress: 'in_progress',
36
+ Done: 'done',
37
+ Failed: 'failed'
38
+ };
39
+ /**
40
+ * Check if a given object implements the WidgetPlanTask interface.
41
+ */
42
+ export function instanceOfWidgetPlanTask(value) {
43
+ if (!('id' in value) || value['id'] === undefined)
44
+ return false;
45
+ if (!('label' in value) || value['label'] === undefined)
46
+ return false;
47
+ if (!('kind' in value) || value['kind'] === undefined)
48
+ return false;
49
+ if (!('status' in value) || value['status'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ export function WidgetPlanTaskFromJSON(json) {
54
+ return WidgetPlanTaskFromJSONTyped(json, false);
55
+ }
56
+ export function WidgetPlanTaskFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'label': json['label'],
63
+ 'kind': json['kind'],
64
+ 'status': json['status'],
65
+ };
66
+ }
67
+ export function WidgetPlanTaskToJSON(json) {
68
+ return WidgetPlanTaskToJSONTyped(json, false);
69
+ }
70
+ export function WidgetPlanTaskToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'label': value['label'],
77
+ 'kind': value['kind'],
78
+ 'status': value['status'],
79
+ };
80
+ }
@@ -27,6 +27,7 @@ export * from './BrandKitView.js';
27
27
  export * from './BrandKitViewOwner.js';
28
28
  export * from './BrandKitViewResponse.js';
29
29
  export * from './BrandSpacing.js';
30
+ export * from './BrandTextStyle.js';
30
31
  export * from './Canvas.js';
31
32
  export * from './CanvasResponse.js';
32
33
  export * from './CheckCompositionAccessResponse.js';
@@ -124,6 +125,7 @@ export * from './GetManagedUsersByManagerIdResponse.js';
124
125
  export * from './GetManagedUsersByManagerIdResponseData.js';
125
126
  export * from './GetOperationResponse.js';
126
127
  export * from './GetOperationResponseData.js';
128
+ export * from './GetOperationResponseDataMetadata.js';
127
129
  export * from './GetPartnerBillingOverview200Response.js';
128
130
  export * from './GetPartnerEntitlementsResponse.js';
129
131
  export * from './GetPartnerEntitlementsResponseData.js';
@@ -314,6 +316,16 @@ export * from './ValidateCompositionContentResponseData.js';
314
316
  export * from './ValidateToken200Response.js';
315
317
  export * from './ValidateToken200ResponseData.js';
316
318
  export * from './Widget.js';
319
+ export * from './WidgetClarification.js';
320
+ export * from './WidgetClarificationOption.js';
321
+ export * from './WidgetClarificationQuestion.js';
322
+ export * from './WidgetNextStep.js';
323
+ export * from './WidgetPlan.js';
324
+ export * from './WidgetPlanDecisions.js';
325
+ export * from './WidgetPlanDecisionsAdaptersInner.js';
326
+ export * from './WidgetPlanDecisionsLibrariesInner.js';
327
+ export * from './WidgetPlanDecisionsResponsive.js';
328
+ export * from './WidgetPlanTask.js';
317
329
  export * from './Workflow.js';
318
330
  export * from './WorkflowCompositionAction.js';
319
331
  export * from './WorkflowCompositionField.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 = "2.0.0";
32
+ export const SDK_VERSION = "2.0.2";
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 {
@@ -9,11 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { BrandTextStyle } from './BrandTextStyle';
12
13
  import type { BrandSpacing } from './BrandSpacing';
13
14
  import type { BrandColor } from './BrandColor';
14
15
  import type { BrandKitTokensFonts } from './BrandKitTokensFonts';
15
16
  /**
16
- * Colors, fonts by role, spacing and corner radii of a Brand Kit.
17
+ * Colors, fonts by role, text styles, spacing and corner radii of a Brand Kit.
17
18
  * @export
18
19
  * @interface BrandKitTokens
19
20
  */
@@ -30,6 +31,12 @@ export interface BrandKitTokens {
30
31
  * @memberof BrandKitTokens
31
32
  */
32
33
  fonts: BrandKitTokensFonts;
34
+ /**
35
+ * The owner's text styles (family, weight and size). When there are some, they are what every widget made with the kit is told about type and the fonts by role are not used; with none, the fonts by role apply. A font file that is deleted takes the text styles made from it with it. Left out when the kit has none.
36
+ * @type {Array<BrandTextStyle>}
37
+ * @memberof BrandKitTokens
38
+ */
39
+ textStyles?: Array<BrandTextStyle>;
33
40
  /**
34
41
  *
35
42
  * @type {BrandSpacing}
@@ -18,6 +18,7 @@ exports.BrandKitTokensFromJSON = BrandKitTokensFromJSON;
18
18
  exports.BrandKitTokensFromJSONTyped = BrandKitTokensFromJSONTyped;
19
19
  exports.BrandKitTokensToJSON = BrandKitTokensToJSON;
20
20
  exports.BrandKitTokensToJSONTyped = BrandKitTokensToJSONTyped;
21
+ const BrandTextStyle_1 = require("./BrandTextStyle");
21
22
  const BrandSpacing_1 = require("./BrandSpacing");
22
23
  const BrandColor_1 = require("./BrandColor");
23
24
  const BrandKitTokensFonts_1 = require("./BrandKitTokensFonts");
@@ -43,6 +44,7 @@ function BrandKitTokensFromJSONTyped(json, ignoreDiscriminator) {
43
44
  return {
44
45
  'colors': (json['colors'].map(BrandColor_1.BrandColorFromJSON)),
45
46
  'fonts': (0, BrandKitTokensFonts_1.BrandKitTokensFontsFromJSON)(json['fonts']),
47
+ 'textStyles': json['textStyles'] == null ? undefined : (json['textStyles'].map(BrandTextStyle_1.BrandTextStyleFromJSON)),
46
48
  'spacing': (0, BrandSpacing_1.BrandSpacingFromJSON)(json['spacing']),
47
49
  'instructions': json['instructions'] == null ? undefined : json['instructions'],
48
50
  };
@@ -57,6 +59,7 @@ function BrandKitTokensToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  return {
58
60
  'colors': (value['colors'].map(BrandColor_1.BrandColorToJSON)),
59
61
  'fonts': (0, BrandKitTokensFonts_1.BrandKitTokensFontsToJSON)(value['fonts']),
62
+ 'textStyles': value['textStyles'] == null ? undefined : (value['textStyles'].map(BrandTextStyle_1.BrandTextStyleToJSON)),
60
63
  'spacing': (0, BrandSpacing_1.BrandSpacingToJSON)(value['spacing']),
61
64
  'instructions': value['instructions'],
62
65
  };
@@ -74,7 +74,7 @@ export interface BrandKitView {
74
74
  */
75
75
  updatedBy?: string | null;
76
76
  /**
77
- * Things worth fixing in the saved colors, such as a text color that is hard to read on the background. The kit is saved either way.
77
+ * Things worth fixing in the saved kit, such as a text color that is hard to read on the background, or fonts by role that are not used because the kit has text styles. The kit is saved either way.
78
78
  * @type {Array<string>}
79
79
  * @memberof BrandKitView
80
80
  */
@@ -0,0 +1,59 @@
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
+ * One text style of the kit: a font family, a weight and a size in pixels, for example Inter 400 at 12px or Inter 500 at 18px. A family with a font file in the kit is an uploaded font; any other family is loaded from Google Fonts. The size is the size of the widget at full size.
14
+ * @export
15
+ * @interface BrandTextStyle
16
+ */
17
+ export interface BrandTextStyle {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrandTextStyle
22
+ */
23
+ family: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof BrandTextStyle
28
+ */
29
+ weight: BrandTextStyleWeightEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof BrandTextStyle
34
+ */
35
+ size: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const BrandTextStyleWeightEnum: {
41
+ readonly NUMBER_100: 100;
42
+ readonly NUMBER_200: 200;
43
+ readonly NUMBER_300: 300;
44
+ readonly NUMBER_400: 400;
45
+ readonly NUMBER_500: 500;
46
+ readonly NUMBER_600: 600;
47
+ readonly NUMBER_700: 700;
48
+ readonly NUMBER_800: 800;
49
+ readonly NUMBER_900: 900;
50
+ };
51
+ export type BrandTextStyleWeightEnum = typeof BrandTextStyleWeightEnum[keyof typeof BrandTextStyleWeightEnum];
52
+ /**
53
+ * Check if a given object implements the BrandTextStyle interface.
54
+ */
55
+ export declare function instanceOfBrandTextStyle(value: object): value is BrandTextStyle;
56
+ export declare function BrandTextStyleFromJSON(json: any): BrandTextStyle;
57
+ export declare function BrandTextStyleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandTextStyle;
58
+ export declare function BrandTextStyleToJSON(json: any): BrandTextStyle;
59
+ export declare function BrandTextStyleToJSONTyped(value?: BrandTextStyle | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.BrandTextStyleWeightEnum = void 0;
17
+ exports.instanceOfBrandTextStyle = instanceOfBrandTextStyle;
18
+ exports.BrandTextStyleFromJSON = BrandTextStyleFromJSON;
19
+ exports.BrandTextStyleFromJSONTyped = BrandTextStyleFromJSONTyped;
20
+ exports.BrandTextStyleToJSON = BrandTextStyleToJSON;
21
+ exports.BrandTextStyleToJSONTyped = BrandTextStyleToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BrandTextStyleWeightEnum = {
26
+ NUMBER_100: 100,
27
+ NUMBER_200: 200,
28
+ NUMBER_300: 300,
29
+ NUMBER_400: 400,
30
+ NUMBER_500: 500,
31
+ NUMBER_600: 600,
32
+ NUMBER_700: 700,
33
+ NUMBER_800: 800,
34
+ NUMBER_900: 900
35
+ };
36
+ /**
37
+ * Check if a given object implements the BrandTextStyle interface.
38
+ */
39
+ function instanceOfBrandTextStyle(value) {
40
+ if (!('family' in value) || value['family'] === undefined)
41
+ return false;
42
+ if (!('weight' in value) || value['weight'] === undefined)
43
+ return false;
44
+ if (!('size' in value) || value['size'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function BrandTextStyleFromJSON(json) {
49
+ return BrandTextStyleFromJSONTyped(json, false);
50
+ }
51
+ function BrandTextStyleFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'family': json['family'],
57
+ 'weight': json['weight'],
58
+ 'size': json['size'],
59
+ };
60
+ }
61
+ function BrandTextStyleToJSON(json) {
62
+ return BrandTextStyleToJSONTyped(json, false);
63
+ }
64
+ function BrandTextStyleToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'family': value['family'],
70
+ 'weight': value['weight'],
71
+ 'size': value['size'],
72
+ };
73
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetOperationResponseDataMetadata } from './GetOperationResponseDataMetadata';
12
13
  /**
13
14
  * Operation payload including status, metadata, and timestamps.
14
15
  * @export
@@ -40,14 +41,11 @@ export interface GetOperationResponseData {
40
41
  */
41
42
  progress?: number;
42
43
  /**
43
- * What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none).
44
44
  *
45
- * @type {{ [key: string]: any; }}
45
+ * @type {GetOperationResponseDataMetadata}
46
46
  * @memberof GetOperationResponseData
47
47
  */
48
- metadata?: {
49
- [key: string]: any;
50
- };
48
+ metadata?: GetOperationResponseDataMetadata;
51
49
  /**
52
50
  * Why a `failed` operation failed (absent otherwise)
53
51
  * @type {string}
@@ -19,6 +19,7 @@ exports.GetOperationResponseDataFromJSON = GetOperationResponseDataFromJSON;
19
19
  exports.GetOperationResponseDataFromJSONTyped = GetOperationResponseDataFromJSONTyped;
20
20
  exports.GetOperationResponseDataToJSON = GetOperationResponseDataToJSON;
21
21
  exports.GetOperationResponseDataToJSONTyped = GetOperationResponseDataToJSONTyped;
22
+ const GetOperationResponseDataMetadata_1 = require("./GetOperationResponseDataMetadata");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -47,7 +48,7 @@ function GetOperationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'type': json['type'] == null ? undefined : json['type'],
48
49
  'status': json['status'] == null ? undefined : json['status'],
49
50
  'progress': json['progress'] == null ? undefined : json['progress'],
50
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
51
+ 'metadata': json['metadata'] == null ? undefined : (0, GetOperationResponseDataMetadata_1.GetOperationResponseDataMetadataFromJSON)(json['metadata']),
51
52
  'error': json['error'] == null ? undefined : json['error'],
52
53
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
53
54
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -65,7 +66,7 @@ function GetOperationResponseDataToJSONTyped(value, ignoreDiscriminator = false)
65
66
  'type': value['type'],
66
67
  'status': value['status'],
67
68
  'progress': value['progress'],
68
- 'metadata': value['metadata'],
69
+ 'metadata': (0, GetOperationResponseDataMetadata_1.GetOperationResponseDataMetadataToJSON)(value['metadata']),
69
70
  'error': value['error'],
70
71
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
71
72
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
@@ -0,0 +1,65 @@
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
+ import type { WidgetNextStep } from './WidgetNextStep';
13
+ import type { WidgetClarification } from './WidgetClarification';
14
+ import type { WidgetPlan } from './WidgetPlan';
15
+ /**
16
+ * What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none). A code generation whose request declared `clientCapabilities` also tells what that client asked to show: `plan` while it builds, `outcome` `needs_answers` with the card in `clarification` when it asked before building, and `nextSteps` once it is done. A key whose part the client did not declare is never present. During code generation, `stage` is a short status line. While the model streams code, `streamTail` holds the last portion of generated source (replaced periodically, cleared when streaming ends). While the model streams reasoning before code, `thinkingTail` holds the last portion of reasoning text (same cadence; cleared when code streaming starts or the run ends). Clients may read `thinkingTail` or `thinking_tail`.
17
+ *
18
+ * @export
19
+ * @interface GetOperationResponseDataMetadata
20
+ */
21
+ export interface GetOperationResponseDataMetadata {
22
+ [key: string]: any | any;
23
+ /**
24
+ * The plan of a code generation, published when it is made and again each time a step changes (`pending`, `in_progress`, `done`, `failed`). `null` when the build was called off, so the client hides the plan it showed.
25
+ *
26
+ * @type {WidgetPlan}
27
+ * @memberof GetOperationResponseDataMetadata
28
+ */
29
+ plan?: WidgetPlan | null;
30
+ /**
31
+ * `needs_answers` on a code generation that completed by asking questions: nothing was built, the credit was returned, and the card is in `clarification`. Absent on every other outcome.
32
+ *
33
+ * @type {string}
34
+ * @memberof GetOperationResponseDataMetadata
35
+ */
36
+ outcome?: GetOperationResponseDataMetadataOutcomeEnum;
37
+ /**
38
+ * The card of questions, present with `outcome` `needs_answers`.
39
+ * @type {WidgetClarification}
40
+ * @memberof GetOperationResponseDataMetadata
41
+ */
42
+ clarification?: WidgetClarification;
43
+ /**
44
+ * Suggested next improvements of a completed code generation, the recommended one first. Absent when none were made in time or the build was not kept.
45
+ *
46
+ * @type {Array<WidgetNextStep>}
47
+ * @memberof GetOperationResponseDataMetadata
48
+ */
49
+ nextSteps?: Array<WidgetNextStep>;
50
+ }
51
+ /**
52
+ * @export
53
+ */
54
+ export declare const GetOperationResponseDataMetadataOutcomeEnum: {
55
+ readonly NeedsAnswers: 'needs_answers';
56
+ };
57
+ export type GetOperationResponseDataMetadataOutcomeEnum = typeof GetOperationResponseDataMetadataOutcomeEnum[keyof typeof GetOperationResponseDataMetadataOutcomeEnum];
58
+ /**
59
+ * Check if a given object implements the GetOperationResponseDataMetadata interface.
60
+ */
61
+ export declare function instanceOfGetOperationResponseDataMetadata(value: object): value is GetOperationResponseDataMetadata;
62
+ export declare function GetOperationResponseDataMetadataFromJSON(json: any): GetOperationResponseDataMetadata;
63
+ export declare function GetOperationResponseDataMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOperationResponseDataMetadata;
64
+ export declare function GetOperationResponseDataMetadataToJSON(json: any): GetOperationResponseDataMetadata;
65
+ export declare function GetOperationResponseDataMetadataToJSONTyped(value?: GetOperationResponseDataMetadata | null, ignoreDiscriminator?: boolean): any;