@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
@@ -18,7 +18,7 @@ import { CreateWorkspaceWorkflowFromPresetRequestToJSON, CreateWorkspaceWorkflow
18
18
  */
19
19
  export class WorkflowsApi extends runtime.BaseAPI {
20
20
  /**
21
- * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
21
+ * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. The workspace is named by its UUID. Any active member can archive.
22
22
  * Archive a Workflow
23
23
  */
24
24
  async archiveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -52,7 +52,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
52
52
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowResponseFromJSON(jsonValue));
53
53
  }
54
54
  /**
55
- * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
55
+ * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. The workspace is named by its UUID. Any active member can archive.
56
56
  * Archive a Workflow
57
57
  */
58
58
  async archiveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -60,7 +60,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
60
60
  return await response.value();
61
61
  }
62
62
  /**
63
- * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
63
+ * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. The workspace is named by its UUID. Any active member can create one.
64
64
  * Create a Workflow
65
65
  */
66
66
  async createWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -102,7 +102,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
102
102
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
103
103
  }
104
104
  /**
105
- * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
105
+ * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. The workspace is named by its UUID. Any active member can create one.
106
106
  * Create a Workflow
107
107
  */
108
108
  async createWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -110,7 +110,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
110
110
  return await response.value();
111
111
  }
112
112
  /**
113
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
113
+ * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. The workspace is named by its UUID. Any active member can start one.
114
114
  * Start a Workflow from a starting point
115
115
  */
116
116
  async createWorkspaceWorkflowFromPresetRaw(requestParameters, initOverrides) {
@@ -152,7 +152,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
152
152
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
153
153
  }
154
154
  /**
155
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
155
+ * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. The workspace is named by its UUID. Any active member can start one.
156
156
  * Start a Workflow from a starting point
157
157
  */
158
158
  async createWorkspaceWorkflowFromPreset(requestParameters, initOverrides) {
@@ -160,7 +160,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
160
160
  return await response.value();
161
161
  }
162
162
  /**
163
- * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
163
+ * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". The workspace is named by its UUID. Any active member can delete.
164
164
  * Delete a Workflow
165
165
  */
166
166
  async deleteWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -194,7 +194,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
194
194
  return new runtime.JSONApiResponse(response, (jsonValue) => DeleteWorkspaceWorkflow200ResponseFromJSON(jsonValue));
195
195
  }
196
196
  /**
197
- * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
197
+ * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". The workspace is named by its UUID. Any active member can delete.
198
198
  * Delete a Workflow
199
199
  */
200
200
  async deleteWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -202,7 +202,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
202
202
  return await response.value();
203
203
  }
204
204
  /**
205
- * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
205
+ * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can discard.
206
206
  * Discard the Unpublished Changes of a Workflow
207
207
  */
208
208
  async discardWorkspaceWorkflowChangesRaw(requestParameters, initOverrides) {
@@ -241,7 +241,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
241
241
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
242
242
  }
243
243
  /**
244
- * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
244
+ * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can discard.
245
245
  * Discard the Unpublished Changes of a Workflow
246
246
  */
247
247
  async discardWorkspaceWorkflowChanges(requestParameters, initOverrides) {
@@ -249,7 +249,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
249
249
  return await response.value();
250
250
  }
251
251
  /**
252
- * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
252
+ * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". The workspace is named by its UUID. Any active member can duplicate.
253
253
  * Duplicate a Workflow
254
254
  */
255
255
  async duplicateWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -289,7 +289,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
289
289
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
290
290
  }
291
291
  /**
292
- * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
292
+ * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". The workspace is named by its UUID. Any active member can duplicate.
293
293
  * Duplicate a Workflow
294
294
  */
295
295
  async duplicateWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -297,7 +297,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
297
297
  return await response.value();
298
298
  }
299
299
  /**
300
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
300
+ * Reads a workflow with its draft graph and the version that is live. The workspace is named by its UUID. Any active member can read it.
301
301
  * Get a Workflow
302
302
  */
303
303
  async getWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -331,7 +331,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
331
331
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
332
332
  }
333
333
  /**
334
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
334
+ * Reads a workflow with its draft graph and the version that is live. The workspace is named by its UUID. Any active member can read it.
335
335
  * Get a Workflow
336
336
  */
337
337
  async getWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -339,7 +339,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
339
339
  return await response.value();
340
340
  }
341
341
  /**
342
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
342
+ * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. The workspace is named by its UUID. Any active member can read.
343
343
  * Get what Visitors Did in a Workflow
344
344
  */
345
345
  async getWorkspaceWorkflowStatsRaw(requestParameters, initOverrides) {
@@ -382,7 +382,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
382
382
  return new runtime.JSONApiResponse(response, (jsonValue) => GetWorkspaceWorkflowStats200ResponseFromJSON(jsonValue));
383
383
  }
384
384
  /**
385
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
385
+ * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. The workspace is named by its UUID. Any active member can read.
386
386
  * Get what Visitors Did in a Workflow
387
387
  */
388
388
  async getWorkspaceWorkflowStats(requestParameters, initOverrides) {
@@ -390,7 +390,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
390
390
  return await response.value();
391
391
  }
392
392
  /**
393
- * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
393
+ * One published version with its graph, for the read-only preview and for the Runs view. The workspace is named by its UUID. Any active member can read.
394
394
  * Get a Published Version of a Workflow
395
395
  */
396
396
  async getWorkspaceWorkflowVersionRaw(requestParameters, initOverrides) {
@@ -427,7 +427,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
427
427
  return new runtime.JSONApiResponse(response, (jsonValue) => GetWorkspaceWorkflowVersion200ResponseFromJSON(jsonValue));
428
428
  }
429
429
  /**
430
- * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
430
+ * One published version with its graph, for the read-only preview and for the Runs view. The workspace is named by its UUID. Any active member can read.
431
431
  * Get a Published Version of a Workflow
432
432
  */
433
433
  async getWorkspaceWorkflowVersion(requestParameters, initOverrides) {
@@ -435,7 +435,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
435
435
  return await response.value();
436
436
  }
437
437
  /**
438
- * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
438
+ * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. The workspace is named by its UUID. Any active member can read it.
439
439
  * List the compositions a workflow can show, and what each can do
440
440
  */
441
441
  async listWorkspaceWorkflowCompositionOptionsRaw(requestParameters, initOverrides) {
@@ -478,7 +478,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
478
478
  return new runtime.JSONApiResponse(response, (jsonValue) => ListWorkspaceWorkflowCompositionOptions200ResponseFromJSON(jsonValue));
479
479
  }
480
480
  /**
481
- * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
481
+ * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. The workspace is named by its UUID. Any active member can read it.
482
482
  * List the compositions a workflow can show, and what each can do
483
483
  */
484
484
  async listWorkspaceWorkflowCompositionOptions(requestParameters, initOverrides) {
@@ -486,7 +486,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
486
486
  return await response.value();
487
487
  }
488
488
  /**
489
- * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
489
+ * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. The workspace is named by its UUID. Any active member can read the list.
490
490
  * List the starting points for a new Workflow
491
491
  */
492
492
  async listWorkspaceWorkflowPresetsRaw(requestParameters, initOverrides) {
@@ -517,7 +517,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
517
517
  return new runtime.JSONApiResponse(response, (jsonValue) => ListWorkspaceWorkflowPresets200ResponseFromJSON(jsonValue));
518
518
  }
519
519
  /**
520
- * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
520
+ * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. The workspace is named by its UUID. Any active member can read the list.
521
521
  * List the starting points for a new Workflow
522
522
  */
523
523
  async listWorkspaceWorkflowPresets(requestParameters, initOverrides) {
@@ -525,7 +525,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
525
525
  return await response.value();
526
526
  }
527
527
  /**
528
- * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
528
+ * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. The workspace is named by its UUID. Any active member can read.
529
529
  * List the Published Versions of a Workflow
530
530
  */
531
531
  async listWorkspaceWorkflowVersionsRaw(requestParameters, initOverrides) {
@@ -559,7 +559,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
559
559
  return new runtime.JSONApiResponse(response, (jsonValue) => ListWorkspaceWorkflowVersions200ResponseFromJSON(jsonValue));
560
560
  }
561
561
  /**
562
- * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
562
+ * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. The workspace is named by its UUID. Any active member can read.
563
563
  * List the Published Versions of a Workflow
564
564
  */
565
565
  async listWorkspaceWorkflowVersions(requestParameters, initOverrides) {
@@ -567,7 +567,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
567
567
  return await response.value();
568
568
  }
569
569
  /**
570
- * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
570
+ * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). The workspace is named by its UUID. Any active member can read the list.
571
571
  * List the Workflows of a Workspace
572
572
  */
573
573
  async listWorkspaceWorkflowsRaw(requestParameters, initOverrides) {
@@ -613,7 +613,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
613
613
  return new runtime.JSONApiResponse(response, (jsonValue) => ListWorkspaceWorkflows200ResponseFromJSON(jsonValue));
614
614
  }
615
615
  /**
616
- * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
616
+ * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). The workspace is named by its UUID. Any active member can read the list.
617
617
  * List the Workflows of a Workspace
618
618
  */
619
619
  async listWorkspaceWorkflows(requestParameters, initOverrides) {
@@ -621,7 +621,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
621
621
  return await response.value();
622
622
  }
623
623
  /**
624
- * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
624
+ * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. The workspace is named by its UUID. Any active member can pause.
625
625
  * Pause a Workflow
626
626
  */
627
627
  async pauseWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -655,7 +655,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
655
655
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowResponseFromJSON(jsonValue));
656
656
  }
657
657
  /**
658
- * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
658
+ * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. The workspace is named by its UUID. Any active member can pause.
659
659
  * Pause a Workflow
660
660
  */
661
661
  async pauseWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -663,7 +663,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
663
663
  return await response.value();
664
664
  }
665
665
  /**
666
- * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
666
+ * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. The workspace is named by its UUID. Any active member can publish.
667
667
  * Publish the Draft of a Workflow
668
668
  */
669
669
  async publishWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -708,7 +708,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
708
708
  return new runtime.JSONApiResponse(response, (jsonValue) => PublishWorkspaceWorkflow200ResponseFromJSON(jsonValue));
709
709
  }
710
710
  /**
711
- * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
711
+ * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. The workspace is named by its UUID. Any active member can publish.
712
712
  * Publish the Draft of a Workflow
713
713
  */
714
714
  async publishWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -716,7 +716,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
716
716
  return await response.value();
717
717
  }
718
718
  /**
719
- * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
719
+ * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can restore.
720
720
  * Restore a Version of a Workflow into the Draft
721
721
  */
722
722
  async restoreWorkspaceWorkflowVersionRaw(requestParameters, initOverrides) {
@@ -758,7 +758,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
758
758
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
759
759
  }
760
760
  /**
761
- * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
761
+ * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can restore.
762
762
  * Restore a Version of a Workflow into the Draft
763
763
  */
764
764
  async restoreWorkspaceWorkflowVersion(requestParameters, initOverrides) {
@@ -766,7 +766,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
766
766
  return await response.value();
767
767
  }
768
768
  /**
769
- * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
769
+ * Makes a paused workflow live again, on the version that was live when it was paused. The workspace is named by its UUID. Any active member can resume.
770
770
  * Resume a Paused Workflow
771
771
  */
772
772
  async resumeWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -800,7 +800,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
800
800
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowResponseFromJSON(jsonValue));
801
801
  }
802
802
  /**
803
- * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
803
+ * Makes a paused workflow live again, on the version that was live when it was paused. The workspace is named by its UUID. Any active member can resume.
804
804
  * Resume a Paused Workflow
805
805
  */
806
806
  async resumeWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -808,7 +808,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
808
808
  return await response.value();
809
809
  }
810
810
  /**
811
- * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
811
+ * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. The workspace is named by its UUID. Any active member can save.
812
812
  * Save the Draft of a Workflow
813
813
  */
814
814
  async saveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -847,7 +847,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
847
847
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowResponseFromJSON(jsonValue));
848
848
  }
849
849
  /**
850
- * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
850
+ * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. The workspace is named by its UUID. Any active member can save.
851
851
  * Save the Draft of a Workflow
852
852
  */
853
853
  async saveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -855,7 +855,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
855
855
  return await response.value();
856
856
  }
857
857
  /**
858
- * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
858
+ * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. The workspace is named by its UUID. Any active member can unarchive.
859
859
  * Unarchive a Workflow
860
860
  */
861
861
  async unarchiveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -889,7 +889,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
889
889
  return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowResponseFromJSON(jsonValue));
890
890
  }
891
891
  /**
892
- * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
892
+ * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. The workspace is named by its UUID. Any active member can unarchive.
893
893
  * Unarchive a Workflow
894
894
  */
895
895
  async unarchiveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -8,6 +8,7 @@ export * from './EntitlementsApi.js';
8
8
  export * from './InvoicesApi.js';
9
9
  export * from './ManagedUsersApi.js';
10
10
  export * from './OperationsApi.js';
11
+ export * from './OrganizationsApi.js';
11
12
  export * from './PartnersApi.js';
12
13
  export * from './PublicEmbedApi.js';
13
14
  export * from './TokensApi.js';
@@ -11,41 +11,41 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { PersonalWorkspaceDomainFromJSON, PersonalWorkspaceDomainToJSON, } from './PersonalWorkspaceDomain.js';
15
14
  import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
15
+ import { AddOrganizationDomainResponseDataFromJSON, AddOrganizationDomainResponseDataToJSON, } from './AddOrganizationDomainResponseData.js';
16
16
  /**
17
- * Check if a given object implements the GetPersonalWorkspaceDomains200Response interface.
17
+ * Check if a given object implements the AddOrganizationDomainResponse interface.
18
18
  */
19
- export function instanceOfGetPersonalWorkspaceDomains200Response(value) {
19
+ export function instanceOfAddOrganizationDomainResponse(value) {
20
20
  if (!('success' in value) || value['success'] === undefined)
21
21
  return false;
22
22
  if (!('data' in value) || value['data'] === undefined)
23
23
  return false;
24
24
  return true;
25
25
  }
26
- export function GetPersonalWorkspaceDomains200ResponseFromJSON(json) {
27
- return GetPersonalWorkspaceDomains200ResponseFromJSONTyped(json, false);
26
+ export function AddOrganizationDomainResponseFromJSON(json) {
27
+ return AddOrganizationDomainResponseFromJSONTyped(json, false);
28
28
  }
29
- export function GetPersonalWorkspaceDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function AddOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if (json == null) {
31
31
  return json;
32
32
  }
33
33
  return {
34
34
  'success': json['success'],
35
- 'data': (json['data'].map(PersonalWorkspaceDomainFromJSON)),
35
+ 'data': AddOrganizationDomainResponseDataFromJSON(json['data']),
36
36
  'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
37
37
  };
38
38
  }
39
- export function GetPersonalWorkspaceDomains200ResponseToJSON(json) {
40
- return GetPersonalWorkspaceDomains200ResponseToJSONTyped(json, false);
39
+ export function AddOrganizationDomainResponseToJSON(json) {
40
+ return AddOrganizationDomainResponseToJSONTyped(json, false);
41
41
  }
42
- export function GetPersonalWorkspaceDomains200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ export function AddOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
43
  if (value == null) {
44
44
  return value;
45
45
  }
46
46
  return {
47
47
  'success': value['success'],
48
- 'data': (value['data'].map(PersonalWorkspaceDomainToJSON)),
48
+ 'data': AddOrganizationDomainResponseDataToJSON(value['data']),
49
49
  'meta': ResponseMetaToJSON(value['meta']),
50
50
  };
51
51
  }
@@ -0,0 +1,44 @@
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 { OrganizationDomainFromJSON, OrganizationDomainToJSON, } from './OrganizationDomain.js';
15
+ /**
16
+ * Check if a given object implements the AddOrganizationDomainResponseData interface.
17
+ */
18
+ export function instanceOfAddOrganizationDomainResponseData(value) {
19
+ return true;
20
+ }
21
+ export function AddOrganizationDomainResponseDataFromJSON(json) {
22
+ return AddOrganizationDomainResponseDataFromJSONTyped(json, false);
23
+ }
24
+ export function AddOrganizationDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'message': json['message'] == null ? undefined : json['message'],
30
+ 'domain': json['domain'] == null ? undefined : OrganizationDomainFromJSON(json['domain']),
31
+ };
32
+ }
33
+ export function AddOrganizationDomainResponseDataToJSON(json) {
34
+ return AddOrganizationDomainResponseDataToJSONTyped(json, false);
35
+ }
36
+ export function AddOrganizationDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'message': value['message'],
42
+ 'domain': OrganizationDomainToJSON(value['domain']),
43
+ };
44
+ }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CanvasActiveOperationFromJSON, CanvasActiveOperationToJSON, } from './CanvasActiveOperation.js';
14
15
  /**
15
16
  * Check if a given object implements the Canvas interface.
16
17
  */
@@ -41,6 +42,7 @@ export function CanvasFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'managedUserId': json['managedUserId'] == null ? undefined : json['managedUserId'],
42
43
  'createdAt': (new Date(json['createdAt'])),
43
44
  'updatedAt': (new Date(json['updatedAt'])),
45
+ 'activeOperation': json['activeOperation'] == null ? undefined : CanvasActiveOperationFromJSON(json['activeOperation']),
44
46
  };
45
47
  }
46
48
  export function CanvasToJSON(json) {
@@ -59,5 +61,6 @@ export function CanvasToJSONTyped(value, ignoreDiscriminator = false) {
59
61
  'managedUserId': value['managedUserId'],
60
62
  'createdAt': ((value['createdAt']).toISOString()),
61
63
  'updatedAt': ((value['updatedAt']).toISOString()),
64
+ 'activeOperation': CanvasActiveOperationToJSON(value['activeOperation']),
62
65
  };
63
66
  }
@@ -0,0 +1,66 @@
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 CanvasActiveOperationStatusEnum = {
18
+ Pending: 'pending',
19
+ Running: 'running'
20
+ };
21
+ /**
22
+ * Check if a given object implements the CanvasActiveOperation interface.
23
+ */
24
+ export function instanceOfCanvasActiveOperation(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('progress' in value) || value['progress'] === undefined)
32
+ return false;
33
+ if (!('widgetId' in value) || value['widgetId'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function CanvasActiveOperationFromJSON(json) {
38
+ return CanvasActiveOperationFromJSONTyped(json, false);
39
+ }
40
+ export function CanvasActiveOperationFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'type': json['type'],
47
+ 'status': json['status'],
48
+ 'progress': json['progress'],
49
+ 'widgetId': json['widgetId'],
50
+ };
51
+ }
52
+ export function CanvasActiveOperationToJSON(json) {
53
+ return CanvasActiveOperationToJSONTyped(json, false);
54
+ }
55
+ export function CanvasActiveOperationToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'type': value['type'],
62
+ 'status': value['status'],
63
+ 'progress': value['progress'],
64
+ 'widgetId': value['widgetId'],
65
+ };
66
+ }
@@ -44,11 +44,14 @@ export function CreateWidget201ResponseDataFromJSONTyped(json, ignoreDiscriminat
44
44
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
45
45
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
46
46
  'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
47
+ 'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
47
48
  'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
48
49
  'repoId': json['repoId'] == null ? undefined : json['repoId'],
49
50
  'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
50
51
  'version': json['version'] == null ? undefined : json['version'],
51
52
  'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
53
+ 'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
54
+ 'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
52
55
  'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
53
56
  'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
54
57
  'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
@@ -76,11 +79,14 @@ export function CreateWidget201ResponseDataToJSONTyped(value, ignoreDiscriminato
76
79
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
77
80
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
78
81
  'jsPath': value['jsPath'],
82
+ 'thumbnailSvg': value['thumbnailSvg'],
79
83
  'canvasId': value['canvasId'],
80
84
  'repoId': value['repoId'],
81
85
  'databaseId': value['databaseId'],
82
86
  'version': value['version'],
83
87
  'lastCommitSha': value['lastCommitSha'],
88
+ 'hasUnpublishedChanges': value['hasUnpublishedChanges'],
89
+ 'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
84
90
  'organizationId': value['organizationId'],
85
91
  'projectFolder': value['projectFolder'],
86
92
  'workspaceType': value['workspaceType'],