@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
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class WorkflowsApi extends runtime.BaseAPI {
56
56
  /**
57
- * 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.
57
+ * 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.
58
58
  * Archive a Workflow
59
59
  */
60
60
  async archiveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -88,7 +88,7 @@ class WorkflowsApi extends runtime.BaseAPI {
88
88
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowResponseFromJSON)(jsonValue));
89
89
  }
90
90
  /**
91
- * 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.
91
+ * 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.
92
92
  * Archive a Workflow
93
93
  */
94
94
  async archiveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -96,7 +96,7 @@ class WorkflowsApi extends runtime.BaseAPI {
96
96
  return await response.value();
97
97
  }
98
98
  /**
99
- * 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.
99
+ * 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.
100
100
  * Create a Workflow
101
101
  */
102
102
  async createWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -138,7 +138,7 @@ class WorkflowsApi extends runtime.BaseAPI {
138
138
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
139
139
  }
140
140
  /**
141
- * 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.
141
+ * 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.
142
142
  * Create a Workflow
143
143
  */
144
144
  async createWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -146,7 +146,7 @@ class WorkflowsApi extends runtime.BaseAPI {
146
146
  return await response.value();
147
147
  }
148
148
  /**
149
- * 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.
149
+ * 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.
150
150
  * Start a Workflow from a starting point
151
151
  */
152
152
  async createWorkspaceWorkflowFromPresetRaw(requestParameters, initOverrides) {
@@ -188,7 +188,7 @@ class WorkflowsApi extends runtime.BaseAPI {
188
188
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
189
189
  }
190
190
  /**
191
- * 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.
191
+ * 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.
192
192
  * Start a Workflow from a starting point
193
193
  */
194
194
  async createWorkspaceWorkflowFromPreset(requestParameters, initOverrides) {
@@ -196,7 +196,7 @@ class WorkflowsApi extends runtime.BaseAPI {
196
196
  return await response.value();
197
197
  }
198
198
  /**
199
- * 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.
199
+ * 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.
200
200
  * Delete a Workflow
201
201
  */
202
202
  async deleteWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -230,7 +230,7 @@ class WorkflowsApi extends runtime.BaseAPI {
230
230
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteWorkspaceWorkflow200ResponseFromJSON)(jsonValue));
231
231
  }
232
232
  /**
233
- * 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.
233
+ * 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.
234
234
  * Delete a Workflow
235
235
  */
236
236
  async deleteWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -238,7 +238,7 @@ class WorkflowsApi extends runtime.BaseAPI {
238
238
  return await response.value();
239
239
  }
240
240
  /**
241
- * 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.
241
+ * 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.
242
242
  * Discard the Unpublished Changes of a Workflow
243
243
  */
244
244
  async discardWorkspaceWorkflowChangesRaw(requestParameters, initOverrides) {
@@ -277,7 +277,7 @@ class WorkflowsApi extends runtime.BaseAPI {
277
277
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
278
278
  }
279
279
  /**
280
- * 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.
280
+ * 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.
281
281
  * Discard the Unpublished Changes of a Workflow
282
282
  */
283
283
  async discardWorkspaceWorkflowChanges(requestParameters, initOverrides) {
@@ -285,7 +285,7 @@ class WorkflowsApi extends runtime.BaseAPI {
285
285
  return await response.value();
286
286
  }
287
287
  /**
288
- * 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.
288
+ * 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.
289
289
  * Duplicate a Workflow
290
290
  */
291
291
  async duplicateWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -325,7 +325,7 @@ class WorkflowsApi extends runtime.BaseAPI {
325
325
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
326
326
  }
327
327
  /**
328
- * 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.
328
+ * 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.
329
329
  * Duplicate a Workflow
330
330
  */
331
331
  async duplicateWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -333,7 +333,7 @@ class WorkflowsApi extends runtime.BaseAPI {
333
333
  return await response.value();
334
334
  }
335
335
  /**
336
- * 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.
336
+ * 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.
337
337
  * Get a Workflow
338
338
  */
339
339
  async getWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -367,7 +367,7 @@ class WorkflowsApi extends runtime.BaseAPI {
367
367
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
368
368
  }
369
369
  /**
370
- * 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.
370
+ * 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.
371
371
  * Get a Workflow
372
372
  */
373
373
  async getWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -375,7 +375,7 @@ class WorkflowsApi extends runtime.BaseAPI {
375
375
  return await response.value();
376
376
  }
377
377
  /**
378
- * 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.
378
+ * 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.
379
379
  * Get what Visitors Did in a Workflow
380
380
  */
381
381
  async getWorkspaceWorkflowStatsRaw(requestParameters, initOverrides) {
@@ -418,7 +418,7 @@ class WorkflowsApi extends runtime.BaseAPI {
418
418
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetWorkspaceWorkflowStats200ResponseFromJSON)(jsonValue));
419
419
  }
420
420
  /**
421
- * 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.
421
+ * 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.
422
422
  * Get what Visitors Did in a Workflow
423
423
  */
424
424
  async getWorkspaceWorkflowStats(requestParameters, initOverrides) {
@@ -426,7 +426,7 @@ class WorkflowsApi extends runtime.BaseAPI {
426
426
  return await response.value();
427
427
  }
428
428
  /**
429
- * 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.
429
+ * 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.
430
430
  * Get a Published Version of a Workflow
431
431
  */
432
432
  async getWorkspaceWorkflowVersionRaw(requestParameters, initOverrides) {
@@ -463,7 +463,7 @@ class WorkflowsApi extends runtime.BaseAPI {
463
463
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetWorkspaceWorkflowVersion200ResponseFromJSON)(jsonValue));
464
464
  }
465
465
  /**
466
- * 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.
466
+ * 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.
467
467
  * Get a Published Version of a Workflow
468
468
  */
469
469
  async getWorkspaceWorkflowVersion(requestParameters, initOverrides) {
@@ -471,7 +471,7 @@ class WorkflowsApi extends runtime.BaseAPI {
471
471
  return await response.value();
472
472
  }
473
473
  /**
474
- * 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.
474
+ * 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.
475
475
  * List the compositions a workflow can show, and what each can do
476
476
  */
477
477
  async listWorkspaceWorkflowCompositionOptionsRaw(requestParameters, initOverrides) {
@@ -514,7 +514,7 @@ class WorkflowsApi extends runtime.BaseAPI {
514
514
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListWorkspaceWorkflowCompositionOptions200ResponseFromJSON)(jsonValue));
515
515
  }
516
516
  /**
517
- * 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.
517
+ * 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.
518
518
  * List the compositions a workflow can show, and what each can do
519
519
  */
520
520
  async listWorkspaceWorkflowCompositionOptions(requestParameters, initOverrides) {
@@ -522,7 +522,7 @@ class WorkflowsApi extends runtime.BaseAPI {
522
522
  return await response.value();
523
523
  }
524
524
  /**
525
- * 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.
525
+ * 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.
526
526
  * List the starting points for a new Workflow
527
527
  */
528
528
  async listWorkspaceWorkflowPresetsRaw(requestParameters, initOverrides) {
@@ -553,7 +553,7 @@ class WorkflowsApi extends runtime.BaseAPI {
553
553
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListWorkspaceWorkflowPresets200ResponseFromJSON)(jsonValue));
554
554
  }
555
555
  /**
556
- * 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.
556
+ * 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.
557
557
  * List the starting points for a new Workflow
558
558
  */
559
559
  async listWorkspaceWorkflowPresets(requestParameters, initOverrides) {
@@ -561,7 +561,7 @@ class WorkflowsApi extends runtime.BaseAPI {
561
561
  return await response.value();
562
562
  }
563
563
  /**
564
- * 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.
564
+ * 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.
565
565
  * List the Published Versions of a Workflow
566
566
  */
567
567
  async listWorkspaceWorkflowVersionsRaw(requestParameters, initOverrides) {
@@ -595,7 +595,7 @@ class WorkflowsApi extends runtime.BaseAPI {
595
595
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListWorkspaceWorkflowVersions200ResponseFromJSON)(jsonValue));
596
596
  }
597
597
  /**
598
- * 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.
598
+ * 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.
599
599
  * List the Published Versions of a Workflow
600
600
  */
601
601
  async listWorkspaceWorkflowVersions(requestParameters, initOverrides) {
@@ -603,7 +603,7 @@ class WorkflowsApi extends runtime.BaseAPI {
603
603
  return await response.value();
604
604
  }
605
605
  /**
606
- * 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.
606
+ * 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.
607
607
  * List the Workflows of a Workspace
608
608
  */
609
609
  async listWorkspaceWorkflowsRaw(requestParameters, initOverrides) {
@@ -649,7 +649,7 @@ class WorkflowsApi extends runtime.BaseAPI {
649
649
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListWorkspaceWorkflows200ResponseFromJSON)(jsonValue));
650
650
  }
651
651
  /**
652
- * 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.
652
+ * 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.
653
653
  * List the Workflows of a Workspace
654
654
  */
655
655
  async listWorkspaceWorkflows(requestParameters, initOverrides) {
@@ -657,7 +657,7 @@ class WorkflowsApi extends runtime.BaseAPI {
657
657
  return await response.value();
658
658
  }
659
659
  /**
660
- * 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.
660
+ * 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.
661
661
  * Pause a Workflow
662
662
  */
663
663
  async pauseWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -691,7 +691,7 @@ class WorkflowsApi extends runtime.BaseAPI {
691
691
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowResponseFromJSON)(jsonValue));
692
692
  }
693
693
  /**
694
- * 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.
694
+ * 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.
695
695
  * Pause a Workflow
696
696
  */
697
697
  async pauseWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -699,7 +699,7 @@ class WorkflowsApi extends runtime.BaseAPI {
699
699
  return await response.value();
700
700
  }
701
701
  /**
702
- * 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.
702
+ * 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.
703
703
  * Publish the Draft of a Workflow
704
704
  */
705
705
  async publishWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -744,7 +744,7 @@ class WorkflowsApi extends runtime.BaseAPI {
744
744
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublishWorkspaceWorkflow200ResponseFromJSON)(jsonValue));
745
745
  }
746
746
  /**
747
- * 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.
747
+ * 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.
748
748
  * Publish the Draft of a Workflow
749
749
  */
750
750
  async publishWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -752,7 +752,7 @@ class WorkflowsApi extends runtime.BaseAPI {
752
752
  return await response.value();
753
753
  }
754
754
  /**
755
- * 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.
755
+ * 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.
756
756
  * Restore a Version of a Workflow into the Draft
757
757
  */
758
758
  async restoreWorkspaceWorkflowVersionRaw(requestParameters, initOverrides) {
@@ -794,7 +794,7 @@ class WorkflowsApi extends runtime.BaseAPI {
794
794
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
795
795
  }
796
796
  /**
797
- * 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.
797
+ * 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.
798
798
  * Restore a Version of a Workflow into the Draft
799
799
  */
800
800
  async restoreWorkspaceWorkflowVersion(requestParameters, initOverrides) {
@@ -802,7 +802,7 @@ class WorkflowsApi extends runtime.BaseAPI {
802
802
  return await response.value();
803
803
  }
804
804
  /**
805
- * 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.
805
+ * 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.
806
806
  * Resume a Paused Workflow
807
807
  */
808
808
  async resumeWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -836,7 +836,7 @@ class WorkflowsApi extends runtime.BaseAPI {
836
836
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowResponseFromJSON)(jsonValue));
837
837
  }
838
838
  /**
839
- * 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.
839
+ * 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.
840
840
  * Resume a Paused Workflow
841
841
  */
842
842
  async resumeWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -844,7 +844,7 @@ class WorkflowsApi extends runtime.BaseAPI {
844
844
  return await response.value();
845
845
  }
846
846
  /**
847
- * 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.
847
+ * 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.
848
848
  * Save the Draft of a Workflow
849
849
  */
850
850
  async saveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -883,7 +883,7 @@ class WorkflowsApi extends runtime.BaseAPI {
883
883
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowResponseFromJSON)(jsonValue));
884
884
  }
885
885
  /**
886
- * 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.
886
+ * 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.
887
887
  * Save the Draft of a Workflow
888
888
  */
889
889
  async saveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -891,7 +891,7 @@ class WorkflowsApi extends runtime.BaseAPI {
891
891
  return await response.value();
892
892
  }
893
893
  /**
894
- * 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.
894
+ * 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.
895
895
  * Unarchive a Workflow
896
896
  */
897
897
  async unarchiveWorkspaceWorkflowRaw(requestParameters, initOverrides) {
@@ -925,7 +925,7 @@ class WorkflowsApi extends runtime.BaseAPI {
925
925
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowResponseFromJSON)(jsonValue));
926
926
  }
927
927
  /**
928
- * 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.
928
+ * 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.
929
929
  * Unarchive a Workflow
930
930
  */
931
931
  async unarchiveWorkspaceWorkflow(requestParameters, initOverrides) {
@@ -6,6 +6,7 @@ export * from './EntitlementsApi';
6
6
  export * from './InvoicesApi';
7
7
  export * from './ManagedUsersApi';
8
8
  export * from './OperationsApi';
9
+ export * from './OrganizationsApi';
9
10
  export * from './PartnersApi';
10
11
  export * from './PublicEmbedApi';
11
12
  export * from './TokensApi';
@@ -24,6 +24,7 @@ __exportStar(require("./EntitlementsApi"), exports);
24
24
  __exportStar(require("./InvoicesApi"), exports);
25
25
  __exportStar(require("./ManagedUsersApi"), exports);
26
26
  __exportStar(require("./OperationsApi"), exports);
27
+ __exportStar(require("./OrganizationsApi"), exports);
27
28
  __exportStar(require("./PartnersApi"), exports);
28
29
  __exportStar(require("./PublicEmbedApi"), exports);
29
30
  __exportStar(require("./TokensApi"), exports);
@@ -808,6 +808,9 @@ export class CompositionsApi extends runtime.BaseAPI {
808
808
  }
809
809
  const queryParameters = {};
810
810
  const headerParameters = {};
811
+ if (requestParameters['ifNoneMatch'] != null) {
812
+ headerParameters['If-None-Match'] = String(requestParameters['ifNoneMatch']);
813
+ }
811
814
  if (requestParameters['xManagedUserId'] != null) {
812
815
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
813
816
  }
@@ -18,7 +18,7 @@ import { AccountCreditBalanceResponseFromJSON, AccountCreditTransactionListRespo
18
18
  */
19
19
  export class CreditsApi extends runtime.BaseAPI {
20
20
  /**
21
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
21
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
22
22
  * Get an account\'s credit balance
23
23
  */
24
24
  async getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -43,7 +43,7 @@ export class CreditsApi extends runtime.BaseAPI {
43
43
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditBalanceResponseFromJSON(jsonValue));
44
44
  }
45
45
  /**
46
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
46
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
47
47
  * Get an account\'s credit balance
48
48
  */
49
49
  async getUserCreditBalance(requestParameters, initOverrides) {
@@ -51,7 +51,7 @@ export class CreditsApi extends runtime.BaseAPI {
51
51
  return await response.value();
52
52
  }
53
53
  /**
54
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
54
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
55
55
  * List an account\'s credit ledger
56
56
  */
57
57
  async getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -85,7 +85,7 @@ export class CreditsApi extends runtime.BaseAPI {
85
85
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditTransactionListResponseFromJSON(jsonValue));
86
86
  }
87
87
  /**
88
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
88
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
89
89
  * List an account\'s credit ledger
90
90
  */
91
91
  async getUserCreditTransactions(requestParameters, initOverrides) {
@@ -150,7 +150,7 @@ export class ManagedUsersApi extends runtime.BaseAPI {
150
150
  return await response.value();
151
151
  }
152
152
  /**
153
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
153
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is your partner workspace, the `workspaceId` the session answers with: a session has no other, and a path that names any other workspace (a team you belong to included) answers 404. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
154
154
  * Create an editor session for a managed user
155
155
  */
156
156
  async createManagedUserEditorSessionRaw(requestParameters, initOverrides) {
@@ -180,7 +180,7 @@ export class ManagedUsersApi extends runtime.BaseAPI {
180
180
  return new runtime.JSONApiResponse(response, (jsonValue) => EditorSessionResponseFromJSON(jsonValue));
181
181
  }
182
182
  /**
183
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
183
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is your partner workspace, the `workspaceId` the session answers with: a session has no other, and a path that names any other workspace (a team you belong to included) answers 404. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
184
184
  * Create an editor session for a managed user
185
185
  */
186
186
  async createManagedUserEditorSession(requestParameters, initOverrides) {