@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,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetPublicCompositionEmbed200Response, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest } from '../models/index';
13
+ import type { GetPublicCompositionEmbed200Response, GetPublicWorkflow200Response, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest, PublicWorkflowEventsRequest, ReportPublicWorkflowEvents200Response } from '../models/index';
14
14
  export interface CallPublicCompositionAdapter0Request {
15
15
  compositionId: string;
16
16
  adapterId: string;
@@ -22,6 +22,7 @@ export interface CreatePublicCompositionEntry0Request {
22
22
  table: string;
23
23
  publicCompositionEntryRequest: PublicCompositionEntryRequest;
24
24
  xWidgeticWriteToken?: string;
25
+ xWidgeticVisitorId?: string;
25
26
  }
26
27
  export interface GetPublicCompositionEmbed0Request {
27
28
  compositionId: string;
@@ -29,9 +30,23 @@ export interface GetPublicCompositionEmbed0Request {
29
30
  export interface GetPublicCompositionIframe0Request {
30
31
  compositionId: string;
31
32
  }
33
+ export interface GetPublicWorkflowFrame0Request {
34
+ workflowId: string;
35
+ }
36
+ export interface GetPublicWorkflowVersion0Request {
37
+ workflowId: string;
38
+ versionId: string;
39
+ }
40
+ export interface GetPublicWorkflow0Request {
41
+ workflowId: string;
42
+ }
32
43
  export interface PostPublicCompositionEmbedStatus0Request {
33
44
  postPublicCompositionEmbedStatusRequest: PostPublicCompositionEmbedStatusRequest;
34
45
  }
46
+ export interface ReportPublicWorkflowEvents0Request {
47
+ workflowId: string;
48
+ publicWorkflowEventsRequest: PublicWorkflowEventsRequest;
49
+ }
35
50
  export interface UploadPublicCompositionAdapterFile0Request {
36
51
  compositionId: string;
37
52
  ticket: string;
@@ -42,22 +57,22 @@ export interface UploadPublicCompositionAdapterFile0Request {
42
57
  */
43
58
  export declare class PublicEmbedApi extends runtime.BaseAPI {
44
59
  /**
45
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
60
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
46
61
  * Call a gateway operation of an adapter a published widget uses
47
62
  */
48
63
  callPublicCompositionAdapterRaw(requestParameters: CallPublicCompositionAdapter0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterCallResult>>;
49
64
  /**
50
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
65
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
51
66
  * Call a gateway operation of an adapter a published widget uses
52
67
  */
53
68
  callPublicCompositionAdapter(requestParameters: CallPublicCompositionAdapter0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterCallResult>;
54
69
  /**
55
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
70
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
56
71
  * Append a visitor entry through the gateway
57
72
  */
58
73
  createPublicCompositionEntryRaw(requestParameters: CreatePublicCompositionEntry0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicCompositionEntryCreated>>;
59
74
  /**
60
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
75
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
61
76
  * Append a visitor entry through the gateway
62
77
  */
63
78
  createPublicCompositionEntry(requestParameters: CreatePublicCompositionEntry0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicCompositionEntryCreated>;
@@ -81,6 +96,36 @@ export declare class PublicEmbedApi extends runtime.BaseAPI {
81
96
  * Embed a published composition with its saved values
82
97
  */
83
98
  getPublicCompositionIframe(requestParameters: GetPublicCompositionIframe0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
99
+ /**
100
+ * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
101
+ * Show a published Workflow in a page of its own
102
+ */
103
+ getPublicWorkflowFrameRaw(requestParameters: GetPublicWorkflowFrame0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
104
+ /**
105
+ * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
106
+ * Show a published Workflow in a page of its own
107
+ */
108
+ getPublicWorkflowFrame(requestParameters: GetPublicWorkflowFrame0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
109
+ /**
110
+ * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
111
+ * Read one published version of a Workflow
112
+ */
113
+ getPublicWorkflowVersionRaw(requestParameters: GetPublicWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicWorkflow200Response>>;
114
+ /**
115
+ * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
116
+ * Read one published version of a Workflow
117
+ */
118
+ getPublicWorkflowVersion(requestParameters: GetPublicWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicWorkflow200Response>;
119
+ /**
120
+ * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
121
+ * Read the published Workflow of an embed
122
+ */
123
+ getPublicWorkflowRaw(requestParameters: GetPublicWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicWorkflow200Response>>;
124
+ /**
125
+ * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
126
+ * Read the published Workflow of an embed
127
+ */
128
+ getPublicWorkflow(requestParameters: GetPublicWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicWorkflow200Response>;
84
129
  /**
85
130
  * Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
86
131
  * Batch-check whether compositions are currently served for embed
@@ -92,12 +137,22 @@ export declare class PublicEmbedApi extends runtime.BaseAPI {
92
137
  */
93
138
  postPublicCompositionEmbedStatus(requestParameters: PostPublicCompositionEmbedStatus0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostPublicCompositionEmbedStatus200Response>;
94
139
  /**
95
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
140
+ * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
141
+ * Report what visitors did in a Workflow, as counts
142
+ */
143
+ reportPublicWorkflowEventsRaw(requestParameters: ReportPublicWorkflowEvents0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportPublicWorkflowEvents200Response>>;
144
+ /**
145
+ * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
146
+ * Report what visitors did in a Workflow, as counts
147
+ */
148
+ reportPublicWorkflowEvents(requestParameters: ReportPublicWorkflowEvents0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportPublicWorkflowEvents200Response>;
149
+ /**
150
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
96
151
  * Send the file a visitor chose through the upload adapter of a published widget
97
152
  */
98
153
  uploadPublicCompositionAdapterFileRaw(requestParameters: UploadPublicCompositionAdapterFile0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterFileResult>>;
99
154
  /**
100
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
155
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
101
156
  * Send the file a visitor chose through the upload adapter of a published widget
102
157
  */
103
158
  uploadPublicCompositionAdapterFile(requestParameters: UploadPublicCompositionAdapterFile0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterFileResult>;
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class PublicEmbedApi extends runtime.BaseAPI {
56
56
  /**
57
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
57
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
58
58
  * Call a gateway operation of an adapter a published widget uses
59
59
  */
60
60
  async callPublicCompositionAdapterRaw(requestParameters, initOverrides) {
@@ -83,7 +83,7 @@ class PublicEmbedApi extends runtime.BaseAPI {
83
83
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublicAdapterCallResultFromJSON)(jsonValue));
84
84
  }
85
85
  /**
86
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
86
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
87
87
  * Call a gateway operation of an adapter a published widget uses
88
88
  */
89
89
  async callPublicCompositionAdapter(requestParameters, initOverrides) {
@@ -91,7 +91,7 @@ class PublicEmbedApi extends runtime.BaseAPI {
91
91
  return await response.value();
92
92
  }
93
93
  /**
94
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
94
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
95
95
  * Append a visitor entry through the gateway
96
96
  */
97
97
  async createPublicCompositionEntryRaw(requestParameters, initOverrides) {
@@ -110,6 +110,9 @@ class PublicEmbedApi extends runtime.BaseAPI {
110
110
  if (requestParameters['xWidgeticWriteToken'] != null) {
111
111
  headerParameters['X-Widgetic-Write-Token'] = String(requestParameters['xWidgeticWriteToken']);
112
112
  }
113
+ if (requestParameters['xWidgeticVisitorId'] != null) {
114
+ headerParameters['X-Widgetic-Visitor-Id'] = String(requestParameters['xWidgeticVisitorId']);
115
+ }
113
116
  const response = await this.request({
114
117
  path: `/embed/compositions/{compositionId}/entries/{table}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
115
118
  method: 'POST',
@@ -120,7 +123,7 @@ class PublicEmbedApi extends runtime.BaseAPI {
120
123
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublicCompositionEntryCreatedFromJSON)(jsonValue));
121
124
  }
122
125
  /**
123
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
126
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
124
127
  * Append a visitor entry through the gateway
125
128
  */
126
129
  async createPublicCompositionEntry(requestParameters, initOverrides) {
@@ -184,6 +187,92 @@ class PublicEmbedApi extends runtime.BaseAPI {
184
187
  const response = await this.getPublicCompositionIframeRaw(requestParameters, initOverrides);
185
188
  return await response.value();
186
189
  }
190
+ /**
191
+ * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
192
+ * Show a published Workflow in a page of its own
193
+ */
194
+ async getPublicWorkflowFrameRaw(requestParameters, initOverrides) {
195
+ if (requestParameters['workflowId'] == null) {
196
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getPublicWorkflowFrame().');
197
+ }
198
+ const queryParameters = {};
199
+ const headerParameters = {};
200
+ const response = await this.request({
201
+ path: `/embed/workflows/{workflowId}/frame`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters['workflowId']))),
202
+ method: 'GET',
203
+ headers: headerParameters,
204
+ query: queryParameters,
205
+ }, initOverrides);
206
+ if (this.isJsonMime(response.headers.get('content-type'))) {
207
+ return new runtime.JSONApiResponse(response);
208
+ }
209
+ else {
210
+ return new runtime.TextApiResponse(response);
211
+ }
212
+ }
213
+ /**
214
+ * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
215
+ * Show a published Workflow in a page of its own
216
+ */
217
+ async getPublicWorkflowFrame(requestParameters, initOverrides) {
218
+ const response = await this.getPublicWorkflowFrameRaw(requestParameters, initOverrides);
219
+ return await response.value();
220
+ }
221
+ /**
222
+ * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
223
+ * Read one published version of a Workflow
224
+ */
225
+ async getPublicWorkflowVersionRaw(requestParameters, initOverrides) {
226
+ if (requestParameters['workflowId'] == null) {
227
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getPublicWorkflowVersion().');
228
+ }
229
+ if (requestParameters['versionId'] == null) {
230
+ throw new runtime.RequiredError('versionId', 'Required parameter "versionId" was null or undefined when calling getPublicWorkflowVersion().');
231
+ }
232
+ const queryParameters = {};
233
+ const headerParameters = {};
234
+ const response = await this.request({
235
+ path: `/embed/workflows/{workflowId}/versions/{versionId}`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters['workflowId']))).replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId']))),
236
+ method: 'GET',
237
+ headers: headerParameters,
238
+ query: queryParameters,
239
+ }, initOverrides);
240
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPublicWorkflow200ResponseFromJSON)(jsonValue));
241
+ }
242
+ /**
243
+ * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
244
+ * Read one published version of a Workflow
245
+ */
246
+ async getPublicWorkflowVersion(requestParameters, initOverrides) {
247
+ const response = await this.getPublicWorkflowVersionRaw(requestParameters, initOverrides);
248
+ return await response.value();
249
+ }
250
+ /**
251
+ * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
252
+ * Read the published Workflow of an embed
253
+ */
254
+ async getPublicWorkflowRaw(requestParameters, initOverrides) {
255
+ if (requestParameters['workflowId'] == null) {
256
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getPublicWorkflow().');
257
+ }
258
+ const queryParameters = {};
259
+ const headerParameters = {};
260
+ const response = await this.request({
261
+ path: `/embed/workflows/{workflowId}`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters['workflowId']))),
262
+ method: 'GET',
263
+ headers: headerParameters,
264
+ query: queryParameters,
265
+ }, initOverrides);
266
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPublicWorkflow200ResponseFromJSON)(jsonValue));
267
+ }
268
+ /**
269
+ * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
270
+ * Read the published Workflow of an embed
271
+ */
272
+ async getPublicWorkflow(requestParameters, initOverrides) {
273
+ const response = await this.getPublicWorkflowRaw(requestParameters, initOverrides);
274
+ return await response.value();
275
+ }
187
276
  /**
188
277
  * Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
189
278
  * Batch-check whether compositions are currently served for embed
@@ -213,7 +302,38 @@ class PublicEmbedApi extends runtime.BaseAPI {
213
302
  return await response.value();
214
303
  }
215
304
  /**
216
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
305
+ * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
306
+ * Report what visitors did in a Workflow, as counts
307
+ */
308
+ async reportPublicWorkflowEventsRaw(requestParameters, initOverrides) {
309
+ if (requestParameters['workflowId'] == null) {
310
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling reportPublicWorkflowEvents().');
311
+ }
312
+ if (requestParameters['publicWorkflowEventsRequest'] == null) {
313
+ throw new runtime.RequiredError('publicWorkflowEventsRequest', 'Required parameter "publicWorkflowEventsRequest" was null or undefined when calling reportPublicWorkflowEvents().');
314
+ }
315
+ const queryParameters = {};
316
+ const headerParameters = {};
317
+ headerParameters['Content-Type'] = 'application/json';
318
+ const response = await this.request({
319
+ path: `/embed/workflows/{workflowId}/events`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters['workflowId']))),
320
+ method: 'POST',
321
+ headers: headerParameters,
322
+ query: queryParameters,
323
+ body: (0, index_1.PublicWorkflowEventsRequestToJSON)(requestParameters['publicWorkflowEventsRequest']),
324
+ }, initOverrides);
325
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportPublicWorkflowEvents200ResponseFromJSON)(jsonValue));
326
+ }
327
+ /**
328
+ * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
329
+ * Report what visitors did in a Workflow, as counts
330
+ */
331
+ async reportPublicWorkflowEvents(requestParameters, initOverrides) {
332
+ const response = await this.reportPublicWorkflowEventsRaw(requestParameters, initOverrides);
333
+ return await response.value();
334
+ }
335
+ /**
336
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
217
337
  * Send the file a visitor chose through the upload adapter of a published widget
218
338
  */
219
339
  async uploadPublicCompositionAdapterFileRaw(requestParameters, initOverrides) {
@@ -239,7 +359,7 @@ class PublicEmbedApi extends runtime.BaseAPI {
239
359
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublicAdapterFileResultFromJSON)(jsonValue));
240
360
  }
241
361
  /**
242
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
362
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
243
363
  * Send the file a visitor chose through the upload adapter of a published widget
244
364
  */
245
365
  async uploadPublicCompositionAdapterFile(requestParameters, initOverrides) {