@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
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.GetAllCompositions0StatusEnum = exports.GetAllCompositions0WorkspaceEnum = exports.CompositionsApi = void 0;
49
+ exports.ListCompositionEntryItemsOrderEnum = exports.GetAllCompositionsStatusEnum = exports.GetAllCompositionsWorkspaceEnum = exports.ExportCompositionEntryItemsOrderEnum = exports.ExportCompositionEntryItemsFormatEnum = exports.CompositionsApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
@@ -87,7 +87,7 @@ class CompositionsApi extends runtime.BaseAPI {
87
87
  query: queryParameters,
88
88
  body: (0, index_1.AddAiAnswersKnowledgeDocumentRequestToJSON)(requestParameters['addAiAnswersKnowledgeDocumentRequest']),
89
89
  }, initOverrides);
90
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddAiAnswersKnowledgeDocument201ResponseFromJSON)(jsonValue));
90
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiAnswersKnowledgeDocumentResponseFromJSON)(jsonValue));
91
91
  }
92
92
  /**
93
93
  * 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\'.
@@ -151,7 +151,7 @@ class CompositionsApi extends runtime.BaseAPI {
151
151
  query: queryParameters,
152
152
  body: formParams,
153
153
  }, initOverrides);
154
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddAiAnswersKnowledgeDocument201ResponseFromJSON)(jsonValue));
154
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiAnswersKnowledgeDocumentResponseFromJSON)(jsonValue));
155
155
  }
156
156
  /**
157
157
  * 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\'.
@@ -194,6 +194,53 @@ class CompositionsApi extends runtime.BaseAPI {
194
194
  const response = await this.checkCompositionAccessRaw(requestParameters, initOverrides);
195
195
  return await response.value();
196
196
  }
197
+ /**
198
+ * 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.
199
+ * Create Composition
200
+ */
201
+ async createCompositionRaw(requestParameters, initOverrides) {
202
+ if (requestParameters['idempotencyKey'] == null) {
203
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createComposition().');
204
+ }
205
+ if (requestParameters['newComposition'] == null) {
206
+ throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
207
+ }
208
+ const queryParameters = {};
209
+ const headerParameters = {};
210
+ headerParameters['Content-Type'] = 'application/json';
211
+ if (requestParameters['idempotencyKey'] != null) {
212
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
213
+ }
214
+ if (requestParameters['xManagedUserId'] != null) {
215
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
216
+ }
217
+ if (requestParameters['xManagedUserExternalId'] != null) {
218
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
219
+ }
220
+ if (this.configuration && this.configuration.accessToken) {
221
+ const token = this.configuration.accessToken;
222
+ const tokenString = await token("apiKeyAuth", []);
223
+ if (tokenString) {
224
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
225
+ }
226
+ }
227
+ const response = await this.request({
228
+ path: `/compositions`,
229
+ method: 'POST',
230
+ headers: headerParameters,
231
+ query: queryParameters,
232
+ body: (0, index_1.NewCompositionToJSON)(requestParameters['newComposition']),
233
+ }, initOverrides);
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionResponseFromJSON)(jsonValue));
235
+ }
236
+ /**
237
+ * 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.
238
+ * Create Composition
239
+ */
240
+ async createComposition(requestParameters, initOverrides) {
241
+ const response = await this.createCompositionRaw(requestParameters, initOverrides);
242
+ return await response.value();
243
+ }
197
244
  /**
198
245
  * 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.
199
246
  * Add a content list item
@@ -240,7 +287,7 @@ class CompositionsApi extends runtime.BaseAPI {
240
287
  query: queryParameters,
241
288
  body: (0, index_1.CreateCompositionContentItemRequestToJSON)(requestParameters['createCompositionContentItemRequest']),
242
289
  }, initOverrides);
243
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionContentItem201ResponseFromJSON)(jsonValue));
290
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ContentItemWriteResultResponseFromJSON)(jsonValue));
244
291
  }
245
292
  /**
246
293
  * 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.
@@ -293,7 +340,7 @@ class CompositionsApi extends runtime.BaseAPI {
293
340
  query: queryParameters,
294
341
  body: requestParameters['body'],
295
342
  }, initOverrides);
296
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionDatabaseRecord201ResponseFromJSON)(jsonValue));
343
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDatabaseRecordResponseFromJSON)(jsonValue));
297
344
  }
298
345
  /**
299
346
  * 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`.
@@ -304,22 +351,15 @@ class CompositionsApi extends runtime.BaseAPI {
304
351
  return await response.value();
305
352
  }
306
353
  /**
307
- * 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.
308
- * Create Composition
354
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
355
+ * Delete Composition
309
356
  */
310
- async createCompositionRaw(requestParameters, initOverrides) {
311
- if (requestParameters['idempotencyKey'] == null) {
312
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createComposition().');
313
- }
314
- if (requestParameters['newComposition'] == null) {
315
- throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
357
+ async deleteCompositionRaw(requestParameters, initOverrides) {
358
+ if (requestParameters['id'] == null) {
359
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
316
360
  }
317
361
  const queryParameters = {};
318
362
  const headerParameters = {};
319
- headerParameters['Content-Type'] = 'application/json';
320
- if (requestParameters['idempotencyKey'] != null) {
321
- headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
322
- }
323
363
  if (requestParameters['xManagedUserId'] != null) {
324
364
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
325
365
  }
@@ -334,21 +374,19 @@ class CompositionsApi extends runtime.BaseAPI {
334
374
  }
335
375
  }
336
376
  const response = await this.request({
337
- path: `/compositions`,
338
- method: 'POST',
377
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
378
+ method: 'DELETE',
339
379
  headers: headerParameters,
340
380
  query: queryParameters,
341
- body: (0, index_1.NewCompositionToJSON)(requestParameters['newComposition']),
342
381
  }, initOverrides);
343
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
382
+ return new runtime.VoidApiResponse(response);
344
383
  }
345
384
  /**
346
- * 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.
347
- * Create Composition
385
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
386
+ * Delete Composition
348
387
  */
349
- async createComposition(requestParameters, initOverrides) {
350
- const response = await this.createCompositionRaw(requestParameters, initOverrides);
351
- return await response.value();
388
+ async deleteComposition(requestParameters, initOverrides) {
389
+ await this.deleteCompositionRaw(requestParameters, initOverrides);
352
390
  }
353
391
  /**
354
392
  * Delete a content list item
@@ -482,7 +520,7 @@ class CompositionsApi extends runtime.BaseAPI {
482
520
  headers: headerParameters,
483
521
  query: queryParameters,
484
522
  }, initOverrides);
485
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionDatabaseRecord201ResponseFromJSON)(jsonValue));
523
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDatabaseRecordResponseFromJSON)(jsonValue));
486
524
  }
487
525
  /**
488
526
  * 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`.
@@ -493,14 +531,26 @@ class CompositionsApi extends runtime.BaseAPI {
493
531
  return await response.value();
494
532
  }
495
533
  /**
496
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
497
- * Delete Composition
534
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
535
+ * Delete composition entry items by id or host context
498
536
  */
499
- async deleteCompositionRaw(requestParameters, initOverrides) {
537
+ async deleteCompositionEntryItemsRaw(requestParameters, initOverrides) {
500
538
  if (requestParameters['id'] == null) {
501
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
539
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionEntryItems().');
540
+ }
541
+ if (requestParameters['table'] == null) {
542
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling deleteCompositionEntryItems().');
502
543
  }
503
544
  const queryParameters = {};
545
+ if (requestParameters['ids'] != null) {
546
+ queryParameters['ids'] = requestParameters['ids'];
547
+ }
548
+ if (requestParameters['context'] != null) {
549
+ queryParameters['context'] = requestParameters['context'];
550
+ }
551
+ if (requestParameters['filter'] != null) {
552
+ queryParameters['filter'] = requestParameters['filter'];
553
+ }
504
554
  const headerParameters = {};
505
555
  if (requestParameters['xManagedUserId'] != null) {
506
556
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
@@ -516,19 +566,20 @@ class CompositionsApi extends runtime.BaseAPI {
516
566
  }
517
567
  }
518
568
  const response = await this.request({
519
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
569
+ path: `/compositions/{id}/entries/{table}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
520
570
  method: 'DELETE',
521
571
  headers: headerParameters,
522
572
  query: queryParameters,
523
573
  }, initOverrides);
524
- return new runtime.VoidApiResponse(response);
574
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionEntryDeleteSuccessFromJSON)(jsonValue));
525
575
  }
526
576
  /**
527
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
528
- * Delete Composition
577
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
578
+ * Delete composition entry items by id or host context
529
579
  */
530
- async deleteComposition(requestParameters, initOverrides) {
531
- await this.deleteCompositionRaw(requestParameters, initOverrides);
580
+ async deleteCompositionEntryItems(requestParameters, initOverrides) {
581
+ const response = await this.deleteCompositionEntryItemsRaw(requestParameters, initOverrides);
582
+ return await response.value();
532
583
  }
533
584
  /**
534
585
  * 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.
@@ -616,6 +667,71 @@ class CompositionsApi extends runtime.BaseAPI {
616
667
  const response = await this.duplicateCompositionRaw(requestParameters, initOverrides);
617
668
  return await response.value();
618
669
  }
670
+ /**
671
+ * 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.
672
+ * Export composition entry items
673
+ */
674
+ async exportCompositionEntryItemsRaw(requestParameters, initOverrides) {
675
+ if (requestParameters['id'] == null) {
676
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling exportCompositionEntryItems().');
677
+ }
678
+ if (requestParameters['table'] == null) {
679
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling exportCompositionEntryItems().');
680
+ }
681
+ const queryParameters = {};
682
+ if (requestParameters['format'] != null) {
683
+ queryParameters['format'] = requestParameters['format'];
684
+ }
685
+ if (requestParameters['order'] != null) {
686
+ queryParameters['order'] = requestParameters['order'];
687
+ }
688
+ if (requestParameters['since'] != null) {
689
+ queryParameters['since'] = requestParameters['since'].toISOString();
690
+ }
691
+ if (requestParameters['until'] != null) {
692
+ queryParameters['until'] = requestParameters['until'].toISOString();
693
+ }
694
+ if (requestParameters['context'] != null) {
695
+ queryParameters['context'] = requestParameters['context'];
696
+ }
697
+ if (requestParameters['filter'] != null) {
698
+ queryParameters['filter'] = requestParameters['filter'];
699
+ }
700
+ const headerParameters = {};
701
+ if (requestParameters['xManagedUserId'] != null) {
702
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
703
+ }
704
+ if (requestParameters['xManagedUserExternalId'] != null) {
705
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
706
+ }
707
+ if (this.configuration && this.configuration.accessToken) {
708
+ const token = this.configuration.accessToken;
709
+ const tokenString = await token("apiKeyAuth", []);
710
+ if (tokenString) {
711
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
712
+ }
713
+ }
714
+ const response = await this.request({
715
+ path: `/compositions/{id}/entries/{table}/export`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
716
+ method: 'GET',
717
+ headers: headerParameters,
718
+ query: queryParameters,
719
+ }, initOverrides);
720
+ if (this.isJsonMime(response.headers.get('content-type'))) {
721
+ return new runtime.JSONApiResponse(response);
722
+ }
723
+ else {
724
+ return new runtime.TextApiResponse(response);
725
+ }
726
+ }
727
+ /**
728
+ * 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.
729
+ * Export composition entry items
730
+ */
731
+ async exportCompositionEntryItems(requestParameters, initOverrides) {
732
+ const response = await this.exportCompositionEntryItemsRaw(requestParameters, initOverrides);
733
+ return await response.value();
734
+ }
619
735
  /**
620
736
  * 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.
621
737
  * See the documents a widget\'s AI answers from
@@ -728,6 +844,9 @@ class CompositionsApi extends runtime.BaseAPI {
728
844
  }
729
845
  const queryParameters = {};
730
846
  const headerParameters = {};
847
+ if (requestParameters['ifNoneMatch'] != null) {
848
+ headerParameters['If-None-Match'] = String(requestParameters['ifNoneMatch']);
849
+ }
731
850
  if (requestParameters['xManagedUserId'] != null) {
732
851
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
733
852
  }
@@ -747,7 +866,7 @@ class CompositionsApi extends runtime.BaseAPI {
747
866
  headers: headerParameters,
748
867
  query: queryParameters,
749
868
  }, initOverrides);
750
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
869
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionResponseFromJSON)(jsonValue));
751
870
  }
752
871
  /**
753
872
  * 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.
@@ -758,12 +877,12 @@ class CompositionsApi extends runtime.BaseAPI {
758
877
  return await response.value();
759
878
  }
760
879
  /**
761
- * Retrieves the content schema for a composition based on its widget type
762
- * Get Content Schema
880
+ * Retrieves the current content of a composition
881
+ * Get Current Content
763
882
  */
764
- async getCompositionContentSchemaRaw(requestParameters, initOverrides) {
883
+ async getCompositionContentRaw(requestParameters, initOverrides) {
765
884
  if (requestParameters['id'] == null) {
766
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
885
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContent().');
767
886
  }
768
887
  const queryParameters = {};
769
888
  const headerParameters = {};
@@ -781,28 +900,28 @@ class CompositionsApi extends runtime.BaseAPI {
781
900
  }
782
901
  }
783
902
  const response = await this.request({
784
- path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
903
+ path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
785
904
  method: 'GET',
786
905
  headers: headerParameters,
787
906
  query: queryParameters,
788
907
  }, initOverrides);
789
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentSchemaResponseFromJSON)(jsonValue));
908
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentResponseFromJSON)(jsonValue));
790
909
  }
791
910
  /**
792
- * Retrieves the content schema for a composition based on its widget type
793
- * Get Content Schema
911
+ * Retrieves the current content of a composition
912
+ * Get Current Content
794
913
  */
795
- async getCompositionContentSchema(requestParameters, initOverrides) {
796
- const response = await this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
914
+ async getCompositionContent(requestParameters, initOverrides) {
915
+ const response = await this.getCompositionContentRaw(requestParameters, initOverrides);
797
916
  return await response.value();
798
917
  }
799
918
  /**
800
- * Retrieves the current content of a composition
801
- * Get Current Content
919
+ * Retrieves the content schema for a composition based on its widget type
920
+ * Get Content Schema
802
921
  */
803
- async getCompositionContentRaw(requestParameters, initOverrides) {
922
+ async getCompositionContentSchemaRaw(requestParameters, initOverrides) {
804
923
  if (requestParameters['id'] == null) {
805
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContent().');
924
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
806
925
  }
807
926
  const queryParameters = {};
808
927
  const headerParameters = {};
@@ -820,19 +939,19 @@ class CompositionsApi extends runtime.BaseAPI {
820
939
  }
821
940
  }
822
941
  const response = await this.request({
823
- path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
942
+ path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
824
943
  method: 'GET',
825
944
  headers: headerParameters,
826
945
  query: queryParameters,
827
946
  }, initOverrides);
828
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentResponseFromJSON)(jsonValue));
947
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentSchemaResponseFromJSON)(jsonValue));
829
948
  }
830
949
  /**
831
- * Retrieves the current content of a composition
832
- * Get Current Content
950
+ * Retrieves the content schema for a composition based on its widget type
951
+ * Get Content Schema
833
952
  */
834
- async getCompositionContent(requestParameters, initOverrides) {
835
- const response = await this.getCompositionContentRaw(requestParameters, initOverrides);
953
+ async getCompositionContentSchema(requestParameters, initOverrides) {
954
+ const response = await this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
836
955
  return await response.value();
837
956
  }
838
957
  /**
@@ -909,7 +1028,7 @@ class CompositionsApi extends runtime.BaseAPI {
909
1028
  headers: headerParameters,
910
1029
  query: queryParameters,
911
1030
  }, initOverrides);
912
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionDatabaseRecord201ResponseFromJSON)(jsonValue));
1031
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDatabaseRecordResponseFromJSON)(jsonValue));
913
1032
  }
914
1033
  /**
915
1034
  * 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`.
@@ -962,12 +1081,12 @@ class CompositionsApi extends runtime.BaseAPI {
962
1081
  return await response.value();
963
1082
  }
964
1083
  /**
965
- * Retrieves the design schema for a composition based on its widget type
966
- * Get Design Schema
1084
+ * Retrieves only the design field from a composition.
1085
+ * Get Composition Design
967
1086
  */
968
- async getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
1087
+ async getCompositionDesignRaw(requestParameters, initOverrides) {
969
1088
  if (requestParameters['id'] == null) {
970
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
1089
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
971
1090
  }
972
1091
  const queryParameters = {};
973
1092
  const headerParameters = {};
@@ -985,28 +1104,28 @@ class CompositionsApi extends runtime.BaseAPI {
985
1104
  }
986
1105
  }
987
1106
  const response = await this.request({
988
- path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1107
+ path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
989
1108
  method: 'GET',
990
1109
  headers: headerParameters,
991
1110
  query: queryParameters,
992
1111
  }, initOverrides);
993
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignSchemaResponseFromJSON)(jsonValue));
1112
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignResponseFromJSON)(jsonValue));
994
1113
  }
995
1114
  /**
996
- * Retrieves the design schema for a composition based on its widget type
997
- * Get Design Schema
1115
+ * Retrieves only the design field from a composition.
1116
+ * Get Composition Design
998
1117
  */
999
- async getCompositionDesignSchema(requestParameters, initOverrides) {
1000
- const response = await this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
1118
+ async getCompositionDesign(requestParameters, initOverrides) {
1119
+ const response = await this.getCompositionDesignRaw(requestParameters, initOverrides);
1001
1120
  return await response.value();
1002
1121
  }
1003
1122
  /**
1004
- * Retrieves only the design field from a composition.
1005
- * Get Composition Design
1123
+ * Retrieves the design schema for a composition based on its widget type
1124
+ * Get Design Schema
1006
1125
  */
1007
- async getCompositionDesignRaw(requestParameters, initOverrides) {
1126
+ async getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
1008
1127
  if (requestParameters['id'] == null) {
1009
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
1128
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
1010
1129
  }
1011
1130
  const queryParameters = {};
1012
1131
  const headerParameters = {};
@@ -1024,19 +1143,19 @@ class CompositionsApi extends runtime.BaseAPI {
1024
1143
  }
1025
1144
  }
1026
1145
  const response = await this.request({
1027
- path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1146
+ path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1028
1147
  method: 'GET',
1029
1148
  headers: headerParameters,
1030
1149
  query: queryParameters,
1031
1150
  }, initOverrides);
1032
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignResponseFromJSON)(jsonValue));
1151
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignSchemaResponseFromJSON)(jsonValue));
1033
1152
  }
1034
1153
  /**
1035
- * Retrieves only the design field from a composition.
1036
- * Get Composition Design
1154
+ * Retrieves the design schema for a composition based on its widget type
1155
+ * Get Design Schema
1037
1156
  */
1038
- async getCompositionDesign(requestParameters, initOverrides) {
1039
- const response = await this.getCompositionDesignRaw(requestParameters, initOverrides);
1157
+ async getCompositionDesignSchema(requestParameters, initOverrides) {
1158
+ const response = await this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
1040
1159
  return await response.value();
1041
1160
  }
1042
1161
  /**
@@ -1230,6 +1349,69 @@ class CompositionsApi extends runtime.BaseAPI {
1230
1349
  const response = await this.getCompositionsBatchRaw(requestParameters, initOverrides);
1231
1350
  return await response.value();
1232
1351
  }
1352
+ /**
1353
+ * 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.
1354
+ * List composition entry items with paging and filters
1355
+ */
1356
+ async listCompositionEntryItemsRaw(requestParameters, initOverrides) {
1357
+ if (requestParameters['id'] == null) {
1358
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listCompositionEntryItems().');
1359
+ }
1360
+ if (requestParameters['table'] == null) {
1361
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling listCompositionEntryItems().');
1362
+ }
1363
+ const queryParameters = {};
1364
+ if (requestParameters['limit'] != null) {
1365
+ queryParameters['limit'] = requestParameters['limit'];
1366
+ }
1367
+ if (requestParameters['order'] != null) {
1368
+ queryParameters['order'] = requestParameters['order'];
1369
+ }
1370
+ if (requestParameters['since'] != null) {
1371
+ queryParameters['since'] = requestParameters['since'].toISOString();
1372
+ }
1373
+ if (requestParameters['until'] != null) {
1374
+ queryParameters['until'] = requestParameters['until'].toISOString();
1375
+ }
1376
+ if (requestParameters['cursor'] != null) {
1377
+ queryParameters['cursor'] = requestParameters['cursor'];
1378
+ }
1379
+ if (requestParameters['context'] != null) {
1380
+ queryParameters['context'] = requestParameters['context'];
1381
+ }
1382
+ if (requestParameters['filter'] != null) {
1383
+ queryParameters['filter'] = requestParameters['filter'];
1384
+ }
1385
+ const headerParameters = {};
1386
+ if (requestParameters['xManagedUserId'] != null) {
1387
+ headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
1388
+ }
1389
+ if (requestParameters['xManagedUserExternalId'] != null) {
1390
+ headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
1391
+ }
1392
+ if (this.configuration && this.configuration.accessToken) {
1393
+ const token = this.configuration.accessToken;
1394
+ const tokenString = await token("apiKeyAuth", []);
1395
+ if (tokenString) {
1396
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1397
+ }
1398
+ }
1399
+ const response = await this.request({
1400
+ path: `/compositions/{id}/entries/{table}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
1401
+ method: 'GET',
1402
+ headers: headerParameters,
1403
+ query: queryParameters,
1404
+ }, initOverrides);
1405
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionEntryItemsPageSuccessFromJSON)(jsonValue));
1406
+ }
1407
+ /**
1408
+ * 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.
1409
+ * List composition entry items with paging and filters
1410
+ */
1411
+ async listCompositionEntryItems(requestParameters, initOverrides) {
1412
+ const response = await this.listCompositionEntryItemsRaw(requestParameters, initOverrides);
1413
+ return await response.value();
1414
+ }
1233
1415
  /**
1234
1416
  * Update a content list item
1235
1417
  */
@@ -1278,7 +1460,7 @@ class CompositionsApi extends runtime.BaseAPI {
1278
1460
  query: queryParameters,
1279
1461
  body: requestParameters['requestBody'],
1280
1462
  }, initOverrides);
1281
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionContentItem201ResponseFromJSON)(jsonValue));
1463
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ContentItemWriteResultResponseFromJSON)(jsonValue));
1282
1464
  }
1283
1465
  /**
1284
1466
  * Update a content list item
@@ -1499,28 +1681,25 @@ class CompositionsApi extends runtime.BaseAPI {
1499
1681
  return await response.value();
1500
1682
  }
1501
1683
  /**
1502
- * 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`.
1503
- * Update Record In Composition Database
1684
+ * 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.
1685
+ * Update Composition
1504
1686
  */
1505
- async updateCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
1687
+ async updateCompositionRaw(requestParameters, initOverrides) {
1506
1688
  if (requestParameters['id'] == null) {
1507
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionDatabaseRecord().');
1508
- }
1509
- if (requestParameters['table'] == null) {
1510
- throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling updateCompositionDatabaseRecord().');
1511
- }
1512
- if (requestParameters['recordId'] == null) {
1513
- throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling updateCompositionDatabaseRecord().');
1689
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1514
1690
  }
1515
1691
  if (requestParameters['idempotencyKey'] == null) {
1516
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionDatabaseRecord().');
1692
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateComposition().');
1517
1693
  }
1518
- if (requestParameters['body'] == null) {
1519
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateCompositionDatabaseRecord().');
1694
+ if (requestParameters['updateComposition'] == null) {
1695
+ throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1520
1696
  }
1521
1697
  const queryParameters = {};
1522
1698
  const headerParameters = {};
1523
1699
  headerParameters['Content-Type'] = 'application/json';
1700
+ if (requestParameters['ifMatch'] != null) {
1701
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1702
+ }
1524
1703
  if (requestParameters['idempotencyKey'] != null) {
1525
1704
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1526
1705
  }
@@ -1538,35 +1717,41 @@ class CompositionsApi extends runtime.BaseAPI {
1538
1717
  }
1539
1718
  }
1540
1719
  const response = await this.request({
1541
- path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
1720
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1542
1721
  method: 'PUT',
1543
1722
  headers: headerParameters,
1544
1723
  query: queryParameters,
1545
- body: requestParameters['body'],
1724
+ body: (0, index_1.UpdateCompositionToJSON)(requestParameters['updateComposition']),
1546
1725
  }, initOverrides);
1547
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionDatabaseRecord201ResponseFromJSON)(jsonValue));
1726
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionResponseFromJSON)(jsonValue));
1548
1727
  }
1549
1728
  /**
1550
- * 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`.
1551
- * Update Record In Composition Database
1729
+ * 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.
1730
+ * Update Composition
1552
1731
  */
1553
- async updateCompositionDatabaseRecord(requestParameters, initOverrides) {
1554
- const response = await this.updateCompositionDatabaseRecordRaw(requestParameters, initOverrides);
1732
+ async updateComposition(requestParameters, initOverrides) {
1733
+ const response = await this.updateCompositionRaw(requestParameters, initOverrides);
1555
1734
  return await response.value();
1556
1735
  }
1557
1736
  /**
1558
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1559
- * Update Composition Status
1737
+ * 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`.
1738
+ * Update Record In Composition Database
1560
1739
  */
1561
- async updateCompositionStatusRaw(requestParameters, initOverrides) {
1740
+ async updateCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
1562
1741
  if (requestParameters['id'] == null) {
1563
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionStatus().');
1742
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionDatabaseRecord().');
1743
+ }
1744
+ if (requestParameters['table'] == null) {
1745
+ throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling updateCompositionDatabaseRecord().');
1746
+ }
1747
+ if (requestParameters['recordId'] == null) {
1748
+ throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling updateCompositionDatabaseRecord().');
1564
1749
  }
1565
1750
  if (requestParameters['idempotencyKey'] == null) {
1566
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionStatus().');
1751
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionDatabaseRecord().');
1567
1752
  }
1568
- if (requestParameters['updateCompositionStatusRequest'] == null) {
1569
- throw new runtime.RequiredError('updateCompositionStatusRequest', 'Required parameter "updateCompositionStatusRequest" was null or undefined when calling updateCompositionStatus().');
1753
+ if (requestParameters['body'] == null) {
1754
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateCompositionDatabaseRecord().');
1570
1755
  }
1571
1756
  const queryParameters = {};
1572
1757
  const headerParameters = {};
@@ -1588,42 +1773,39 @@ class CompositionsApi extends runtime.BaseAPI {
1588
1773
  }
1589
1774
  }
1590
1775
  const response = await this.request({
1591
- path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1776
+ path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
1592
1777
  method: 'PUT',
1593
1778
  headers: headerParameters,
1594
1779
  query: queryParameters,
1595
- body: (0, index_1.UpdateCompositionStatusRequestToJSON)(requestParameters['updateCompositionStatusRequest']),
1780
+ body: requestParameters['body'],
1596
1781
  }, initOverrides);
1597
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionResponseFromJSON)(jsonValue));
1782
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDatabaseRecordResponseFromJSON)(jsonValue));
1598
1783
  }
1599
1784
  /**
1600
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1601
- * Update Composition Status
1785
+ * 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`.
1786
+ * Update Record In Composition Database
1602
1787
  */
1603
- async updateCompositionStatus(requestParameters, initOverrides) {
1604
- const response = await this.updateCompositionStatusRaw(requestParameters, initOverrides);
1788
+ async updateCompositionDatabaseRecord(requestParameters, initOverrides) {
1789
+ const response = await this.updateCompositionDatabaseRecordRaw(requestParameters, initOverrides);
1605
1790
  return await response.value();
1606
1791
  }
1607
1792
  /**
1608
- * 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.
1609
- * Update Composition
1793
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1794
+ * Update Composition Status
1610
1795
  */
1611
- async updateCompositionRaw(requestParameters, initOverrides) {
1796
+ async updateCompositionStatusRaw(requestParameters, initOverrides) {
1612
1797
  if (requestParameters['id'] == null) {
1613
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1798
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionStatus().');
1614
1799
  }
1615
1800
  if (requestParameters['idempotencyKey'] == null) {
1616
- throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateComposition().');
1801
+ throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionStatus().');
1617
1802
  }
1618
- if (requestParameters['updateComposition'] == null) {
1619
- throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1803
+ if (requestParameters['updateCompositionStatusRequest'] == null) {
1804
+ throw new runtime.RequiredError('updateCompositionStatusRequest', 'Required parameter "updateCompositionStatusRequest" was null or undefined when calling updateCompositionStatus().');
1620
1805
  }
1621
1806
  const queryParameters = {};
1622
1807
  const headerParameters = {};
1623
1808
  headerParameters['Content-Type'] = 'application/json';
1624
- if (requestParameters['ifMatch'] != null) {
1625
- headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1626
- }
1627
1809
  if (requestParameters['idempotencyKey'] != null) {
1628
1810
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1629
1811
  }
@@ -1641,20 +1823,20 @@ class CompositionsApi extends runtime.BaseAPI {
1641
1823
  }
1642
1824
  }
1643
1825
  const response = await this.request({
1644
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1826
+ path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1645
1827
  method: 'PUT',
1646
1828
  headers: headerParameters,
1647
1829
  query: queryParameters,
1648
- body: (0, index_1.UpdateCompositionToJSON)(requestParameters['updateComposition']),
1830
+ body: (0, index_1.UpdateCompositionStatusRequestToJSON)(requestParameters['updateCompositionStatusRequest']),
1649
1831
  }, initOverrides);
1650
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
1832
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionResponseFromJSON)(jsonValue));
1651
1833
  }
1652
1834
  /**
1653
- * 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.
1654
- * Update Composition
1835
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1836
+ * Update Composition Status
1655
1837
  */
1656
- async updateComposition(requestParameters, initOverrides) {
1657
- const response = await this.updateCompositionRaw(requestParameters, initOverrides);
1838
+ async updateCompositionStatus(requestParameters, initOverrides) {
1839
+ const response = await this.updateCompositionStatusRaw(requestParameters, initOverrides);
1658
1840
  return await response.value();
1659
1841
  }
1660
1842
  /**
@@ -1712,15 +1894,37 @@ exports.CompositionsApi = CompositionsApi;
1712
1894
  /**
1713
1895
  * @export
1714
1896
  */
1715
- exports.GetAllCompositions0WorkspaceEnum = {
1897
+ exports.ExportCompositionEntryItemsFormatEnum = {
1898
+ Csv: 'csv',
1899
+ Json: 'json'
1900
+ };
1901
+ /**
1902
+ * @export
1903
+ */
1904
+ exports.ExportCompositionEntryItemsOrderEnum = {
1905
+ Asc: 'asc',
1906
+ Desc: 'desc'
1907
+ };
1908
+ /**
1909
+ * @export
1910
+ */
1911
+ exports.GetAllCompositionsWorkspaceEnum = {
1716
1912
  True: 'true',
1717
1913
  False: 'false'
1718
1914
  };
1719
1915
  /**
1720
1916
  * @export
1721
1917
  */
1722
- exports.GetAllCompositions0StatusEnum = {
1918
+ exports.GetAllCompositionsStatusEnum = {
1723
1919
  Draft: 'draft',
1724
1920
  Published: 'published',
1725
- Archived: 'archived'
1921
+ Archived: 'archived',
1922
+ Demo: 'demo'
1923
+ };
1924
+ /**
1925
+ * @export
1926
+ */
1927
+ exports.ListCompositionEntryItemsOrderEnum = {
1928
+ Asc: 'asc',
1929
+ Desc: 'desc'
1726
1930
  };