@widgetic/api-sdk-ts 2.0.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/apis/CompositionsApi.d.ts +1 -0
  2. package/dist/apis/CompositionsApi.js +3 -0
  3. package/dist/apis/CreditsApi.d.ts +4 -4
  4. package/dist/apis/CreditsApi.js +4 -4
  5. package/dist/apis/ManagedUsersApi.d.ts +2 -2
  6. package/dist/apis/ManagedUsersApi.js +2 -2
  7. package/dist/apis/OrganizationsApi.d.ts +74 -0
  8. package/dist/apis/OrganizationsApi.js +205 -0
  9. package/dist/apis/PartnersApi.d.ts +8 -8
  10. package/dist/apis/PartnersApi.js +8 -8
  11. package/dist/apis/TokensApi.d.ts +2 -2
  12. package/dist/apis/TokensApi.js +2 -2
  13. package/dist/apis/UploadsApi.d.ts +4 -4
  14. package/dist/apis/UploadsApi.js +4 -4
  15. package/dist/apis/UsersApi.d.ts +3 -59
  16. package/dist/apis/UsersApi.js +2 -150
  17. package/dist/apis/WidgetsApi.d.ts +2 -2
  18. package/dist/apis/WidgetsApi.js +2 -2
  19. package/dist/apis/WorkflowsApi.d.ts +38 -38
  20. package/dist/apis/WorkflowsApi.js +38 -38
  21. package/dist/apis/index.d.ts +1 -0
  22. package/dist/apis/index.js +1 -0
  23. package/dist/esm/apis/CompositionsApi.js +3 -0
  24. package/dist/esm/apis/CreditsApi.js +4 -4
  25. package/dist/esm/apis/ManagedUsersApi.js +2 -2
  26. package/dist/esm/apis/OrganizationsApi.js +168 -0
  27. package/dist/esm/apis/PartnersApi.js +8 -8
  28. package/dist/esm/apis/TokensApi.js +2 -2
  29. package/dist/esm/apis/UploadsApi.js +4 -4
  30. package/dist/esm/apis/UsersApi.js +3 -151
  31. package/dist/esm/apis/WidgetsApi.js +2 -2
  32. package/dist/esm/apis/WorkflowsApi.js +38 -38
  33. package/dist/esm/apis/index.js +1 -0
  34. package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
  35. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  36. package/dist/esm/models/Canvas.js +3 -0
  37. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  38. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  39. package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
  40. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  41. package/dist/esm/models/EditorSession.js +4 -0
  42. package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
  43. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  44. package/dist/esm/models/NewWidget.js +0 -1
  45. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  46. package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
  47. package/dist/esm/models/Upload.js +2 -0
  48. package/dist/esm/models/UserApiKey.js +2 -0
  49. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  50. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  51. package/dist/esm/models/Widget.js +6 -0
  52. package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
  53. package/dist/esm/models/WidgetCodeChange.js +68 -0
  54. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  55. package/dist/esm/models/WidgetNextStep.js +4 -0
  56. package/dist/esm/models/index.js +11 -6
  57. package/dist/esm/runtime.js +1 -1
  58. package/dist/models/AccountCreditBalance.d.ts +2 -2
  59. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  60. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  61. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  62. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  63. package/dist/models/Canvas.d.ts +7 -0
  64. package/dist/models/Canvas.js +3 -0
  65. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  66. package/dist/models/CanvasActiveOperation.js +74 -0
  67. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  68. package/dist/models/CreateWidget201ResponseData.js +6 -0
  69. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  70. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  71. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  72. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  73. package/dist/models/EditorSession.d.ts +7 -0
  74. package/dist/models/EditorSession.js +4 -0
  75. package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
  76. package/dist/models/GetOperationResponseDataMetadata.js +12 -1
  77. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  78. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  79. package/dist/models/NewEditorSession.d.ts +1 -1
  80. package/dist/models/NewWidget.d.ts +2 -3
  81. package/dist/models/NewWidget.js +0 -1
  82. package/dist/models/OrganizationDomain.d.ts +56 -0
  83. package/dist/models/OrganizationDomain.js +56 -0
  84. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  85. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  86. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  87. package/dist/models/Upload.d.ts +6 -0
  88. package/dist/models/Upload.js +2 -0
  89. package/dist/models/UserApiKey.d.ts +6 -0
  90. package/dist/models/UserApiKey.js +2 -0
  91. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  92. package/dist/models/ValidateToken200ResponseData.js +3 -0
  93. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  94. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  95. package/dist/models/Widget.d.ts +18 -0
  96. package/dist/models/Widget.js +6 -0
  97. package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
  98. package/dist/models/WidgetClarificationQuestion.js +4 -0
  99. package/dist/models/WidgetCodeChange.d.ts +70 -0
  100. package/dist/models/WidgetCodeChange.js +76 -0
  101. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  102. package/dist/models/WidgetCodeChanges.js +55 -0
  103. package/dist/models/WidgetNextStep.d.ts +7 -1
  104. package/dist/models/WidgetNextStep.js +4 -0
  105. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  106. package/dist/models/index.d.ts +11 -6
  107. package/dist/models/index.js +11 -6
  108. package/dist/runtime.d.ts +2 -2
  109. package/dist/runtime.js +1 -1
  110. package/package.json +1 -1
  111. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  112. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  113. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  114. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  115. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  116. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  117. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  118. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  119. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  120. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  121. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  122. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  123. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  124. package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
@@ -64,6 +64,7 @@ function UserApiKeyFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
65
65
  'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
66
66
  'isActive': json['isActive'],
67
+ 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
67
68
  'scopes': (json['scopes'].map(ApiKeyScope_1.ApiKeyScopeFromJSON)),
68
69
  'preset': json['preset'],
69
70
  };
@@ -83,6 +84,7 @@ function UserApiKeyToJSONTyped(value, ignoreDiscriminator = false) {
83
84
  'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
84
85
  'lastUsedAt': value['lastUsedAt'] == null ? undefined : (value['lastUsedAt'].toISOString()),
85
86
  'isActive': value['isActive'],
87
+ 'organizationId': value['organizationId'],
86
88
  'scopes': (value['scopes'].map(ApiKeyScope_1.ApiKeyScopeToJSON)),
87
89
  'preset': value['preset'],
88
90
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ValidateToken200ResponseDataWorkspace } from './ValidateToken200ResponseDataWorkspace';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface ValidateToken200ResponseData {
45
46
  * @memberof ValidateToken200ResponseData
46
47
  */
47
48
  expiresAt?: Date;
49
+ /**
50
+ *
51
+ * @type {ValidateToken200ResponseDataWorkspace}
52
+ * @memberof ValidateToken200ResponseData
53
+ */
54
+ workspace?: ValidateToken200ResponseDataWorkspace | null;
48
55
  }
49
56
  /**
50
57
  * @export
@@ -19,6 +19,7 @@ exports.ValidateToken200ResponseDataFromJSON = ValidateToken200ResponseDataFromJ
19
19
  exports.ValidateToken200ResponseDataFromJSONTyped = ValidateToken200ResponseDataFromJSONTyped;
20
20
  exports.ValidateToken200ResponseDataToJSON = ValidateToken200ResponseDataToJSON;
21
21
  exports.ValidateToken200ResponseDataToJSONTyped = ValidateToken200ResponseDataToJSONTyped;
22
+ const ValidateToken200ResponseDataWorkspace_1 = require("./ValidateToken200ResponseDataWorkspace");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -46,6 +47,7 @@ function ValidateToken200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
46
47
  'scopes': json['scopes'] == null ? undefined : json['scopes'],
47
48
  'userId': json['userId'] == null ? undefined : json['userId'],
48
49
  'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
50
+ 'workspace': json['workspace'] == null ? undefined : (0, ValidateToken200ResponseDataWorkspace_1.ValidateToken200ResponseDataWorkspaceFromJSON)(json['workspace']),
49
51
  };
50
52
  }
51
53
  function ValidateToken200ResponseDataToJSON(json) {
@@ -61,5 +63,6 @@ function ValidateToken200ResponseDataToJSONTyped(value, ignoreDiscriminator = fa
61
63
  'scopes': value['scopes'],
62
64
  'userId': value['userId'],
63
65
  'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
66
+ 'workspace': (0, ValidateToken200ResponseDataWorkspace_1.ValidateToken200ResponseDataWorkspaceToJSON)(value['workspace']),
64
67
  };
65
68
  }
@@ -0,0 +1,38 @@
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
+ * The workspace the credential works in: the one an API key was made for. Null for a credential that names none (a signed-in session follows the person's workspace choice).
14
+ * @export
15
+ * @interface ValidateToken200ResponseDataWorkspace
16
+ */
17
+ export interface ValidateToken200ResponseDataWorkspace {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ValidateToken200ResponseDataWorkspace
22
+ */
23
+ id?: string;
24
+ /**
25
+ * The workspace's name; null when it could not be read just now.
26
+ * @type {string}
27
+ * @memberof ValidateToken200ResponseDataWorkspace
28
+ */
29
+ name?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ValidateToken200ResponseDataWorkspace interface.
33
+ */
34
+ export declare function instanceOfValidateToken200ResponseDataWorkspace(value: object): value is ValidateToken200ResponseDataWorkspace;
35
+ export declare function ValidateToken200ResponseDataWorkspaceFromJSON(json: any): ValidateToken200ResponseDataWorkspace;
36
+ export declare function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateToken200ResponseDataWorkspace;
37
+ export declare function ValidateToken200ResponseDataWorkspaceToJSON(json: any): ValidateToken200ResponseDataWorkspace;
38
+ export declare function ValidateToken200ResponseDataWorkspaceToJSONTyped(value?: ValidateToken200ResponseDataWorkspace | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfValidateToken200ResponseDataWorkspace = instanceOfValidateToken200ResponseDataWorkspace;
17
+ exports.ValidateToken200ResponseDataWorkspaceFromJSON = ValidateToken200ResponseDataWorkspaceFromJSON;
18
+ exports.ValidateToken200ResponseDataWorkspaceFromJSONTyped = ValidateToken200ResponseDataWorkspaceFromJSONTyped;
19
+ exports.ValidateToken200ResponseDataWorkspaceToJSON = ValidateToken200ResponseDataWorkspaceToJSON;
20
+ exports.ValidateToken200ResponseDataWorkspaceToJSONTyped = ValidateToken200ResponseDataWorkspaceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ValidateToken200ResponseDataWorkspace interface.
23
+ */
24
+ function instanceOfValidateToken200ResponseDataWorkspace(value) {
25
+ return true;
26
+ }
27
+ function ValidateToken200ResponseDataWorkspaceFromJSON(json) {
28
+ return ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, false);
29
+ }
30
+ function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ };
38
+ }
39
+ function ValidateToken200ResponseDataWorkspaceToJSON(json) {
40
+ return ValidateToken200ResponseDataWorkspaceToJSONTyped(json, false);
41
+ }
42
+ function ValidateToken200ResponseDataWorkspaceToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -89,6 +89,12 @@ export interface Widget {
89
89
  * @memberof Widget
90
90
  */
91
91
  jsPath?: string | null;
92
+ /**
93
+ * A small line drawing of the widget, as an SVG on a 32 x 32 canvas (a few flat shapes only, drawn in currentColor, no script, style, text, link or image). Show it as a mask, 32 pixels wide, in the middle of the standard grey tile, in the darker grey. Null until one is drawn.
94
+ * @type {string}
95
+ * @memberof Widget
96
+ */
97
+ thumbnailSvg?: string | null;
92
98
  /**
93
99
  * ID of the canvas associated with this widget.
94
100
  * @type {string}
@@ -119,6 +125,18 @@ export interface Widget {
119
125
  * @memberof Widget
120
126
  */
121
127
  lastCommitSha?: string | null;
128
+ /**
129
+ * True when the widget was published at least once and the latest saved commit differs from the published commit. Never-published drafts are false.
130
+ * @type {boolean}
131
+ * @memberof Widget
132
+ */
133
+ hasUnpublishedChanges?: boolean;
134
+ /**
135
+ * ISO timestamp of the last publish, or null when the widget was never published.
136
+ * @type {Date}
137
+ * @memberof Widget
138
+ */
139
+ publishedAt?: Date | null;
122
140
  /**
123
141
  * Organization ID if created in an organization workspace.
124
142
  * @type {string}
@@ -52,11 +52,14 @@ function WidgetFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
53
53
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
54
54
  'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
55
+ 'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
55
56
  'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
56
57
  'repoId': json['repoId'] == null ? undefined : json['repoId'],
57
58
  'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
58
59
  'version': json['version'] == null ? undefined : json['version'],
59
60
  'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
61
+ 'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
62
+ 'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
60
63
  'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
61
64
  'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
62
65
  'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
@@ -83,11 +86,14 @@ function WidgetToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
84
87
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
85
88
  'jsPath': value['jsPath'],
89
+ 'thumbnailSvg': value['thumbnailSvg'],
86
90
  'canvasId': value['canvasId'],
87
91
  'repoId': value['repoId'],
88
92
  'databaseId': value['databaseId'],
89
93
  'version': value['version'],
90
94
  'lastCommitSha': value['lastCommitSha'],
95
+ 'hasUnpublishedChanges': value['hasUnpublishedChanges'],
96
+ 'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
91
97
  'organizationId': value['organizationId'],
92
98
  'projectFolder': value['projectFolder'],
93
99
  'workspaceType': value['workspaceType'],
@@ -46,6 +46,12 @@ export interface WidgetClarificationQuestion {
46
46
  * @memberof WidgetClarificationQuestion
47
47
  */
48
48
  allowOther: boolean;
49
+ /**
50
+ * Whether the person may choose more than one option. The assistant sets it for each question on its own: false (one answer) unless the answer can hold several things at once (which sections, which platforms), so a card may mix both kinds. Always false when there are fewer than two options. Several choices go back in one `answer`, one per line.
51
+ * @type {boolean}
52
+ * @memberof WidgetClarificationQuestion
53
+ */
54
+ allowMultiple: boolean;
49
55
  }
50
56
  /**
51
57
  * Check if a given object implements the WidgetClarificationQuestion interface.
@@ -33,6 +33,8 @@ function instanceOfWidgetClarificationQuestion(value) {
33
33
  return false;
34
34
  if (!('allowOther' in value) || value['allowOther'] === undefined)
35
35
  return false;
36
+ if (!('allowMultiple' in value) || value['allowMultiple'] === undefined)
37
+ return false;
36
38
  return true;
37
39
  }
38
40
  function WidgetClarificationQuestionFromJSON(json) {
@@ -48,6 +50,7 @@ function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'recommendedWord': json['recommendedWord'],
49
51
  'options': (json['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionFromJSON)),
50
52
  'allowOther': json['allowOther'],
53
+ 'allowMultiple': json['allowMultiple'],
51
54
  };
52
55
  }
53
56
  function WidgetClarificationQuestionToJSON(json) {
@@ -63,5 +66,6 @@ function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = fal
63
66
  'recommendedWord': value['recommendedWord'],
64
67
  'options': (value['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionToJSON)),
65
68
  'allowOther': value['allowOther'],
69
+ 'allowMultiple': value['allowMultiple'],
66
70
  };
67
71
  }
@@ -0,0 +1,70 @@
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 file a build changed, in `metadata.codeChanges.files`. The change is in `patch` as unified hunks (the format of GitLab's own commit diff, without the file header): each hunk starts with `@@ -oldStart,oldCount +newStart,newCount @@` (a count of one is left out; a file that is new starts at `-0,0`) and its lines start with a space (unchanged, for context), `-` (taken out) or `+` (put in). A client that draws it reads the hunk until the next `@@` line and does not depend on the counts, because a cut patch ends in the middle of a hunk.
14
+ * @export
15
+ * @interface WidgetCodeChange
16
+ */
17
+ export interface WidgetCodeChange {
18
+ /**
19
+ * The path in the repository, for example `src/routes/+page.svelte`.
20
+ * @type {string}
21
+ * @memberof WidgetCodeChange
22
+ */
23
+ path: string;
24
+ /**
25
+ * `added` for a file that did not exist before the build, `modified` for one that did.
26
+ * @type {string}
27
+ * @memberof WidgetCodeChange
28
+ */
29
+ status: WidgetCodeChangeStatusEnum;
30
+ /**
31
+ * Lines put in, counted over the whole file even when `patch` was cut.
32
+ * @type {number}
33
+ * @memberof WidgetCodeChange
34
+ */
35
+ additions: number;
36
+ /**
37
+ * Lines taken out, counted over the whole file even when `patch` was cut.
38
+ * @type {number}
39
+ * @memberof WidgetCodeChange
40
+ */
41
+ deletions: number;
42
+ /**
43
+ * The change as unified hunks, with three unchanged lines of context around every change. Empty when it did not fit (then `truncated` is true).
44
+ * @type {string}
45
+ * @memberof WidgetCodeChange
46
+ */
47
+ patch: string;
48
+ /**
49
+ * Present and true when `patch` was cut short or left out (a size bound, or a line so long it was cut). The counts stay the true ones.
50
+ * @type {boolean}
51
+ * @memberof WidgetCodeChange
52
+ */
53
+ truncated?: boolean;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const WidgetCodeChangeStatusEnum: {
59
+ readonly Added: 'added';
60
+ readonly Modified: 'modified';
61
+ };
62
+ export type WidgetCodeChangeStatusEnum = typeof WidgetCodeChangeStatusEnum[keyof typeof WidgetCodeChangeStatusEnum];
63
+ /**
64
+ * Check if a given object implements the WidgetCodeChange interface.
65
+ */
66
+ export declare function instanceOfWidgetCodeChange(value: object): value is WidgetCodeChange;
67
+ export declare function WidgetCodeChangeFromJSON(json: any): WidgetCodeChange;
68
+ export declare function WidgetCodeChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChange;
69
+ export declare function WidgetCodeChangeToJSON(json: any): WidgetCodeChange;
70
+ export declare function WidgetCodeChangeToJSONTyped(value?: WidgetCodeChange | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.WidgetCodeChangeStatusEnum = void 0;
17
+ exports.instanceOfWidgetCodeChange = instanceOfWidgetCodeChange;
18
+ exports.WidgetCodeChangeFromJSON = WidgetCodeChangeFromJSON;
19
+ exports.WidgetCodeChangeFromJSONTyped = WidgetCodeChangeFromJSONTyped;
20
+ exports.WidgetCodeChangeToJSON = WidgetCodeChangeToJSON;
21
+ exports.WidgetCodeChangeToJSONTyped = WidgetCodeChangeToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.WidgetCodeChangeStatusEnum = {
26
+ Added: 'added',
27
+ Modified: 'modified'
28
+ };
29
+ /**
30
+ * Check if a given object implements the WidgetCodeChange interface.
31
+ */
32
+ function instanceOfWidgetCodeChange(value) {
33
+ if (!('path' in value) || value['path'] === undefined)
34
+ return false;
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ if (!('additions' in value) || value['additions'] === undefined)
38
+ return false;
39
+ if (!('deletions' in value) || value['deletions'] === undefined)
40
+ return false;
41
+ if (!('patch' in value) || value['patch'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function WidgetCodeChangeFromJSON(json) {
46
+ return WidgetCodeChangeFromJSONTyped(json, false);
47
+ }
48
+ function WidgetCodeChangeFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'path': json['path'],
54
+ 'status': json['status'],
55
+ 'additions': json['additions'],
56
+ 'deletions': json['deletions'],
57
+ 'patch': json['patch'],
58
+ 'truncated': json['truncated'] == null ? undefined : json['truncated'],
59
+ };
60
+ }
61
+ function WidgetCodeChangeToJSON(json) {
62
+ return WidgetCodeChangeToJSONTyped(json, false);
63
+ }
64
+ function WidgetCodeChangeToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'path': value['path'],
70
+ 'status': value['status'],
71
+ 'additions': value['additions'],
72
+ 'deletions': value['deletions'],
73
+ 'patch': value['patch'],
74
+ 'truncated': value['truncated'],
75
+ };
76
+ }
@@ -0,0 +1,39 @@
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 { WidgetCodeChange } from './WidgetCodeChange';
13
+ /**
14
+ * What a completed build changed, in `metadata.codeChanges` of its operation, for a client that declared `clientCapabilities.codeChanges`. Present only for a build that was kept (a version was saved and the preview compiled) on a follow-up round of a conversation (the first message replaces what the repository held, so there is nothing to compare), and only when something a person could see changed (a change of line endings alone is none). The size is bounded: a few files, and a few tens of thousands of characters in all.
15
+ * @export
16
+ * @interface WidgetCodeChanges
17
+ */
18
+ export interface WidgetCodeChanges {
19
+ /**
20
+ * The files that changed, the code first, then data files such as JSON, then anything else.
21
+ * @type {Array<WidgetCodeChange>}
22
+ * @memberof WidgetCodeChanges
23
+ */
24
+ files: Array<WidgetCodeChange>;
25
+ /**
26
+ * How many more files changed than `files` lists. 0 when every changed file is listed.
27
+ * @type {number}
28
+ * @memberof WidgetCodeChanges
29
+ */
30
+ omittedFiles: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the WidgetCodeChanges interface.
34
+ */
35
+ export declare function instanceOfWidgetCodeChanges(value: object): value is WidgetCodeChanges;
36
+ export declare function WidgetCodeChangesFromJSON(json: any): WidgetCodeChanges;
37
+ export declare function WidgetCodeChangesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChanges;
38
+ export declare function WidgetCodeChangesToJSON(json: any): WidgetCodeChanges;
39
+ export declare function WidgetCodeChangesToJSONTyped(value?: WidgetCodeChanges | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfWidgetCodeChanges = instanceOfWidgetCodeChanges;
17
+ exports.WidgetCodeChangesFromJSON = WidgetCodeChangesFromJSON;
18
+ exports.WidgetCodeChangesFromJSONTyped = WidgetCodeChangesFromJSONTyped;
19
+ exports.WidgetCodeChangesToJSON = WidgetCodeChangesToJSON;
20
+ exports.WidgetCodeChangesToJSONTyped = WidgetCodeChangesToJSONTyped;
21
+ const WidgetCodeChange_1 = require("./WidgetCodeChange");
22
+ /**
23
+ * Check if a given object implements the WidgetCodeChanges interface.
24
+ */
25
+ function instanceOfWidgetCodeChanges(value) {
26
+ if (!('files' in value) || value['files'] === undefined)
27
+ return false;
28
+ if (!('omittedFiles' in value) || value['omittedFiles'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function WidgetCodeChangesFromJSON(json) {
33
+ return WidgetCodeChangesFromJSONTyped(json, false);
34
+ }
35
+ function WidgetCodeChangesFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'files': (json['files'].map(WidgetCodeChange_1.WidgetCodeChangeFromJSON)),
41
+ 'omittedFiles': json['omittedFiles'],
42
+ };
43
+ }
44
+ function WidgetCodeChangesToJSON(json) {
45
+ return WidgetCodeChangesToJSONTyped(json, false);
46
+ }
47
+ function WidgetCodeChangesToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'files': (value['files'].map(WidgetCodeChange_1.WidgetCodeChangeToJSON)),
53
+ 'omittedFiles': value['omittedFiles'],
54
+ };
55
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * One suggested next improvement, in `metadata.nextSteps` of a completed generation. The label is a complete request: sending it as the next message is the whole action. The first suggestion is always the recommended one; the chips saved under the reply carry no flag, so a client applies the same rule after a reload.
13
+ * One suggested next improvement, in `metadata.nextSteps` of a completed generation. The label is a complete request: sending it as the next message is the whole action. The title is the same request in at most five words, for a small pill that shows the label in full when the pointer rests on it. The first suggestion is always the recommended one; the chips saved under the reply carry the label and the title but no flag, so a client applies the same rule after a reload.
14
14
  * @export
15
15
  * @interface WidgetNextStep
16
16
  */
@@ -27,6 +27,12 @@ export interface WidgetNextStep {
27
27
  * @memberof WidgetNextStep
28
28
  */
29
29
  label: string;
30
+ /**
31
+ * The same request in at most five words and 40 characters, in the person's language ("Add a confetti burst"). Never empty: when the model gave none, the server cuts one from the label.
32
+ * @type {string}
33
+ * @memberof WidgetNextStep
34
+ */
35
+ title: string;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfWidgetNextStep(value) {
39
39
  return false;
40
40
  if (!('label' in value) || value['label'] === undefined)
41
41
  return false;
42
+ if (!('title' in value) || value['title'] === undefined)
43
+ return false;
42
44
  if (!('kind' in value) || value['kind'] === undefined)
43
45
  return false;
44
46
  if (!('recommended' in value) || value['recommended'] === undefined)
@@ -55,6 +57,7 @@ function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
55
57
  return {
56
58
  'id': json['id'],
57
59
  'label': json['label'],
60
+ 'title': json['title'],
58
61
  'kind': json['kind'],
59
62
  'recommended': json['recommended'],
60
63
  };
@@ -69,6 +72,7 @@ function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
69
72
  return {
70
73
  'id': value['id'],
71
74
  'label': value['label'],
75
+ 'title': value['title'],
72
76
  'kind': value['kind'],
73
77
  'recommended': value['recommended'],
74
78
  };
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Who made the latest change to a workflow of an organization workspace (a team), so that a teammate who
13
+ * Who made the latest change to a workflow of a team workspace, so that a teammate who
14
14
  * opens it can be told "Anna changed this at 14:32". `null` when nobody can be named (a change made before
15
- * this was recorded). Left out for a workflow of a personal workspace, and whenever it cannot be read just
15
+ * this was recorded). Left out for a workflow made for one of your managed users, and whenever it cannot be read just
16
16
  * now. A save that someone else got ahead of says it in `details` of its 409.
17
17
  *
18
18
  * @export
@@ -9,6 +9,8 @@ export * from './AdapterConnectionRemovalResponse';
9
9
  export * from './AdapterConnectionResponse';
10
10
  export * from './AddAiAnswersKnowledgeDocumentRequest';
11
11
  export * from './AddDomainRequest';
12
+ export * from './AddOrganizationDomainResponse';
13
+ export * from './AddOrganizationDomainResponseData';
12
14
  export * from './AiAnswersKnowledge';
13
15
  export * from './AiAnswersKnowledgeDocument';
14
16
  export * from './AiAnswersKnowledgeDocumentResponse';
@@ -27,6 +29,7 @@ export * from './BrandKitViewResponse';
27
29
  export * from './BrandSpacing';
28
30
  export * from './BrandTextStyle';
29
31
  export * from './Canvas';
32
+ export * from './CanvasActiveOperation';
30
33
  export * from './CanvasResponse';
31
34
  export * from './CheckCompositionAccessResponse';
32
35
  export * from './CheckCompositionAccessResponseData';
@@ -72,8 +75,8 @@ export * from './DeleteCompositionContentItemResponse';
72
75
  export * from './DeleteCompositionContentItemResponseData';
73
76
  export * from './DeleteCompositionDataSourceResponse';
74
77
  export * from './DeleteCompositionDataSourceResponseData';
75
- export * from './DeletePersonalWorkspaceDomainResponse';
76
- export * from './DeletePersonalWorkspaceDomainResponseData';
78
+ export * from './DeleteOrganizationDomainResponse';
79
+ export * from './DeleteOrganizationDomainResponseData';
77
80
  export * from './DeleteUpload200Response';
78
81
  export * from './DeleteUpload200ResponseData';
79
82
  export * from './DeleteUserApiKeyResponse';
@@ -124,10 +127,10 @@ export * from './GetManagedUsersByManagerIdResponseData';
124
127
  export * from './GetOperationResponse';
125
128
  export * from './GetOperationResponseData';
126
129
  export * from './GetOperationResponseDataMetadata';
130
+ export * from './GetOrganizationDomains200Response';
127
131
  export * from './GetPartnerBillingOverview200Response';
128
132
  export * from './GetPartnerEntitlementsResponse';
129
133
  export * from './GetPartnerEntitlementsResponseData';
130
- export * from './GetPersonalWorkspaceDomains200Response';
131
134
  export * from './GetPublicCompositionEmbed200Response';
132
135
  export * from './GetPublicCompositionEmbed200ResponseAdapters';
133
136
  export * from './GetPublicCompositionEmbed200ResponseAdaptersCaptcha';
@@ -176,6 +179,7 @@ export * from './OfferWorkflowPresetRequest';
176
179
  export * from './OfferedWorkflowPreset';
177
180
  export * from './OfferedWorkflowPresetList';
178
181
  export * from './OfferedWorkflowPresetWidget';
182
+ export * from './OrganizationDomain';
179
183
  export * from './PartnerAnalyticsByManagedUser';
180
184
  export * from './PartnerAnalyticsByManagedUserResponse';
181
185
  export * from './PartnerAnalyticsOfDay';
@@ -242,9 +246,6 @@ export * from './PatchBrandKitAssetRequest';
242
246
  export * from './PatchBrandKitRequest';
243
247
  export * from './PatchBrandKitRequestFonts';
244
248
  export * from './PatchBrandKitRequestSpacing';
245
- export * from './PersonalWorkspaceDomain';
246
- export * from './PersonalWorkspaceDomainResult';
247
- export * from './PersonalWorkspaceDomainResultResponse';
248
249
  export * from './PostBrandKitIconRequest';
249
250
  export * from './PostPublicCompositionEmbedStatus200Response';
250
251
  export * from './PostPublicCompositionEmbedStatus200ResponseData';
@@ -299,6 +300,7 @@ export * from './UpdateComposition';
299
300
  export * from './UpdateCompositionStatusRequest';
300
301
  export * from './UpdateDomainRequest';
301
302
  export * from './UpdateManagedUser';
303
+ export * from './UpdateOrganizationDomainResponse';
302
304
  export * from './UpdatePartnerEntryContextSigningRequest';
303
305
  export * from './UpdatePartnerNotificationSettingsRequest';
304
306
  export * from './UpdateUserApiKeyRequest';
@@ -313,10 +315,13 @@ export * from './ValidateCompositionContentResponse';
313
315
  export * from './ValidateCompositionContentResponseData';
314
316
  export * from './ValidateToken200Response';
315
317
  export * from './ValidateToken200ResponseData';
318
+ export * from './ValidateToken200ResponseDataWorkspace';
316
319
  export * from './Widget';
317
320
  export * from './WidgetClarification';
318
321
  export * from './WidgetClarificationOption';
319
322
  export * from './WidgetClarificationQuestion';
323
+ export * from './WidgetCodeChange';
324
+ export * from './WidgetCodeChanges';
320
325
  export * from './WidgetNextStep';
321
326
  export * from './WidgetPlan';
322
327
  export * from './WidgetPlanDecisions';