@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
@@ -53,44 +53,6 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class UsersApi extends runtime.BaseAPI {
56
- /**
57
- * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
58
- * Allow a website to show your widgets
59
- */
60
- async addPersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
61
- if (requestParameters['id'] == null) {
62
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addPersonalWorkspaceDomain().');
63
- }
64
- if (requestParameters['addDomainRequest'] == null) {
65
- throw new runtime.RequiredError('addDomainRequest', 'Required parameter "addDomainRequest" was null or undefined when calling addPersonalWorkspaceDomain().');
66
- }
67
- const queryParameters = {};
68
- const headerParameters = {};
69
- headerParameters['Content-Type'] = 'application/json';
70
- if (this.configuration && this.configuration.accessToken) {
71
- const token = this.configuration.accessToken;
72
- const tokenString = await token("apiKeyAuth", []);
73
- if (tokenString) {
74
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
75
- }
76
- }
77
- const response = await this.request({
78
- path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
79
- method: 'POST',
80
- headers: headerParameters,
81
- query: queryParameters,
82
- body: (0, index_1.AddDomainRequestToJSON)(requestParameters['addDomainRequest']),
83
- }, initOverrides);
84
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
85
- }
86
- /**
87
- * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
88
- * Allow a website to show your widgets
89
- */
90
- async addPersonalWorkspaceDomain(requestParameters, initOverrides) {
91
- const response = await this.addPersonalWorkspaceDomainRaw(requestParameters, initOverrides);
92
- return await response.value();
93
- }
94
56
  /**
95
57
  * Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one with `setUserAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
96
58
  * Confirm an adapter address with the code that was emailed to it
@@ -136,7 +98,7 @@ class UsersApi extends runtime.BaseAPI {
136
98
  return await response.value();
137
99
  }
138
100
  /**
139
- * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
101
+ * Makes a new API key for a partner (or staff) account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. A customer account does not make personal keys: a customer\'s keys are workspace keys, made in Settings, under API keys, for one workspace. They take the same presets and scopes as the ones below. A request for a customer account is refused with 403 and the code `PERSONAL_API_KEY_RETIRED`. A personal key a customer made before workspace keys replaced them keeps working until it is deleted or expires, and can still be listed, renamed, switched off and deleted here. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. A partner or staff account has no limit on how many keys it holds, and its keys name no workspace: they act as the account.
140
102
  * Create an API key
141
103
  */
142
104
  async createUserApiKeyRaw(requestParameters, initOverrides) {
@@ -172,49 +134,13 @@ class UsersApi extends runtime.BaseAPI {
172
134
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreatedUserApiKeyResponseFromJSON)(jsonValue));
173
135
  }
174
136
  /**
175
- * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
137
+ * Makes a new API key for a partner (or staff) account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. A customer account does not make personal keys: a customer\'s keys are workspace keys, made in Settings, under API keys, for one workspace. They take the same presets and scopes as the ones below. A request for a customer account is refused with 403 and the code `PERSONAL_API_KEY_RETIRED`. A personal key a customer made before workspace keys replaced them keeps working until it is deleted or expires, and can still be listed, renamed, switched off and deleted here. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. A partner or staff account has no limit on how many keys it holds, and its keys name no workspace: they act as the account.
176
138
  * Create an API key
177
139
  */
178
140
  async createUserApiKey(requestParameters, initOverrides) {
179
141
  const response = await this.createUserApiKeyRaw(requestParameters, initOverrides);
180
142
  return await response.value();
181
143
  }
182
- /**
183
- * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
184
- * Stop allowing a website to show your widgets
185
- */
186
- async deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
187
- if (requestParameters['id'] == null) {
188
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deletePersonalWorkspaceDomain().');
189
- }
190
- if (requestParameters['domainId'] == null) {
191
- throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling deletePersonalWorkspaceDomain().');
192
- }
193
- const queryParameters = {};
194
- const headerParameters = {};
195
- if (this.configuration && this.configuration.accessToken) {
196
- const token = this.configuration.accessToken;
197
- const tokenString = await token("apiKeyAuth", []);
198
- if (tokenString) {
199
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
200
- }
201
- }
202
- const response = await this.request({
203
- path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
204
- method: 'DELETE',
205
- headers: headerParameters,
206
- query: queryParameters,
207
- }, initOverrides);
208
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeletePersonalWorkspaceDomainResponseFromJSON)(jsonValue));
209
- }
210
- /**
211
- * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
212
- * Stop allowing a website to show your widgets
213
- */
214
- async deletePersonalWorkspaceDomain(requestParameters, initOverrides) {
215
- const response = await this.deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
216
- return await response.value();
217
- }
218
144
  /**
219
145
  * Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
220
146
  * Delete an API key
@@ -251,39 +177,6 @@ class UsersApi extends runtime.BaseAPI {
251
177
  const response = await this.deleteUserApiKeyRaw(requestParameters, initOverrides);
252
178
  return await response.value();
253
179
  }
254
- /**
255
- * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
256
- * List the websites allowed to show your widgets
257
- */
258
- async getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides) {
259
- if (requestParameters['id'] == null) {
260
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPersonalWorkspaceDomains().');
261
- }
262
- const queryParameters = {};
263
- const headerParameters = {};
264
- if (this.configuration && this.configuration.accessToken) {
265
- const token = this.configuration.accessToken;
266
- const tokenString = await token("apiKeyAuth", []);
267
- if (tokenString) {
268
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
269
- }
270
- }
271
- const response = await this.request({
272
- path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
273
- method: 'GET',
274
- headers: headerParameters,
275
- query: queryParameters,
276
- }, initOverrides);
277
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPersonalWorkspaceDomains200ResponseFromJSON)(jsonValue));
278
- }
279
- /**
280
- * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
281
- * List the websites allowed to show your widgets
282
- */
283
- async getPersonalWorkspaceDomains(requestParameters, initOverrides) {
284
- const response = await this.getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides);
285
- return await response.value();
286
- }
287
180
  /**
288
181
  * Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
289
182
  * See which adapter keys an account has connected
@@ -472,47 +365,6 @@ class UsersApi extends runtime.BaseAPI {
472
365
  const response = await this.setUserAdapterConnectionRaw(requestParameters, initOverrides);
473
366
  return await response.value();
474
367
  }
475
- /**
476
- * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
477
- * Change a website on your list
478
- */
479
- async updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
480
- if (requestParameters['id'] == null) {
481
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePersonalWorkspaceDomain().');
482
- }
483
- if (requestParameters['domainId'] == null) {
484
- throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling updatePersonalWorkspaceDomain().');
485
- }
486
- if (requestParameters['updateDomainRequest'] == null) {
487
- throw new runtime.RequiredError('updateDomainRequest', 'Required parameter "updateDomainRequest" was null or undefined when calling updatePersonalWorkspaceDomain().');
488
- }
489
- const queryParameters = {};
490
- const headerParameters = {};
491
- headerParameters['Content-Type'] = 'application/json';
492
- if (this.configuration && this.configuration.accessToken) {
493
- const token = this.configuration.accessToken;
494
- const tokenString = await token("apiKeyAuth", []);
495
- if (tokenString) {
496
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
497
- }
498
- }
499
- const response = await this.request({
500
- path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
501
- method: 'PUT',
502
- headers: headerParameters,
503
- query: queryParameters,
504
- body: (0, index_1.UpdateDomainRequestToJSON)(requestParameters['updateDomainRequest']),
505
- }, initOverrides);
506
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
507
- }
508
- /**
509
- * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
510
- * Change a website on your list
511
- */
512
- async updatePersonalWorkspaceDomain(requestParameters, initOverrides) {
513
- const response = await this.updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
514
- return await response.value();
515
- }
516
368
  /**
517
369
  * Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
518
370
  * Rename an API key, or switch it off or on
@@ -45,12 +45,12 @@ export declare class WidgetsApi extends runtime.BaseAPI {
45
45
  */
46
46
  createCompositionFromWidget(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
47
47
  /**
48
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
48
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
49
49
  * Create Widget
50
50
  */
51
51
  createWidgetRaw(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
52
52
  /**
53
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
53
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
54
54
  * Create Widget
55
55
  */
56
56
  createWidget(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
@@ -98,7 +98,7 @@ class WidgetsApi extends runtime.BaseAPI {
98
98
  return await response.value();
99
99
  }
100
100
  /**
101
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
101
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
102
102
  * Create Widget
103
103
  */
104
104
  async createWidgetRaw(requestParameters, initOverrides) {
@@ -131,7 +131,7 @@ class WidgetsApi extends runtime.BaseAPI {
131
131
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateWidget201ResponseFromJSON)(jsonValue));
132
132
  }
133
133
  /**
134
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
134
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
135
135
  * Create Widget
136
136
  */
137
137
  async createWidget(requestParameters, initOverrides) {
@@ -149,192 +149,192 @@ export interface UnarchiveWorkspaceWorkflowRequest {
149
149
  */
150
150
  export declare class WorkflowsApi extends runtime.BaseAPI {
151
151
  /**
152
- * 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.
152
+ * 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.
153
153
  * Archive a Workflow
154
154
  */
155
155
  archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
156
156
  /**
157
- * 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.
157
+ * 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.
158
158
  * Archive a Workflow
159
159
  */
160
160
  archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
161
161
  /**
162
- * 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.
162
+ * 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.
163
163
  * Create a Workflow
164
164
  */
165
165
  createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
166
166
  /**
167
- * 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.
167
+ * 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.
168
168
  * Create a Workflow
169
169
  */
170
170
  createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
171
171
  /**
172
- * 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.
172
+ * 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.
173
173
  * Start a Workflow from a starting point
174
174
  */
175
175
  createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
176
176
  /**
177
- * 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.
177
+ * 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.
178
178
  * Start a Workflow from a starting point
179
179
  */
180
180
  createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
181
181
  /**
182
- * 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.
182
+ * 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.
183
183
  * Delete a Workflow
184
184
  */
185
185
  deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
186
186
  /**
187
- * 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.
187
+ * 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.
188
188
  * Delete a Workflow
189
189
  */
190
190
  deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
191
191
  /**
192
- * 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.
192
+ * 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.
193
193
  * Discard the Unpublished Changes of a Workflow
194
194
  */
195
195
  discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
196
196
  /**
197
- * 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.
197
+ * 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.
198
198
  * Discard the Unpublished Changes of a Workflow
199
199
  */
200
200
  discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
201
201
  /**
202
- * 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.
202
+ * 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.
203
203
  * Duplicate a Workflow
204
204
  */
205
205
  duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
206
206
  /**
207
- * 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.
207
+ * 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.
208
208
  * Duplicate a Workflow
209
209
  */
210
210
  duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
211
211
  /**
212
- * 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.
212
+ * 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.
213
213
  * Get a Workflow
214
214
  */
215
215
  getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
216
216
  /**
217
- * 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.
217
+ * 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.
218
218
  * Get a Workflow
219
219
  */
220
220
  getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
221
221
  /**
222
- * 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.
222
+ * 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.
223
223
  * Get what Visitors Did in a Workflow
224
224
  */
225
225
  getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
226
226
  /**
227
- * 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.
227
+ * 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.
228
228
  * Get what Visitors Did in a Workflow
229
229
  */
230
230
  getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
231
231
  /**
232
- * 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.
232
+ * 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.
233
233
  * Get a Published Version of a Workflow
234
234
  */
235
235
  getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
236
236
  /**
237
- * 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.
237
+ * 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.
238
238
  * Get a Published Version of a Workflow
239
239
  */
240
240
  getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
241
241
  /**
242
- * 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.
242
+ * 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.
243
243
  * List the compositions a workflow can show, and what each can do
244
244
  */
245
245
  listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
246
246
  /**
247
- * 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.
247
+ * 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.
248
248
  * List the compositions a workflow can show, and what each can do
249
249
  */
250
250
  listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
251
251
  /**
252
- * 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.
252
+ * 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.
253
253
  * List the starting points for a new Workflow
254
254
  */
255
255
  listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
256
256
  /**
257
- * 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.
257
+ * 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.
258
258
  * List the starting points for a new Workflow
259
259
  */
260
260
  listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
261
261
  /**
262
- * 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.
262
+ * 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.
263
263
  * List the Published Versions of a Workflow
264
264
  */
265
265
  listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
266
266
  /**
267
- * 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.
267
+ * 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.
268
268
  * List the Published Versions of a Workflow
269
269
  */
270
270
  listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
271
271
  /**
272
- * 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.
272
+ * 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.
273
273
  * List the Workflows of a Workspace
274
274
  */
275
275
  listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
276
276
  /**
277
- * 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.
277
+ * 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.
278
278
  * List the Workflows of a Workspace
279
279
  */
280
280
  listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
281
281
  /**
282
- * 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.
282
+ * 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.
283
283
  * Pause a Workflow
284
284
  */
285
285
  pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
286
286
  /**
287
- * 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.
287
+ * 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.
288
288
  * Pause a Workflow
289
289
  */
290
290
  pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
291
291
  /**
292
- * 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.
292
+ * 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.
293
293
  * Publish the Draft of a Workflow
294
294
  */
295
295
  publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
296
296
  /**
297
- * 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.
297
+ * 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.
298
298
  * Publish the Draft of a Workflow
299
299
  */
300
300
  publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
301
301
  /**
302
- * 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.
302
+ * 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.
303
303
  * Restore a Version of a Workflow into the Draft
304
304
  */
305
305
  restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
306
306
  /**
307
- * 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.
307
+ * 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.
308
308
  * Restore a Version of a Workflow into the Draft
309
309
  */
310
310
  restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
311
311
  /**
312
- * 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.
312
+ * 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.
313
313
  * Resume a Paused Workflow
314
314
  */
315
315
  resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
316
316
  /**
317
- * 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.
317
+ * 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.
318
318
  * Resume a Paused Workflow
319
319
  */
320
320
  resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
321
321
  /**
322
- * 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.
322
+ * 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.
323
323
  * Save the Draft of a Workflow
324
324
  */
325
325
  saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
326
326
  /**
327
- * 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.
327
+ * 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.
328
328
  * Save the Draft of a Workflow
329
329
  */
330
330
  saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
331
331
  /**
332
- * 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.
332
+ * 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.
333
333
  * Unarchive a Workflow
334
334
  */
335
335
  unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
336
336
  /**
337
- * 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.
337
+ * 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.
338
338
  * Unarchive a Workflow
339
339
  */
340
340
  unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;