@widgetic/api-sdk-ts 1.11.64 → 1.11.111

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 (321) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +130 -0
  3. package/dist/apis/BrandKitApi.js +381 -0
  4. package/dist/apis/CompositionsApi.d.ts +24 -6
  5. package/dist/apis/CompositionsApi.js +73 -6
  6. package/dist/apis/ManagedUsersApi.d.ts +2 -2
  7. package/dist/apis/ManagedUsersApi.js +2 -2
  8. package/dist/apis/PartnerApi.d.ts +614 -21
  9. package/dist/apis/PartnerApi.js +1767 -169
  10. package/dist/apis/PartnersApi.d.ts +63 -5
  11. package/dist/apis/PartnersApi.js +158 -4
  12. package/dist/apis/PublicEmbedApi.d.ts +62 -7
  13. package/dist/apis/PublicEmbedApi.js +126 -6
  14. package/dist/apis/UsersApi.d.ts +19 -3
  15. package/dist/apis/UsersApi.js +46 -2
  16. package/dist/apis/WorkflowsApi.d.ts +394 -0
  17. package/dist/apis/WorkflowsApi.js +1056 -0
  18. package/dist/apis/WorkspacesApi.d.ts +352 -0
  19. package/dist/apis/WorkspacesApi.js +946 -0
  20. package/dist/apis/index.d.ts +3 -0
  21. package/dist/apis/index.js +3 -0
  22. package/dist/esm/apis/BrandKitApi.js +344 -0
  23. package/dist/esm/apis/CompositionsApi.js +73 -6
  24. package/dist/esm/apis/ManagedUsersApi.js +2 -2
  25. package/dist/esm/apis/PartnerApi.js +1767 -169
  26. package/dist/esm/apis/PartnersApi.js +159 -5
  27. package/dist/esm/apis/PublicEmbedApi.js +127 -7
  28. package/dist/esm/apis/UsersApi.js +47 -3
  29. package/dist/esm/apis/WorkflowsApi.js +1019 -0
  30. package/dist/esm/apis/WorkspacesApi.js +909 -0
  31. package/dist/esm/apis/index.js +3 -0
  32. package/dist/esm/models/AdapterConnection.js +12 -0
  33. package/dist/esm/models/BrandColor.js +64 -0
  34. package/dist/esm/models/BrandFont.js +72 -0
  35. package/dist/esm/models/BrandKitAssetView.js +96 -0
  36. package/dist/esm/models/BrandKitFigmaSource.js +59 -0
  37. package/dist/esm/models/BrandKitTokens.js +56 -0
  38. package/dist/esm/models/BrandKitTokensFonts.js +48 -0
  39. package/dist/esm/models/BrandKitView.js +75 -0
  40. package/dist/esm/models/BrandKitViewOwner.js +54 -0
  41. package/dist/esm/models/BrandKitViewResponse.js +51 -0
  42. package/dist/esm/models/BrandSpacing.js +71 -0
  43. package/dist/esm/models/Composition.js +5 -0
  44. package/dist/esm/models/CompositionLastEditedBy.js +43 -0
  45. package/dist/esm/models/ConfirmAdapterConnectionRequest.js +43 -0
  46. package/dist/esm/models/CreateWidget201ResponseData.js +2 -4
  47. package/dist/esm/models/CreateWorkspaceWorkflowFromPreset201Response.js +51 -0
  48. package/dist/esm/models/CreateWorkspaceWorkflowFromPresetRequest.js +45 -0
  49. package/dist/esm/models/CreateWorkspaceWorkflowRequest.js +47 -0
  50. package/dist/esm/models/DeleteWorkspaceWorkflow200Response.js +51 -0
  51. package/dist/esm/models/EditorSession.js +2 -1
  52. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +9 -0
  53. package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdapters.js +44 -0
  54. package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +41 -0
  55. package/dist/esm/models/GetPublicCompositionEmbed200ResponseEntries.js +43 -0
  56. package/dist/esm/models/GetPublicCompositionEmbed200ResponseMedia.js +41 -0
  57. package/dist/esm/models/GetPublicWorkflow200Response.js +51 -0
  58. package/dist/esm/models/GetWorkspaceWorkflowStats200Response.js +51 -0
  59. package/dist/esm/models/GetWorkspaceWorkflowVersion200Response.js +51 -0
  60. package/dist/esm/models/ListPartnerWorkflowPresets200Response.js +51 -0
  61. package/dist/esm/models/ListWorkspaceWorkflowCompositionOptions200Response.js +51 -0
  62. package/dist/esm/models/ListWorkspaceWorkflowPresets200Response.js +51 -0
  63. package/dist/esm/models/ListWorkspaceWorkflowVersions200Response.js +51 -0
  64. package/dist/esm/models/ListWorkspaceWorkflows200Response.js +51 -0
  65. package/dist/esm/models/NewEditorSession.js +2 -1
  66. package/dist/esm/models/OfferWorkflowPresetRequest.js +49 -0
  67. package/dist/esm/models/OfferedWorkflowPreset.js +101 -0
  68. package/dist/esm/models/OfferedWorkflowPresetList.js +44 -0
  69. package/dist/esm/models/OfferedWorkflowPresetWidget.js +51 -0
  70. package/dist/esm/models/PartnerNotificationEventType.js +5 -1
  71. package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
  72. package/dist/esm/models/PatchBrandKitRequest.js +54 -0
  73. package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
  74. package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
  75. package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
  76. package/dist/esm/models/PublicWorkflow.js +73 -0
  77. package/dist/esm/models/PublicWorkflowEventsAccepted.js +47 -0
  78. package/dist/esm/models/PublicWorkflowEventsRequest.js +53 -0
  79. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +57 -0
  80. package/dist/esm/models/PublicWorkflowEventsRequestHeightsInner.js +47 -0
  81. package/dist/esm/models/PublicWorkflowTranslation.js +47 -0
  82. package/dist/esm/models/PublishWorkspaceWorkflow200Response.js +51 -0
  83. package/dist/esm/models/PublishWorkspaceWorkflowRequest.js +43 -0
  84. package/dist/esm/models/PutBrandKitRequest.js +49 -0
  85. package/dist/esm/models/RemovePartnerWorkflowPreset200Response.js +51 -0
  86. package/dist/esm/models/ReportPublicWorkflowEvents200Response.js +51 -0
  87. package/dist/esm/models/SaveWorkspaceWorkflow200Response.js +51 -0
  88. package/dist/esm/models/SaveWorkspaceWorkflowRequest.js +50 -0
  89. package/dist/esm/models/SetPartnerWorkflowPreset200Response.js +51 -0
  90. package/dist/esm/models/Widget.js +2 -4
  91. package/dist/esm/models/Workflow.js +96 -0
  92. package/dist/esm/models/WorkflowCompositionAction.js +53 -0
  93. package/dist/esm/models/WorkflowCompositionField.js +63 -0
  94. package/dist/esm/models/WorkflowCompositionOption.js +67 -0
  95. package/dist/esm/models/WorkflowCompositionOptionActions.js +57 -0
  96. package/dist/esm/models/WorkflowCompositionOptionInputs.js +61 -0
  97. package/dist/esm/models/WorkflowCompositionOptions.js +56 -0
  98. package/dist/esm/models/WorkflowConditionCase.js +61 -0
  99. package/dist/esm/models/WorkflowConditionTest.js +67 -0
  100. package/dist/esm/models/WorkflowCounter.js +47 -0
  101. package/dist/esm/models/WorkflowDetail.js +113 -0
  102. package/dist/esm/models/WorkflowDetailAllOfLastEditedBy.js +43 -0
  103. package/dist/esm/models/WorkflowEdge.js +55 -0
  104. package/dist/esm/models/WorkflowFieldReference.js +66 -0
  105. package/dist/esm/models/WorkflowGraph.js +59 -0
  106. package/dist/esm/models/WorkflowIssue.js +62 -0
  107. package/dist/esm/models/WorkflowList.js +56 -0
  108. package/dist/esm/models/WorkflowNode.js +68 -0
  109. package/dist/esm/models/WorkflowNodePosition.js +47 -0
  110. package/dist/esm/models/WorkflowPresetChoice.js +60 -0
  111. package/dist/esm/models/WorkflowPresetChoices.js +44 -0
  112. package/dist/esm/models/WorkflowPresetRemoval.js +43 -0
  113. package/dist/esm/models/WorkflowPresetWidget.js +47 -0
  114. package/dist/esm/models/WorkflowPublishResult.js +54 -0
  115. package/dist/esm/models/WorkflowRemoved.js +43 -0
  116. package/dist/esm/models/WorkflowSchedule.js +66 -0
  117. package/dist/esm/models/WorkflowStats.js +68 -0
  118. package/dist/esm/models/WorkflowStatus.js +48 -0
  119. package/dist/esm/models/WorkflowTrigger.js +64 -0
  120. package/dist/esm/models/WorkflowTriggerValuesInner.js +55 -0
  121. package/dist/esm/models/WorkflowVersion.js +62 -0
  122. package/dist/esm/models/WorkflowVersionDetail.js +71 -0
  123. package/dist/esm/models/WorkflowVersionList.js +44 -0
  124. package/dist/esm/models/WorkflowVersionPublishedBy.js +43 -0
  125. package/dist/esm/models/index.js +85 -0
  126. package/dist/esm/runtime.js +1 -1
  127. package/dist/models/AdapterConnection.d.ts +18 -0
  128. package/dist/models/AdapterConnection.js +12 -0
  129. package/dist/models/BrandColor.d.ts +60 -0
  130. package/dist/models/BrandColor.js +72 -0
  131. package/dist/models/BrandFont.d.ts +73 -0
  132. package/dist/models/BrandFont.js +80 -0
  133. package/dist/models/BrandKitAssetView.d.ts +130 -0
  134. package/dist/models/BrandKitAssetView.js +104 -0
  135. package/dist/models/BrandKitFigmaSource.d.ts +56 -0
  136. package/dist/models/BrandKitFigmaSource.js +66 -0
  137. package/dist/models/BrandKitTokens.d.ts +53 -0
  138. package/dist/models/BrandKitTokens.js +63 -0
  139. package/dist/models/BrandKitTokensFonts.d.ts +51 -0
  140. package/dist/models/BrandKitTokensFonts.js +55 -0
  141. package/dist/models/BrandKitView.d.ts +90 -0
  142. package/dist/models/BrandKitView.js +82 -0
  143. package/dist/models/BrandKitViewOwner.d.ts +46 -0
  144. package/dist/models/BrandKitViewOwner.js +62 -0
  145. package/dist/models/BrandKitViewResponse.d.ts +46 -0
  146. package/dist/models/BrandKitViewResponse.js +58 -0
  147. package/dist/models/BrandSpacing.d.ts +74 -0
  148. package/dist/models/BrandSpacing.js +78 -0
  149. package/dist/models/Composition.d.ts +13 -0
  150. package/dist/models/Composition.js +5 -0
  151. package/dist/models/CompositionLastEditedBy.d.ts +52 -0
  152. package/dist/models/CompositionLastEditedBy.js +50 -0
  153. package/dist/models/ConfirmAdapterConnectionRequest.d.ts +32 -0
  154. package/dist/models/ConfirmAdapterConnectionRequest.js +50 -0
  155. package/dist/models/CreateWidget201ResponseData.d.ts +2 -8
  156. package/dist/models/CreateWidget201ResponseData.js +2 -4
  157. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +46 -0
  158. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +58 -0
  159. package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.d.ts +38 -0
  160. package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.js +52 -0
  161. package/dist/models/CreateWorkspaceWorkflowRequest.d.ts +44 -0
  162. package/dist/models/CreateWorkspaceWorkflowRequest.js +54 -0
  163. package/dist/models/DeleteWorkspaceWorkflow200Response.d.ts +46 -0
  164. package/dist/models/DeleteWorkspaceWorkflow200Response.js +58 -0
  165. package/dist/models/EditorSession.d.ts +1 -0
  166. package/dist/models/EditorSession.js +2 -1
  167. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +22 -1
  168. package/dist/models/GetPublicCompositionEmbed200Response.js +9 -0
  169. package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.d.ts +39 -0
  170. package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.js +51 -0
  171. package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.d.ts +32 -0
  172. package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +48 -0
  173. package/dist/models/GetPublicCompositionEmbed200ResponseEntries.d.ts +38 -0
  174. package/dist/models/GetPublicCompositionEmbed200ResponseEntries.js +50 -0
  175. package/dist/models/GetPublicCompositionEmbed200ResponseMedia.d.ts +32 -0
  176. package/dist/models/GetPublicCompositionEmbed200ResponseMedia.js +48 -0
  177. package/dist/models/GetPublicWorkflow200Response.d.ts +46 -0
  178. package/dist/models/GetPublicWorkflow200Response.js +58 -0
  179. package/dist/models/GetWorkspaceWorkflowStats200Response.d.ts +46 -0
  180. package/dist/models/GetWorkspaceWorkflowStats200Response.js +58 -0
  181. package/dist/models/GetWorkspaceWorkflowVersion200Response.d.ts +46 -0
  182. package/dist/models/GetWorkspaceWorkflowVersion200Response.js +58 -0
  183. package/dist/models/ListPartnerWorkflowPresets200Response.d.ts +46 -0
  184. package/dist/models/ListPartnerWorkflowPresets200Response.js +58 -0
  185. package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.d.ts +46 -0
  186. package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.js +58 -0
  187. package/dist/models/ListWorkspaceWorkflowPresets200Response.d.ts +46 -0
  188. package/dist/models/ListWorkspaceWorkflowPresets200Response.js +58 -0
  189. package/dist/models/ListWorkspaceWorkflowVersions200Response.d.ts +46 -0
  190. package/dist/models/ListWorkspaceWorkflowVersions200Response.js +58 -0
  191. package/dist/models/ListWorkspaceWorkflows200Response.d.ts +46 -0
  192. package/dist/models/ListWorkspaceWorkflows200Response.js +58 -0
  193. package/dist/models/NewComposition.d.ts +16 -3
  194. package/dist/models/NewEditorSession.d.ts +2 -1
  195. package/dist/models/NewEditorSession.js +2 -1
  196. package/dist/models/OfferWorkflowPresetRequest.d.ts +50 -0
  197. package/dist/models/OfferWorkflowPresetRequest.js +56 -0
  198. package/dist/models/OfferedWorkflowPreset.d.ts +120 -0
  199. package/dist/models/OfferedWorkflowPreset.js +109 -0
  200. package/dist/models/OfferedWorkflowPresetList.d.ts +33 -0
  201. package/dist/models/OfferedWorkflowPresetList.js +51 -0
  202. package/dist/models/OfferedWorkflowPresetWidget.d.ts +44 -0
  203. package/dist/models/OfferedWorkflowPresetWidget.js +58 -0
  204. package/dist/models/PartnerNotification.d.ts +1 -1
  205. package/dist/models/PartnerNotificationEventType.d.ts +4 -0
  206. package/dist/models/PartnerNotificationEventType.js +5 -1
  207. package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
  208. package/dist/models/PatchBrandKitAssetRequest.js +76 -0
  209. package/dist/models/PatchBrandKitRequest.d.ts +65 -0
  210. package/dist/models/PatchBrandKitRequest.js +61 -0
  211. package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
  212. package/dist/models/PatchBrandKitRequestFonts.js +55 -0
  213. package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
  214. package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
  215. package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
  216. package/dist/models/PostBrandKitIconRequest.js +54 -0
  217. package/dist/models/PublicWorkflow.d.ts +109 -0
  218. package/dist/models/PublicWorkflow.js +81 -0
  219. package/dist/models/PublicWorkflowEventsAccepted.d.ts +44 -0
  220. package/dist/models/PublicWorkflowEventsAccepted.js +54 -0
  221. package/dist/models/PublicWorkflowEventsRequest.d.ts +59 -0
  222. package/dist/models/PublicWorkflowEventsRequest.js +60 -0
  223. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +53 -0
  224. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +65 -0
  225. package/dist/models/PublicWorkflowEventsRequestHeightsInner.d.ts +38 -0
  226. package/dist/models/PublicWorkflowEventsRequestHeightsInner.js +54 -0
  227. package/dist/models/PublicWorkflowTranslation.d.ts +40 -0
  228. package/dist/models/PublicWorkflowTranslation.js +54 -0
  229. package/dist/models/PublishWorkspaceWorkflow200Response.d.ts +46 -0
  230. package/dist/models/PublishWorkspaceWorkflow200Response.js +58 -0
  231. package/dist/models/PublishWorkspaceWorkflowRequest.d.ts +32 -0
  232. package/dist/models/PublishWorkspaceWorkflowRequest.js +50 -0
  233. package/dist/models/PutBrandKitRequest.d.ts +46 -0
  234. package/dist/models/PutBrandKitRequest.js +56 -0
  235. package/dist/models/RemovePartnerWorkflowPreset200Response.d.ts +46 -0
  236. package/dist/models/RemovePartnerWorkflowPreset200Response.js +58 -0
  237. package/dist/models/ReportPublicWorkflowEvents200Response.d.ts +46 -0
  238. package/dist/models/ReportPublicWorkflowEvents200Response.js +58 -0
  239. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +46 -0
  240. package/dist/models/SaveWorkspaceWorkflow200Response.js +58 -0
  241. package/dist/models/SaveWorkspaceWorkflowRequest.d.ts +51 -0
  242. package/dist/models/SaveWorkspaceWorkflowRequest.js +57 -0
  243. package/dist/models/SetAdapterConnectionRequest.d.ts +1 -1
  244. package/dist/models/SetPartnerWorkflowPreset200Response.d.ts +46 -0
  245. package/dist/models/SetPartnerWorkflowPreset200Response.js +58 -0
  246. package/dist/models/UpdateComposition.d.ts +3 -1
  247. package/dist/models/Widget.d.ts +2 -8
  248. package/dist/models/Widget.js +2 -4
  249. package/dist/models/Workflow.d.ts +133 -0
  250. package/dist/models/Workflow.js +103 -0
  251. package/dist/models/WorkflowCompositionAction.d.ts +52 -0
  252. package/dist/models/WorkflowCompositionAction.js +60 -0
  253. package/dist/models/WorkflowCompositionField.d.ts +59 -0
  254. package/dist/models/WorkflowCompositionField.js +71 -0
  255. package/dist/models/WorkflowCompositionOption.d.ts +73 -0
  256. package/dist/models/WorkflowCompositionOption.js +74 -0
  257. package/dist/models/WorkflowCompositionOptionActions.d.ts +55 -0
  258. package/dist/models/WorkflowCompositionOptionActions.js +65 -0
  259. package/dist/models/WorkflowCompositionOptionInputs.d.ts +64 -0
  260. package/dist/models/WorkflowCompositionOptionInputs.js +69 -0
  261. package/dist/models/WorkflowCompositionOptions.d.ts +51 -0
  262. package/dist/models/WorkflowCompositionOptions.js +63 -0
  263. package/dist/models/WorkflowConditionCase.d.ts +61 -0
  264. package/dist/models/WorkflowConditionCase.js +69 -0
  265. package/dist/models/WorkflowConditionTest.d.ts +68 -0
  266. package/dist/models/WorkflowConditionTest.js +75 -0
  267. package/dist/models/WorkflowCounter.d.ts +38 -0
  268. package/dist/models/WorkflowCounter.js +54 -0
  269. package/dist/models/WorkflowDetail.d.ts +166 -0
  270. package/dist/models/WorkflowDetail.js +120 -0
  271. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +42 -0
  272. package/dist/models/WorkflowDetailAllOfLastEditedBy.js +50 -0
  273. package/dist/models/WorkflowEdge.d.ts +50 -0
  274. package/dist/models/WorkflowEdge.js +62 -0
  275. package/dist/models/WorkflowFieldReference.d.ts +63 -0
  276. package/dist/models/WorkflowFieldReference.js +74 -0
  277. package/dist/models/WorkflowGraph.d.ts +53 -0
  278. package/dist/models/WorkflowGraph.js +67 -0
  279. package/dist/models/WorkflowIssue.d.ts +72 -0
  280. package/dist/models/WorkflowIssue.js +70 -0
  281. package/dist/models/WorkflowList.d.ts +51 -0
  282. package/dist/models/WorkflowList.js +63 -0
  283. package/dist/models/WorkflowNode.d.ts +83 -0
  284. package/dist/models/WorkflowNode.js +76 -0
  285. package/dist/models/WorkflowNodePosition.d.ts +38 -0
  286. package/dist/models/WorkflowNodePosition.js +54 -0
  287. package/dist/models/WorkflowPresetChoice.d.ts +60 -0
  288. package/dist/models/WorkflowPresetChoice.js +67 -0
  289. package/dist/models/WorkflowPresetChoices.d.ts +33 -0
  290. package/dist/models/WorkflowPresetChoices.js +51 -0
  291. package/dist/models/WorkflowPresetRemoval.d.ts +32 -0
  292. package/dist/models/WorkflowPresetRemoval.js +50 -0
  293. package/dist/models/WorkflowPresetWidget.d.ts +38 -0
  294. package/dist/models/WorkflowPresetWidget.js +54 -0
  295. package/dist/models/WorkflowPublishResult.d.ts +47 -0
  296. package/dist/models/WorkflowPublishResult.js +61 -0
  297. package/dist/models/WorkflowRemoved.d.ts +32 -0
  298. package/dist/models/WorkflowRemoved.js +50 -0
  299. package/dist/models/WorkflowSchedule.d.ts +69 -0
  300. package/dist/models/WorkflowSchedule.js +74 -0
  301. package/dist/models/WorkflowStats.d.ts +77 -0
  302. package/dist/models/WorkflowStats.js +75 -0
  303. package/dist/models/WorkflowStatus.d.ts +30 -0
  304. package/dist/models/WorkflowStatus.js +56 -0
  305. package/dist/models/WorkflowTrigger.d.ts +77 -0
  306. package/dist/models/WorkflowTrigger.js +72 -0
  307. package/dist/models/WorkflowTriggerValuesInner.d.ts +47 -0
  308. package/dist/models/WorkflowTriggerValuesInner.js +63 -0
  309. package/dist/models/WorkflowVersion.d.ts +63 -0
  310. package/dist/models/WorkflowVersion.js +69 -0
  311. package/dist/models/WorkflowVersionDetail.d.ts +76 -0
  312. package/dist/models/WorkflowVersionDetail.js +78 -0
  313. package/dist/models/WorkflowVersionList.d.ts +33 -0
  314. package/dist/models/WorkflowVersionList.js +51 -0
  315. package/dist/models/WorkflowVersionPublishedBy.d.ts +38 -0
  316. package/dist/models/WorkflowVersionPublishedBy.js +50 -0
  317. package/dist/models/index.d.ts +85 -0
  318. package/dist/models/index.js +85 -0
  319. package/dist/runtime.d.ts +2 -2
  320. package/dist/runtime.js +1 -1
  321. package/package.json +2 -2
@@ -10,11 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddDomainRequest, CreateUserApiKeyRequest, CreatedUserApiKeyResponse, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, GetPersonalWorkspaceDomains200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, PersonalWorkspaceDomainResultResponse, RemoveUserAdapterConnection200Response, SetAdapterConnectionRequest, SetUserAdapterConnection200Response, UpdateDomainRequest, UpdateUserApiKeyRequest, UserApiKeyResponse } from '../models/index';
13
+ import type { AddDomainRequest, ConfirmAdapterConnectionRequest, CreateUserApiKeyRequest, CreatedUserApiKeyResponse, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, GetPersonalWorkspaceDomains200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, PersonalWorkspaceDomainResultResponse, RemoveUserAdapterConnection200Response, SetAdapterConnectionRequest, SetUserAdapterConnection200Response, UpdateDomainRequest, UpdateUserApiKeyRequest, UserApiKeyResponse } from '../models/index';
14
14
  export interface AddPersonalWorkspaceDomain0Request {
15
15
  id: string;
16
16
  addDomainRequest: AddDomainRequest;
17
17
  }
18
+ export interface ConfirmUserAdapterConnection0Request {
19
+ userId: string;
20
+ adapterId: string;
21
+ credentialKey: string;
22
+ confirmAdapterConnectionRequest: ConfirmAdapterConnectionRequest;
23
+ }
18
24
  export interface CreateUserApiKey0Request {
19
25
  id: string;
20
26
  idempotencyKey: string;
@@ -77,6 +83,16 @@ export declare class UsersApi extends runtime.BaseAPI {
77
83
  * Allow a website to show your widgets
78
84
  */
79
85
  addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
86
+ /**
87
+ * 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.
88
+ * Confirm an adapter address with the code that was emailed to it
89
+ */
90
+ confirmUserAdapterConnectionRaw(requestParameters: ConfirmUserAdapterConnection0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
91
+ /**
92
+ * 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.
93
+ * Confirm an adapter address with the code that was emailed to it
94
+ */
95
+ confirmUserAdapterConnection(requestParameters: ConfirmUserAdapterConnection0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
80
96
  /**
81
97
  * 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).
82
98
  * Create an API key
@@ -158,12 +174,12 @@ export declare class UsersApi extends runtime.BaseAPI {
158
174
  */
159
175
  removeUserAdapterConnection(requestParameters: RemoveUserAdapterConnection0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveUserAdapterConnection200Response>;
160
176
  /**
161
- * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
177
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to do. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
162
178
  * Connect an adapter key to an account
163
179
  */
164
180
  setUserAdapterConnectionRaw(requestParameters: SetUserAdapterConnection0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
165
181
  /**
166
- * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
182
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to do. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
167
183
  * Connect an adapter key to an account
168
184
  */
169
185
  setUserAdapterConnection(requestParameters: SetUserAdapterConnection0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
@@ -91,6 +91,50 @@ class UsersApi extends runtime.BaseAPI {
91
91
  const response = await this.addPersonalWorkspaceDomainRaw(requestParameters, initOverrides);
92
92
  return await response.value();
93
93
  }
94
+ /**
95
+ * 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
+ * Confirm an adapter address with the code that was emailed to it
97
+ */
98
+ async confirmUserAdapterConnectionRaw(requestParameters, initOverrides) {
99
+ if (requestParameters['userId'] == null) {
100
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling confirmUserAdapterConnection().');
101
+ }
102
+ if (requestParameters['adapterId'] == null) {
103
+ throw new runtime.RequiredError('adapterId', 'Required parameter "adapterId" was null or undefined when calling confirmUserAdapterConnection().');
104
+ }
105
+ if (requestParameters['credentialKey'] == null) {
106
+ throw new runtime.RequiredError('credentialKey', 'Required parameter "credentialKey" was null or undefined when calling confirmUserAdapterConnection().');
107
+ }
108
+ if (requestParameters['confirmAdapterConnectionRequest'] == null) {
109
+ throw new runtime.RequiredError('confirmAdapterConnectionRequest', 'Required parameter "confirmAdapterConnectionRequest" was null or undefined when calling confirmUserAdapterConnection().');
110
+ }
111
+ const queryParameters = {};
112
+ const headerParameters = {};
113
+ headerParameters['Content-Type'] = 'application/json';
114
+ if (this.configuration && this.configuration.accessToken) {
115
+ const token = this.configuration.accessToken;
116
+ const tokenString = await token("apiKeyAuth", []);
117
+ if (tokenString) {
118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
119
+ }
120
+ }
121
+ const response = await this.request({
122
+ path: `/users/{userId}/adapter-connections/{adapterId}/{credentialKey}/confirm`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"adapterId"}}`, encodeURIComponent(String(requestParameters['adapterId']))).replace(`{${"credentialKey"}}`, encodeURIComponent(String(requestParameters['credentialKey']))),
123
+ method: 'POST',
124
+ headers: headerParameters,
125
+ query: queryParameters,
126
+ body: (0, index_1.ConfirmAdapterConnectionRequestToJSON)(requestParameters['confirmAdapterConnectionRequest']),
127
+ }, initOverrides);
128
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetUserAdapterConnection200ResponseFromJSON)(jsonValue));
129
+ }
130
+ /**
131
+ * 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.
132
+ * Confirm an adapter address with the code that was emailed to it
133
+ */
134
+ async confirmUserAdapterConnection(requestParameters, initOverrides) {
135
+ const response = await this.confirmUserAdapterConnectionRaw(requestParameters, initOverrides);
136
+ return await response.value();
137
+ }
94
138
  /**
95
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).
96
140
  * Create an API key
@@ -385,7 +429,7 @@ class UsersApi extends runtime.BaseAPI {
385
429
  return await response.value();
386
430
  }
387
431
  /**
388
- * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
432
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to do. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
389
433
  * Connect an adapter key to an account
390
434
  */
391
435
  async setUserAdapterConnectionRaw(requestParameters, initOverrides) {
@@ -421,7 +465,7 @@ class UsersApi extends runtime.BaseAPI {
421
465
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetUserAdapterConnection200ResponseFromJSON)(jsonValue));
422
466
  }
423
467
  /**
424
- * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
468
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to do. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
425
469
  * Connect an adapter key to an account
426
470
  */
427
471
  async setUserAdapterConnection(requestParameters, initOverrides) {
@@ -0,0 +1,394 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * 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 {
15
+ workspaceId: string;
16
+ workflowId: string;
17
+ xManagedUserId?: string;
18
+ xManagedUserExternalId?: string;
19
+ }
20
+ export interface CreateWorkspaceWorkflowFromPreset0Request {
21
+ workspaceId: string;
22
+ idempotencyKey: string;
23
+ createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
24
+ xManagedUserId?: string;
25
+ xManagedUserExternalId?: string;
26
+ }
27
+ export interface CreateWorkspaceWorkflow0Request {
28
+ workspaceId: string;
29
+ idempotencyKey: string;
30
+ createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
31
+ xManagedUserId?: string;
32
+ xManagedUserExternalId?: string;
33
+ }
34
+ export interface DeleteWorkspaceWorkflow0Request {
35
+ workspaceId: string;
36
+ workflowId: string;
37
+ xManagedUserId?: string;
38
+ xManagedUserExternalId?: string;
39
+ }
40
+ export interface DiscardWorkspaceWorkflowChanges0Request {
41
+ workspaceId: string;
42
+ workflowId: string;
43
+ publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
44
+ xManagedUserId?: string;
45
+ xManagedUserExternalId?: string;
46
+ }
47
+ export interface DuplicateWorkspaceWorkflow0Request {
48
+ workspaceId: string;
49
+ workflowId: string;
50
+ idempotencyKey: string;
51
+ xManagedUserId?: string;
52
+ xManagedUserExternalId?: string;
53
+ }
54
+ export interface GetWorkspaceWorkflowStats0Request {
55
+ workspaceId: string;
56
+ workflowId: string;
57
+ versionId?: string;
58
+ from?: string;
59
+ to?: string;
60
+ xManagedUserId?: string;
61
+ xManagedUserExternalId?: string;
62
+ }
63
+ export interface GetWorkspaceWorkflowVersion0Request {
64
+ workspaceId: string;
65
+ workflowId: string;
66
+ versionId: string;
67
+ xManagedUserId?: string;
68
+ xManagedUserExternalId?: string;
69
+ }
70
+ export interface GetWorkspaceWorkflow0Request {
71
+ workspaceId: string;
72
+ workflowId: string;
73
+ xManagedUserId?: string;
74
+ xManagedUserExternalId?: string;
75
+ }
76
+ export interface ListPartnerWorkflowPresets1Request {
77
+ partnerId: string;
78
+ }
79
+ export interface ListWorkspaceWorkflowCompositionOptions0Request {
80
+ workspaceId: string;
81
+ search?: string;
82
+ ids?: string;
83
+ limit?: number;
84
+ offset?: number;
85
+ xManagedUserId?: string;
86
+ xManagedUserExternalId?: string;
87
+ }
88
+ export interface ListWorkspaceWorkflowPresets0Request {
89
+ workspaceId: string;
90
+ xManagedUserId?: string;
91
+ xManagedUserExternalId?: string;
92
+ }
93
+ export interface ListWorkspaceWorkflowVersions0Request {
94
+ workspaceId: string;
95
+ workflowId: string;
96
+ xManagedUserId?: string;
97
+ xManagedUserExternalId?: string;
98
+ }
99
+ export interface ListWorkspaceWorkflows0Request {
100
+ workspaceId: string;
101
+ search?: string;
102
+ status?: ListWorkspaceWorkflows0StatusEnum;
103
+ sort?: string;
104
+ limit?: number;
105
+ offset?: number;
106
+ xManagedUserId?: string;
107
+ xManagedUserExternalId?: string;
108
+ }
109
+ export interface PauseWorkspaceWorkflow0Request {
110
+ workspaceId: string;
111
+ workflowId: string;
112
+ xManagedUserId?: string;
113
+ xManagedUserExternalId?: string;
114
+ }
115
+ export interface PublishWorkspaceWorkflow0Request {
116
+ workspaceId: string;
117
+ workflowId: string;
118
+ idempotencyKey: string;
119
+ publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
120
+ xManagedUserId?: string;
121
+ xManagedUserExternalId?: string;
122
+ }
123
+ export interface RemovePartnerWorkflowPreset1Request {
124
+ partnerId: string;
125
+ key: string;
126
+ }
127
+ export interface RestoreWorkspaceWorkflowVersion0Request {
128
+ workspaceId: string;
129
+ workflowId: string;
130
+ versionId: string;
131
+ publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
132
+ xManagedUserId?: string;
133
+ xManagedUserExternalId?: string;
134
+ }
135
+ export interface ResumeWorkspaceWorkflow0Request {
136
+ workspaceId: string;
137
+ workflowId: string;
138
+ xManagedUserId?: string;
139
+ xManagedUserExternalId?: string;
140
+ }
141
+ export interface SaveWorkspaceWorkflow0Request {
142
+ workspaceId: string;
143
+ workflowId: string;
144
+ saveWorkspaceWorkflowRequest: SaveWorkspaceWorkflowRequest;
145
+ xManagedUserId?: string;
146
+ xManagedUserExternalId?: string;
147
+ }
148
+ export interface SetPartnerWorkflowPreset1Request {
149
+ partnerId: string;
150
+ key: string;
151
+ offerWorkflowPresetRequest: OfferWorkflowPresetRequest;
152
+ }
153
+ export interface UnarchiveWorkspaceWorkflow0Request {
154
+ workspaceId: string;
155
+ workflowId: string;
156
+ xManagedUserId?: string;
157
+ xManagedUserExternalId?: string;
158
+ }
159
+ /**
160
+ *
161
+ */
162
+ export declare class WorkflowsApi extends runtime.BaseAPI {
163
+ /**
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.
165
+ * Archive a Workflow
166
+ */
167
+ archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
168
+ /**
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.
170
+ * Archive a Workflow
171
+ */
172
+ archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
173
+ /**
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
176
+ */
177
+ createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
178
+ /**
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
181
+ */
182
+ createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
183
+ /**
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
186
+ */
187
+ createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
188
+ /**
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
191
+ */
192
+ createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
193
+ /**
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.
195
+ * Delete a Workflow
196
+ */
197
+ deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
198
+ /**
199
+ * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
200
+ * Delete a Workflow
201
+ */
202
+ deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
203
+ /**
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.
205
+ * Discard the Unpublished Changes of a Workflow
206
+ */
207
+ discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
208
+ /**
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.
210
+ * Discard the Unpublished Changes of a Workflow
211
+ */
212
+ discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
213
+ /**
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.
215
+ * Duplicate a Workflow
216
+ */
217
+ duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
218
+ /**
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.
220
+ * Duplicate a Workflow
221
+ */
222
+ duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
223
+ /**
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
236
+ */
237
+ getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
238
+ /**
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
241
+ */
242
+ getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
243
+ /**
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
246
+ */
247
+ getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
248
+ /**
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
251
+ */
252
+ getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
253
+ /**
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
256
+ */
257
+ listPartnerWorkflowPresetsRaw(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerWorkflowPresets200Response>>;
258
+ /**
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
261
+ */
262
+ listPartnerWorkflowPresets(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerWorkflowPresets200Response>;
263
+ /**
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.
265
+ * List the compositions a workflow can show, and what each can do
266
+ */
267
+ listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
268
+ /**
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.
270
+ * List the compositions a workflow can show, and what each can do
271
+ */
272
+ listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
273
+ /**
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.
275
+ * List the starting points for a new Workflow
276
+ */
277
+ listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
278
+ /**
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.
280
+ * List the starting points for a new Workflow
281
+ */
282
+ listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
283
+ /**
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.
285
+ * List the Published Versions of a Workflow
286
+ */
287
+ listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
288
+ /**
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.
290
+ * List the Published Versions of a Workflow
291
+ */
292
+ listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
293
+ /**
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.
295
+ * List the Workflows of a Workspace
296
+ */
297
+ listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
298
+ /**
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.
300
+ * List the Workflows of a Workspace
301
+ */
302
+ listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
303
+ /**
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.
305
+ * Pause a Workflow
306
+ */
307
+ pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
308
+ /**
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.
310
+ * Pause a Workflow
311
+ */
312
+ pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
313
+ /**
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.
315
+ * Publish the Draft of a Workflow
316
+ */
317
+ publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
318
+ /**
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.
320
+ * Publish the Draft of a Workflow
321
+ */
322
+ publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
323
+ /**
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.
335
+ * Restore a Version of a Workflow into the Draft
336
+ */
337
+ restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
338
+ /**
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.
340
+ * Restore a Version of a Workflow into the Draft
341
+ */
342
+ restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
343
+ /**
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.
345
+ * Resume a Paused Workflow
346
+ */
347
+ resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
348
+ /**
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.
350
+ * Resume a Paused Workflow
351
+ */
352
+ resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
353
+ /**
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.
355
+ * Save the Draft of a Workflow
356
+ */
357
+ saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
358
+ /**
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.
360
+ * Save the Draft of a Workflow
361
+ */
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>;
373
+ /**
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.
375
+ * Unarchive a Workflow
376
+ */
377
+ unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
378
+ /**
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.
380
+ * Unarchive a Workflow
381
+ */
382
+ unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
383
+ }
384
+ /**
385
+ * @export
386
+ */
387
+ export declare const ListWorkspaceWorkflows0StatusEnum: {
388
+ readonly Draft: 'draft';
389
+ readonly Live: 'live';
390
+ readonly Paused: 'paused';
391
+ readonly Archived: 'archived';
392
+ readonly All: 'all';
393
+ };
394
+ export type ListWorkspaceWorkflows0StatusEnum = typeof ListWorkspaceWorkflows0StatusEnum[keyof typeof ListWorkspaceWorkflows0StatusEnum];