@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
@@ -10,24 +10,30 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddAiAnswersKnowledgeDocument201Response, AddAiAnswersKnowledgeDocumentRequest, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionResponse, CreateCompositionContentItem201Response, CreateCompositionContentItemRequest, CreateCompositionDatabaseRecord201Response, CreateCompositionFromWidget201Response, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DuplicateComposition202Response, DuplicateCompositionRequest, GetAiAnswersKnowledge200Response, GetAllCompositions200Response, GetCompositionContentResponse, GetCompositionContentSchemaResponse, GetCompositionDataSourceResponse, GetCompositionDatabaseRecords200Response, GetCompositionDesignResponse, GetCompositionDesignSchemaResponse, GetCompositionEmbedSchemaResponse, GetCompositionEmbedSettingsResponse, GetCompositionPreviewResponse, GetCompositionVersions200Response, GetCompositionsBatchRequest, GetCompositionsBatchResponse, NewComposition, RemoveAiAnswersKnowledgeDocument200Response, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, UpdateComposition, UpdateCompositionStatusRequest, ValidateCompositionContentResponse } from '../models/index';
14
- export interface AddAiAnswersKnowledgeDocument0Request {
13
+ import type { AddAiAnswersKnowledgeDocumentRequest, AiAnswersKnowledgeDocumentResponse, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionDatabaseRecordResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionEntryDeleteSuccess, CompositionEntryItemsPageSuccess, CompositionResponse, ContentItemWriteResultResponse, CreateCompositionContentItemRequest, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DuplicateComposition202Response, DuplicateCompositionRequest, GetAiAnswersKnowledge200Response, GetAllCompositions200Response, GetCompositionContentResponse, GetCompositionContentSchemaResponse, GetCompositionDataSourceResponse, GetCompositionDatabaseRecords200Response, GetCompositionDesignResponse, GetCompositionDesignSchemaResponse, GetCompositionEmbedSchemaResponse, GetCompositionEmbedSettingsResponse, GetCompositionPreviewResponse, GetCompositionVersions200Response, GetCompositionsBatchRequest, GetCompositionsBatchResponse, NewComposition, RemoveAiAnswersKnowledgeDocument200Response, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, UpdateComposition, UpdateCompositionStatusRequest, ValidateCompositionContentResponse } from '../models/index';
14
+ export interface AddAiAnswersKnowledgeDocumentOperationRequest {
15
15
  id: string;
16
16
  addAiAnswersKnowledgeDocumentRequest: AddAiAnswersKnowledgeDocumentRequest;
17
17
  xManagedUserId?: string;
18
18
  xManagedUserExternalId?: string;
19
19
  }
20
- export interface AddAiAnswersKnowledgeFile0Request {
20
+ export interface AddAiAnswersKnowledgeFileRequest {
21
21
  id: string;
22
22
  file: Blob;
23
23
  xManagedUserId?: string;
24
24
  xManagedUserExternalId?: string;
25
25
  title?: string;
26
26
  }
27
- export interface CheckCompositionAccess0Request {
27
+ export interface CheckCompositionAccessRequest {
28
28
  id: string;
29
29
  }
30
- export interface CreateCompositionContentItem0Request {
30
+ export interface CreateCompositionRequest {
31
+ idempotencyKey: string;
32
+ newComposition: NewComposition;
33
+ xManagedUserId?: string;
34
+ xManagedUserExternalId?: string;
35
+ }
36
+ export interface CreateCompositionContentItemOperationRequest {
31
37
  id: string;
32
38
  list: string;
33
39
  idempotencyKey: string;
@@ -36,7 +42,7 @@ export interface CreateCompositionContentItem0Request {
36
42
  xManagedUserId?: string;
37
43
  xManagedUserExternalId?: string;
38
44
  }
39
- export interface CreateCompositionDatabaseRecord0Request {
45
+ export interface CreateCompositionDatabaseRecordRequest {
40
46
  id: string;
41
47
  table: string;
42
48
  idempotencyKey: string;
@@ -44,13 +50,12 @@ export interface CreateCompositionDatabaseRecord0Request {
44
50
  xManagedUserId?: string;
45
51
  xManagedUserExternalId?: string;
46
52
  }
47
- export interface CreateComposition0Request {
48
- idempotencyKey: string;
49
- newComposition: NewComposition;
53
+ export interface DeleteCompositionRequest {
54
+ id: string;
50
55
  xManagedUserId?: string;
51
56
  xManagedUserExternalId?: string;
52
57
  }
53
- export interface DeleteCompositionContentItem0Request {
58
+ export interface DeleteCompositionContentItemRequest {
54
59
  id: string;
55
60
  list: string;
56
61
  itemId: string;
@@ -59,121 +64,163 @@ export interface DeleteCompositionContentItem0Request {
59
64
  xManagedUserId?: string;
60
65
  xManagedUserExternalId?: string;
61
66
  }
62
- export interface DeleteCompositionDataSource0Request {
67
+ export interface DeleteCompositionDataSourceRequest {
63
68
  id: string;
64
69
  idempotencyKey: string;
65
70
  xManagedUserId?: string;
66
71
  xManagedUserExternalId?: string;
67
72
  }
68
- export interface DeleteCompositionDatabaseRecord0Request {
73
+ export interface DeleteCompositionDatabaseRecordRequest {
69
74
  id: string;
70
75
  table: string;
71
76
  recordId: string;
72
77
  xManagedUserId?: string;
73
78
  xManagedUserExternalId?: string;
74
79
  }
75
- export interface DeleteComposition0Request {
80
+ export interface DeleteCompositionEntryItemsRequest {
76
81
  id: string;
82
+ table: string;
83
+ ids?: string;
84
+ context?: {
85
+ [key: string]: string;
86
+ };
87
+ filter?: {
88
+ [key: string]: string;
89
+ };
77
90
  xManagedUserId?: string;
78
91
  xManagedUserExternalId?: string;
79
92
  }
80
- export interface DescribeCompositionEntries0Request {
93
+ export interface DescribeCompositionEntriesRequest {
81
94
  id: string;
82
95
  xManagedUserId?: string;
83
96
  xManagedUserExternalId?: string;
84
97
  }
85
- export interface DuplicateComposition0Request {
98
+ export interface DuplicateCompositionOperationRequest {
86
99
  id: string;
87
100
  idempotencyKey: string;
88
101
  xManagedUserId?: string;
89
102
  xManagedUserExternalId?: string;
90
103
  duplicateCompositionRequest?: DuplicateCompositionRequest;
91
104
  }
92
- export interface GetAiAnswersKnowledge0Request {
105
+ export interface ExportCompositionEntryItemsRequest {
106
+ id: string;
107
+ table: string;
108
+ format?: ExportCompositionEntryItemsFormatEnum;
109
+ order?: ExportCompositionEntryItemsOrderEnum;
110
+ since?: Date;
111
+ until?: Date;
112
+ context?: {
113
+ [key: string]: string;
114
+ };
115
+ filter?: {
116
+ [key: string]: string;
117
+ };
118
+ xManagedUserId?: string;
119
+ xManagedUserExternalId?: string;
120
+ }
121
+ export interface GetAiAnswersKnowledgeRequest {
93
122
  id: string;
94
123
  xManagedUserId?: string;
95
124
  xManagedUserExternalId?: string;
96
125
  }
97
- export interface GetAllCompositions0Request {
126
+ export interface GetAllCompositionsRequest {
98
127
  page?: number;
99
128
  size?: number;
100
129
  sort?: string;
101
130
  widgetId?: string;
102
- workspace?: GetAllCompositions0WorkspaceEnum;
131
+ workspace?: GetAllCompositionsWorkspaceEnum;
103
132
  projectFolder?: string;
104
- status?: GetAllCompositions0StatusEnum;
133
+ status?: GetAllCompositionsStatusEnum;
105
134
  managedUserId?: string;
106
135
  managedUserExternalId?: string;
107
136
  xManagedUserId?: string;
108
137
  xManagedUserExternalId?: string;
109
138
  }
110
- export interface GetCompositionById0Request {
139
+ export interface GetCompositionByIdRequest {
111
140
  id: string;
141
+ ifNoneMatch?: string;
112
142
  xManagedUserId?: string;
113
143
  xManagedUserExternalId?: string;
114
144
  }
115
- export interface GetCompositionContentSchema0Request {
145
+ export interface GetCompositionContentRequest {
116
146
  id: string;
117
147
  xManagedUserId?: string;
118
148
  xManagedUserExternalId?: string;
119
149
  }
120
- export interface GetCompositionContent0Request {
150
+ export interface GetCompositionContentSchemaRequest {
121
151
  id: string;
122
152
  xManagedUserId?: string;
123
153
  xManagedUserExternalId?: string;
124
154
  }
125
- export interface GetCompositionDataSource0Request {
155
+ export interface GetCompositionDataSourceRequest {
126
156
  id: string;
127
157
  xManagedUserId?: string;
128
158
  xManagedUserExternalId?: string;
129
159
  }
130
- export interface GetCompositionDatabaseRecord0Request {
160
+ export interface GetCompositionDatabaseRecordRequest {
131
161
  id: string;
132
162
  table: string;
133
163
  recordId: string;
134
164
  xManagedUserId?: string;
135
165
  xManagedUserExternalId?: string;
136
166
  }
137
- export interface GetCompositionDatabaseRecords0Request {
167
+ export interface GetCompositionDatabaseRecordsRequest {
138
168
  id: string;
139
169
  table: string;
140
170
  xManagedUserId?: string;
141
171
  xManagedUserExternalId?: string;
142
172
  }
143
- export interface GetCompositionDesignSchema0Request {
173
+ export interface GetCompositionDesignRequest {
144
174
  id: string;
145
175
  xManagedUserId?: string;
146
176
  xManagedUserExternalId?: string;
147
177
  }
148
- export interface GetCompositionDesign0Request {
178
+ export interface GetCompositionDesignSchemaRequest {
149
179
  id: string;
150
180
  xManagedUserId?: string;
151
181
  xManagedUserExternalId?: string;
152
182
  }
153
- export interface GetCompositionEmbedSchema0Request {
183
+ export interface GetCompositionEmbedSchemaRequest {
154
184
  id: string;
155
185
  xManagedUserId?: string;
156
186
  xManagedUserExternalId?: string;
157
187
  }
158
- export interface GetCompositionEmbedSettings0Request {
188
+ export interface GetCompositionEmbedSettingsRequest {
159
189
  id: string;
160
190
  xManagedUserId?: string;
161
191
  xManagedUserExternalId?: string;
162
192
  }
163
- export interface GetCompositionPreview0Request {
193
+ export interface GetCompositionPreviewRequest {
164
194
  id: string;
165
195
  xManagedUserId?: string;
166
196
  xManagedUserExternalId?: string;
167
197
  }
168
- export interface GetCompositionVersions0Request {
198
+ export interface GetCompositionVersionsRequest {
169
199
  id: string;
170
200
  xManagedUserId?: string;
171
201
  xManagedUserExternalId?: string;
172
202
  }
173
- export interface GetCompositionsBatch0Request {
203
+ export interface GetCompositionsBatchOperationRequest {
174
204
  getCompositionsBatchRequest: GetCompositionsBatchRequest;
175
205
  }
176
- export interface PatchCompositionContentItem0Request {
206
+ export interface ListCompositionEntryItemsRequest {
207
+ id: string;
208
+ table: string;
209
+ limit?: number;
210
+ order?: ListCompositionEntryItemsOrderEnum;
211
+ since?: Date;
212
+ until?: Date;
213
+ cursor?: string;
214
+ context?: {
215
+ [key: string]: string;
216
+ };
217
+ filter?: {
218
+ [key: string]: string;
219
+ };
220
+ xManagedUserId?: string;
221
+ xManagedUserExternalId?: string;
222
+ }
223
+ export interface PatchCompositionContentItemRequest {
177
224
  id: string;
178
225
  list: string;
179
226
  itemId: string;
@@ -185,7 +232,7 @@ export interface PatchCompositionContentItem0Request {
185
232
  xManagedUserId?: string;
186
233
  xManagedUserExternalId?: string;
187
234
  }
188
- export interface ReadCompositionEntries0Request {
235
+ export interface ReadCompositionEntriesRequest {
189
236
  id: string;
190
237
  table: string;
191
238
  groupBy?: string;
@@ -203,20 +250,20 @@ export interface ReadCompositionEntries0Request {
203
250
  xManagedUserId?: string;
204
251
  xManagedUserExternalId?: string;
205
252
  }
206
- export interface RemoveAiAnswersKnowledgeDocument0Request {
253
+ export interface RemoveAiAnswersKnowledgeDocumentRequest {
207
254
  id: string;
208
255
  documentId: string;
209
256
  xManagedUserId?: string;
210
257
  xManagedUserExternalId?: string;
211
258
  }
212
- export interface SetCompositionDataSource0Request {
259
+ export interface SetCompositionDataSourceOperationRequest {
213
260
  id: string;
214
261
  idempotencyKey: string;
215
262
  setCompositionDataSourceRequest: SetCompositionDataSourceRequest;
216
263
  xManagedUserId?: string;
217
264
  xManagedUserExternalId?: string;
218
265
  }
219
- export interface SetDynamicContent0Request {
266
+ export interface SetDynamicContentOperationRequest {
220
267
  id: string;
221
268
  idempotencyKey: string;
222
269
  setDynamicContentRequest: SetDynamicContentRequest;
@@ -224,31 +271,31 @@ export interface SetDynamicContent0Request {
224
271
  xManagedUserId?: string;
225
272
  xManagedUserExternalId?: string;
226
273
  }
227
- export interface UpdateCompositionDatabaseRecord0Request {
274
+ export interface UpdateCompositionRequest {
228
275
  id: string;
229
- table: string;
230
- recordId: string;
231
276
  idempotencyKey: string;
232
- body: object;
277
+ updateComposition: UpdateComposition;
278
+ ifMatch?: string;
233
279
  xManagedUserId?: string;
234
280
  xManagedUserExternalId?: string;
235
281
  }
236
- export interface UpdateCompositionStatus0Request {
282
+ export interface UpdateCompositionDatabaseRecordRequest {
237
283
  id: string;
284
+ table: string;
285
+ recordId: string;
238
286
  idempotencyKey: string;
239
- updateCompositionStatusRequest: UpdateCompositionStatusRequest;
287
+ body: object;
240
288
  xManagedUserId?: string;
241
289
  xManagedUserExternalId?: string;
242
290
  }
243
- export interface UpdateComposition0Request {
291
+ export interface UpdateCompositionStatusOperationRequest {
244
292
  id: string;
245
293
  idempotencyKey: string;
246
- updateComposition: UpdateComposition;
247
- ifMatch?: string;
294
+ updateCompositionStatusRequest: UpdateCompositionStatusRequest;
248
295
  xManagedUserId?: string;
249
296
  xManagedUserExternalId?: string;
250
297
  }
251
- export interface ValidateCompositionContent0Request {
298
+ export interface ValidateCompositionContentRequest {
252
299
  id: string;
253
300
  idempotencyKey: string;
254
301
  requestBody: {
@@ -265,373 +312,428 @@ export declare class CompositionsApi extends runtime.BaseAPI {
265
312
  * 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\'.
266
313
  * Add a document for a widget\'s AI to answer from
267
314
  */
268
- addAiAnswersKnowledgeDocumentRaw(requestParameters: AddAiAnswersKnowledgeDocument0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddAiAnswersKnowledgeDocument201Response>>;
315
+ addAiAnswersKnowledgeDocumentRaw(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiAnswersKnowledgeDocumentResponse>>;
269
316
  /**
270
317
  * 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\'.
271
318
  * Add a document for a widget\'s AI to answer from
272
319
  */
273
- addAiAnswersKnowledgeDocument(requestParameters: AddAiAnswersKnowledgeDocument0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddAiAnswersKnowledgeDocument201Response>;
320
+ addAiAnswersKnowledgeDocument(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiAnswersKnowledgeDocumentResponse>;
274
321
  /**
275
322
  * 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\'.
276
323
  * Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
277
324
  */
278
- addAiAnswersKnowledgeFileRaw(requestParameters: AddAiAnswersKnowledgeFile0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddAiAnswersKnowledgeDocument201Response>>;
325
+ addAiAnswersKnowledgeFileRaw(requestParameters: AddAiAnswersKnowledgeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiAnswersKnowledgeDocumentResponse>>;
279
326
  /**
280
327
  * 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\'.
281
328
  * Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
282
329
  */
283
- addAiAnswersKnowledgeFile(requestParameters: AddAiAnswersKnowledgeFile0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddAiAnswersKnowledgeDocument201Response>;
330
+ addAiAnswersKnowledgeFile(requestParameters: AddAiAnswersKnowledgeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiAnswersKnowledgeDocumentResponse>;
284
331
  /**
285
332
  * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
286
333
  * Check Composition Access
287
334
  */
288
- checkCompositionAccessRaw(requestParameters: CheckCompositionAccess0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckCompositionAccessResponse>>;
335
+ checkCompositionAccessRaw(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckCompositionAccessResponse>>;
289
336
  /**
290
337
  * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
291
338
  * Check Composition Access
292
339
  */
293
- checkCompositionAccess(requestParameters: CheckCompositionAccess0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckCompositionAccessResponse>;
340
+ checkCompositionAccess(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckCompositionAccessResponse>;
341
+ /**
342
+ * 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.
343
+ * Create Composition
344
+ */
345
+ createCompositionRaw(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
346
+ /**
347
+ * 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.
348
+ * Create Composition
349
+ */
350
+ createComposition(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
294
351
  /**
295
352
  * 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.
296
353
  * Add a content list item
297
354
  */
298
- createCompositionContentItemRaw(requestParameters: CreateCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
355
+ createCompositionContentItemRaw(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentItemWriteResultResponse>>;
299
356
  /**
300
357
  * 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.
301
358
  * Add a content list item
302
359
  */
303
- createCompositionContentItem(requestParameters: CreateCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
360
+ createCompositionContentItem(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContentItemWriteResultResponse>;
304
361
  /**
305
362
  * 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`.
306
363
  * Create Record In Composition Database
307
364
  */
308
- createCompositionDatabaseRecordRaw(requestParameters: CreateCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
365
+ createCompositionDatabaseRecordRaw(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDatabaseRecordResponse>>;
309
366
  /**
310
367
  * 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`.
311
368
  * Create Record In Composition Database
312
369
  */
313
- createCompositionDatabaseRecord(requestParameters: CreateCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
370
+ createCompositionDatabaseRecord(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDatabaseRecordResponse>;
314
371
  /**
315
- * 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.
316
- * Create Composition
372
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
373
+ * Delete Composition
317
374
  */
318
- createCompositionRaw(requestParameters: CreateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
375
+ deleteCompositionRaw(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
319
376
  /**
320
- * 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.
321
- * Create Composition
377
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
378
+ * Delete Composition
322
379
  */
323
- createComposition(requestParameters: CreateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
380
+ deleteComposition(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
324
381
  /**
325
382
  * Delete a content list item
326
383
  */
327
- deleteCompositionContentItemRaw(requestParameters: DeleteCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionContentItemResponse>>;
384
+ deleteCompositionContentItemRaw(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionContentItemResponse>>;
328
385
  /**
329
386
  * Delete a content list item
330
387
  */
331
- deleteCompositionContentItem(requestParameters: DeleteCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionContentItemResponse>;
388
+ deleteCompositionContentItem(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionContentItemResponse>;
332
389
  /**
333
390
  * Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
334
391
  * Remove the composition data source binding
335
392
  */
336
- deleteCompositionDataSourceRaw(requestParameters: DeleteCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionDataSourceResponse>>;
393
+ deleteCompositionDataSourceRaw(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionDataSourceResponse>>;
337
394
  /**
338
395
  * Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
339
396
  * Remove the composition data source binding
340
397
  */
341
- deleteCompositionDataSource(requestParameters: DeleteCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionDataSourceResponse>;
398
+ deleteCompositionDataSource(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionDataSourceResponse>;
342
399
  /**
343
400
  * 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`.
344
401
  * Delete Record From Composition Database
345
402
  */
346
- deleteCompositionDatabaseRecordRaw(requestParameters: DeleteCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
403
+ deleteCompositionDatabaseRecordRaw(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDatabaseRecordResponse>>;
347
404
  /**
348
405
  * 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`.
349
406
  * Delete Record From Composition Database
350
407
  */
351
- deleteCompositionDatabaseRecord(requestParameters: DeleteCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
408
+ deleteCompositionDatabaseRecord(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDatabaseRecordResponse>;
352
409
  /**
353
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
354
- * Delete Composition
410
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
411
+ * Delete composition entry items by id or host context
355
412
  */
356
- deleteCompositionRaw(requestParameters: DeleteComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
413
+ deleteCompositionEntryItemsRaw(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryDeleteSuccess>>;
357
414
  /**
358
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
359
- * Delete Composition
415
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
416
+ * Delete composition entry items by id or host context
360
417
  */
361
- deleteComposition(requestParameters: DeleteComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
418
+ deleteCompositionEntryItems(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryDeleteSuccess>;
362
419
  /**
363
420
  * 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.
364
421
  * Describe What a Composition Keeps
365
422
  */
366
- describeCompositionEntriesRaw(requestParameters: DescribeCompositionEntries0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesDescriptionResponse>>;
423
+ describeCompositionEntriesRaw(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesDescriptionResponse>>;
367
424
  /**
368
425
  * 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.
369
426
  * Describe What a Composition Keeps
370
427
  */
371
- describeCompositionEntries(requestParameters: DescribeCompositionEntries0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesDescriptionResponse>;
428
+ describeCompositionEntries(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesDescriptionResponse>;
372
429
  /**
373
430
  * Creates a duplicate of an existing composition for the authenticated user. The duplicate is made after the answer: the call returns `202` with an `operationId`. Ask `GET /operations/{id}` for that operation until its `status` is `completed`; the new composition is named in `metadata.newCompositionId`. A problem with the duplicate\'s database (for example, tables that could not be made just now) is listed in `metadata.warnings`, which is absent when there is none. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one duplicate is made, not two.
374
431
  * Duplicate Composition
375
432
  */
376
- duplicateCompositionRaw(requestParameters: DuplicateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DuplicateComposition202Response>>;
433
+ duplicateCompositionRaw(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DuplicateComposition202Response>>;
377
434
  /**
378
435
  * Creates a duplicate of an existing composition for the authenticated user. The duplicate is made after the answer: the call returns `202` with an `operationId`. Ask `GET /operations/{id}` for that operation until its `status` is `completed`; the new composition is named in `metadata.newCompositionId`. A problem with the duplicate\'s database (for example, tables that could not be made just now) is listed in `metadata.warnings`, which is absent when there is none. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one duplicate is made, not two.
379
436
  * Duplicate Composition
380
437
  */
381
- duplicateComposition(requestParameters: DuplicateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DuplicateComposition202Response>;
438
+ duplicateComposition(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DuplicateComposition202Response>;
439
+ /**
440
+ * 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.
441
+ * Export composition entry items
442
+ */
443
+ exportCompositionEntryItemsRaw(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
444
+ /**
445
+ * 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.
446
+ * Export composition entry items
447
+ */
448
+ exportCompositionEntryItems(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
382
449
  /**
383
450
  * 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.
384
451
  * See the documents a widget\'s AI answers from
385
452
  */
386
- getAiAnswersKnowledgeRaw(requestParameters: GetAiAnswersKnowledge0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAiAnswersKnowledge200Response>>;
453
+ getAiAnswersKnowledgeRaw(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAiAnswersKnowledge200Response>>;
387
454
  /**
388
455
  * 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.
389
456
  * See the documents a widget\'s AI answers from
390
457
  */
391
- getAiAnswersKnowledge(requestParameters: GetAiAnswersKnowledge0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAiAnswersKnowledge200Response>;
458
+ getAiAnswersKnowledge(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAiAnswersKnowledge200Response>;
392
459
  /**
393
460
  * Retrieves all compositions with pagination support. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the compositions made for that managed user. The compositions of your other managed users, and your own, are left out. It combines with the other filters and with paging. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. An editor session with the `creator` surface may call this to list the compositions of ONE widget it built: it must send `widgetId`, and the answer holds only the compositions made for the session\'s managed user.
394
461
  * Get All Compositions
395
462
  */
396
- getAllCompositionsRaw(requestParameters: GetAllCompositions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCompositions200Response>>;
463
+ getAllCompositionsRaw(requestParameters: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCompositions200Response>>;
397
464
  /**
398
465
  * Retrieves all compositions with pagination support. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the compositions made for that managed user. The compositions of your other managed users, and your own, are left out. It combines with the other filters and with paging. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. An editor session with the `creator` surface may call this to list the compositions of ONE widget it built: it must send `widgetId`, and the answer holds only the compositions made for the session\'s managed user.
399
466
  * Get All Compositions
400
467
  */
401
- getAllCompositions(requestParameters?: GetAllCompositions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCompositions200Response>;
468
+ getAllCompositions(requestParameters?: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCompositions200Response>;
402
469
  /**
403
470
  * 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.
404
471
  * Get Composition
405
472
  */
406
- getCompositionByIdRaw(requestParameters: GetCompositionById0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
473
+ getCompositionByIdRaw(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
407
474
  /**
408
475
  * 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.
409
476
  * Get Composition
410
477
  */
411
- getCompositionById(requestParameters: GetCompositionById0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
412
- /**
413
- * Retrieves the content schema for a composition based on its widget type
414
- * Get Content Schema
415
- */
416
- getCompositionContentSchemaRaw(requestParameters: GetCompositionContentSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentSchemaResponse>>;
417
- /**
418
- * Retrieves the content schema for a composition based on its widget type
419
- * Get Content Schema
420
- */
421
- getCompositionContentSchema(requestParameters: GetCompositionContentSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentSchemaResponse>;
478
+ getCompositionById(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
422
479
  /**
423
480
  * Retrieves the current content of a composition
424
481
  * Get Current Content
425
482
  */
426
- getCompositionContentRaw(requestParameters: GetCompositionContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentResponse>>;
483
+ getCompositionContentRaw(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentResponse>>;
427
484
  /**
428
485
  * Retrieves the current content of a composition
429
486
  * Get Current Content
430
487
  */
431
- getCompositionContent(requestParameters: GetCompositionContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentResponse>;
488
+ getCompositionContent(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentResponse>;
489
+ /**
490
+ * Retrieves the content schema for a composition based on its widget type
491
+ * Get Content Schema
492
+ */
493
+ getCompositionContentSchemaRaw(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentSchemaResponse>>;
494
+ /**
495
+ * Retrieves the content schema for a composition based on its widget type
496
+ * Get Content Schema
497
+ */
498
+ getCompositionContentSchema(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentSchemaResponse>;
432
499
  /**
433
500
  * The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
434
501
  * Read the composition data source binding
435
502
  */
436
- getCompositionDataSourceRaw(requestParameters: GetCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDataSourceResponse>>;
503
+ getCompositionDataSourceRaw(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDataSourceResponse>>;
437
504
  /**
438
505
  * The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
439
506
  * Read the composition data source binding
440
507
  */
441
- getCompositionDataSource(requestParameters: GetCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDataSourceResponse>;
508
+ getCompositionDataSource(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDataSourceResponse>;
442
509
  /**
443
510
  * 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`.
444
511
  * Get Record From Composition Database
445
512
  */
446
- getCompositionDatabaseRecordRaw(requestParameters: GetCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
513
+ getCompositionDatabaseRecordRaw(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDatabaseRecordResponse>>;
447
514
  /**
448
515
  * 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`.
449
516
  * Get Record From Composition Database
450
517
  */
451
- getCompositionDatabaseRecord(requestParameters: GetCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
518
+ getCompositionDatabaseRecord(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDatabaseRecordResponse>;
452
519
  /**
453
520
  * Retrieves all records 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`.
454
521
  * Get All Records From Composition Database Table
455
522
  */
456
- getCompositionDatabaseRecordsRaw(requestParameters: GetCompositionDatabaseRecords0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDatabaseRecords200Response>>;
523
+ getCompositionDatabaseRecordsRaw(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDatabaseRecords200Response>>;
457
524
  /**
458
525
  * Retrieves all records 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`.
459
526
  * Get All Records From Composition Database Table
460
527
  */
461
- getCompositionDatabaseRecords(requestParameters: GetCompositionDatabaseRecords0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDatabaseRecords200Response>;
462
- /**
463
- * Retrieves the design schema for a composition based on its widget type
464
- * Get Design Schema
465
- */
466
- getCompositionDesignSchemaRaw(requestParameters: GetCompositionDesignSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignSchemaResponse>>;
467
- /**
468
- * Retrieves the design schema for a composition based on its widget type
469
- * Get Design Schema
470
- */
471
- getCompositionDesignSchema(requestParameters: GetCompositionDesignSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignSchemaResponse>;
528
+ getCompositionDatabaseRecords(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDatabaseRecords200Response>;
472
529
  /**
473
530
  * Retrieves only the design field from a composition.
474
531
  * Get Composition Design
475
532
  */
476
- getCompositionDesignRaw(requestParameters: GetCompositionDesign0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignResponse>>;
533
+ getCompositionDesignRaw(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignResponse>>;
477
534
  /**
478
535
  * Retrieves only the design field from a composition.
479
536
  * Get Composition Design
480
537
  */
481
- getCompositionDesign(requestParameters: GetCompositionDesign0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignResponse>;
538
+ getCompositionDesign(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignResponse>;
539
+ /**
540
+ * Retrieves the design schema for a composition based on its widget type
541
+ * Get Design Schema
542
+ */
543
+ getCompositionDesignSchemaRaw(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignSchemaResponse>>;
544
+ /**
545
+ * Retrieves the design schema for a composition based on its widget type
546
+ * Get Design Schema
547
+ */
548
+ getCompositionDesignSchema(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignSchemaResponse>;
482
549
  /**
483
550
  * Retrieves the definition of the composition\'s Embed tab: which settings exist, what each one holds, what it defaults to, and when its control is shown. It is the third tab beside `schema/content` and `schema/design`, in the same format (`componentGroups` → `components` → `propertyGroups` → `properties`, each property with a `type`, a `defaultValue` and an `inputController`), so a client that draws those two tabs draws this one with the same code. The schema is the same for every composition (it is the one Widgetic\'s own Embed Editor draws). The composition id decides who may ask: the caller must be able to read the composition. Reading and saving the values: - `GET /compositions/{id}/embed-settings` returns what the composition saved. A composition whose Embed tab was never saved has nothing to return; seed the form from `defaults`, which holds the `defaultValue` of every setting that declares one. - `PUT /compositions/{id}` with `embedSettings` saves them. The gateway stores `embedSettings` as given and does not check it against this schema; the schema is how a client knows what to put there. A property\'s `visibilityCondition` says when its control is shown: `condition` is a comparison of the current values of the properties named in `dependsOn` (`useIframe === false`, `embedTarget === \'mixed\' && keepDimensions === false`). While it is false the Embed Editor does not show the control. A colour picker with `showOpacityControls` saves its opacity next to the colour, under the key `<name>_opacity` as a number from 0 to 1 (`overlayBackgroundColor` → `overlayBackgroundColor_opacity`). Its `defaultTransparency` is a percentage and the saved value a fraction (50 → 0.5).
484
551
  * Get Embed Schema
485
552
  */
486
- getCompositionEmbedSchemaRaw(requestParameters: GetCompositionEmbedSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSchemaResponse>>;
553
+ getCompositionEmbedSchemaRaw(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSchemaResponse>>;
487
554
  /**
488
555
  * Retrieves the definition of the composition\'s Embed tab: which settings exist, what each one holds, what it defaults to, and when its control is shown. It is the third tab beside `schema/content` and `schema/design`, in the same format (`componentGroups` → `components` → `propertyGroups` → `properties`, each property with a `type`, a `defaultValue` and an `inputController`), so a client that draws those two tabs draws this one with the same code. The schema is the same for every composition (it is the one Widgetic\'s own Embed Editor draws). The composition id decides who may ask: the caller must be able to read the composition. Reading and saving the values: - `GET /compositions/{id}/embed-settings` returns what the composition saved. A composition whose Embed tab was never saved has nothing to return; seed the form from `defaults`, which holds the `defaultValue` of every setting that declares one. - `PUT /compositions/{id}` with `embedSettings` saves them. The gateway stores `embedSettings` as given and does not check it against this schema; the schema is how a client knows what to put there. A property\'s `visibilityCondition` says when its control is shown: `condition` is a comparison of the current values of the properties named in `dependsOn` (`useIframe === false`, `embedTarget === \'mixed\' && keepDimensions === false`). While it is false the Embed Editor does not show the control. A colour picker with `showOpacityControls` saves its opacity next to the colour, under the key `<name>_opacity` as a number from 0 to 1 (`overlayBackgroundColor` → `overlayBackgroundColor_opacity`). Its `defaultTransparency` is a percentage and the saved value a fraction (50 → 0.5).
489
556
  * Get Embed Schema
490
557
  */
491
- getCompositionEmbedSchema(requestParameters: GetCompositionEmbedSchema0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSchemaResponse>;
558
+ getCompositionEmbedSchema(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSchemaResponse>;
492
559
  /**
493
560
  * Retrieves only the embedSettings field from a composition.
494
561
  * Get Composition Embed Settings
495
562
  */
496
- getCompositionEmbedSettingsRaw(requestParameters: GetCompositionEmbedSettings0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSettingsResponse>>;
563
+ getCompositionEmbedSettingsRaw(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSettingsResponse>>;
497
564
  /**
498
565
  * Retrieves only the embedSettings field from a composition.
499
566
  * Get Composition Embed Settings
500
567
  */
501
- getCompositionEmbedSettings(requestParameters: GetCompositionEmbedSettings0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSettingsResponse>;
568
+ getCompositionEmbedSettings(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSettingsResponse>;
502
569
  /**
503
570
  * Returns the address of the page an editor shows the composition in: the page of the widget\'s published version on the CDN, with the widget and version it is. Load it in a frame, then send the frame what to show (the content, design and embed settings you read from the composition, and every change the user makes) with `postMessage`: `{ type: \'widgetic:update\', design }`, `{ type: \'widgetic:update\', content }` or `{ type: \'widgetic:update\', contentItems }`. The version is the one embeds show, so the editor previews what a visitor gets. The address does not carry the composition id: an embed uses the id to fetch the saved composition itself, while an editor sends the current state (unsaved changes included). A widget that has never been published has no page to show: the answer is 409 `WIDGET_NOT_PUBLISHED`.
504
571
  * Get Composition Preview
505
572
  */
506
- getCompositionPreviewRaw(requestParameters: GetCompositionPreview0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionPreviewResponse>>;
573
+ getCompositionPreviewRaw(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionPreviewResponse>>;
507
574
  /**
508
575
  * Returns the address of the page an editor shows the composition in: the page of the widget\'s published version on the CDN, with the widget and version it is. Load it in a frame, then send the frame what to show (the content, design and embed settings you read from the composition, and every change the user makes) with `postMessage`: `{ type: \'widgetic:update\', design }`, `{ type: \'widgetic:update\', content }` or `{ type: \'widgetic:update\', contentItems }`. The version is the one embeds show, so the editor previews what a visitor gets. The address does not carry the composition id: an embed uses the id to fetch the saved composition itself, while an editor sends the current state (unsaved changes included). A widget that has never been published has no page to show: the answer is 409 `WIDGET_NOT_PUBLISHED`.
509
576
  * Get Composition Preview
510
577
  */
511
- getCompositionPreview(requestParameters: GetCompositionPreview0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionPreviewResponse>;
578
+ getCompositionPreview(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionPreviewResponse>;
512
579
  /**
513
580
  * Retrieves version history for a specific composition.
514
581
  * Get Composition Versions
515
582
  */
516
- getCompositionVersionsRaw(requestParameters: GetCompositionVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionVersions200Response>>;
583
+ getCompositionVersionsRaw(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionVersions200Response>>;
517
584
  /**
518
585
  * Retrieves version history for a specific composition.
519
586
  * Get Composition Versions
520
587
  */
521
- getCompositionVersions(requestParameters: GetCompositionVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionVersions200Response>;
588
+ getCompositionVersions(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionVersions200Response>;
522
589
  /**
523
590
  * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
524
591
  * Get Compositions Batch
525
592
  */
526
- getCompositionsBatchRaw(requestParameters: GetCompositionsBatch0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionsBatchResponse>>;
593
+ getCompositionsBatchRaw(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionsBatchResponse>>;
527
594
  /**
528
595
  * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
529
596
  * Get Compositions Batch
530
597
  */
531
- getCompositionsBatch(requestParameters: GetCompositionsBatch0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionsBatchResponse>;
598
+ getCompositionsBatch(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionsBatchResponse>;
599
+ /**
600
+ * 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.
601
+ * List composition entry items with paging and filters
602
+ */
603
+ listCompositionEntryItemsRaw(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryItemsPageSuccess>>;
604
+ /**
605
+ * 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.
606
+ * List composition entry items with paging and filters
607
+ */
608
+ listCompositionEntryItems(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryItemsPageSuccess>;
532
609
  /**
533
610
  * Update a content list item
534
611
  */
535
- patchCompositionContentItemRaw(requestParameters: PatchCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
612
+ patchCompositionContentItemRaw(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentItemWriteResultResponse>>;
536
613
  /**
537
614
  * Update a content list item
538
615
  */
539
- patchCompositionContentItem(requestParameters: PatchCompositionContentItem0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
616
+ patchCompositionContentItem(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContentItemWriteResultResponse>;
540
617
  /**
541
618
  * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. 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.
542
619
  * Read the Entries of a Composition\'s Table
543
620
  */
544
- readCompositionEntriesRaw(requestParameters: ReadCompositionEntries0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesReadingResponse>>;
621
+ readCompositionEntriesRaw(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesReadingResponse>>;
545
622
  /**
546
623
  * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. 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.
547
624
  * Read the Entries of a Composition\'s Table
548
625
  */
549
- readCompositionEntries(requestParameters: ReadCompositionEntries0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesReadingResponse>;
626
+ readCompositionEntries(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesReadingResponse>;
550
627
  /**
551
628
  * Removes one document and its passages: the widget\'s AI stops answering from it at once. Take the `documentId` from `getAiAnswersKnowledge`. The caller must be allowed to change the widget. An API key needs the `content:write` scope.
552
629
  * Remove a document from a widget\'s knowledge base
553
630
  */
554
- removeAiAnswersKnowledgeDocumentRaw(requestParameters: RemoveAiAnswersKnowledgeDocument0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveAiAnswersKnowledgeDocument200Response>>;
631
+ removeAiAnswersKnowledgeDocumentRaw(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveAiAnswersKnowledgeDocument200Response>>;
555
632
  /**
556
633
  * Removes one document and its passages: the widget\'s AI stops answering from it at once. Take the `documentId` from `getAiAnswersKnowledge`. The caller must be allowed to change the widget. An API key needs the `content:write` scope.
557
634
  * Remove a document from a widget\'s knowledge base
558
635
  */
559
- removeAiAnswersKnowledgeDocument(requestParameters: RemoveAiAnswersKnowledgeDocument0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveAiAnswersKnowledgeDocument200Response>;
636
+ removeAiAnswersKnowledgeDocument(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveAiAnswersKnowledgeDocument200Response>;
560
637
  /**
561
638
  * Stores an https URL the widget runtime may read on load and every `refreshSeconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
562
639
  * Bind a public JSON data source for embed refresh
563
640
  */
564
- setCompositionDataSourceRaw(requestParameters: SetCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDataSourceResponse>>;
641
+ setCompositionDataSourceRaw(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDataSourceResponse>>;
565
642
  /**
566
643
  * Stores an https URL the widget runtime may read on load and every `refreshSeconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
567
644
  * Bind a public JSON data source for embed refresh
568
645
  */
569
- setCompositionDataSource(requestParameters: SetCompositionDataSource0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDataSourceResponse>;
646
+ setCompositionDataSource(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDataSourceResponse>;
570
647
  /**
571
648
  * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
572
649
  * Set Dynamic Content
573
650
  */
574
- setDynamicContentRaw(requestParameters: SetDynamicContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetDynamicContentResponse>>;
651
+ setDynamicContentRaw(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetDynamicContentResponse>>;
575
652
  /**
576
653
  * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
577
654
  * Set Dynamic Content
578
655
  */
579
- setDynamicContent(requestParameters: SetDynamicContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetDynamicContentResponse>;
656
+ setDynamicContent(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetDynamicContentResponse>;
657
+ /**
658
+ * 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.
659
+ * Update Composition
660
+ */
661
+ updateCompositionRaw(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
662
+ /**
663
+ * 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.
664
+ * Update Composition
665
+ */
666
+ updateComposition(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
580
667
  /**
581
668
  * 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`.
582
669
  * Update Record In Composition Database
583
670
  */
584
- updateCompositionDatabaseRecordRaw(requestParameters: UpdateCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
671
+ updateCompositionDatabaseRecordRaw(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDatabaseRecordResponse>>;
585
672
  /**
586
673
  * 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`.
587
674
  * Update Record In Composition Database
588
675
  */
589
- updateCompositionDatabaseRecord(requestParameters: UpdateCompositionDatabaseRecord0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
676
+ updateCompositionDatabaseRecord(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDatabaseRecordResponse>;
590
677
  /**
591
678
  * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
592
679
  * Update Composition Status
593
680
  */
594
- updateCompositionStatusRaw(requestParameters: UpdateCompositionStatus0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
681
+ updateCompositionStatusRaw(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
595
682
  /**
596
683
  * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
597
684
  * Update Composition Status
598
685
  */
599
- updateCompositionStatus(requestParameters: UpdateCompositionStatus0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
600
- /**
601
- * 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.
602
- * Update Composition
603
- */
604
- updateCompositionRaw(requestParameters: UpdateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
605
- /**
606
- * 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.
607
- * Update Composition
608
- */
609
- updateComposition(requestParameters: UpdateComposition0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
686
+ updateCompositionStatus(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
610
687
  /**
611
688
  * Checks content against the composition\'s widget schema without saving it. Send what a content update (`PUT /compositions/{id}/content`) would store, `{ \"design\": {...}, \"content\": {...} }`, or the widget\'s values alone. Each value is checked by the kind of field the widget declares for it: text, a number within the limits of its slider, true or false, one of the choices of a dropdown, a color, a font, the address of an image, a date. The items of the widget\'s list are checked the same way, and their number against the limits of the list. A value that cannot be what the field holds, or a number outside its range, is an error and `valid` is false. Text longer than the field takes, a number or true/false sent as text, and a name the widget has no field for are warnings, and `valid` stays true. The design is not checked here. Nothing is saved and nothing in the body is changed.
612
689
  * Validate Content
613
690
  */
614
- validateCompositionContentRaw(requestParameters: ValidateCompositionContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateCompositionContentResponse>>;
691
+ validateCompositionContentRaw(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateCompositionContentResponse>>;
615
692
  /**
616
693
  * Checks content against the composition\'s widget schema without saving it. Send what a content update (`PUT /compositions/{id}/content`) would store, `{ \"design\": {...}, \"content\": {...} }`, or the widget\'s values alone. Each value is checked by the kind of field the widget declares for it: text, a number within the limits of its slider, true or false, one of the choices of a dropdown, a color, a font, the address of an image, a date. The items of the widget\'s list are checked the same way, and their number against the limits of the list. A value that cannot be what the field holds, or a number outside its range, is an error and `valid` is false. Text longer than the field takes, a number or true/false sent as text, and a name the widget has no field for are warnings, and `valid` stays true. The design is not checked here. Nothing is saved and nothing in the body is changed.
617
694
  * Validate Content
618
695
  */
619
- validateCompositionContent(requestParameters: ValidateCompositionContent0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateCompositionContentResponse>;
696
+ validateCompositionContent(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateCompositionContentResponse>;
620
697
  }
621
698
  /**
622
699
  * @export
623
700
  */
624
- export declare const GetAllCompositions0WorkspaceEnum: {
701
+ export declare const ExportCompositionEntryItemsFormatEnum: {
702
+ readonly Csv: 'csv';
703
+ readonly Json: 'json';
704
+ };
705
+ export type ExportCompositionEntryItemsFormatEnum = typeof ExportCompositionEntryItemsFormatEnum[keyof typeof ExportCompositionEntryItemsFormatEnum];
706
+ /**
707
+ * @export
708
+ */
709
+ export declare const ExportCompositionEntryItemsOrderEnum: {
710
+ readonly Asc: 'asc';
711
+ readonly Desc: 'desc';
712
+ };
713
+ export type ExportCompositionEntryItemsOrderEnum = typeof ExportCompositionEntryItemsOrderEnum[keyof typeof ExportCompositionEntryItemsOrderEnum];
714
+ /**
715
+ * @export
716
+ */
717
+ export declare const GetAllCompositionsWorkspaceEnum: {
625
718
  readonly True: 'true';
626
719
  readonly False: 'false';
627
720
  };
628
- export type GetAllCompositions0WorkspaceEnum = typeof GetAllCompositions0WorkspaceEnum[keyof typeof GetAllCompositions0WorkspaceEnum];
721
+ export type GetAllCompositionsWorkspaceEnum = typeof GetAllCompositionsWorkspaceEnum[keyof typeof GetAllCompositionsWorkspaceEnum];
629
722
  /**
630
723
  * @export
631
724
  */
632
- export declare const GetAllCompositions0StatusEnum: {
725
+ export declare const GetAllCompositionsStatusEnum: {
633
726
  readonly Draft: 'draft';
634
727
  readonly Published: 'published';
635
728
  readonly Archived: 'archived';
729
+ readonly Demo: 'demo';
730
+ };
731
+ export type GetAllCompositionsStatusEnum = typeof GetAllCompositionsStatusEnum[keyof typeof GetAllCompositionsStatusEnum];
732
+ /**
733
+ * @export
734
+ */
735
+ export declare const ListCompositionEntryItemsOrderEnum: {
736
+ readonly Asc: 'asc';
737
+ readonly Desc: 'desc';
636
738
  };
637
- export type GetAllCompositions0StatusEnum = typeof GetAllCompositions0StatusEnum[keyof typeof GetAllCompositions0StatusEnum];
739
+ export type ListCompositionEntryItemsOrderEnum = typeof ListCompositionEntryItemsOrderEnum[keyof typeof ListCompositionEntryItemsOrderEnum];