@widgetic/api-sdk-ts 1.11.111 → 1.11.151

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 (274) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +42 -42
  3. package/dist/apis/BrandKitApi.js +42 -42
  4. package/dist/apis/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +257 -155
  6. package/dist/apis/CompositionsApi.js +338 -134
  7. package/dist/apis/CreditsApi.d.ts +11 -11
  8. package/dist/apis/CreditsApi.js +5 -5
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/OrganizationsApi.d.ts +74 -0
  17. package/dist/apis/OrganizationsApi.js +205 -0
  18. package/dist/apis/PartnersApi.d.ts +133 -133
  19. package/dist/apis/PartnersApi.js +19 -19
  20. package/dist/apis/PublicEmbedApi.d.ts +57 -42
  21. package/dist/apis/PublicEmbedApi.js +64 -29
  22. package/dist/apis/TokensApi.d.ts +2 -0
  23. package/dist/apis/TokensApi.js +2 -0
  24. package/dist/apis/UploadsApi.d.ts +40 -40
  25. package/dist/apis/UploadsApi.js +60 -60
  26. package/dist/apis/UsersApi.d.ts +30 -86
  27. package/dist/apis/UsersApi.js +6 -154
  28. package/dist/apis/WidgetsApi.d.ts +25 -25
  29. package/dist/apis/WidgetsApi.js +38 -38
  30. package/dist/apis/WorkflowsApi.d.ts +115 -157
  31. package/dist/apis/WorkflowsApi.js +111 -221
  32. package/dist/apis/index.d.ts +1 -2
  33. package/dist/apis/index.js +1 -2
  34. package/dist/esm/apis/BrandKitApi.js +41 -41
  35. package/dist/esm/apis/CompositionsApi.js +338 -134
  36. package/dist/esm/apis/CreditsApi.js +6 -6
  37. package/dist/esm/apis/InvoicesApi.js +1 -1
  38. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  39. package/dist/esm/apis/OperationsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.js +168 -0
  41. package/dist/esm/apis/PartnersApi.js +20 -20
  42. package/dist/esm/apis/PublicEmbedApi.js +65 -30
  43. package/dist/esm/apis/TokensApi.js +2 -0
  44. package/dist/esm/apis/UploadsApi.js +60 -60
  45. package/dist/esm/apis/UsersApi.js +7 -155
  46. package/dist/esm/apis/WidgetsApi.js +39 -39
  47. package/dist/esm/apis/WorkflowsApi.js +111 -221
  48. package/dist/esm/apis/index.js +1 -2
  49. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  50. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  51. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  52. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  53. package/dist/esm/models/AddOrganizationDomainResponse.js +51 -0
  54. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  55. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  56. package/dist/esm/models/BrandKitTokens.js +3 -0
  57. package/dist/esm/models/BrandTextStyle.js +65 -0
  58. package/dist/esm/models/Canvas.js +3 -0
  59. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  60. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  61. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  62. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  63. package/dist/esm/models/{CreateCompositionFromWidget201Response.js → DeleteOrganizationDomainResponse.js} +11 -11
  64. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  65. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  66. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  67. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  68. package/dist/esm/models/EditorSession.js +4 -0
  69. package/dist/esm/models/GetOperationResponse.js +51 -0
  70. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
  71. package/dist/esm/models/GetOperationResponseDataMetadata.js +69 -0
  72. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  73. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  74. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  75. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  76. package/dist/esm/models/NewWidget.js +0 -1
  77. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  78. package/dist/esm/models/PatchBrandKitRequest.js +3 -0
  79. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  80. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  81. package/dist/esm/models/UpdateOrganizationDomainResponse.js +51 -0
  82. package/dist/esm/models/Upload.js +2 -0
  83. package/dist/esm/models/UserApiKey.js +2 -0
  84. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  85. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  86. package/dist/esm/models/Widget.js +6 -0
  87. package/dist/esm/models/WidgetClarification.js +52 -0
  88. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  89. package/dist/esm/models/WidgetClarificationQuestion.js +64 -0
  90. package/dist/esm/models/WidgetCodeChange.js +68 -0
  91. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  92. package/dist/esm/models/WidgetNextStep.js +71 -0
  93. package/dist/esm/models/WidgetPlan.js +61 -0
  94. package/dist/esm/models/WidgetPlanDecisions.js +72 -0
  95. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  96. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  97. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  98. package/dist/esm/models/WidgetPlanTask.js +80 -0
  99. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  100. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  101. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  102. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  103. package/dist/esm/models/WorkflowStats.js +3 -0
  104. package/dist/esm/models/index.js +43 -25
  105. package/dist/esm/runtime.js +1 -1
  106. package/dist/models/AccountCreditBalance.d.ts +2 -2
  107. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  108. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  109. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  110. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  111. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  112. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  113. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  114. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  115. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  116. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  117. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  118. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  119. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  120. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  121. package/dist/models/BrandKitTokens.d.ts +8 -1
  122. package/dist/models/BrandKitTokens.js +3 -0
  123. package/dist/models/BrandKitView.d.ts +1 -1
  124. package/dist/models/BrandTextStyle.d.ts +59 -0
  125. package/dist/models/BrandTextStyle.js +73 -0
  126. package/dist/models/Canvas.d.ts +7 -0
  127. package/dist/models/Canvas.js +3 -0
  128. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  129. package/dist/models/CanvasActiveOperation.js +74 -0
  130. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  131. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  132. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  133. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  134. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  135. package/dist/models/CreateWidget201ResponseData.js +6 -0
  136. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  137. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  138. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  139. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  140. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  141. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  142. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  143. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  144. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  145. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  146. package/dist/models/EditorSession.d.ts +7 -0
  147. package/dist/models/EditorSession.js +4 -0
  148. package/dist/models/GetOperationResponse.d.ts +46 -0
  149. package/dist/models/GetOperationResponse.js +58 -0
  150. package/dist/models/GetOperationResponseData.d.ts +86 -0
  151. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
  152. package/dist/models/GetOperationResponseDataMetadata.d.ts +87 -0
  153. package/dist/models/GetOperationResponseDataMetadata.js +77 -0
  154. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  155. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  156. package/dist/models/ListUploads200Response.d.ts +46 -0
  157. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  158. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  159. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  160. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  161. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  162. package/dist/models/NewEditorSession.d.ts +1 -1
  163. package/dist/models/NewWidget.d.ts +2 -3
  164. package/dist/models/NewWidget.js +0 -1
  165. package/dist/models/OrganizationDomain.d.ts +56 -0
  166. package/dist/models/OrganizationDomain.js +56 -0
  167. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  168. package/dist/models/PatchBrandKitRequest.d.ts +7 -0
  169. package/dist/models/PatchBrandKitRequest.js +3 -0
  170. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  171. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  172. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  173. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  174. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  175. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  176. package/dist/models/Upload.d.ts +7 -1
  177. package/dist/models/Upload.js +2 -0
  178. package/dist/models/UploadLimits.d.ts +3 -3
  179. package/dist/models/UserApiKey.d.ts +6 -0
  180. package/dist/models/UserApiKey.js +2 -0
  181. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  182. package/dist/models/ValidateToken200ResponseData.js +3 -0
  183. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  184. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  185. package/dist/models/Widget.d.ts +18 -0
  186. package/dist/models/Widget.js +6 -0
  187. package/dist/models/WidgetClarification.d.ts +45 -0
  188. package/dist/models/WidgetClarification.js +59 -0
  189. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  190. package/dist/models/WidgetClarificationOption.js +58 -0
  191. package/dist/models/WidgetClarificationQuestion.d.ts +63 -0
  192. package/dist/models/WidgetClarificationQuestion.js +71 -0
  193. package/dist/models/WidgetCodeChange.d.ts +70 -0
  194. package/dist/models/WidgetCodeChange.js +76 -0
  195. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  196. package/dist/models/WidgetCodeChanges.js +55 -0
  197. package/dist/models/WidgetNextStep.d.ts +69 -0
  198. package/dist/models/WidgetNextStep.js +79 -0
  199. package/dist/models/WidgetPlan.d.ts +58 -0
  200. package/dist/models/WidgetPlan.js +68 -0
  201. package/dist/models/WidgetPlanDecisions.d.ts +77 -0
  202. package/dist/models/WidgetPlanDecisions.js +79 -0
  203. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  204. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  205. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  206. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  207. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  208. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  209. package/dist/models/WidgetPlanTask.d.ts +77 -0
  210. package/dist/models/WidgetPlanTask.js +88 -0
  211. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  212. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  213. package/dist/models/WorkflowDetailResponse.js +58 -0
  214. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  215. package/dist/models/WorkflowFailureReason.js +57 -0
  216. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  217. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  218. package/dist/models/WorkflowResponse.d.ts +46 -0
  219. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  220. package/dist/models/WorkflowStats.d.ts +16 -1
  221. package/dist/models/WorkflowStats.js +3 -0
  222. package/dist/models/index.d.ts +43 -25
  223. package/dist/models/index.js +43 -25
  224. package/dist/runtime.d.ts +2 -2
  225. package/dist/runtime.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/apis/PartnerApi.d.ts +0 -2707
  228. package/dist/apis/PartnerApi.js +0 -7073
  229. package/dist/apis/WorkspacesApi.d.ts +0 -352
  230. package/dist/apis/WorkspacesApi.js +0 -946
  231. package/dist/esm/apis/PartnerApi.js +0 -7036
  232. package/dist/esm/apis/WorkspacesApi.js +0 -909
  233. package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +0 -51
  234. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  235. package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +0 -51
  236. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  237. package/dist/esm/models/PersonalWorkspaceDomainResultResponse.js +0 -51
  238. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  239. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  240. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  241. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  242. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  243. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  244. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  245. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  246. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  247. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  248. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  249. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  250. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  251. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  252. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  253. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  254. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  255. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  256. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  257. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  258. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  259. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  260. package/dist/models/OperationsIdGetResponseData.d.ts +0 -88
  261. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  262. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  263. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  264. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  265. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  266. package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
  267. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  268. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  269. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  270. package/dist/models/UploadsGet200Response.d.ts +0 -46
  271. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  272. package/dist/models/UploadsIdDelete200Response.js +0 -58
  273. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  274. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -10,73 +10,70 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateWorkspaceWorkflowFromPreset201Response, CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, DeleteWorkspaceWorkflow200Response, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListPartnerWorkflowPresets200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, OfferWorkflowPresetRequest, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, RemovePartnerWorkflowPreset200Response, SaveWorkspaceWorkflow200Response, SaveWorkspaceWorkflowRequest, SetPartnerWorkflowPreset200Response } from '../models/index';
14
- export interface ArchiveWorkspaceWorkflow0Request {
13
+ import type { CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, DeleteWorkspaceWorkflow200Response, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, SaveWorkspaceWorkflowRequest, WorkflowDetailResponse, WorkflowResponse } from '../models/index';
14
+ export interface ArchiveWorkspaceWorkflowRequest {
15
15
  workspaceId: string;
16
16
  workflowId: string;
17
17
  xManagedUserId?: string;
18
18
  xManagedUserExternalId?: string;
19
19
  }
20
- export interface CreateWorkspaceWorkflowFromPreset0Request {
20
+ export interface CreateWorkspaceWorkflowOperationRequest {
21
21
  workspaceId: string;
22
22
  idempotencyKey: string;
23
- createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
23
+ createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
24
24
  xManagedUserId?: string;
25
25
  xManagedUserExternalId?: string;
26
26
  }
27
- export interface CreateWorkspaceWorkflow0Request {
27
+ export interface CreateWorkspaceWorkflowFromPresetOperationRequest {
28
28
  workspaceId: string;
29
29
  idempotencyKey: string;
30
- createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
30
+ createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
31
31
  xManagedUserId?: string;
32
32
  xManagedUserExternalId?: string;
33
33
  }
34
- export interface DeleteWorkspaceWorkflow0Request {
34
+ export interface DeleteWorkspaceWorkflowRequest {
35
35
  workspaceId: string;
36
36
  workflowId: string;
37
37
  xManagedUserId?: string;
38
38
  xManagedUserExternalId?: string;
39
39
  }
40
- export interface DiscardWorkspaceWorkflowChanges0Request {
40
+ export interface DiscardWorkspaceWorkflowChangesRequest {
41
41
  workspaceId: string;
42
42
  workflowId: string;
43
43
  publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
44
44
  xManagedUserId?: string;
45
45
  xManagedUserExternalId?: string;
46
46
  }
47
- export interface DuplicateWorkspaceWorkflow0Request {
47
+ export interface DuplicateWorkspaceWorkflowRequest {
48
48
  workspaceId: string;
49
49
  workflowId: string;
50
50
  idempotencyKey: string;
51
51
  xManagedUserId?: string;
52
52
  xManagedUserExternalId?: string;
53
53
  }
54
- export interface GetWorkspaceWorkflowStats0Request {
54
+ export interface GetWorkspaceWorkflowRequest {
55
55
  workspaceId: string;
56
56
  workflowId: string;
57
- versionId?: string;
58
- from?: string;
59
- to?: string;
60
57
  xManagedUserId?: string;
61
58
  xManagedUserExternalId?: string;
62
59
  }
63
- export interface GetWorkspaceWorkflowVersion0Request {
60
+ export interface GetWorkspaceWorkflowStatsRequest {
64
61
  workspaceId: string;
65
62
  workflowId: string;
66
- versionId: string;
63
+ versionId?: string;
64
+ from?: string;
65
+ to?: string;
67
66
  xManagedUserId?: string;
68
67
  xManagedUserExternalId?: string;
69
68
  }
70
- export interface GetWorkspaceWorkflow0Request {
69
+ export interface GetWorkspaceWorkflowVersionRequest {
71
70
  workspaceId: string;
72
71
  workflowId: string;
72
+ versionId: string;
73
73
  xManagedUserId?: string;
74
74
  xManagedUserExternalId?: string;
75
75
  }
76
- export interface ListPartnerWorkflowPresets1Request {
77
- partnerId: string;
78
- }
79
- export interface ListWorkspaceWorkflowCompositionOptions0Request {
76
+ export interface ListWorkspaceWorkflowCompositionOptionsRequest {
80
77
  workspaceId: string;
81
78
  search?: string;
82
79
  ids?: string;
@@ -85,34 +82,34 @@ export interface ListWorkspaceWorkflowCompositionOptions0Request {
85
82
  xManagedUserId?: string;
86
83
  xManagedUserExternalId?: string;
87
84
  }
88
- export interface ListWorkspaceWorkflowPresets0Request {
85
+ export interface ListWorkspaceWorkflowPresetsRequest {
89
86
  workspaceId: string;
90
87
  xManagedUserId?: string;
91
88
  xManagedUserExternalId?: string;
92
89
  }
93
- export interface ListWorkspaceWorkflowVersions0Request {
90
+ export interface ListWorkspaceWorkflowVersionsRequest {
94
91
  workspaceId: string;
95
92
  workflowId: string;
96
93
  xManagedUserId?: string;
97
94
  xManagedUserExternalId?: string;
98
95
  }
99
- export interface ListWorkspaceWorkflows0Request {
96
+ export interface ListWorkspaceWorkflowsRequest {
100
97
  workspaceId: string;
101
98
  search?: string;
102
- status?: ListWorkspaceWorkflows0StatusEnum;
99
+ status?: ListWorkspaceWorkflowsStatusEnum;
103
100
  sort?: string;
104
101
  limit?: number;
105
102
  offset?: number;
106
103
  xManagedUserId?: string;
107
104
  xManagedUserExternalId?: string;
108
105
  }
109
- export interface PauseWorkspaceWorkflow0Request {
106
+ export interface PauseWorkspaceWorkflowRequest {
110
107
  workspaceId: string;
111
108
  workflowId: string;
112
109
  xManagedUserId?: string;
113
110
  xManagedUserExternalId?: string;
114
111
  }
115
- export interface PublishWorkspaceWorkflow0Request {
112
+ export interface PublishWorkspaceWorkflowOperationRequest {
116
113
  workspaceId: string;
117
114
  workflowId: string;
118
115
  idempotencyKey: string;
@@ -120,11 +117,7 @@ export interface PublishWorkspaceWorkflow0Request {
120
117
  xManagedUserId?: string;
121
118
  xManagedUserExternalId?: string;
122
119
  }
123
- export interface RemovePartnerWorkflowPreset1Request {
124
- partnerId: string;
125
- key: string;
126
- }
127
- export interface RestoreWorkspaceWorkflowVersion0Request {
120
+ export interface RestoreWorkspaceWorkflowVersionRequest {
128
121
  workspaceId: string;
129
122
  workflowId: string;
130
123
  versionId: string;
@@ -132,25 +125,20 @@ export interface RestoreWorkspaceWorkflowVersion0Request {
132
125
  xManagedUserId?: string;
133
126
  xManagedUserExternalId?: string;
134
127
  }
135
- export interface ResumeWorkspaceWorkflow0Request {
128
+ export interface ResumeWorkspaceWorkflowRequest {
136
129
  workspaceId: string;
137
130
  workflowId: string;
138
131
  xManagedUserId?: string;
139
132
  xManagedUserExternalId?: string;
140
133
  }
141
- export interface SaveWorkspaceWorkflow0Request {
134
+ export interface SaveWorkspaceWorkflowOperationRequest {
142
135
  workspaceId: string;
143
136
  workflowId: string;
144
137
  saveWorkspaceWorkflowRequest: SaveWorkspaceWorkflowRequest;
145
138
  xManagedUserId?: string;
146
139
  xManagedUserExternalId?: string;
147
140
  }
148
- export interface SetPartnerWorkflowPreset1Request {
149
- partnerId: string;
150
- key: string;
151
- offerWorkflowPresetRequest: OfferWorkflowPresetRequest;
152
- }
153
- export interface UnarchiveWorkspaceWorkflow0Request {
141
+ export interface UnarchiveWorkspaceWorkflowRequest {
154
142
  workspaceId: string;
155
143
  workflowId: string;
156
144
  xManagedUserId?: string;
@@ -161,234 +149,204 @@ export interface UnarchiveWorkspaceWorkflow0Request {
161
149
  */
162
150
  export declare class WorkflowsApi extends runtime.BaseAPI {
163
151
  /**
164
- * 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.
165
153
  * Archive a Workflow
166
154
  */
167
- archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
155
+ archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
168
156
  /**
169
- * 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.
170
158
  * Archive a Workflow
171
159
  */
172
- archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
160
+ archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
173
161
  /**
174
- * 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.
175
- * Start a Workflow from a starting point
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
+ * Create a Workflow
176
164
  */
177
- createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
165
+ createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
178
166
  /**
179
- * 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.
180
- * Start a Workflow from a starting point
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
+ * Create a Workflow
181
169
  */
182
- createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
170
+ createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
183
171
  /**
184
- * 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.
185
- * Create a Workflow
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
+ * Start a Workflow from a starting point
186
174
  */
187
- createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
175
+ createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
188
176
  /**
189
- * 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.
190
- * Create a Workflow
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
+ * Start a Workflow from a starting point
191
179
  */
192
- createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
180
+ createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
193
181
  /**
194
- * 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.
195
183
  * Delete a Workflow
196
184
  */
197
- deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
185
+ deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
198
186
  /**
199
- * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
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.
200
188
  * Delete a Workflow
201
189
  */
202
- deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
190
+ deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
203
191
  /**
204
- * 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.
205
193
  * Discard the Unpublished Changes of a Workflow
206
194
  */
207
- discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
195
+ discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
208
196
  /**
209
- * 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.
210
198
  * Discard the Unpublished Changes of a Workflow
211
199
  */
212
- discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
200
+ discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
213
201
  /**
214
- * 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.
215
203
  * Duplicate a Workflow
216
204
  */
217
- duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
205
+ duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
218
206
  /**
219
- * 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.
220
208
  * Duplicate a Workflow
221
209
  */
222
- duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
210
+ duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
223
211
  /**
224
- * 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. 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.
225
- * Get what Visitors Did in a Workflow
226
- */
227
- getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStats0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
228
- /**
229
- * 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. 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.
230
- * Get what Visitors Did in a Workflow
231
- */
232
- getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStats0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
233
- /**
234
- * 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.
235
- * Get a Published Version of a Workflow
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
+ * Get a Workflow
236
214
  */
237
- getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
215
+ getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
238
216
  /**
239
- * 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.
240
- * Get a Published Version of a Workflow
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
+ * Get a Workflow
241
219
  */
242
- getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
220
+ getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
243
221
  /**
244
- * 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.
245
- * Get a Workflow
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
+ * Get what Visitors Did in a Workflow
246
224
  */
247
- getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
225
+ getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
248
226
  /**
249
- * 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.
250
- * Get a Workflow
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
+ * Get what Visitors Did in a Workflow
251
229
  */
252
- getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
230
+ getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
253
231
  /**
254
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
255
- * List the workflows a partner offers as places to start
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
+ * Get a Published Version of a Workflow
256
234
  */
257
- listPartnerWorkflowPresetsRaw(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerWorkflowPresets200Response>>;
235
+ getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
258
236
  /**
259
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
260
- * List the workflows a partner offers as places to start
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
+ * Get a Published Version of a Workflow
261
239
  */
262
- listPartnerWorkflowPresets(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerWorkflowPresets200Response>;
240
+ getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
263
241
  /**
264
- * 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.
265
243
  * List the compositions a workflow can show, and what each can do
266
244
  */
267
- listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
245
+ listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
268
246
  /**
269
- * 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.
270
248
  * List the compositions a workflow can show, and what each can do
271
249
  */
272
- listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
250
+ listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
273
251
  /**
274
- * 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.
275
253
  * List the starting points for a new Workflow
276
254
  */
277
- listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
255
+ listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
278
256
  /**
279
- * 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.
280
258
  * List the starting points for a new Workflow
281
259
  */
282
- listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
260
+ listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
283
261
  /**
284
- * 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.
285
263
  * List the Published Versions of a Workflow
286
264
  */
287
- listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
265
+ listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
288
266
  /**
289
- * 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.
290
268
  * List the Published Versions of a Workflow
291
269
  */
292
- listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
270
+ listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
293
271
  /**
294
- * 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.
295
273
  * List the Workflows of a Workspace
296
274
  */
297
- listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
275
+ listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
298
276
  /**
299
- * 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.
300
278
  * List the Workflows of a Workspace
301
279
  */
302
- listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
280
+ listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
303
281
  /**
304
- * 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.
305
283
  * Pause a Workflow
306
284
  */
307
- pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
285
+ pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
308
286
  /**
309
- * 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.
310
288
  * Pause a Workflow
311
289
  */
312
- pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
290
+ pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
313
291
  /**
314
- * 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.
315
293
  * Publish the Draft of a Workflow
316
294
  */
317
- publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
295
+ publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
318
296
  /**
319
- * 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.
320
298
  * Publish the Draft of a Workflow
321
299
  */
322
- publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
300
+ publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
323
301
  /**
324
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
325
- * Stop offering a workflow as a place to start
326
- */
327
- removePartnerWorkflowPresetRaw(requestParameters: RemovePartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemovePartnerWorkflowPreset200Response>>;
328
- /**
329
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
330
- * Stop offering a workflow as a place to start
331
- */
332
- removePartnerWorkflowPreset(requestParameters: RemovePartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemovePartnerWorkflowPreset200Response>;
333
- /**
334
- * 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.
335
303
  * Restore a Version of a Workflow into the Draft
336
304
  */
337
- restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
305
+ restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
338
306
  /**
339
- * 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.
340
308
  * Restore a Version of a Workflow into the Draft
341
309
  */
342
- restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
310
+ restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
343
311
  /**
344
- * 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.
345
313
  * Resume a Paused Workflow
346
314
  */
347
- resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
315
+ resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
348
316
  /**
349
- * 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.
350
318
  * Resume a Paused Workflow
351
319
  */
352
- resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
320
+ resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
353
321
  /**
354
- * 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.
355
323
  * Save the Draft of a Workflow
356
324
  */
357
- saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
325
+ saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
358
326
  /**
359
- * 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.
360
328
  * Save the Draft of a Workflow
361
329
  */
362
- saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
363
- /**
364
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
365
- * Offer a workflow as a place to start, or replace what a key offers
366
- */
367
- setPartnerWorkflowPresetRaw(requestParameters: SetPartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetPartnerWorkflowPreset200Response>>;
368
- /**
369
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
370
- * Offer a workflow as a place to start, or replace what a key offers
371
- */
372
- setPartnerWorkflowPreset(requestParameters: SetPartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetPartnerWorkflowPreset200Response>;
330
+ saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
373
331
  /**
374
- * 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.
375
333
  * Unarchive a Workflow
376
334
  */
377
- unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
335
+ unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
378
336
  /**
379
- * 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.
380
338
  * Unarchive a Workflow
381
339
  */
382
- unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
340
+ unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
383
341
  }
384
342
  /**
385
343
  * @export
386
344
  */
387
- export declare const ListWorkspaceWorkflows0StatusEnum: {
345
+ export declare const ListWorkspaceWorkflowsStatusEnum: {
388
346
  readonly Draft: 'draft';
389
347
  readonly Live: 'live';
390
348
  readonly Paused: 'paused';
391
349
  readonly Archived: 'archived';
392
350
  readonly All: 'all';
393
351
  };
394
- export type ListWorkspaceWorkflows0StatusEnum = typeof ListWorkspaceWorkflows0StatusEnum[keyof typeof ListWorkspaceWorkflows0StatusEnum];
352
+ export type ListWorkspaceWorkflowsStatusEnum = typeof ListWorkspaceWorkflowsStatusEnum[keyof typeof ListWorkspaceWorkflowsStatusEnum];