@widgetic/api-sdk-ts 1.11.109 → 1.11.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) 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/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +257 -155
  6. package/dist/apis/CompositionsApi.js +338 -134
  7. package/dist/apis/CreditsApi.d.ts +11 -11
  8. package/dist/apis/CreditsApi.js +5 -5
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/OrganizationsApi.d.ts +74 -0
  17. package/dist/apis/OrganizationsApi.js +205 -0
  18. package/dist/apis/PartnersApi.d.ts +133 -133
  19. package/dist/apis/PartnersApi.js +19 -19
  20. package/dist/apis/PublicEmbedApi.d.ts +57 -42
  21. package/dist/apis/PublicEmbedApi.js +64 -29
  22. package/dist/apis/TokensApi.d.ts +2 -0
  23. package/dist/apis/TokensApi.js +2 -0
  24. package/dist/apis/UploadsApi.d.ts +40 -40
  25. package/dist/apis/UploadsApi.js +60 -60
  26. package/dist/apis/UsersApi.d.ts +30 -86
  27. package/dist/apis/UsersApi.js +6 -154
  28. package/dist/apis/WidgetsApi.d.ts +25 -25
  29. package/dist/apis/WidgetsApi.js +38 -38
  30. package/dist/apis/WorkflowsApi.d.ts +115 -157
  31. package/dist/apis/WorkflowsApi.js +111 -221
  32. package/dist/apis/index.d.ts +2 -2
  33. package/dist/apis/index.js +2 -2
  34. package/dist/esm/apis/BrandKitApi.js +344 -0
  35. package/dist/esm/apis/CompositionsApi.js +338 -134
  36. package/dist/esm/apis/CreditsApi.js +6 -6
  37. package/dist/esm/apis/InvoicesApi.js +1 -1
  38. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  39. package/dist/esm/apis/OperationsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.js +168 -0
  41. package/dist/esm/apis/PartnersApi.js +20 -20
  42. package/dist/esm/apis/PublicEmbedApi.js +65 -30
  43. package/dist/esm/apis/TokensApi.js +2 -0
  44. package/dist/esm/apis/UploadsApi.js +60 -60
  45. package/dist/esm/apis/UsersApi.js +7 -155
  46. package/dist/esm/apis/WidgetsApi.js +39 -39
  47. package/dist/esm/apis/WorkflowsApi.js +111 -221
  48. package/dist/esm/apis/index.js +2 -2
  49. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  50. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  51. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  52. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  53. package/dist/esm/models/AddOrganizationDomainResponse.js +51 -0
  54. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  55. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  56. package/dist/esm/models/BrandColor.js +64 -0
  57. package/dist/esm/models/BrandFont.js +72 -0
  58. package/dist/esm/models/BrandKitAssetView.js +96 -0
  59. package/dist/esm/models/BrandKitFigmaSource.js +59 -0
  60. package/dist/esm/models/BrandKitTokens.js +59 -0
  61. package/dist/esm/models/BrandKitTokensFonts.js +48 -0
  62. package/dist/esm/models/BrandKitView.js +75 -0
  63. package/dist/esm/models/BrandKitViewOwner.js +54 -0
  64. package/dist/esm/models/BrandKitViewResponse.js +51 -0
  65. package/dist/esm/models/BrandSpacing.js +71 -0
  66. package/dist/esm/models/BrandTextStyle.js +65 -0
  67. package/dist/esm/models/Canvas.js +3 -0
  68. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  69. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  70. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  71. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  72. package/dist/esm/models/{CreateCompositionFromWidget201Response.js → DeleteOrganizationDomainResponse.js} +11 -11
  73. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  74. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  75. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  76. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  77. package/dist/esm/models/EditorSession.js +4 -0
  78. package/dist/esm/models/GetOperationResponse.js +51 -0
  79. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
  80. package/dist/esm/models/GetOperationResponseDataMetadata.js +69 -0
  81. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  82. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  83. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  84. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  85. package/dist/esm/models/NewWidget.js +0 -1
  86. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  87. package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
  88. package/dist/esm/models/PatchBrandKitRequest.js +57 -0
  89. package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
  90. package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
  91. package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
  92. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  93. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  94. package/dist/esm/models/PutBrandKitRequest.js +49 -0
  95. package/dist/esm/models/UpdateOrganizationDomainResponse.js +51 -0
  96. package/dist/esm/models/Upload.js +2 -0
  97. package/dist/esm/models/UserApiKey.js +2 -0
  98. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  99. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  100. package/dist/esm/models/Widget.js +6 -0
  101. package/dist/esm/models/WidgetClarification.js +52 -0
  102. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  103. package/dist/esm/models/WidgetClarificationQuestion.js +64 -0
  104. package/dist/esm/models/WidgetCodeChange.js +68 -0
  105. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  106. package/dist/esm/models/WidgetNextStep.js +71 -0
  107. package/dist/esm/models/WidgetPlan.js +61 -0
  108. package/dist/esm/models/WidgetPlanDecisions.js +72 -0
  109. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  110. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  111. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  112. package/dist/esm/models/WidgetPlanTask.js +80 -0
  113. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  114. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  115. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  116. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  117. package/dist/esm/models/WorkflowStats.js +3 -0
  118. package/dist/esm/models/index.js +59 -25
  119. package/dist/esm/runtime.js +1 -1
  120. package/dist/models/AccountCreditBalance.d.ts +2 -2
  121. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  122. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  123. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  124. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  125. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  126. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  127. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  128. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  129. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  130. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  131. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  132. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  133. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  134. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  135. package/dist/models/BrandColor.d.ts +60 -0
  136. package/dist/models/BrandColor.js +72 -0
  137. package/dist/models/BrandFont.d.ts +73 -0
  138. package/dist/models/BrandFont.js +80 -0
  139. package/dist/models/BrandKitAssetView.d.ts +130 -0
  140. package/dist/models/BrandKitAssetView.js +104 -0
  141. package/dist/models/BrandKitFigmaSource.d.ts +56 -0
  142. package/dist/models/BrandKitFigmaSource.js +66 -0
  143. package/dist/models/BrandKitTokens.d.ts +60 -0
  144. package/dist/models/BrandKitTokens.js +66 -0
  145. package/dist/models/BrandKitTokensFonts.d.ts +51 -0
  146. package/dist/models/BrandKitTokensFonts.js +55 -0
  147. package/dist/models/BrandKitView.d.ts +90 -0
  148. package/dist/models/BrandKitView.js +82 -0
  149. package/dist/models/BrandKitViewOwner.d.ts +46 -0
  150. package/dist/models/BrandKitViewOwner.js +62 -0
  151. package/dist/models/BrandKitViewResponse.d.ts +46 -0
  152. package/dist/models/BrandKitViewResponse.js +58 -0
  153. package/dist/models/BrandSpacing.d.ts +74 -0
  154. package/dist/models/BrandSpacing.js +78 -0
  155. package/dist/models/BrandTextStyle.d.ts +59 -0
  156. package/dist/models/BrandTextStyle.js +73 -0
  157. package/dist/models/Canvas.d.ts +7 -0
  158. package/dist/models/Canvas.js +3 -0
  159. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  160. package/dist/models/CanvasActiveOperation.js +74 -0
  161. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  162. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  163. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  164. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  165. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  166. package/dist/models/CreateWidget201ResponseData.js +6 -0
  167. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  168. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  169. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  170. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  171. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  172. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  173. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  174. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  175. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  176. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  177. package/dist/models/EditorSession.d.ts +7 -0
  178. package/dist/models/EditorSession.js +4 -0
  179. package/dist/models/GetOperationResponse.d.ts +46 -0
  180. package/dist/models/GetOperationResponse.js +58 -0
  181. package/dist/models/GetOperationResponseData.d.ts +86 -0
  182. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
  183. package/dist/models/GetOperationResponseDataMetadata.d.ts +87 -0
  184. package/dist/models/GetOperationResponseDataMetadata.js +77 -0
  185. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  186. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  187. package/dist/models/ListUploads200Response.d.ts +46 -0
  188. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  189. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  190. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  191. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  192. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  193. package/dist/models/NewEditorSession.d.ts +1 -1
  194. package/dist/models/NewWidget.d.ts +2 -3
  195. package/dist/models/NewWidget.js +0 -1
  196. package/dist/models/OrganizationDomain.d.ts +56 -0
  197. package/dist/models/OrganizationDomain.js +56 -0
  198. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  199. package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
  200. package/dist/models/PatchBrandKitAssetRequest.js +76 -0
  201. package/dist/models/PatchBrandKitRequest.d.ts +72 -0
  202. package/dist/models/PatchBrandKitRequest.js +64 -0
  203. package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
  204. package/dist/models/PatchBrandKitRequestFonts.js +55 -0
  205. package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
  206. package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
  207. package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
  208. package/dist/models/PostBrandKitIconRequest.js +54 -0
  209. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  210. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  211. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  212. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  213. package/dist/models/PutBrandKitRequest.d.ts +46 -0
  214. package/dist/models/PutBrandKitRequest.js +56 -0
  215. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  216. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  217. package/dist/models/Upload.d.ts +7 -1
  218. package/dist/models/Upload.js +2 -0
  219. package/dist/models/UploadLimits.d.ts +3 -3
  220. package/dist/models/UserApiKey.d.ts +6 -0
  221. package/dist/models/UserApiKey.js +2 -0
  222. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  223. package/dist/models/ValidateToken200ResponseData.js +3 -0
  224. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  225. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  226. package/dist/models/Widget.d.ts +18 -0
  227. package/dist/models/Widget.js +6 -0
  228. package/dist/models/WidgetClarification.d.ts +45 -0
  229. package/dist/models/WidgetClarification.js +59 -0
  230. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  231. package/dist/models/WidgetClarificationOption.js +58 -0
  232. package/dist/models/WidgetClarificationQuestion.d.ts +63 -0
  233. package/dist/models/WidgetClarificationQuestion.js +71 -0
  234. package/dist/models/WidgetCodeChange.d.ts +70 -0
  235. package/dist/models/WidgetCodeChange.js +76 -0
  236. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  237. package/dist/models/WidgetCodeChanges.js +55 -0
  238. package/dist/models/WidgetNextStep.d.ts +69 -0
  239. package/dist/models/WidgetNextStep.js +79 -0
  240. package/dist/models/WidgetPlan.d.ts +58 -0
  241. package/dist/models/WidgetPlan.js +68 -0
  242. package/dist/models/WidgetPlanDecisions.d.ts +77 -0
  243. package/dist/models/WidgetPlanDecisions.js +79 -0
  244. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  245. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  246. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  247. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  248. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  249. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  250. package/dist/models/WidgetPlanTask.d.ts +77 -0
  251. package/dist/models/WidgetPlanTask.js +88 -0
  252. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  253. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  254. package/dist/models/WorkflowDetailResponse.js +58 -0
  255. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  256. package/dist/models/WorkflowFailureReason.js +57 -0
  257. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  258. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  259. package/dist/models/WorkflowResponse.d.ts +46 -0
  260. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  261. package/dist/models/WorkflowStats.d.ts +16 -1
  262. package/dist/models/WorkflowStats.js +3 -0
  263. package/dist/models/index.d.ts +59 -25
  264. package/dist/models/index.js +59 -25
  265. package/dist/runtime.d.ts +2 -2
  266. package/dist/runtime.js +1 -1
  267. package/package.json +1 -1
  268. package/dist/apis/PartnerApi.d.ts +0 -2595
  269. package/dist/apis/PartnerApi.js +0 -6749
  270. package/dist/apis/WorkspacesApi.d.ts +0 -352
  271. package/dist/apis/WorkspacesApi.js +0 -946
  272. package/dist/esm/apis/PartnerApi.js +0 -6712
  273. package/dist/esm/apis/WorkspacesApi.js +0 -909
  274. package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +0 -51
  275. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  276. package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +0 -51
  277. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  278. package/dist/esm/models/PersonalWorkspaceDomainResultResponse.js +0 -51
  279. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  280. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  281. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  282. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  283. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  284. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  285. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  286. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  287. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  288. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  289. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  290. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  291. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  292. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  293. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  294. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  295. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  296. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  297. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  298. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  299. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  300. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  301. package/dist/models/OperationsIdGetResponseData.d.ts +0 -88
  302. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  303. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  304. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  305. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  306. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  307. package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
  308. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  309. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  310. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  311. package/dist/models/UploadsGet200Response.d.ts +0 -46
  312. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  313. package/dist/models/UploadsIdDelete200Response.js +0 -58
  314. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  315. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { AddAiAnswersKnowledgeDocument201ResponseFromJSON, AddAiAnswersKnowledgeDocumentRequestToJSON, CheckCompositionAccessResponseFromJSON, CompositionDataSourceResponseFromJSON, CompositionEntriesDescriptionResponseFromJSON, CompositionEntriesReadingResponseFromJSON, CompositionResponseFromJSON, CreateCompositionContentItem201ResponseFromJSON, CreateCompositionContentItemRequestToJSON, CreateCompositionDatabaseRecord201ResponseFromJSON, CreateCompositionFromWidget201ResponseFromJSON, DeleteCompositionContentItemResponseFromJSON, DeleteCompositionDataSourceResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAiAnswersKnowledge200ResponseFromJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentResponseFromJSON, GetCompositionContentSchemaResponseFromJSON, GetCompositionDataSourceResponseFromJSON, GetCompositionDatabaseRecords200ResponseFromJSON, GetCompositionDesignResponseFromJSON, GetCompositionDesignSchemaResponseFromJSON, GetCompositionEmbedSchemaResponseFromJSON, GetCompositionEmbedSettingsResponseFromJSON, GetCompositionPreviewResponseFromJSON, GetCompositionVersions200ResponseFromJSON, GetCompositionsBatchRequestToJSON, GetCompositionsBatchResponseFromJSON, NewCompositionToJSON, RemoveAiAnswersKnowledgeDocument200ResponseFromJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContentRequestToJSON, SetDynamicContentResponseFromJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContentResponseFromJSON, } from '../models/index.js';
15
+ import { AddAiAnswersKnowledgeDocumentRequestToJSON, AiAnswersKnowledgeDocumentResponseFromJSON, CheckCompositionAccessResponseFromJSON, CompositionDataSourceResponseFromJSON, CompositionDatabaseRecordResponseFromJSON, CompositionEntriesDescriptionResponseFromJSON, CompositionEntriesReadingResponseFromJSON, CompositionEntryDeleteSuccessFromJSON, CompositionEntryItemsPageSuccessFromJSON, CompositionResponseFromJSON, ContentItemWriteResultResponseFromJSON, CreateCompositionContentItemRequestToJSON, DeleteCompositionContentItemResponseFromJSON, DeleteCompositionDataSourceResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAiAnswersKnowledge200ResponseFromJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentResponseFromJSON, GetCompositionContentSchemaResponseFromJSON, GetCompositionDataSourceResponseFromJSON, GetCompositionDatabaseRecords200ResponseFromJSON, GetCompositionDesignResponseFromJSON, GetCompositionDesignSchemaResponseFromJSON, GetCompositionEmbedSchemaResponseFromJSON, GetCompositionEmbedSettingsResponseFromJSON, GetCompositionPreviewResponseFromJSON, GetCompositionVersions200ResponseFromJSON, GetCompositionsBatchRequestToJSON, GetCompositionsBatchResponseFromJSON, NewCompositionToJSON, RemoveAiAnswersKnowledgeDocument200ResponseFromJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContentRequestToJSON, SetDynamicContentResponseFromJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContentResponseFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -51,7 +51,7 @@ export class CompositionsApi extends runtime.BaseAPI {
51
51
  query: queryParameters,
52
52
  body: AddAiAnswersKnowledgeDocumentRequestToJSON(requestParameters['addAiAnswersKnowledgeDocumentRequest']),
53
53
  }, initOverrides);
54
- return new runtime.JSONApiResponse(response, (jsonValue) => AddAiAnswersKnowledgeDocument201ResponseFromJSON(jsonValue));
54
+ return new runtime.JSONApiResponse(response, (jsonValue) => AiAnswersKnowledgeDocumentResponseFromJSON(jsonValue));
55
55
  }
56
56
  /**
57
57
  * Gives the widget\'s AI a document to answer visitors\' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. **How it is used.** The text is cleaned, cut into short passages and each passage is turned into numbers (an embedding) so the widget can find the passages nearest to a question. When a visitor asks, the nearest passages and the question are shown to an AI model, which writes the answer from them and from nothing else; if the documents say nothing about the question the visitor is told so, and the owner is not charged for that question. The titles of the documents an answer used are shown to the visitor as its sources. **What leaves Widgetic.** The text of a document is sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** A widget holds up to 20 documents, each up to 100000 characters, and up to 400000 characters in all (`getAiAnswersKnowledge` reports the current numbers). This call takes text. To add a text file or a picture of a document (a PDF too, once PDFs are read) without turning it into text yourself, use `addAiAnswersKnowledgeFile`. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds are limited to ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
@@ -115,7 +115,7 @@ export class CompositionsApi extends runtime.BaseAPI {
115
115
  query: queryParameters,
116
116
  body: formParams,
117
117
  }, initOverrides);
118
- return new runtime.JSONApiResponse(response, (jsonValue) => AddAiAnswersKnowledgeDocument201ResponseFromJSON(jsonValue));
118
+ return new runtime.JSONApiResponse(response, (jsonValue) => AiAnswersKnowledgeDocumentResponseFromJSON(jsonValue));
119
119
  }
120
120
  /**
121
121
  * Gives the widget\'s AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same refusal of a copy of a document the widget already has. The call returns once the document is ready to be used, which takes a few seconds (a PDF is read first, so it takes longer). **PDFs are not read yet.** For now a PDF is refused with 415, in a sentence that says what to do instead: paste the text, upload it as a text file, or upload its pages as pictures. What this description says about a PDF is what will hold from the day PDFs are read. **Which files.** - A **PDF** (not read yet, see above), up to 10 MB and 300 pages. Its text is read and its paragraphs are put back together. A PDF that is only pictures of pages (a scan) has no text to read: upload the pages as pictures instead. A PDF locked with a password is refused. - A **text file**: `.txt`, `.text`, `.md`, `.markdown` or `.csv`, in UTF-8, UTF-16 or Windows-1252. - A **picture of a document**: PNG, JPEG or WebP, up to 4 MB. The text in it is read with the same text recognition as the `ocr` adapter. - Word and other office files are not read yet: save the file as a PDF and upload that. What a file is comes from what is in it, not from its name or the type it is sent as. A file that is none of these is refused with 415. **The title.** Left out, the name of the file (without its extension) is the title. Visitors see the title as the source of an answer, so send one that means something to them. **The file is not kept.** Only its text, cut into passages, is kept, and `getAiAnswersKnowledge` never returns it. **What leaves Widgetic.** As for text, the words of the document are sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. A picture is also sent to the text recognition service. A PDF is read on Widgetic\'s own servers and is not sent anywhere to be read. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** The widget\'s limits are those of `addAiAnswersKnowledgeDocument` (up to 20 documents, each up to 100000 characters of text, and up to 400000 characters in all; `getAiAnswersKnowledge` reports the current numbers), and the file is at most 10 MB. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds, from text or from a file, share one limit of ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
@@ -158,6 +158,53 @@ export class CompositionsApi extends runtime.BaseAPI {
158
158
  const response = await this.checkCompositionAccessRaw(requestParameters, initOverrides);
159
159
  return await response.value();
160
160
  }
161
+ /**
162
+ * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
163
+ * Create Composition
164
+ */
165
+ async createCompositionRaw(requestParameters, initOverrides) {
166
+ if (requestParameters['idempotencyKey'] == null) {
167
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createComposition().');
168
+ }
169
+ if (requestParameters['newComposition'] == null) {
170
+ throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ if (requestParameters['idempotencyKey'] != null) {
176
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
177
+ }
178
+ if (requestParameters['xManagedUserId'] != null) {
179
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
180
+ }
181
+ if (requestParameters['xManagedUserExternalId'] != null) {
182
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
183
+ }
184
+ if (this.configuration && this.configuration.accessToken) {
185
+ const token = this.configuration.accessToken;
186
+ const tokenString = await token("apiKeyAuth", []);
187
+ if (tokenString) {
188
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
189
+ }
190
+ }
191
+ const response = await this.request({
192
+ path: `/compositions`,
193
+ method: 'POST',
194
+ headers: headerParameters,
195
+ query: queryParameters,
196
+ body: NewCompositionToJSON(requestParameters['newComposition']),
197
+ }, initOverrides);
198
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
199
+ }
200
+ /**
201
+ * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
202
+ * Create Composition
203
+ */
204
+ async createComposition(requestParameters, initOverrides) {
205
+ const response = await this.createCompositionRaw(requestParameters, initOverrides);
206
+ return await response.value();
207
+ }
161
208
  /**
162
209
  * Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
163
210
  * Add a content list item
@@ -204,7 +251,7 @@ export class CompositionsApi extends runtime.BaseAPI {
204
251
  query: queryParameters,
205
252
  body: CreateCompositionContentItemRequestToJSON(requestParameters['createCompositionContentItemRequest']),
206
253
  }, initOverrides);
207
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionContentItem201ResponseFromJSON(jsonValue));
254
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentItemWriteResultResponseFromJSON(jsonValue));
208
255
  }
209
256
  /**
210
257
  * Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
@@ -257,7 +304,7 @@ export class CompositionsApi extends runtime.BaseAPI {
257
304
  query: queryParameters,
258
305
  body: requestParameters['body'],
259
306
  }, initOverrides);
260
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
307
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDatabaseRecordResponseFromJSON(jsonValue));
261
308
  }
262
309
  /**
263
310
  * Creates a new record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
@@ -268,22 +315,15 @@ export class CompositionsApi extends runtime.BaseAPI {
268
315
  return await response.value();
269
316
  }
270
317
  /**
271
- * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
272
- * Create Composition
318
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
319
+ * Delete Composition
273
320
  */
274
- async createCompositionRaw(requestParameters, initOverrides) {
275
- if (requestParameters['idempotencyKey'] == null) {
276
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createComposition().');
277
- }
278
- if (requestParameters['newComposition'] == null) {
279
- throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
321
+ async deleteCompositionRaw(requestParameters, initOverrides) {
322
+ if (requestParameters['id'] == null) {
323
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
280
324
  }
281
325
  const queryParameters = {};
282
326
  const headerParameters = {};
283
- headerParameters['Content-Type'] = 'application/json';
284
- if (requestParameters['idempotencyKey'] != null) {
285
- headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
286
- }
287
327
  if (requestParameters['xManagedUserId'] != null) {
288
328
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
289
329
  }
@@ -298,21 +338,19 @@ export class CompositionsApi extends runtime.BaseAPI {
298
338
  }
299
339
  }
300
340
  const response = await this.request({
301
- path: `/compositions`,
302
- method: 'POST',
341
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
342
+ method: 'DELETE',
303
343
  headers: headerParameters,
304
344
  query: queryParameters,
305
- body: NewCompositionToJSON(requestParameters['newComposition']),
306
345
  }, initOverrides);
307
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
346
+ return new runtime.VoidApiResponse(response);
308
347
  }
309
348
  /**
310
- * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
311
- * Create Composition
349
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
350
+ * Delete Composition
312
351
  */
313
- async createComposition(requestParameters, initOverrides) {
314
- const response = await this.createCompositionRaw(requestParameters, initOverrides);
315
- return await response.value();
352
+ async deleteComposition(requestParameters, initOverrides) {
353
+ await this.deleteCompositionRaw(requestParameters, initOverrides);
316
354
  }
317
355
  /**
318
356
  * Delete a content list item
@@ -446,7 +484,7 @@ export class CompositionsApi extends runtime.BaseAPI {
446
484
  headers: headerParameters,
447
485
  query: queryParameters,
448
486
  }, initOverrides);
449
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
487
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDatabaseRecordResponseFromJSON(jsonValue));
450
488
  }
451
489
  /**
452
490
  * Deletes a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
@@ -457,14 +495,26 @@ export class CompositionsApi extends runtime.BaseAPI {
457
495
  return await response.value();
458
496
  }
459
497
  /**
460
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
461
- * Delete Composition
498
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
499
+ * Delete composition entry items by id or host context
462
500
  */
463
- async deleteCompositionRaw(requestParameters, initOverrides) {
501
+ async deleteCompositionEntryItemsRaw(requestParameters, initOverrides) {
464
502
  if (requestParameters['id'] == null) {
465
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
503
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionEntryItems().');
504
+ }
505
+ if (requestParameters['table'] == null) {
506
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling deleteCompositionEntryItems().');
466
507
  }
467
508
  const queryParameters = {};
509
+ if (requestParameters['ids'] != null) {
510
+ queryParameters['ids'] = requestParameters['ids'];
511
+ }
512
+ if (requestParameters['context'] != null) {
513
+ queryParameters['context'] = requestParameters['context'];
514
+ }
515
+ if (requestParameters['filter'] != null) {
516
+ queryParameters['filter'] = requestParameters['filter'];
517
+ }
468
518
  const headerParameters = {};
469
519
  if (requestParameters['xManagedUserId'] != null) {
470
520
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
@@ -480,19 +530,20 @@ export class CompositionsApi extends runtime.BaseAPI {
480
530
  }
481
531
  }
482
532
  const response = await this.request({
483
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
533
+ path: `/compositions/{id}/entries/{table}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
484
534
  method: 'DELETE',
485
535
  headers: headerParameters,
486
536
  query: queryParameters,
487
537
  }, initOverrides);
488
- return new runtime.VoidApiResponse(response);
538
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionEntryDeleteSuccessFromJSON(jsonValue));
489
539
  }
490
540
  /**
491
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
492
- * Delete Composition
541
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
542
+ * Delete composition entry items by id or host context
493
543
  */
494
- async deleteComposition(requestParameters, initOverrides) {
495
- await this.deleteCompositionRaw(requestParameters, initOverrides);
544
+ async deleteCompositionEntryItems(requestParameters, initOverrides) {
545
+ const response = await this.deleteCompositionEntryItemsRaw(requestParameters, initOverrides);
546
+ return await response.value();
496
547
  }
497
548
  /**
498
549
  * Names the tables a composition\'s widget keeps entries in (the votes, ratings, answers or sign-ups its visitors left), their columns, and how many entries each holds. Call it first to learn the table and column names that `readCompositionEntries` takes. A widget that only shows content keeps nothing of its own: the answer is `hasData: false` with no tables, and that is not an error. A table that could not be counted has `rows: null`, which is not zero. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
@@ -580,6 +631,71 @@ export class CompositionsApi extends runtime.BaseAPI {
580
631
  const response = await this.duplicateCompositionRaw(requestParameters, initOverrides);
581
632
  return await response.value();
582
633
  }
634
+ /**
635
+ * Streams up to 50,000 matching rows in batches of 1,000. Tables without cursor paging export at most one batch; when more rows exist the response sets `X-Widgetic-Export-Truncated: true`. Rate limit 20 requests per minute.
636
+ * Export composition entry items
637
+ */
638
+ async exportCompositionEntryItemsRaw(requestParameters, initOverrides) {
639
+ if (requestParameters['id'] == null) {
640
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling exportCompositionEntryItems().');
641
+ }
642
+ if (requestParameters['table'] == null) {
643
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling exportCompositionEntryItems().');
644
+ }
645
+ const queryParameters = {};
646
+ if (requestParameters['format'] != null) {
647
+ queryParameters['format'] = requestParameters['format'];
648
+ }
649
+ if (requestParameters['order'] != null) {
650
+ queryParameters['order'] = requestParameters['order'];
651
+ }
652
+ if (requestParameters['since'] != null) {
653
+ queryParameters['since'] = requestParameters['since'].toISOString();
654
+ }
655
+ if (requestParameters['until'] != null) {
656
+ queryParameters['until'] = requestParameters['until'].toISOString();
657
+ }
658
+ if (requestParameters['context'] != null) {
659
+ queryParameters['context'] = requestParameters['context'];
660
+ }
661
+ if (requestParameters['filter'] != null) {
662
+ queryParameters['filter'] = requestParameters['filter'];
663
+ }
664
+ const headerParameters = {};
665
+ if (requestParameters['xManagedUserId'] != null) {
666
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
667
+ }
668
+ if (requestParameters['xManagedUserExternalId'] != null) {
669
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
670
+ }
671
+ if (this.configuration && this.configuration.accessToken) {
672
+ const token = this.configuration.accessToken;
673
+ const tokenString = await token("apiKeyAuth", []);
674
+ if (tokenString) {
675
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
676
+ }
677
+ }
678
+ const response = await this.request({
679
+ path: `/compositions/{id}/entries/{table}/export`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
680
+ method: 'GET',
681
+ headers: headerParameters,
682
+ query: queryParameters,
683
+ }, initOverrides);
684
+ if (this.isJsonMime(response.headers.get('content-type'))) {
685
+ return new runtime.JSONApiResponse(response);
686
+ }
687
+ else {
688
+ return new runtime.TextApiResponse(response);
689
+ }
690
+ }
691
+ /**
692
+ * Streams up to 50,000 matching rows in batches of 1,000. Tables without cursor paging export at most one batch; when more rows exist the response sets `X-Widgetic-Export-Truncated: true`. Rate limit 20 requests per minute.
693
+ * Export composition entry items
694
+ */
695
+ async exportCompositionEntryItems(requestParameters, initOverrides) {
696
+ const response = await this.exportCompositionEntryItemsRaw(requestParameters, initOverrides);
697
+ return await response.value();
698
+ }
583
699
  /**
584
700
  * The `ai-answers` adapter lets a widget answer a visitor\'s question with text an AI model writes from documents the widget\'s owner provides. This lists those documents, and how much room is left for more: `totals` carries the widget\'s limits next to what it uses. The list never contains what a document says, only which documents there are: their title, size and state. A `processing` document is not used to answer questions yet (or an add of it was interrupted: remove it and add it again). Add a document with `addAiAnswersKnowledgeDocument`; remove one with `removeAiAnswersKnowledgeDocument`. The caller must be allowed to see the widget: its owner, a partner for a customer it manages, or a Widgetic administrator. An API key needs the `content:read` scope.
585
701
  * See the documents a widget\'s AI answers from
@@ -692,6 +808,9 @@ export class CompositionsApi extends runtime.BaseAPI {
692
808
  }
693
809
  const queryParameters = {};
694
810
  const headerParameters = {};
811
+ if (requestParameters['ifNoneMatch'] != null) {
812
+ headerParameters['If-None-Match'] = String(requestParameters['ifNoneMatch']);
813
+ }
695
814
  if (requestParameters['xManagedUserId'] != null) {
696
815
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
697
816
  }
@@ -711,7 +830,7 @@ export class CompositionsApi extends runtime.BaseAPI {
711
830
  headers: headerParameters,
712
831
  query: queryParameters,
713
832
  }, initOverrides);
714
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
833
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
715
834
  }
716
835
  /**
717
836
  * Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route looks at the website that page is on. While the composition\'s allowed list is empty (you have not restricted the allowed websites), every website may write; once you list websites, only those may, besides Widgetic\'s own sites, the visitor\'s own machine and your own platform. A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says. The public JSON of the composition stays open to every website. For a composition a team shares (one filed under a project of an organization, or made in a Shopify store\'s workspace) the answer also carries `lastEditedBy` and `lastEditedAt`: who made the latest change and when, so that a teammate who opens it can be told \"Anna changed this at 14:32\". A composition in a personal project leaves both out, and so does an answer given to an editor session or to a call made for one managed user: only a person is told who a teammate is.
@@ -722,12 +841,12 @@ export class CompositionsApi extends runtime.BaseAPI {
722
841
  return await response.value();
723
842
  }
724
843
  /**
725
- * Retrieves the content schema for a composition based on its widget type
726
- * Get Content Schema
844
+ * Retrieves the current content of a composition
845
+ * Get Current Content
727
846
  */
728
- async getCompositionContentSchemaRaw(requestParameters, initOverrides) {
847
+ async getCompositionContentRaw(requestParameters, initOverrides) {
729
848
  if (requestParameters['id'] == null) {
730
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
849
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContent().');
731
850
  }
732
851
  const queryParameters = {};
733
852
  const headerParameters = {};
@@ -745,28 +864,28 @@ export class CompositionsApi extends runtime.BaseAPI {
745
864
  }
746
865
  }
747
866
  const response = await this.request({
748
- path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
867
+ path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
749
868
  method: 'GET',
750
869
  headers: headerParameters,
751
870
  query: queryParameters,
752
871
  }, initOverrides);
753
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentSchemaResponseFromJSON(jsonValue));
872
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentResponseFromJSON(jsonValue));
754
873
  }
755
874
  /**
756
- * Retrieves the content schema for a composition based on its widget type
757
- * Get Content Schema
875
+ * Retrieves the current content of a composition
876
+ * Get Current Content
758
877
  */
759
- async getCompositionContentSchema(requestParameters, initOverrides) {
760
- const response = await this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
878
+ async getCompositionContent(requestParameters, initOverrides) {
879
+ const response = await this.getCompositionContentRaw(requestParameters, initOverrides);
761
880
  return await response.value();
762
881
  }
763
882
  /**
764
- * Retrieves the current content of a composition
765
- * Get Current Content
883
+ * Retrieves the content schema for a composition based on its widget type
884
+ * Get Content Schema
766
885
  */
767
- async getCompositionContentRaw(requestParameters, initOverrides) {
886
+ async getCompositionContentSchemaRaw(requestParameters, initOverrides) {
768
887
  if (requestParameters['id'] == null) {
769
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContent().');
888
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
770
889
  }
771
890
  const queryParameters = {};
772
891
  const headerParameters = {};
@@ -784,19 +903,19 @@ export class CompositionsApi extends runtime.BaseAPI {
784
903
  }
785
904
  }
786
905
  const response = await this.request({
787
- path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
906
+ path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
788
907
  method: 'GET',
789
908
  headers: headerParameters,
790
909
  query: queryParameters,
791
910
  }, initOverrides);
792
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentResponseFromJSON(jsonValue));
911
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentSchemaResponseFromJSON(jsonValue));
793
912
  }
794
913
  /**
795
- * Retrieves the current content of a composition
796
- * Get Current Content
914
+ * Retrieves the content schema for a composition based on its widget type
915
+ * Get Content Schema
797
916
  */
798
- async getCompositionContent(requestParameters, initOverrides) {
799
- const response = await this.getCompositionContentRaw(requestParameters, initOverrides);
917
+ async getCompositionContentSchema(requestParameters, initOverrides) {
918
+ const response = await this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
800
919
  return await response.value();
801
920
  }
802
921
  /**
@@ -873,7 +992,7 @@ export class CompositionsApi extends runtime.BaseAPI {
873
992
  headers: headerParameters,
874
993
  query: queryParameters,
875
994
  }, initOverrides);
876
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
995
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDatabaseRecordResponseFromJSON(jsonValue));
877
996
  }
878
997
  /**
879
998
  * Retrieves a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
@@ -926,12 +1045,12 @@ export class CompositionsApi extends runtime.BaseAPI {
926
1045
  return await response.value();
927
1046
  }
928
1047
  /**
929
- * Retrieves the design schema for a composition based on its widget type
930
- * Get Design Schema
1048
+ * Retrieves only the design field from a composition.
1049
+ * Get Composition Design
931
1050
  */
932
- async getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
1051
+ async getCompositionDesignRaw(requestParameters, initOverrides) {
933
1052
  if (requestParameters['id'] == null) {
934
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
1053
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
935
1054
  }
936
1055
  const queryParameters = {};
937
1056
  const headerParameters = {};
@@ -949,28 +1068,28 @@ export class CompositionsApi extends runtime.BaseAPI {
949
1068
  }
950
1069
  }
951
1070
  const response = await this.request({
952
- path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1071
+ path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
953
1072
  method: 'GET',
954
1073
  headers: headerParameters,
955
1074
  query: queryParameters,
956
1075
  }, initOverrides);
957
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignSchemaResponseFromJSON(jsonValue));
1076
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignResponseFromJSON(jsonValue));
958
1077
  }
959
1078
  /**
960
- * Retrieves the design schema for a composition based on its widget type
961
- * Get Design Schema
1079
+ * Retrieves only the design field from a composition.
1080
+ * Get Composition Design
962
1081
  */
963
- async getCompositionDesignSchema(requestParameters, initOverrides) {
964
- const response = await this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
1082
+ async getCompositionDesign(requestParameters, initOverrides) {
1083
+ const response = await this.getCompositionDesignRaw(requestParameters, initOverrides);
965
1084
  return await response.value();
966
1085
  }
967
1086
  /**
968
- * Retrieves only the design field from a composition.
969
- * Get Composition Design
1087
+ * Retrieves the design schema for a composition based on its widget type
1088
+ * Get Design Schema
970
1089
  */
971
- async getCompositionDesignRaw(requestParameters, initOverrides) {
1090
+ async getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
972
1091
  if (requestParameters['id'] == null) {
973
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
1092
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
974
1093
  }
975
1094
  const queryParameters = {};
976
1095
  const headerParameters = {};
@@ -988,19 +1107,19 @@ export class CompositionsApi extends runtime.BaseAPI {
988
1107
  }
989
1108
  }
990
1109
  const response = await this.request({
991
- path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1110
+ path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
992
1111
  method: 'GET',
993
1112
  headers: headerParameters,
994
1113
  query: queryParameters,
995
1114
  }, initOverrides);
996
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignResponseFromJSON(jsonValue));
1115
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignSchemaResponseFromJSON(jsonValue));
997
1116
  }
998
1117
  /**
999
- * Retrieves only the design field from a composition.
1000
- * Get Composition Design
1118
+ * Retrieves the design schema for a composition based on its widget type
1119
+ * Get Design Schema
1001
1120
  */
1002
- async getCompositionDesign(requestParameters, initOverrides) {
1003
- const response = await this.getCompositionDesignRaw(requestParameters, initOverrides);
1121
+ async getCompositionDesignSchema(requestParameters, initOverrides) {
1122
+ const response = await this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
1004
1123
  return await response.value();
1005
1124
  }
1006
1125
  /**
@@ -1194,6 +1313,69 @@ export class CompositionsApi extends runtime.BaseAPI {
1194
1313
  const response = await this.getCompositionsBatchRaw(requestParameters, initOverrides);
1195
1314
  return await response.value();
1196
1315
  }
1316
+ /**
1317
+ * Reads one widget table with cursor paging (time then id in byte order), optional since/until on the time column, and up to five context filters plus ten column filters. Rate limit 120 requests per minute. Each read batch uses a 5 s statement timeout.
1318
+ * List composition entry items with paging and filters
1319
+ */
1320
+ async listCompositionEntryItemsRaw(requestParameters, initOverrides) {
1321
+ if (requestParameters['id'] == null) {
1322
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listCompositionEntryItems().');
1323
+ }
1324
+ if (requestParameters['table'] == null) {
1325
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling listCompositionEntryItems().');
1326
+ }
1327
+ const queryParameters = {};
1328
+ if (requestParameters['limit'] != null) {
1329
+ queryParameters['limit'] = requestParameters['limit'];
1330
+ }
1331
+ if (requestParameters['order'] != null) {
1332
+ queryParameters['order'] = requestParameters['order'];
1333
+ }
1334
+ if (requestParameters['since'] != null) {
1335
+ queryParameters['since'] = requestParameters['since'].toISOString();
1336
+ }
1337
+ if (requestParameters['until'] != null) {
1338
+ queryParameters['until'] = requestParameters['until'].toISOString();
1339
+ }
1340
+ if (requestParameters['cursor'] != null) {
1341
+ queryParameters['cursor'] = requestParameters['cursor'];
1342
+ }
1343
+ if (requestParameters['context'] != null) {
1344
+ queryParameters['context'] = requestParameters['context'];
1345
+ }
1346
+ if (requestParameters['filter'] != null) {
1347
+ queryParameters['filter'] = requestParameters['filter'];
1348
+ }
1349
+ const headerParameters = {};
1350
+ if (requestParameters['xManagedUserId'] != null) {
1351
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
1352
+ }
1353
+ if (requestParameters['xManagedUserExternalId'] != null) {
1354
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
1355
+ }
1356
+ if (this.configuration && this.configuration.accessToken) {
1357
+ const token = this.configuration.accessToken;
1358
+ const tokenString = await token("apiKeyAuth", []);
1359
+ if (tokenString) {
1360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1361
+ }
1362
+ }
1363
+ const response = await this.request({
1364
+ path: `/compositions/{id}/entries/{table}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
1365
+ method: 'GET',
1366
+ headers: headerParameters,
1367
+ query: queryParameters,
1368
+ }, initOverrides);
1369
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionEntryItemsPageSuccessFromJSON(jsonValue));
1370
+ }
1371
+ /**
1372
+ * Reads one widget table with cursor paging (time then id in byte order), optional since/until on the time column, and up to five context filters plus ten column filters. Rate limit 120 requests per minute. Each read batch uses a 5 s statement timeout.
1373
+ * List composition entry items with paging and filters
1374
+ */
1375
+ async listCompositionEntryItems(requestParameters, initOverrides) {
1376
+ const response = await this.listCompositionEntryItemsRaw(requestParameters, initOverrides);
1377
+ return await response.value();
1378
+ }
1197
1379
  /**
1198
1380
  * Update a content list item
1199
1381
  */
@@ -1242,7 +1424,7 @@ export class CompositionsApi extends runtime.BaseAPI {
1242
1424
  query: queryParameters,
1243
1425
  body: requestParameters['requestBody'],
1244
1426
  }, initOverrides);
1245
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionContentItem201ResponseFromJSON(jsonValue));
1427
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentItemWriteResultResponseFromJSON(jsonValue));
1246
1428
  }
1247
1429
  /**
1248
1430
  * Update a content list item
@@ -1463,28 +1645,25 @@ export class CompositionsApi extends runtime.BaseAPI {
1463
1645
  return await response.value();
1464
1646
  }
1465
1647
  /**
1466
- * Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
1467
- * Update Record In Composition Database
1648
+ * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
1649
+ * Update Composition
1468
1650
  */
1469
- async updateCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
1651
+ async updateCompositionRaw(requestParameters, initOverrides) {
1470
1652
  if (requestParameters['id'] == null) {
1471
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionDatabaseRecord().');
1472
- }
1473
- if (requestParameters['table'] == null) {
1474
- throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling updateCompositionDatabaseRecord().');
1475
- }
1476
- if (requestParameters['recordId'] == null) {
1477
- throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling updateCompositionDatabaseRecord().');
1653
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1478
1654
  }
1479
1655
  if (requestParameters['idempotencyKey'] == null) {
1480
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionDatabaseRecord().');
1656
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateComposition().');
1481
1657
  }
1482
- if (requestParameters['body'] == null) {
1483
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateCompositionDatabaseRecord().');
1658
+ if (requestParameters['updateComposition'] == null) {
1659
+ throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1484
1660
  }
1485
1661
  const queryParameters = {};
1486
1662
  const headerParameters = {};
1487
1663
  headerParameters['Content-Type'] = 'application/json';
1664
+ if (requestParameters['ifMatch'] != null) {
1665
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1666
+ }
1488
1667
  if (requestParameters['idempotencyKey'] != null) {
1489
1668
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1490
1669
  }
@@ -1502,35 +1681,41 @@ export class CompositionsApi extends runtime.BaseAPI {
1502
1681
  }
1503
1682
  }
1504
1683
  const response = await this.request({
1505
- path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
1684
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1506
1685
  method: 'PUT',
1507
1686
  headers: headerParameters,
1508
1687
  query: queryParameters,
1509
- body: requestParameters['body'],
1688
+ body: UpdateCompositionToJSON(requestParameters['updateComposition']),
1510
1689
  }, initOverrides);
1511
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
1690
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
1512
1691
  }
1513
1692
  /**
1514
- * Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
1515
- * Update Record In Composition Database
1693
+ * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
1694
+ * Update Composition
1516
1695
  */
1517
- async updateCompositionDatabaseRecord(requestParameters, initOverrides) {
1518
- const response = await this.updateCompositionDatabaseRecordRaw(requestParameters, initOverrides);
1696
+ async updateComposition(requestParameters, initOverrides) {
1697
+ const response = await this.updateCompositionRaw(requestParameters, initOverrides);
1519
1698
  return await response.value();
1520
1699
  }
1521
1700
  /**
1522
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1523
- * Update Composition Status
1701
+ * Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
1702
+ * Update Record In Composition Database
1524
1703
  */
1525
- async updateCompositionStatusRaw(requestParameters, initOverrides) {
1704
+ async updateCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
1526
1705
  if (requestParameters['id'] == null) {
1527
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionStatus().');
1706
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionDatabaseRecord().');
1707
+ }
1708
+ if (requestParameters['table'] == null) {
1709
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling updateCompositionDatabaseRecord().');
1710
+ }
1711
+ if (requestParameters['recordId'] == null) {
1712
+ throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling updateCompositionDatabaseRecord().');
1528
1713
  }
1529
1714
  if (requestParameters['idempotencyKey'] == null) {
1530
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionStatus().');
1715
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionDatabaseRecord().');
1531
1716
  }
1532
- if (requestParameters['updateCompositionStatusRequest'] == null) {
1533
- throw new runtime.RequiredError('updateCompositionStatusRequest', 'Required parameter "updateCompositionStatusRequest" was null or undefined when calling updateCompositionStatus().');
1717
+ if (requestParameters['body'] == null) {
1718
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateCompositionDatabaseRecord().');
1534
1719
  }
1535
1720
  const queryParameters = {};
1536
1721
  const headerParameters = {};
@@ -1552,42 +1737,39 @@ export class CompositionsApi extends runtime.BaseAPI {
1552
1737
  }
1553
1738
  }
1554
1739
  const response = await this.request({
1555
- path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1740
+ path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
1556
1741
  method: 'PUT',
1557
1742
  headers: headerParameters,
1558
1743
  query: queryParameters,
1559
- body: UpdateCompositionStatusRequestToJSON(requestParameters['updateCompositionStatusRequest']),
1744
+ body: requestParameters['body'],
1560
1745
  }, initOverrides);
1561
- return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
1746
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDatabaseRecordResponseFromJSON(jsonValue));
1562
1747
  }
1563
1748
  /**
1564
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1565
- * Update Composition Status
1749
+ * Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
1750
+ * Update Record In Composition Database
1566
1751
  */
1567
- async updateCompositionStatus(requestParameters, initOverrides) {
1568
- const response = await this.updateCompositionStatusRaw(requestParameters, initOverrides);
1752
+ async updateCompositionDatabaseRecord(requestParameters, initOverrides) {
1753
+ const response = await this.updateCompositionDatabaseRecordRaw(requestParameters, initOverrides);
1569
1754
  return await response.value();
1570
1755
  }
1571
1756
  /**
1572
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
1573
- * Update Composition
1757
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1758
+ * Update Composition Status
1574
1759
  */
1575
- async updateCompositionRaw(requestParameters, initOverrides) {
1760
+ async updateCompositionStatusRaw(requestParameters, initOverrides) {
1576
1761
  if (requestParameters['id'] == null) {
1577
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1762
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionStatus().');
1578
1763
  }
1579
1764
  if (requestParameters['idempotencyKey'] == null) {
1580
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateComposition().');
1765
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionStatus().');
1581
1766
  }
1582
- if (requestParameters['updateComposition'] == null) {
1583
- throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1767
+ if (requestParameters['updateCompositionStatusRequest'] == null) {
1768
+ throw new runtime.RequiredError('updateCompositionStatusRequest', 'Required parameter "updateCompositionStatusRequest" was null or undefined when calling updateCompositionStatus().');
1584
1769
  }
1585
1770
  const queryParameters = {};
1586
1771
  const headerParameters = {};
1587
1772
  headerParameters['Content-Type'] = 'application/json';
1588
- if (requestParameters['ifMatch'] != null) {
1589
- headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1590
- }
1591
1773
  if (requestParameters['idempotencyKey'] != null) {
1592
1774
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1593
1775
  }
@@ -1605,20 +1787,20 @@ export class CompositionsApi extends runtime.BaseAPI {
1605
1787
  }
1606
1788
  }
1607
1789
  const response = await this.request({
1608
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1790
+ path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1609
1791
  method: 'PUT',
1610
1792
  headers: headerParameters,
1611
1793
  query: queryParameters,
1612
- body: UpdateCompositionToJSON(requestParameters['updateComposition']),
1794
+ body: UpdateCompositionStatusRequestToJSON(requestParameters['updateCompositionStatusRequest']),
1613
1795
  }, initOverrides);
1614
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
1796
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
1615
1797
  }
1616
1798
  /**
1617
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
1618
- * Update Composition
1799
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1800
+ * Update Composition Status
1619
1801
  */
1620
- async updateComposition(requestParameters, initOverrides) {
1621
- const response = await this.updateCompositionRaw(requestParameters, initOverrides);
1802
+ async updateCompositionStatus(requestParameters, initOverrides) {
1803
+ const response = await this.updateCompositionStatusRaw(requestParameters, initOverrides);
1622
1804
  return await response.value();
1623
1805
  }
1624
1806
  /**
@@ -1675,15 +1857,37 @@ export class CompositionsApi extends runtime.BaseAPI {
1675
1857
  /**
1676
1858
  * @export
1677
1859
  */
1678
- export const GetAllCompositions0WorkspaceEnum = {
1860
+ export const ExportCompositionEntryItemsFormatEnum = {
1861
+ Csv: 'csv',
1862
+ Json: 'json'
1863
+ };
1864
+ /**
1865
+ * @export
1866
+ */
1867
+ export const ExportCompositionEntryItemsOrderEnum = {
1868
+ Asc: 'asc',
1869
+ Desc: 'desc'
1870
+ };
1871
+ /**
1872
+ * @export
1873
+ */
1874
+ export const GetAllCompositionsWorkspaceEnum = {
1679
1875
  True: 'true',
1680
1876
  False: 'false'
1681
1877
  };
1682
1878
  /**
1683
1879
  * @export
1684
1880
  */
1685
- export const GetAllCompositions0StatusEnum = {
1881
+ export const GetAllCompositionsStatusEnum = {
1686
1882
  Draft: 'draft',
1687
1883
  Published: 'published',
1688
- Archived: 'archived'
1884
+ Archived: 'archived',
1885
+ Demo: 'demo'
1886
+ };
1887
+ /**
1888
+ * @export
1889
+ */
1890
+ export const ListCompositionEntryItemsOrderEnum = {
1891
+ Asc: 'asc',
1892
+ Desc: 'desc'
1689
1893
  };