@widgetic/api-sdk-ts 0.0.0-stage → 1.11.64

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 (855) hide show
  1. package/README.md +98 -2
  2. package/dist/apis/CanvasesApi.d.ts +92 -0
  3. package/dist/apis/CanvasesApi.js +253 -0
  4. package/dist/apis/CompositionsApi.d.ts +619 -0
  5. package/dist/apis/CompositionsApi.js +1659 -0
  6. package/dist/apis/CreditsApi.d.ts +47 -0
  7. package/dist/apis/CreditsApi.js +132 -0
  8. package/dist/apis/EntitlementsApi.d.ts +50 -0
  9. package/dist/apis/EntitlementsApi.js +141 -0
  10. package/dist/apis/InvoicesApi.d.ts +49 -0
  11. package/dist/apis/InvoicesApi.js +113 -0
  12. package/dist/apis/ManagedUsersApi.d.ts +253 -0
  13. package/dist/apis/ManagedUsersApi.js +695 -0
  14. package/dist/apis/OperationsApi.d.ts +31 -0
  15. package/dist/apis/OperationsApi.js +90 -0
  16. package/dist/apis/PartnerApi.d.ts +2114 -0
  17. package/dist/apis/PartnerApi.js +5475 -0
  18. package/dist/apis/PartnersApi.d.ts +542 -0
  19. package/dist/apis/PartnersApi.js +1450 -0
  20. package/dist/apis/PublicEmbedApi.d.ts +104 -0
  21. package/dist/apis/PublicEmbedApi.js +250 -0
  22. package/dist/apis/TokensApi.d.ts +26 -0
  23. package/dist/apis/TokensApi.js +88 -0
  24. package/dist/apis/UploadsApi.d.ts +116 -0
  25. package/dist/apis/UploadsApi.js +285 -0
  26. package/dist/apis/UsersApi.d.ts +190 -0
  27. package/dist/apis/UsersApi.js +514 -0
  28. package/dist/apis/WidgetsApi.d.ts +77 -0
  29. package/dist/apis/WidgetsApi.js +222 -0
  30. package/dist/apis/index.d.ts +14 -0
  31. package/dist/apis/index.js +32 -0
  32. package/dist/esm/apis/CanvasesApi.js +216 -0
  33. package/dist/esm/apis/CompositionsApi.js +1622 -0
  34. package/dist/esm/apis/CreditsApi.js +95 -0
  35. package/dist/esm/apis/EntitlementsApi.js +104 -0
  36. package/dist/esm/apis/InvoicesApi.js +76 -0
  37. package/dist/esm/apis/ManagedUsersApi.js +658 -0
  38. package/dist/esm/apis/OperationsApi.js +53 -0
  39. package/dist/esm/apis/PartnerApi.js +5438 -0
  40. package/dist/esm/apis/PartnersApi.js +1413 -0
  41. package/dist/esm/apis/PublicEmbedApi.js +213 -0
  42. package/dist/esm/apis/TokensApi.js +51 -0
  43. package/dist/esm/apis/UploadsApi.js +248 -0
  44. package/dist/esm/apis/UsersApi.js +477 -0
  45. package/dist/esm/apis/WidgetsApi.js +185 -0
  46. package/dist/esm/apis/index.js +16 -0
  47. package/dist/esm/index.js +5 -0
  48. package/dist/esm/models/AccountCreditBalance.js +49 -0
  49. package/dist/esm/models/AccountCreditBalanceResponse.js +51 -0
  50. package/dist/esm/models/AccountCreditTransaction.js +53 -0
  51. package/dist/esm/models/AdapterConnection.js +75 -0
  52. package/dist/esm/models/AdapterConnectionRemoval.js +43 -0
  53. package/dist/esm/models/AddAiAnswersKnowledgeDocument201Response.js +51 -0
  54. package/dist/esm/models/AddAiAnswersKnowledgeDocumentRequest.js +47 -0
  55. package/dist/esm/models/AddDomainRequest.js +43 -0
  56. package/dist/esm/models/AiAnswersKnowledge.js +49 -0
  57. package/dist/esm/models/AiAnswersKnowledgeDocument.js +74 -0
  58. package/dist/esm/models/AiAnswersKnowledgeRemoval.js +43 -0
  59. package/dist/esm/models/AiAnswersKnowledgeTotals.js +55 -0
  60. package/dist/esm/models/ApiKeyScope.js +74 -0
  61. package/dist/esm/models/Canvas.js +63 -0
  62. package/dist/esm/models/CanvasResponse.js +51 -0
  63. package/dist/esm/models/CheckCompositionAccessResponse.js +51 -0
  64. package/dist/esm/models/CheckCompositionAccessResponseData.js +43 -0
  65. package/dist/esm/models/Composition.js +93 -0
  66. package/dist/esm/models/CompositionDataSource.js +47 -0
  67. package/dist/esm/models/CompositionDataSourceResponse.js +51 -0
  68. package/dist/esm/models/CompositionEntriesDescription.js +52 -0
  69. package/dist/esm/models/CompositionEntriesDescriptionResponse.js +51 -0
  70. package/dist/esm/models/CompositionEntriesReading.js +75 -0
  71. package/dist/esm/models/CompositionEntriesReadingResponse.js +51 -0
  72. package/dist/esm/models/CompositionEntryAggregateTally.js +51 -0
  73. package/dist/esm/models/CompositionEntryAggregatesBlock.js +50 -0
  74. package/dist/esm/models/CompositionEntryColumn.js +47 -0
  75. package/dist/esm/models/CompositionEntryDeleteSuccess.js +48 -0
  76. package/dist/esm/models/CompositionEntryDeleteSuccessData.js +43 -0
  77. package/dist/esm/models/CompositionEntryItem.js +57 -0
  78. package/dist/esm/models/CompositionEntryItemsMeta.js +55 -0
  79. package/dist/esm/models/CompositionEntryItemsPageSuccess.js +53 -0
  80. package/dist/esm/models/CompositionEntryTable.js +52 -0
  81. package/dist/esm/models/CompositionEntryTally.js +47 -0
  82. package/dist/esm/models/CompositionResponse.js +51 -0
  83. package/dist/esm/models/CompositionVersion.js +49 -0
  84. package/dist/esm/models/ContentCheckFinding.js +51 -0
  85. package/dist/esm/models/ContentItemWriteResult.js +52 -0
  86. package/dist/esm/models/ContentItemWriteResultValidationResult.js +45 -0
  87. package/dist/esm/models/CopyPartnerPresetRequest.js +41 -0
  88. package/dist/esm/models/CreateCanvasRequest.js +53 -0
  89. package/dist/esm/models/CreateCompositionContentItem201Response.js +51 -0
  90. package/dist/esm/models/CreateCompositionContentItemRequest.js +43 -0
  91. package/dist/esm/models/CreateCompositionDatabaseRecord201Response.js +50 -0
  92. package/dist/esm/models/CreateCompositionFromPresetRequest.js +51 -0
  93. package/dist/esm/models/CreateCompositionFromWidget201Response.js +51 -0
  94. package/dist/esm/models/CreateCompositionFromWidgetRequest.js +53 -0
  95. package/dist/esm/models/CreateUserApiKeyRequest.js +58 -0
  96. package/dist/esm/models/CreateWidget201Response.js +51 -0
  97. package/dist/esm/models/CreateWidget201ResponseData.js +92 -0
  98. package/dist/esm/models/CreatedUserApiKey.js +83 -0
  99. package/dist/esm/models/CreatedUserApiKeyResponse.js +51 -0
  100. package/dist/esm/models/DeleteCompositionContentItemResponse.js +51 -0
  101. package/dist/esm/models/DeleteCompositionContentItemResponseData.js +43 -0
  102. package/dist/esm/models/DeleteCompositionDataSourceResponse.js +51 -0
  103. package/dist/esm/models/DeleteCompositionDataSourceResponseData.js +43 -0
  104. package/dist/esm/models/DeleteManagedUser200Response.js +51 -0
  105. package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +51 -0
  106. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +41 -0
  107. package/dist/esm/models/DeleteUserApiKeyResponse.js +51 -0
  108. package/dist/esm/models/DeleteUserApiKeyResponseData.js +41 -0
  109. package/dist/esm/models/DesignDefaults.js +43 -0
  110. package/dist/esm/models/DuplicateComposition202Response.js +51 -0
  111. package/dist/esm/models/DuplicateComposition202ResponseData.js +41 -0
  112. package/dist/esm/models/DuplicateCompositionRequest.js +43 -0
  113. package/dist/esm/models/EditorSession.js +79 -0
  114. package/dist/esm/models/EditorSessionResponse.js +51 -0
  115. package/dist/esm/models/Entitlement.js +71 -0
  116. package/dist/esm/models/ErrorDetail.js +63 -0
  117. package/dist/esm/models/ErrorResponse.js +54 -0
  118. package/dist/esm/models/ExportCompositionEntryItems200Response.js +53 -0
  119. package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.js +47 -0
  120. package/dist/esm/models/GetAiAnswersKnowledge200Response.js +51 -0
  121. package/dist/esm/models/GetAllCanvasesResponse.js +51 -0
  122. package/dist/esm/models/GetAllCanvasesResponseData.js +48 -0
  123. package/dist/esm/models/GetAllCompositions200Response.js +51 -0
  124. package/dist/esm/models/GetAllManagedUsers200Response.js +51 -0
  125. package/dist/esm/models/GetCompositionContentResponse.js +50 -0
  126. package/dist/esm/models/GetCompositionContentSchemaResponse.js +51 -0
  127. package/dist/esm/models/GetCompositionContentSchemaResponseData.js +51 -0
  128. package/dist/esm/models/GetCompositionDataSourceResponse.js +51 -0
  129. package/dist/esm/models/GetCompositionDatabaseRecords200Response.js +50 -0
  130. package/dist/esm/models/GetCompositionDesignResponse.js +50 -0
  131. package/dist/esm/models/GetCompositionDesignSchemaResponse.js +51 -0
  132. package/dist/esm/models/GetCompositionDesignSchemaResponseData.js +51 -0
  133. package/dist/esm/models/GetCompositionEmbedSchemaResponse.js +51 -0
  134. package/dist/esm/models/GetCompositionEmbedSchemaResponseData.js +57 -0
  135. package/dist/esm/models/GetCompositionEmbedSettingsResponse.js +50 -0
  136. package/dist/esm/models/GetCompositionPreviewResponse.js +51 -0
  137. package/dist/esm/models/GetCompositionPreviewResponseData.js +47 -0
  138. package/dist/esm/models/GetCompositionVersions200Response.js +51 -0
  139. package/dist/esm/models/GetCompositionsBatchRequest.js +43 -0
  140. package/dist/esm/models/GetCompositionsBatchResponse.js +51 -0
  141. package/dist/esm/models/GetCompositionsBatchResponseData.js +45 -0
  142. package/dist/esm/models/GetInvoicesByPartnerId200Response.js +51 -0
  143. package/dist/esm/models/GetManagedUserEntitlementsResponse.js +51 -0
  144. package/dist/esm/models/GetManagedUserEntitlementsResponseData.js +44 -0
  145. package/dist/esm/models/GetManagedUserLimits200Response.js +51 -0
  146. package/dist/esm/models/GetManagedUserStorageUsage200Response.js +51 -0
  147. package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.js +52 -0
  148. package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +48 -0
  149. package/dist/esm/models/GetManagedUsersByManagerIdResponse.js +51 -0
  150. package/dist/esm/models/GetManagedUsersByManagerIdResponseData.js +48 -0
  151. package/dist/esm/models/GetPartnerBillingOverview200Response.js +51 -0
  152. package/dist/esm/models/GetPartnerCreditTransactions200Response.js +51 -0
  153. package/dist/esm/models/GetPartnerDesignDefaults200Response.js +51 -0
  154. package/dist/esm/models/GetPartnerEntitlementsResponse.js +51 -0
  155. package/dist/esm/models/GetPartnerEntitlementsResponseData.js +44 -0
  156. package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +51 -0
  157. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +71 -0
  158. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
  159. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
  160. package/dist/esm/models/GetUserAdapterConnections200Response.js +51 -0
  161. package/dist/esm/models/GetUserApiKeyUsageLogsResponse.js +51 -0
  162. package/dist/esm/models/GetUserApiKeyUsageLogsResponseData.js +44 -0
  163. package/dist/esm/models/GetUserApiKeys200Response.js +51 -0
  164. package/dist/esm/models/GetWidgets200Response.js +51 -0
  165. package/dist/esm/models/GetWidgetsBatchRequest.js +43 -0
  166. package/dist/esm/models/GetWidgetsBatchResponse.js +51 -0
  167. package/dist/esm/models/GetWidgetsBatchResponseData.js +45 -0
  168. package/dist/esm/models/GetWidgetsBatchResponseDataErrorsInner.js +43 -0
  169. package/dist/esm/models/ListPartnerPresets200Response.js +51 -0
  170. package/dist/esm/models/ManagedUser.js +63 -0
  171. package/dist/esm/models/ManagedUserEntriesMeta.js +57 -0
  172. package/dist/esm/models/ManagedUserEntriesPageSuccess.js +53 -0
  173. package/dist/esm/models/ManagedUserEntryItem.js +65 -0
  174. package/dist/esm/models/ManagedUserLimits.js +55 -0
  175. package/dist/esm/models/ManagedUserOperationUsage.js +59 -0
  176. package/dist/esm/models/ManagedUserRemoval.js +47 -0
  177. package/dist/esm/models/ManagedUserResponse.js +51 -0
  178. package/dist/esm/models/ManagedUserUsage.js +65 -0
  179. package/dist/esm/models/ManagedUserUsageResponse.js +51 -0
  180. package/dist/esm/models/ManagedUserUsageTotals.js +55 -0
  181. package/dist/esm/models/MyPartner.js +79 -0
  182. package/dist/esm/models/MyPartners.js +62 -0
  183. package/dist/esm/models/MyPartnersResponse.js +51 -0
  184. package/dist/esm/models/NewComposition.js +65 -0
  185. package/dist/esm/models/NewEditorSession.js +57 -0
  186. package/dist/esm/models/NewManagedUser.js +47 -0
  187. package/dist/esm/models/NewWidget.js +74 -0
  188. package/dist/esm/models/OperationsIdGetResponse.js +51 -0
  189. package/dist/esm/models/OperationsIdGetResponseData.js +65 -0
  190. package/dist/esm/models/PartnerAnalyticsByManagedUser.js +58 -0
  191. package/dist/esm/models/PartnerAnalyticsByManagedUserResponse.js +51 -0
  192. package/dist/esm/models/PartnerAnalyticsOfDay.js +55 -0
  193. package/dist/esm/models/PartnerAnalyticsOfManagedUser.js +79 -0
  194. package/dist/esm/models/PartnerAnalyticsOfWidget.js +63 -0
  195. package/dist/esm/models/PartnerAnalyticsSummary.js +72 -0
  196. package/dist/esm/models/PartnerAnalyticsSummaryResponse.js +51 -0
  197. package/dist/esm/models/PartnerAnalyticsTimeline.js +57 -0
  198. package/dist/esm/models/PartnerAnalyticsTimelineResponse.js +51 -0
  199. package/dist/esm/models/PartnerAnalyticsTopWidgets.js +57 -0
  200. package/dist/esm/models/PartnerAnalyticsTopWidgetsResponse.js +51 -0
  201. package/dist/esm/models/PartnerBillingOverview.js +57 -0
  202. package/dist/esm/models/PartnerBillingOverviewBillingIntegration.js +63 -0
  203. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +56 -0
  204. package/dist/esm/models/PartnerBillingOverviewPartner.js +62 -0
  205. package/dist/esm/models/PartnerContract.js +79 -0
  206. package/dist/esm/models/PartnerContractResponse.js +51 -0
  207. package/dist/esm/models/PartnerCustomization.js +81 -0
  208. package/dist/esm/models/PartnerDataDatabase.js +71 -0
  209. package/dist/esm/models/PartnerDataDatabaseRemoval.js +43 -0
  210. package/dist/esm/models/PartnerDataDatabaseRemovalResponse.js +51 -0
  211. package/dist/esm/models/PartnerDataDatabaseResponse.js +51 -0
  212. package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
  213. package/dist/esm/models/PartnerEntryContextSecretResponse.js +51 -0
  214. package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
  215. package/dist/esm/models/PartnerEntryContextSigningResponse.js +51 -0
  216. package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
  217. package/dist/esm/models/PartnerExtraCreditsInvoiceResponse.js +51 -0
  218. package/dist/esm/models/PartnerInvoice.js +101 -0
  219. package/dist/esm/models/PartnerNotification.js +77 -0
  220. package/dist/esm/models/PartnerNotificationDefaultRecipients.js +47 -0
  221. package/dist/esm/models/PartnerNotificationDelivery.js +115 -0
  222. package/dist/esm/models/PartnerNotificationDeliveryLog.js +44 -0
  223. package/dist/esm/models/PartnerNotificationDeliveryLogResponse.js +51 -0
  224. package/dist/esm/models/PartnerNotificationDeliveryResponse.js +51 -0
  225. package/dist/esm/models/PartnerNotificationEvent.js +81 -0
  226. package/dist/esm/models/PartnerNotificationEventType.js +57 -0
  227. package/dist/esm/models/PartnerNotificationPage.js +48 -0
  228. package/dist/esm/models/PartnerNotificationPageResponse.js +51 -0
  229. package/dist/esm/models/PartnerNotificationSettings.js +82 -0
  230. package/dist/esm/models/PartnerNotificationSettingsChange.js +48 -0
  231. package/dist/esm/models/PartnerNotificationSettingsChangeResponse.js +51 -0
  232. package/dist/esm/models/PartnerNotificationSettingsResponse.js +51 -0
  233. package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
  234. package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
  235. package/dist/esm/models/PartnerNotificationTestEventResultResponse.js +51 -0
  236. package/dist/esm/models/PartnerPreset.js +75 -0
  237. package/dist/esm/models/PartnerPresetCopy.js +63 -0
  238. package/dist/esm/models/PartnerPresetCopyResponse.js +51 -0
  239. package/dist/esm/models/PartnerPresetRemoval.js +43 -0
  240. package/dist/esm/models/PartnerPresetRemovalResponse.js +51 -0
  241. package/dist/esm/models/PartnerPresetResponse.js +51 -0
  242. package/dist/esm/models/PartnerReportPage.js +51 -0
  243. package/dist/esm/models/PartnerReportPeriod.js +47 -0
  244. package/dist/esm/models/PartnerStorageDestination.js +83 -0
  245. package/dist/esm/models/PartnerStorageDestinationResponse.js +51 -0
  246. package/dist/esm/models/PartnerStorageRemoval.js +43 -0
  247. package/dist/esm/models/PartnerStorageRemovalResponse.js +51 -0
  248. package/dist/esm/models/PartnerStorageUsage.js +58 -0
  249. package/dist/esm/models/PartnerStorageUsageOfManagedUser.js +75 -0
  250. package/dist/esm/models/PartnerStorageUsageResponse.js +51 -0
  251. package/dist/esm/models/PartnerStorageUsageTotals.js +55 -0
  252. package/dist/esm/models/PersonalWorkspaceDomain.js +55 -0
  253. package/dist/esm/models/PersonalWorkspaceDomainResult.js +48 -0
  254. package/dist/esm/models/PersonalWorkspaceDomainResultResponse.js +51 -0
  255. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
  256. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
  257. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
  258. package/dist/esm/models/PublicAdapterCallError.js +53 -0
  259. package/dist/esm/models/PublicAdapterCallRequest.js +51 -0
  260. package/dist/esm/models/PublicAdapterCallResult.js +48 -0
  261. package/dist/esm/models/PublicAdapterCallResultData.js +43 -0
  262. package/dist/esm/models/PublicAdapterFileResult.js +48 -0
  263. package/dist/esm/models/PublicAdapterFileResultData.js +44 -0
  264. package/dist/esm/models/PublicAdapterFileResultDataFile.js +63 -0
  265. package/dist/esm/models/PublicCompositionEntryCreated.js +48 -0
  266. package/dist/esm/models/PublicCompositionEntryCreatedData.js +51 -0
  267. package/dist/esm/models/PublicCompositionEntryRequest.js +47 -0
  268. package/dist/esm/models/PublicEmbedFailure.js +61 -0
  269. package/dist/esm/models/PublicEmbedFailureDetails.js +52 -0
  270. package/dist/esm/models/PublicEmbedFailureError.js +57 -0
  271. package/dist/esm/models/PurposeStorageBucket.js +47 -0
  272. package/dist/esm/models/RemoveAiAnswersKnowledgeDocument200Response.js +51 -0
  273. package/dist/esm/models/RemoveUserAdapterConnection200Response.js +51 -0
  274. package/dist/esm/models/RequestExtraCredits.js +43 -0
  275. package/dist/esm/models/ResponseMeta.js +59 -0
  276. package/dist/esm/models/RevokeManagedUserEditorSessionsResponse.js +51 -0
  277. package/dist/esm/models/RevokeManagedUserEditorSessionsResponseData.js +41 -0
  278. package/dist/esm/models/SetAdapterConnectionRequest.js +43 -0
  279. package/dist/esm/models/SetCompositionDataSourceRequest.js +47 -0
  280. package/dist/esm/models/SetDynamicContentRequest.js +51 -0
  281. package/dist/esm/models/SetDynamicContentResponse.js +51 -0
  282. package/dist/esm/models/SetDynamicContentResponseData.js +50 -0
  283. package/dist/esm/models/SetDynamicContentResponseDataValidationResult.js +45 -0
  284. package/dist/esm/models/SetManagedUserLimitsRequest.js +43 -0
  285. package/dist/esm/models/SetPartnerDataDatabaseRequest.js +43 -0
  286. package/dist/esm/models/SetPartnerDesignDefaultsRequest.js +43 -0
  287. package/dist/esm/models/SetPartnerPresetRequest.js +49 -0
  288. package/dist/esm/models/SetPartnerStorageDestinationRequest.js +67 -0
  289. package/dist/esm/models/SetUserAdapterConnection200Response.js +51 -0
  290. package/dist/esm/models/SuccessResponse.js +50 -0
  291. package/dist/esm/models/UpdateCanvasRequest.js +45 -0
  292. package/dist/esm/models/UpdateComposition.js +55 -0
  293. package/dist/esm/models/UpdateCompositionStatusRequest.js +51 -0
  294. package/dist/esm/models/UpdateDomainRequest.js +43 -0
  295. package/dist/esm/models/UpdateManagedUser.js +45 -0
  296. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
  297. package/dist/esm/models/UpdatePartnerNotificationSettingsRequest.js +48 -0
  298. package/dist/esm/models/UpdateUserApiKeyRequest.js +43 -0
  299. package/dist/esm/models/Upload.js +110 -0
  300. package/dist/esm/models/UploadLimits.js +51 -0
  301. package/dist/esm/models/UploadLimitsResponse.js +51 -0
  302. package/dist/esm/models/UploadResponse.js +51 -0
  303. package/dist/esm/models/UploadsGet200Response.js +51 -0
  304. package/dist/esm/models/UploadsIdDelete200Response.js +51 -0
  305. package/dist/esm/models/UploadsIdDelete200ResponseData.js +41 -0
  306. package/dist/esm/models/UserApiKey.js +81 -0
  307. package/dist/esm/models/UserApiKeyResponse.js +51 -0
  308. package/dist/esm/models/UserApiKeyUsageLog.js +67 -0
  309. package/dist/esm/models/ValidateCompositionContentResponse.js +51 -0
  310. package/dist/esm/models/ValidateCompositionContentResponseData.js +50 -0
  311. package/dist/esm/models/ValidateToken200Response.js +51 -0
  312. package/dist/esm/models/ValidateToken200ResponseData.js +57 -0
  313. package/dist/esm/models/Widget.js +90 -0
  314. package/dist/esm/models/index.js +268 -0
  315. package/dist/esm/package.json +3 -0
  316. package/dist/esm/runtime.js +516 -0
  317. package/dist/index.d.ts +3 -0
  318. package/dist/index.js +21 -0
  319. package/dist/models/AccountCreditBalance.d.ts +58 -0
  320. package/dist/models/AccountCreditBalance.js +56 -0
  321. package/dist/models/AccountCreditBalanceResponse.d.ts +46 -0
  322. package/dist/models/AccountCreditBalanceResponse.js +58 -0
  323. package/dist/models/AccountCreditTransaction.d.ts +69 -0
  324. package/dist/models/AccountCreditTransaction.js +60 -0
  325. package/dist/models/AdapterConnection.d.ts +77 -0
  326. package/dist/models/AdapterConnection.js +83 -0
  327. package/dist/models/AdapterConnectionRemoval.d.ts +32 -0
  328. package/dist/models/AdapterConnectionRemoval.js +50 -0
  329. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +46 -0
  330. package/dist/models/AddAiAnswersKnowledgeDocument201Response.js +58 -0
  331. package/dist/models/AddAiAnswersKnowledgeDocumentRequest.d.ts +38 -0
  332. package/dist/models/AddAiAnswersKnowledgeDocumentRequest.js +54 -0
  333. package/dist/models/AddDomainRequest.d.ts +32 -0
  334. package/dist/models/AddDomainRequest.js +50 -0
  335. package/dist/models/AiAnswersKnowledge.d.ts +40 -0
  336. package/dist/models/AiAnswersKnowledge.js +56 -0
  337. package/dist/models/AiAnswersKnowledgeDocument.d.ts +76 -0
  338. package/dist/models/AiAnswersKnowledgeDocument.js +82 -0
  339. package/dist/models/AiAnswersKnowledgeRemoval.d.ts +32 -0
  340. package/dist/models/AiAnswersKnowledgeRemoval.js +50 -0
  341. package/dist/models/AiAnswersKnowledgeTotals.d.ts +50 -0
  342. package/dist/models/AiAnswersKnowledgeTotals.js +62 -0
  343. package/dist/models/ApiKeyScope.d.ts +56 -0
  344. package/dist/models/ApiKeyScope.js +82 -0
  345. package/dist/models/Canvas.d.ts +74 -0
  346. package/dist/models/Canvas.js +70 -0
  347. package/dist/models/CanvasResponse.d.ts +46 -0
  348. package/dist/models/CanvasResponse.js +58 -0
  349. package/dist/models/CheckCompositionAccessResponse.d.ts +46 -0
  350. package/dist/models/CheckCompositionAccessResponse.js +58 -0
  351. package/dist/models/CheckCompositionAccessResponseData.d.ts +38 -0
  352. package/dist/models/CheckCompositionAccessResponseData.js +50 -0
  353. package/dist/models/Composition.d.ts +131 -0
  354. package/dist/models/Composition.js +101 -0
  355. package/dist/models/CompositionDataSource.d.ts +41 -0
  356. package/dist/models/CompositionDataSource.js +54 -0
  357. package/dist/models/CompositionDataSourceResponse.d.ts +46 -0
  358. package/dist/models/CompositionDataSourceResponse.js +58 -0
  359. package/dist/models/CompositionEntriesDescription.d.ts +47 -0
  360. package/dist/models/CompositionEntriesDescription.js +59 -0
  361. package/dist/models/CompositionEntriesDescriptionResponse.d.ts +46 -0
  362. package/dist/models/CompositionEntriesDescriptionResponse.js +58 -0
  363. package/dist/models/CompositionEntriesReading.d.ts +99 -0
  364. package/dist/models/CompositionEntriesReading.js +82 -0
  365. package/dist/models/CompositionEntriesReadingResponse.d.ts +46 -0
  366. package/dist/models/CompositionEntriesReadingResponse.js +58 -0
  367. package/dist/models/CompositionEntryAggregateTally.d.ts +69 -0
  368. package/dist/models/CompositionEntryAggregateTally.js +58 -0
  369. package/dist/models/CompositionEntryAggregatesBlock.d.ts +55 -0
  370. package/dist/models/CompositionEntryAggregatesBlock.js +57 -0
  371. package/dist/models/CompositionEntryColumn.d.ts +38 -0
  372. package/dist/models/CompositionEntryColumn.js +54 -0
  373. package/dist/models/CompositionEntryDeleteSuccess.d.ts +39 -0
  374. package/dist/models/CompositionEntryDeleteSuccess.js +55 -0
  375. package/dist/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
  376. package/dist/models/CompositionEntryDeleteSuccessData.js +50 -0
  377. package/dist/models/CompositionEntryItem.d.ts +63 -0
  378. package/dist/models/CompositionEntryItem.js +64 -0
  379. package/dist/models/CompositionEntryItemsMeta.d.ts +59 -0
  380. package/dist/models/CompositionEntryItemsMeta.js +63 -0
  381. package/dist/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
  382. package/dist/models/CompositionEntryItemsPageSuccess.js +60 -0
  383. package/dist/models/CompositionEntryTable.d.ts +45 -0
  384. package/dist/models/CompositionEntryTable.js +59 -0
  385. package/dist/models/CompositionEntryTally.d.ts +40 -0
  386. package/dist/models/CompositionEntryTally.js +54 -0
  387. package/dist/models/CompositionResponse.d.ts +46 -0
  388. package/dist/models/CompositionResponse.js +58 -0
  389. package/dist/models/CompositionVersion.d.ts +56 -0
  390. package/dist/models/CompositionVersion.js +56 -0
  391. package/dist/models/ContentCheckFinding.d.ts +50 -0
  392. package/dist/models/ContentCheckFinding.js +58 -0
  393. package/dist/models/ContentItemWriteResult.d.ts +65 -0
  394. package/dist/models/ContentItemWriteResult.js +59 -0
  395. package/dist/models/ContentItemWriteResultValidationResult.d.ts +48 -0
  396. package/dist/models/ContentItemWriteResultValidationResult.js +52 -0
  397. package/dist/models/CopyPartnerPresetRequest.d.ts +32 -0
  398. package/dist/models/CopyPartnerPresetRequest.js +48 -0
  399. package/dist/models/CreateCanvasRequest.d.ts +62 -0
  400. package/dist/models/CreateCanvasRequest.js +60 -0
  401. package/dist/models/CreateCompositionContentItem201Response.d.ts +46 -0
  402. package/dist/models/CreateCompositionContentItem201Response.js +58 -0
  403. package/dist/models/CreateCompositionContentItemRequest.d.ts +33 -0
  404. package/dist/models/CreateCompositionContentItemRequest.js +50 -0
  405. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +48 -0
  406. package/dist/models/CreateCompositionDatabaseRecord201Response.js +57 -0
  407. package/dist/models/CreateCompositionFromPresetRequest.d.ts +56 -0
  408. package/dist/models/CreateCompositionFromPresetRequest.js +58 -0
  409. package/dist/models/CreateCompositionFromWidget201Response.d.ts +46 -0
  410. package/dist/models/CreateCompositionFromWidget201Response.js +58 -0
  411. package/dist/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
  412. package/dist/models/CreateCompositionFromWidgetRequest.js +60 -0
  413. package/dist/models/CreateUserApiKeyRequest.d.ts +60 -0
  414. package/dist/models/CreateUserApiKeyRequest.js +66 -0
  415. package/dist/models/CreateWidget201Response.d.ts +46 -0
  416. package/dist/models/CreateWidget201Response.js +58 -0
  417. package/dist/models/CreateWidget201ResponseData.d.ts +174 -0
  418. package/dist/models/CreateWidget201ResponseData.js +100 -0
  419. package/dist/models/CreatedUserApiKey.d.ts +91 -0
  420. package/dist/models/CreatedUserApiKey.js +91 -0
  421. package/dist/models/CreatedUserApiKeyResponse.d.ts +46 -0
  422. package/dist/models/CreatedUserApiKeyResponse.js +58 -0
  423. package/dist/models/DeleteCompositionContentItemResponse.d.ts +46 -0
  424. package/dist/models/DeleteCompositionContentItemResponse.js +58 -0
  425. package/dist/models/DeleteCompositionContentItemResponseData.d.ts +38 -0
  426. package/dist/models/DeleteCompositionContentItemResponseData.js +50 -0
  427. package/dist/models/DeleteCompositionDataSourceResponse.d.ts +46 -0
  428. package/dist/models/DeleteCompositionDataSourceResponse.js +58 -0
  429. package/dist/models/DeleteCompositionDataSourceResponseData.d.ts +32 -0
  430. package/dist/models/DeleteCompositionDataSourceResponseData.js +50 -0
  431. package/dist/models/DeleteManagedUser200Response.d.ts +46 -0
  432. package/dist/models/DeleteManagedUser200Response.js +58 -0
  433. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +46 -0
  434. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +58 -0
  435. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +32 -0
  436. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +48 -0
  437. package/dist/models/DeleteUserApiKeyResponse.d.ts +46 -0
  438. package/dist/models/DeleteUserApiKeyResponse.js +58 -0
  439. package/dist/models/DeleteUserApiKeyResponseData.d.ts +32 -0
  440. package/dist/models/DeleteUserApiKeyResponseData.js +48 -0
  441. package/dist/models/DesignDefaults.d.ts +34 -0
  442. package/dist/models/DesignDefaults.js +50 -0
  443. package/dist/models/DuplicateComposition202Response.d.ts +46 -0
  444. package/dist/models/DuplicateComposition202Response.js +58 -0
  445. package/dist/models/DuplicateComposition202ResponseData.d.ts +32 -0
  446. package/dist/models/DuplicateComposition202ResponseData.js +48 -0
  447. package/dist/models/DuplicateCompositionRequest.d.ts +41 -0
  448. package/dist/models/DuplicateCompositionRequest.js +50 -0
  449. package/dist/models/EditorSession.d.ts +91 -0
  450. package/dist/models/EditorSession.js +87 -0
  451. package/dist/models/EditorSessionResponse.d.ts +46 -0
  452. package/dist/models/EditorSessionResponse.js +58 -0
  453. package/dist/models/Entitlement.d.ts +103 -0
  454. package/dist/models/Entitlement.js +79 -0
  455. package/dist/models/ErrorDetail.d.ts +82 -0
  456. package/dist/models/ErrorDetail.js +70 -0
  457. package/dist/models/ErrorResponse.d.ts +46 -0
  458. package/dist/models/ErrorResponse.js +61 -0
  459. package/dist/models/ExportCompositionEntryItems200Response.d.ts +46 -0
  460. package/dist/models/ExportCompositionEntryItems200Response.js +60 -0
  461. package/dist/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
  462. package/dist/models/ExportCompositionEntryItems200ResponseMeta.js +54 -0
  463. package/dist/models/GetAiAnswersKnowledge200Response.d.ts +46 -0
  464. package/dist/models/GetAiAnswersKnowledge200Response.js +58 -0
  465. package/dist/models/GetAllCanvasesResponse.d.ts +46 -0
  466. package/dist/models/GetAllCanvasesResponse.js +58 -0
  467. package/dist/models/GetAllCanvasesResponseData.d.ts +51 -0
  468. package/dist/models/GetAllCanvasesResponseData.js +55 -0
  469. package/dist/models/GetAllCompositions200Response.d.ts +46 -0
  470. package/dist/models/GetAllCompositions200Response.js +58 -0
  471. package/dist/models/GetAllManagedUsers200Response.d.ts +46 -0
  472. package/dist/models/GetAllManagedUsers200Response.js +58 -0
  473. package/dist/models/GetCompositionContentResponse.d.ts +45 -0
  474. package/dist/models/GetCompositionContentResponse.js +57 -0
  475. package/dist/models/GetCompositionContentSchemaResponse.d.ts +46 -0
  476. package/dist/models/GetCompositionContentSchemaResponse.js +58 -0
  477. package/dist/models/GetCompositionContentSchemaResponseData.d.ts +62 -0
  478. package/dist/models/GetCompositionContentSchemaResponseData.js +58 -0
  479. package/dist/models/GetCompositionDataSourceResponse.d.ts +46 -0
  480. package/dist/models/GetCompositionDataSourceResponse.js +58 -0
  481. package/dist/models/GetCompositionDatabaseRecords200Response.d.ts +47 -0
  482. package/dist/models/GetCompositionDatabaseRecords200Response.js +57 -0
  483. package/dist/models/GetCompositionDesignResponse.d.ts +45 -0
  484. package/dist/models/GetCompositionDesignResponse.js +57 -0
  485. package/dist/models/GetCompositionDesignSchemaResponse.d.ts +46 -0
  486. package/dist/models/GetCompositionDesignSchemaResponse.js +58 -0
  487. package/dist/models/GetCompositionDesignSchemaResponseData.d.ts +62 -0
  488. package/dist/models/GetCompositionDesignSchemaResponseData.js +58 -0
  489. package/dist/models/GetCompositionEmbedSchemaResponse.d.ts +46 -0
  490. package/dist/models/GetCompositionEmbedSchemaResponse.js +58 -0
  491. package/dist/models/GetCompositionEmbedSchemaResponseData.d.ts +74 -0
  492. package/dist/models/GetCompositionEmbedSchemaResponseData.js +65 -0
  493. package/dist/models/GetCompositionEmbedSettingsResponse.d.ts +45 -0
  494. package/dist/models/GetCompositionEmbedSettingsResponse.js +57 -0
  495. package/dist/models/GetCompositionPreviewResponse.d.ts +46 -0
  496. package/dist/models/GetCompositionPreviewResponse.js +58 -0
  497. package/dist/models/GetCompositionPreviewResponseData.d.ts +50 -0
  498. package/dist/models/GetCompositionPreviewResponseData.js +54 -0
  499. package/dist/models/GetCompositionVersions200Response.d.ts +46 -0
  500. package/dist/models/GetCompositionVersions200Response.js +58 -0
  501. package/dist/models/GetCompositionsBatchRequest.d.ts +32 -0
  502. package/dist/models/GetCompositionsBatchRequest.js +50 -0
  503. package/dist/models/GetCompositionsBatchResponse.d.ts +46 -0
  504. package/dist/models/GetCompositionsBatchResponse.js +58 -0
  505. package/dist/models/GetCompositionsBatchResponseData.d.ts +40 -0
  506. package/dist/models/GetCompositionsBatchResponseData.js +52 -0
  507. package/dist/models/GetInvoicesByPartnerId200Response.d.ts +46 -0
  508. package/dist/models/GetInvoicesByPartnerId200Response.js +58 -0
  509. package/dist/models/GetManagedUserEntitlementsResponse.d.ts +46 -0
  510. package/dist/models/GetManagedUserEntitlementsResponse.js +58 -0
  511. package/dist/models/GetManagedUserEntitlementsResponseData.d.ts +39 -0
  512. package/dist/models/GetManagedUserEntitlementsResponseData.js +51 -0
  513. package/dist/models/GetManagedUserLimits200Response.d.ts +46 -0
  514. package/dist/models/GetManagedUserLimits200Response.js +58 -0
  515. package/dist/models/GetManagedUserStorageUsage200Response.d.ts +46 -0
  516. package/dist/models/GetManagedUserStorageUsage200Response.js +58 -0
  517. package/dist/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
  518. package/dist/models/GetManagedUserStorageUsage200ResponseData.js +59 -0
  519. package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
  520. package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +55 -0
  521. package/dist/models/GetManagedUsersByManagerIdResponse.d.ts +46 -0
  522. package/dist/models/GetManagedUsersByManagerIdResponse.js +58 -0
  523. package/dist/models/GetManagedUsersByManagerIdResponseData.d.ts +51 -0
  524. package/dist/models/GetManagedUsersByManagerIdResponseData.js +55 -0
  525. package/dist/models/GetPartnerBillingOverview200Response.d.ts +46 -0
  526. package/dist/models/GetPartnerBillingOverview200Response.js +58 -0
  527. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +46 -0
  528. package/dist/models/GetPartnerCreditTransactions200Response.js +58 -0
  529. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +46 -0
  530. package/dist/models/GetPartnerDesignDefaults200Response.js +58 -0
  531. package/dist/models/GetPartnerEntitlementsResponse.d.ts +46 -0
  532. package/dist/models/GetPartnerEntitlementsResponse.js +58 -0
  533. package/dist/models/GetPartnerEntitlementsResponseData.d.ts +39 -0
  534. package/dist/models/GetPartnerEntitlementsResponseData.js +51 -0
  535. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +46 -0
  536. package/dist/models/GetPersonalWorkspaceDomains200Response.js +58 -0
  537. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +120 -0
  538. package/dist/models/GetPublicCompositionEmbed200Response.js +78 -0
  539. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  540. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
  541. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  542. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
  543. package/dist/models/GetUserAdapterConnections200Response.d.ts +46 -0
  544. package/dist/models/GetUserAdapterConnections200Response.js +58 -0
  545. package/dist/models/GetUserApiKeyUsageLogsResponse.d.ts +46 -0
  546. package/dist/models/GetUserApiKeyUsageLogsResponse.js +58 -0
  547. package/dist/models/GetUserApiKeyUsageLogsResponseData.d.ts +33 -0
  548. package/dist/models/GetUserApiKeyUsageLogsResponseData.js +51 -0
  549. package/dist/models/GetUserApiKeys200Response.d.ts +46 -0
  550. package/dist/models/GetUserApiKeys200Response.js +58 -0
  551. package/dist/models/GetWidgets200Response.d.ts +46 -0
  552. package/dist/models/GetWidgets200Response.js +58 -0
  553. package/dist/models/GetWidgetsBatchRequest.d.ts +32 -0
  554. package/dist/models/GetWidgetsBatchRequest.js +50 -0
  555. package/dist/models/GetWidgetsBatchResponse.d.ts +46 -0
  556. package/dist/models/GetWidgetsBatchResponse.js +58 -0
  557. package/dist/models/GetWidgetsBatchResponseData.d.ts +40 -0
  558. package/dist/models/GetWidgetsBatchResponseData.js +52 -0
  559. package/dist/models/GetWidgetsBatchResponseDataErrorsInner.d.ts +38 -0
  560. package/dist/models/GetWidgetsBatchResponseDataErrorsInner.js +50 -0
  561. package/dist/models/ListPartnerPresets200Response.d.ts +46 -0
  562. package/dist/models/ListPartnerPresets200Response.js +58 -0
  563. package/dist/models/ManagedUser.d.ts +70 -0
  564. package/dist/models/ManagedUser.js +70 -0
  565. package/dist/models/ManagedUserEntriesMeta.d.ts +56 -0
  566. package/dist/models/ManagedUserEntriesMeta.js +64 -0
  567. package/dist/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
  568. package/dist/models/ManagedUserEntriesPageSuccess.js +60 -0
  569. package/dist/models/ManagedUserEntryItem.d.ts +75 -0
  570. package/dist/models/ManagedUserEntryItem.js +72 -0
  571. package/dist/models/ManagedUserLimits.d.ts +50 -0
  572. package/dist/models/ManagedUserLimits.js +62 -0
  573. package/dist/models/ManagedUserOperationUsage.d.ts +56 -0
  574. package/dist/models/ManagedUserOperationUsage.js +66 -0
  575. package/dist/models/ManagedUserRemoval.d.ts +38 -0
  576. package/dist/models/ManagedUserRemoval.js +54 -0
  577. package/dist/models/ManagedUserResponse.d.ts +46 -0
  578. package/dist/models/ManagedUserResponse.js +58 -0
  579. package/dist/models/ManagedUserUsage.d.ts +65 -0
  580. package/dist/models/ManagedUserUsage.js +72 -0
  581. package/dist/models/ManagedUserUsageResponse.d.ts +46 -0
  582. package/dist/models/ManagedUserUsageResponse.js +58 -0
  583. package/dist/models/ManagedUserUsageTotals.d.ts +50 -0
  584. package/dist/models/ManagedUserUsageTotals.js +62 -0
  585. package/dist/models/MyPartner.d.ts +93 -0
  586. package/dist/models/MyPartner.js +87 -0
  587. package/dist/models/MyPartners.d.ts +58 -0
  588. package/dist/models/MyPartners.js +70 -0
  589. package/dist/models/MyPartnersResponse.d.ts +46 -0
  590. package/dist/models/MyPartnersResponse.js +58 -0
  591. package/dist/models/NewComposition.d.ts +122 -0
  592. package/dist/models/NewComposition.js +72 -0
  593. package/dist/models/NewEditorSession.d.ts +62 -0
  594. package/dist/models/NewEditorSession.js +65 -0
  595. package/dist/models/NewManagedUser.d.ts +44 -0
  596. package/dist/models/NewManagedUser.js +54 -0
  597. package/dist/models/NewWidget.d.ts +106 -0
  598. package/dist/models/NewWidget.js +82 -0
  599. package/dist/models/OperationsIdGetResponse.d.ts +46 -0
  600. package/dist/models/OperationsIdGetResponse.js +58 -0
  601. package/dist/models/OperationsIdGetResponseData.d.ts +88 -0
  602. package/dist/models/OperationsIdGetResponseData.js +73 -0
  603. package/dist/models/PartnerAnalyticsByManagedUser.d.ts +54 -0
  604. package/dist/models/PartnerAnalyticsByManagedUser.js +65 -0
  605. package/dist/models/PartnerAnalyticsByManagedUserResponse.d.ts +46 -0
  606. package/dist/models/PartnerAnalyticsByManagedUserResponse.js +58 -0
  607. package/dist/models/PartnerAnalyticsOfDay.d.ts +50 -0
  608. package/dist/models/PartnerAnalyticsOfDay.js +62 -0
  609. package/dist/models/PartnerAnalyticsOfManagedUser.d.ts +86 -0
  610. package/dist/models/PartnerAnalyticsOfManagedUser.js +86 -0
  611. package/dist/models/PartnerAnalyticsOfWidget.d.ts +62 -0
  612. package/dist/models/PartnerAnalyticsOfWidget.js +70 -0
  613. package/dist/models/PartnerAnalyticsSummary.d.ts +76 -0
  614. package/dist/models/PartnerAnalyticsSummary.js +79 -0
  615. package/dist/models/PartnerAnalyticsSummaryResponse.d.ts +46 -0
  616. package/dist/models/PartnerAnalyticsSummaryResponse.js +58 -0
  617. package/dist/models/PartnerAnalyticsTimeline.d.ts +52 -0
  618. package/dist/models/PartnerAnalyticsTimeline.js +64 -0
  619. package/dist/models/PartnerAnalyticsTimelineResponse.d.ts +46 -0
  620. package/dist/models/PartnerAnalyticsTimelineResponse.js +58 -0
  621. package/dist/models/PartnerAnalyticsTopWidgets.d.ts +52 -0
  622. package/dist/models/PartnerAnalyticsTopWidgets.js +64 -0
  623. package/dist/models/PartnerAnalyticsTopWidgetsResponse.d.ts +46 -0
  624. package/dist/models/PartnerAnalyticsTopWidgetsResponse.js +58 -0
  625. package/dist/models/PartnerBillingOverview.d.ts +54 -0
  626. package/dist/models/PartnerBillingOverview.js +64 -0
  627. package/dist/models/PartnerBillingOverviewBillingIntegration.d.ts +59 -0
  628. package/dist/models/PartnerBillingOverviewBillingIntegration.js +71 -0
  629. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +52 -0
  630. package/dist/models/PartnerBillingOverviewOperationalCredits.js +63 -0
  631. package/dist/models/PartnerBillingOverviewPartner.d.ts +58 -0
  632. package/dist/models/PartnerBillingOverviewPartner.js +70 -0
  633. package/dist/models/PartnerContract.d.ts +132 -0
  634. package/dist/models/PartnerContract.js +87 -0
  635. package/dist/models/PartnerContractResponse.d.ts +46 -0
  636. package/dist/models/PartnerContractResponse.js +58 -0
  637. package/dist/models/PartnerCustomization.d.ts +137 -0
  638. package/dist/models/PartnerCustomization.js +89 -0
  639. package/dist/models/PartnerDataDatabase.d.ts +74 -0
  640. package/dist/models/PartnerDataDatabase.js +78 -0
  641. package/dist/models/PartnerDataDatabaseRemoval.d.ts +32 -0
  642. package/dist/models/PartnerDataDatabaseRemoval.js +50 -0
  643. package/dist/models/PartnerDataDatabaseRemovalResponse.d.ts +46 -0
  644. package/dist/models/PartnerDataDatabaseRemovalResponse.js +58 -0
  645. package/dist/models/PartnerDataDatabaseResponse.d.ts +46 -0
  646. package/dist/models/PartnerDataDatabaseResponse.js +58 -0
  647. package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
  648. package/dist/models/PartnerEntryContextSecret.js +55 -0
  649. package/dist/models/PartnerEntryContextSecretResponse.d.ts +46 -0
  650. package/dist/models/PartnerEntryContextSecretResponse.js +58 -0
  651. package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
  652. package/dist/models/PartnerEntryContextSigning.js +70 -0
  653. package/dist/models/PartnerEntryContextSigningResponse.d.ts +46 -0
  654. package/dist/models/PartnerEntryContextSigningResponse.js +58 -0
  655. package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  656. package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
  657. package/dist/models/PartnerExtraCreditsInvoiceResponse.d.ts +46 -0
  658. package/dist/models/PartnerExtraCreditsInvoiceResponse.js +58 -0
  659. package/dist/models/PartnerInvoice.d.ts +189 -0
  660. package/dist/models/PartnerInvoice.js +109 -0
  661. package/dist/models/PartnerNotification.d.ts +81 -0
  662. package/dist/models/PartnerNotification.js +85 -0
  663. package/dist/models/PartnerNotificationDefaultRecipients.d.ts +38 -0
  664. package/dist/models/PartnerNotificationDefaultRecipients.js +54 -0
  665. package/dist/models/PartnerNotificationDelivery.d.ts +134 -0
  666. package/dist/models/PartnerNotificationDelivery.js +123 -0
  667. package/dist/models/PartnerNotificationDeliveryLog.d.ts +33 -0
  668. package/dist/models/PartnerNotificationDeliveryLog.js +51 -0
  669. package/dist/models/PartnerNotificationDeliveryLogResponse.d.ts +46 -0
  670. package/dist/models/PartnerNotificationDeliveryLogResponse.js +58 -0
  671. package/dist/models/PartnerNotificationDeliveryResponse.d.ts +46 -0
  672. package/dist/models/PartnerNotificationDeliveryResponse.js +58 -0
  673. package/dist/models/PartnerNotificationEvent.d.ts +82 -0
  674. package/dist/models/PartnerNotificationEvent.js +89 -0
  675. package/dist/models/PartnerNotificationEventType.d.ts +39 -0
  676. package/dist/models/PartnerNotificationEventType.js +65 -0
  677. package/dist/models/PartnerNotificationPage.d.ts +39 -0
  678. package/dist/models/PartnerNotificationPage.js +55 -0
  679. package/dist/models/PartnerNotificationPageResponse.d.ts +46 -0
  680. package/dist/models/PartnerNotificationPageResponse.js +58 -0
  681. package/dist/models/PartnerNotificationSettings.d.ts +89 -0
  682. package/dist/models/PartnerNotificationSettings.js +89 -0
  683. package/dist/models/PartnerNotificationSettingsChange.d.ts +39 -0
  684. package/dist/models/PartnerNotificationSettingsChange.js +55 -0
  685. package/dist/models/PartnerNotificationSettingsChangeResponse.d.ts +46 -0
  686. package/dist/models/PartnerNotificationSettingsChangeResponse.js +58 -0
  687. package/dist/models/PartnerNotificationSettingsResponse.d.ts +46 -0
  688. package/dist/models/PartnerNotificationSettingsResponse.js +58 -0
  689. package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  690. package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
  691. package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
  692. package/dist/models/PartnerNotificationTestEventResult.js +60 -0
  693. package/dist/models/PartnerNotificationTestEventResultResponse.d.ts +46 -0
  694. package/dist/models/PartnerNotificationTestEventResultResponse.js +58 -0
  695. package/dist/models/PartnerPreset.d.ts +81 -0
  696. package/dist/models/PartnerPreset.js +82 -0
  697. package/dist/models/PartnerPresetCopy.d.ts +62 -0
  698. package/dist/models/PartnerPresetCopy.js +70 -0
  699. package/dist/models/PartnerPresetCopyResponse.d.ts +46 -0
  700. package/dist/models/PartnerPresetCopyResponse.js +58 -0
  701. package/dist/models/PartnerPresetRemoval.d.ts +32 -0
  702. package/dist/models/PartnerPresetRemoval.js +50 -0
  703. package/dist/models/PartnerPresetRemovalResponse.d.ts +46 -0
  704. package/dist/models/PartnerPresetRemovalResponse.js +58 -0
  705. package/dist/models/PartnerPresetResponse.d.ts +46 -0
  706. package/dist/models/PartnerPresetResponse.js +58 -0
  707. package/dist/models/PartnerReportPage.d.ts +44 -0
  708. package/dist/models/PartnerReportPage.js +58 -0
  709. package/dist/models/PartnerReportPeriod.d.ts +38 -0
  710. package/dist/models/PartnerReportPeriod.js +54 -0
  711. package/dist/models/PartnerStorageDestination.d.ts +99 -0
  712. package/dist/models/PartnerStorageDestination.js +90 -0
  713. package/dist/models/PartnerStorageDestinationResponse.d.ts +46 -0
  714. package/dist/models/PartnerStorageDestinationResponse.js +58 -0
  715. package/dist/models/PartnerStorageRemoval.d.ts +32 -0
  716. package/dist/models/PartnerStorageRemoval.js +50 -0
  717. package/dist/models/PartnerStorageRemovalResponse.d.ts +46 -0
  718. package/dist/models/PartnerStorageRemovalResponse.js +58 -0
  719. package/dist/models/PartnerStorageUsage.d.ts +54 -0
  720. package/dist/models/PartnerStorageUsage.js +65 -0
  721. package/dist/models/PartnerStorageUsageOfManagedUser.d.ts +81 -0
  722. package/dist/models/PartnerStorageUsageOfManagedUser.js +82 -0
  723. package/dist/models/PartnerStorageUsageResponse.d.ts +46 -0
  724. package/dist/models/PartnerStorageUsageResponse.js +58 -0
  725. package/dist/models/PartnerStorageUsageTotals.d.ts +50 -0
  726. package/dist/models/PartnerStorageUsageTotals.js +62 -0
  727. package/dist/models/PersonalWorkspaceDomain.d.ts +56 -0
  728. package/dist/models/PersonalWorkspaceDomain.js +62 -0
  729. package/dist/models/PersonalWorkspaceDomainResult.d.ts +39 -0
  730. package/dist/models/PersonalWorkspaceDomainResult.js +55 -0
  731. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +46 -0
  732. package/dist/models/PersonalWorkspaceDomainResultResponse.js +58 -0
  733. package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +46 -0
  734. package/dist/models/PostPublicCompositionEmbedStatus200Response.js +58 -0
  735. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  736. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
  737. package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  738. package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
  739. package/dist/models/PublicAdapterCallError.d.ts +50 -0
  740. package/dist/models/PublicAdapterCallError.js +60 -0
  741. package/dist/models/PublicAdapterCallRequest.d.ts +60 -0
  742. package/dist/models/PublicAdapterCallRequest.js +58 -0
  743. package/dist/models/PublicAdapterCallResult.d.ts +39 -0
  744. package/dist/models/PublicAdapterCallResult.js +55 -0
  745. package/dist/models/PublicAdapterCallResultData.d.ts +34 -0
  746. package/dist/models/PublicAdapterCallResultData.js +50 -0
  747. package/dist/models/PublicAdapterFileResult.d.ts +39 -0
  748. package/dist/models/PublicAdapterFileResult.js +55 -0
  749. package/dist/models/PublicAdapterFileResultData.d.ts +33 -0
  750. package/dist/models/PublicAdapterFileResultData.js +51 -0
  751. package/dist/models/PublicAdapterFileResultDataFile.d.ts +62 -0
  752. package/dist/models/PublicAdapterFileResultDataFile.js +70 -0
  753. package/dist/models/PublicCompositionEntryCreated.d.ts +39 -0
  754. package/dist/models/PublicCompositionEntryCreated.js +55 -0
  755. package/dist/models/PublicCompositionEntryCreatedData.d.ts +44 -0
  756. package/dist/models/PublicCompositionEntryCreatedData.js +58 -0
  757. package/dist/models/PublicCompositionEntryRequest.d.ts +46 -0
  758. package/dist/models/PublicCompositionEntryRequest.js +54 -0
  759. package/dist/models/PublicEmbedFailure.d.ts +64 -0
  760. package/dist/models/PublicEmbedFailure.js +68 -0
  761. package/dist/models/PublicEmbedFailureDetails.d.ts +47 -0
  762. package/dist/models/PublicEmbedFailureDetails.js +60 -0
  763. package/dist/models/PublicEmbedFailureError.d.ts +64 -0
  764. package/dist/models/PublicEmbedFailureError.js +64 -0
  765. package/dist/models/PurposeStorageBucket.d.ts +38 -0
  766. package/dist/models/PurposeStorageBucket.js +54 -0
  767. package/dist/models/RemoveAiAnswersKnowledgeDocument200Response.d.ts +46 -0
  768. package/dist/models/RemoveAiAnswersKnowledgeDocument200Response.js +58 -0
  769. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +46 -0
  770. package/dist/models/RemoveUserAdapterConnection200Response.js +58 -0
  771. package/dist/models/RequestExtraCredits.d.ts +33 -0
  772. package/dist/models/RequestExtraCredits.js +50 -0
  773. package/dist/models/ResponseMeta.d.ts +81 -0
  774. package/dist/models/ResponseMeta.js +66 -0
  775. package/dist/models/RevokeManagedUserEditorSessionsResponse.d.ts +46 -0
  776. package/dist/models/RevokeManagedUserEditorSessionsResponse.js +58 -0
  777. package/dist/models/RevokeManagedUserEditorSessionsResponseData.d.ts +32 -0
  778. package/dist/models/RevokeManagedUserEditorSessionsResponseData.js +48 -0
  779. package/dist/models/SetAdapterConnectionRequest.d.ts +32 -0
  780. package/dist/models/SetAdapterConnectionRequest.js +50 -0
  781. package/dist/models/SetCompositionDataSourceRequest.d.ts +38 -0
  782. package/dist/models/SetCompositionDataSourceRequest.js +54 -0
  783. package/dist/models/SetDynamicContentRequest.d.ts +56 -0
  784. package/dist/models/SetDynamicContentRequest.js +58 -0
  785. package/dist/models/SetDynamicContentResponse.d.ts +46 -0
  786. package/dist/models/SetDynamicContentResponse.js +58 -0
  787. package/dist/models/SetDynamicContentResponseData.d.ts +57 -0
  788. package/dist/models/SetDynamicContentResponseData.js +57 -0
  789. package/dist/models/SetDynamicContentResponseDataValidationResult.d.ts +44 -0
  790. package/dist/models/SetDynamicContentResponseDataValidationResult.js +52 -0
  791. package/dist/models/SetManagedUserLimitsRequest.d.ts +32 -0
  792. package/dist/models/SetManagedUserLimitsRequest.js +50 -0
  793. package/dist/models/SetPartnerDataDatabaseRequest.d.ts +32 -0
  794. package/dist/models/SetPartnerDataDatabaseRequest.js +50 -0
  795. package/dist/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
  796. package/dist/models/SetPartnerDesignDefaultsRequest.js +50 -0
  797. package/dist/models/SetPartnerPresetRequest.d.ts +50 -0
  798. package/dist/models/SetPartnerPresetRequest.js +56 -0
  799. package/dist/models/SetPartnerStorageDestinationRequest.d.ts +79 -0
  800. package/dist/models/SetPartnerStorageDestinationRequest.js +74 -0
  801. package/dist/models/SetUserAdapterConnection200Response.d.ts +46 -0
  802. package/dist/models/SetUserAdapterConnection200Response.js +58 -0
  803. package/dist/models/SuccessResponse.d.ts +47 -0
  804. package/dist/models/SuccessResponse.js +57 -0
  805. package/dist/models/UpdateCanvasRequest.d.ts +44 -0
  806. package/dist/models/UpdateCanvasRequest.js +52 -0
  807. package/dist/models/UpdateComposition.d.ts +80 -0
  808. package/dist/models/UpdateComposition.js +62 -0
  809. package/dist/models/UpdateCompositionStatusRequest.d.ts +41 -0
  810. package/dist/models/UpdateCompositionStatusRequest.js +59 -0
  811. package/dist/models/UpdateDomainRequest.d.ts +32 -0
  812. package/dist/models/UpdateDomainRequest.js +50 -0
  813. package/dist/models/UpdateManagedUser.d.ts +45 -0
  814. package/dist/models/UpdateManagedUser.js +52 -0
  815. package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  816. package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
  817. package/dist/models/UpdatePartnerNotificationSettingsRequest.d.ts +51 -0
  818. package/dist/models/UpdatePartnerNotificationSettingsRequest.js +55 -0
  819. package/dist/models/UpdateUserApiKeyRequest.d.ts +38 -0
  820. package/dist/models/UpdateUserApiKeyRequest.js +50 -0
  821. package/dist/models/Upload.d.ts +140 -0
  822. package/dist/models/Upload.js +118 -0
  823. package/dist/models/UploadLimits.d.ts +62 -0
  824. package/dist/models/UploadLimits.js +58 -0
  825. package/dist/models/UploadLimitsResponse.d.ts +46 -0
  826. package/dist/models/UploadLimitsResponse.js +58 -0
  827. package/dist/models/UploadResponse.d.ts +46 -0
  828. package/dist/models/UploadResponse.js +58 -0
  829. package/dist/models/UploadsGet200Response.d.ts +46 -0
  830. package/dist/models/UploadsGet200Response.js +58 -0
  831. package/dist/models/UploadsIdDelete200Response.d.ts +46 -0
  832. package/dist/models/UploadsIdDelete200Response.js +58 -0
  833. package/dist/models/UploadsIdDelete200ResponseData.d.ts +32 -0
  834. package/dist/models/UploadsIdDelete200ResponseData.js +48 -0
  835. package/dist/models/UserApiKey.d.ts +91 -0
  836. package/dist/models/UserApiKey.js +89 -0
  837. package/dist/models/UserApiKeyResponse.d.ts +46 -0
  838. package/dist/models/UserApiKeyResponse.js +58 -0
  839. package/dist/models/UserApiKeyUsageLog.d.ts +76 -0
  840. package/dist/models/UserApiKeyUsageLog.js +74 -0
  841. package/dist/models/ValidateCompositionContentResponse.d.ts +46 -0
  842. package/dist/models/ValidateCompositionContentResponse.js +58 -0
  843. package/dist/models/ValidateCompositionContentResponseData.d.ts +53 -0
  844. package/dist/models/ValidateCompositionContentResponseData.js +57 -0
  845. package/dist/models/ValidateToken200Response.d.ts +46 -0
  846. package/dist/models/ValidateToken200Response.js +58 -0
  847. package/dist/models/ValidateToken200ResponseData.d.ts +65 -0
  848. package/dist/models/ValidateToken200ResponseData.js +65 -0
  849. package/dist/models/Widget.d.ts +168 -0
  850. package/dist/models/Widget.js +98 -0
  851. package/dist/models/index.d.ts +266 -0
  852. package/dist/models/index.js +284 -0
  853. package/dist/runtime.d.ts +238 -0
  854. package/dist/runtime.js +534 -0
  855. package/package.json +42 -4
@@ -0,0 +1,2114 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AccountCreditBalanceResponse, AddAiAnswersKnowledgeDocument201Response, AddAiAnswersKnowledgeDocumentRequest, AddDomainRequest, CanvasResponse, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionEntryDeleteSuccess, CompositionEntryItemsPageSuccess, CompositionResponse, CopyPartnerPresetRequest, CreateCanvasRequest, CreateCompositionContentItem201Response, CreateCompositionContentItemRequest, CreateCompositionDatabaseRecord201Response, CreateCompositionFromPresetRequest, CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateUserApiKeyRequest, CreateWidget201Response, CreatedUserApiKeyResponse, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DeleteManagedUser200Response, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, DuplicateComposition202Response, DuplicateCompositionRequest, EditorSessionResponse, GetAiAnswersKnowledge200Response, GetAllCanvasesResponse, GetAllCompositions200Response, GetAllManagedUsers200Response, GetCompositionContentResponse, GetCompositionContentSchemaResponse, GetCompositionDataSourceResponse, GetCompositionDatabaseRecords200Response, GetCompositionDesignResponse, GetCompositionDesignSchemaResponse, GetCompositionEmbedSchemaResponse, GetCompositionEmbedSettingsResponse, GetCompositionPreviewResponse, GetCompositionVersions200Response, GetCompositionsBatchRequest, GetCompositionsBatchResponse, GetInvoicesByPartnerId200Response, GetManagedUserEntitlementsResponse, GetManagedUserLimits200Response, GetManagedUserStorageUsage200Response, GetManagedUsersByManagerIdResponse, GetPartnerBillingOverview200Response, GetPartnerCreditTransactions200Response, GetPartnerDesignDefaults200Response, GetPartnerEntitlementsResponse, GetPersonalWorkspaceDomains200Response, GetPublicCompositionEmbed200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, GetWidgets200Response, GetWidgetsBatchRequest, GetWidgetsBatchResponse, ListPartnerPresets200Response, ManagedUserEntriesPageSuccess, ManagedUserResponse, ManagedUserUsageResponse, MyPartnersResponse, NewComposition, NewEditorSession, NewManagedUser, NewWidget, OperationsIdGetResponse, PartnerAnalyticsByManagedUserResponse, PartnerAnalyticsSummaryResponse, PartnerAnalyticsTimelineResponse, PartnerAnalyticsTopWidgetsResponse, PartnerContractResponse, PartnerDataDatabaseRemovalResponse, PartnerDataDatabaseResponse, PartnerEntryContextSecretResponse, PartnerEntryContextSigningResponse, PartnerExtraCreditsInvoiceResponse, PartnerNotificationDeliveryLogResponse, PartnerNotificationDeliveryResponse, PartnerNotificationPageResponse, PartnerNotificationSettingsChangeResponse, PartnerNotificationSettingsResponse, PartnerNotificationTestEventRequest, PartnerNotificationTestEventResultResponse, PartnerPresetCopyResponse, PartnerPresetRemovalResponse, PartnerPresetResponse, PartnerStorageDestinationResponse, PartnerStorageRemovalResponse, PartnerStorageUsageResponse, PersonalWorkspaceDomainResultResponse, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest, RemoveAiAnswersKnowledgeDocument200Response, RemoveUserAdapterConnection200Response, RequestExtraCredits, RevokeManagedUserEditorSessionsResponse, SetAdapterConnectionRequest, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, SetManagedUserLimitsRequest, SetPartnerDataDatabaseRequest, SetPartnerDesignDefaultsRequest, SetPartnerPresetRequest, SetPartnerStorageDestinationRequest, SetUserAdapterConnection200Response, UpdateCanvasRequest, UpdateComposition, UpdateCompositionStatusRequest, UpdateDomainRequest, UpdateManagedUser, UpdatePartnerEntryContextSigningRequest, UpdatePartnerNotificationSettingsRequest, UpdateUserApiKeyRequest, UploadLimitsResponse, UploadResponse, UploadsGet200Response, UploadsIdDelete200Response, UserApiKeyResponse, ValidateCompositionContentResponse, ValidateToken200Response } from '../models/index';
14
+ export interface AddAiAnswersKnowledgeDocumentOperationRequest {
15
+ id: string;
16
+ addAiAnswersKnowledgeDocumentRequest: AddAiAnswersKnowledgeDocumentRequest;
17
+ xManagedUserId?: string;
18
+ xManagedUserExternalId?: string;
19
+ }
20
+ export interface AddPersonalWorkspaceDomainRequest {
21
+ id: string;
22
+ addDomainRequest: AddDomainRequest;
23
+ }
24
+ export interface CallPublicCompositionAdapterRequest {
25
+ compositionId: string;
26
+ adapterId: string;
27
+ operation: string;
28
+ publicAdapterCallRequest: PublicAdapterCallRequest;
29
+ }
30
+ export interface CheckCompositionAccessRequest {
31
+ id: string;
32
+ }
33
+ export interface CopyPresetForManagedUserRequest {
34
+ id: string;
35
+ key: string;
36
+ idempotencyKey: string;
37
+ copyPartnerPresetRequest?: CopyPartnerPresetRequest;
38
+ }
39
+ export interface CreateCanvasOperationRequest {
40
+ createCanvasRequest: CreateCanvasRequest;
41
+ }
42
+ export interface CreateCompositionRequest {
43
+ idempotencyKey: string;
44
+ newComposition: NewComposition;
45
+ xManagedUserId?: string;
46
+ xManagedUserExternalId?: string;
47
+ }
48
+ export interface CreateCompositionContentItemOperationRequest {
49
+ id: string;
50
+ list: string;
51
+ idempotencyKey: string;
52
+ createCompositionContentItemRequest: CreateCompositionContentItemRequest;
53
+ ifMatch?: string;
54
+ xManagedUserId?: string;
55
+ xManagedUserExternalId?: string;
56
+ }
57
+ export interface CreateCompositionDatabaseRecordRequest {
58
+ id: string;
59
+ table: string;
60
+ idempotencyKey: string;
61
+ body: object;
62
+ xManagedUserId?: string;
63
+ xManagedUserExternalId?: string;
64
+ }
65
+ export interface CreateCompositionFromPresetOperationRequest {
66
+ id: string;
67
+ key: string;
68
+ idempotencyKey: string;
69
+ createCompositionFromPresetRequest: CreateCompositionFromPresetRequest;
70
+ }
71
+ export interface CreateCompositionFromWidgetOperationRequest {
72
+ id: string;
73
+ idempotencyKey: string;
74
+ createCompositionFromWidgetRequest: CreateCompositionFromWidgetRequest;
75
+ }
76
+ export interface CreateManagedUserRequest {
77
+ idempotencyKey: string;
78
+ newManagedUser: NewManagedUser;
79
+ }
80
+ export interface CreateManagedUserEditorSessionRequest {
81
+ id: string;
82
+ newEditorSession: NewEditorSession;
83
+ }
84
+ export interface CreatePartnerExtraCreditsInvoiceRequest {
85
+ partnerId: string;
86
+ idempotencyKey: string;
87
+ requestExtraCredits: RequestExtraCredits;
88
+ }
89
+ export interface CreatePublicCompositionEntryRequest {
90
+ compositionId: string;
91
+ table: string;
92
+ publicCompositionEntryRequest: PublicCompositionEntryRequest;
93
+ xWidgeticWriteToken?: string;
94
+ }
95
+ export interface CreateUserApiKeyOperationRequest {
96
+ id: string;
97
+ idempotencyKey: string;
98
+ createUserApiKeyRequest: CreateUserApiKeyRequest;
99
+ }
100
+ export interface CreateWidgetRequest {
101
+ idempotencyKey: string;
102
+ newWidget: NewWidget;
103
+ }
104
+ export interface DeleteCanvasRequest {
105
+ id: string;
106
+ }
107
+ export interface DeleteCompositionRequest {
108
+ id: string;
109
+ xManagedUserId?: string;
110
+ xManagedUserExternalId?: string;
111
+ }
112
+ export interface DeleteCompositionContentItemRequest {
113
+ id: string;
114
+ list: string;
115
+ itemId: string;
116
+ idempotencyKey: string;
117
+ ifMatch?: string;
118
+ xManagedUserId?: string;
119
+ xManagedUserExternalId?: string;
120
+ }
121
+ export interface DeleteCompositionDataSourceRequest {
122
+ id: string;
123
+ idempotencyKey: string;
124
+ xManagedUserId?: string;
125
+ xManagedUserExternalId?: string;
126
+ }
127
+ export interface DeleteCompositionDatabaseRecordRequest {
128
+ id: string;
129
+ table: string;
130
+ recordId: string;
131
+ xManagedUserId?: string;
132
+ xManagedUserExternalId?: string;
133
+ }
134
+ export interface DeleteCompositionEntryItemsRequest {
135
+ id: string;
136
+ table: string;
137
+ ids?: string;
138
+ context?: {
139
+ [key: string]: string;
140
+ };
141
+ filter?: {
142
+ [key: string]: string;
143
+ };
144
+ xManagedUserId?: string;
145
+ xManagedUserExternalId?: string;
146
+ }
147
+ export interface DeleteManagedUserRequest {
148
+ id: string;
149
+ }
150
+ export interface DeletePersonalWorkspaceDomainRequest {
151
+ id: string;
152
+ domainId: string;
153
+ }
154
+ export interface DeleteUserApiKeyRequest {
155
+ id: string;
156
+ keyId: string;
157
+ }
158
+ export interface DescribeCompositionEntriesRequest {
159
+ id: string;
160
+ xManagedUserId?: string;
161
+ xManagedUserExternalId?: string;
162
+ }
163
+ export interface DuplicateCompositionOperationRequest {
164
+ id: string;
165
+ idempotencyKey: string;
166
+ xManagedUserId?: string;
167
+ xManagedUserExternalId?: string;
168
+ duplicateCompositionRequest?: DuplicateCompositionRequest;
169
+ }
170
+ export interface ExportCompositionEntryItemsRequest {
171
+ id: string;
172
+ table: string;
173
+ format?: ExportCompositionEntryItemsFormatEnum;
174
+ order?: ExportCompositionEntryItemsOrderEnum;
175
+ since?: Date;
176
+ until?: Date;
177
+ context?: {
178
+ [key: string]: string;
179
+ };
180
+ filter?: {
181
+ [key: string]: string;
182
+ };
183
+ xManagedUserId?: string;
184
+ xManagedUserExternalId?: string;
185
+ }
186
+ export interface GetAiAnswersKnowledgeRequest {
187
+ id: string;
188
+ xManagedUserId?: string;
189
+ xManagedUserExternalId?: string;
190
+ }
191
+ export interface GetAllCanvasesRequest {
192
+ page?: number;
193
+ size?: number;
194
+ sort?: string;
195
+ createdAfter?: Date;
196
+ createdBefore?: Date;
197
+ updatedAfter?: Date;
198
+ updatedBefore?: Date;
199
+ managedUserId?: string;
200
+ managedUserExternalId?: string;
201
+ }
202
+ export interface GetAllCompositionsRequest {
203
+ page?: number;
204
+ size?: number;
205
+ sort?: string;
206
+ widgetId?: string;
207
+ workspace?: GetAllCompositionsWorkspaceEnum;
208
+ projectFolder?: string;
209
+ status?: GetAllCompositionsStatusEnum;
210
+ managedUserId?: string;
211
+ managedUserExternalId?: string;
212
+ xManagedUserId?: string;
213
+ xManagedUserExternalId?: string;
214
+ }
215
+ export interface GetAllManagedUsersRequest {
216
+ page?: number;
217
+ size?: number;
218
+ sort?: string;
219
+ }
220
+ export interface GetCanvasRequest {
221
+ id: string;
222
+ }
223
+ export interface GetCompositionByIdRequest {
224
+ id: string;
225
+ xManagedUserId?: string;
226
+ xManagedUserExternalId?: string;
227
+ }
228
+ export interface GetCompositionContentRequest {
229
+ id: string;
230
+ xManagedUserId?: string;
231
+ xManagedUserExternalId?: string;
232
+ }
233
+ export interface GetCompositionContentSchemaRequest {
234
+ id: string;
235
+ xManagedUserId?: string;
236
+ xManagedUserExternalId?: string;
237
+ }
238
+ export interface GetCompositionDataSourceRequest {
239
+ id: string;
240
+ xManagedUserId?: string;
241
+ xManagedUserExternalId?: string;
242
+ }
243
+ export interface GetCompositionDatabaseRecordRequest {
244
+ id: string;
245
+ table: string;
246
+ recordId: string;
247
+ xManagedUserId?: string;
248
+ xManagedUserExternalId?: string;
249
+ }
250
+ export interface GetCompositionDatabaseRecordsRequest {
251
+ id: string;
252
+ table: string;
253
+ xManagedUserId?: string;
254
+ xManagedUserExternalId?: string;
255
+ }
256
+ export interface GetCompositionDesignRequest {
257
+ id: string;
258
+ xManagedUserId?: string;
259
+ xManagedUserExternalId?: string;
260
+ }
261
+ export interface GetCompositionDesignSchemaRequest {
262
+ id: string;
263
+ xManagedUserId?: string;
264
+ xManagedUserExternalId?: string;
265
+ }
266
+ export interface GetCompositionEmbedSchemaRequest {
267
+ id: string;
268
+ xManagedUserId?: string;
269
+ xManagedUserExternalId?: string;
270
+ }
271
+ export interface GetCompositionEmbedSettingsRequest {
272
+ id: string;
273
+ xManagedUserId?: string;
274
+ xManagedUserExternalId?: string;
275
+ }
276
+ export interface GetCompositionPreviewRequest {
277
+ id: string;
278
+ xManagedUserId?: string;
279
+ xManagedUserExternalId?: string;
280
+ }
281
+ export interface GetCompositionVersionsRequest {
282
+ id: string;
283
+ xManagedUserId?: string;
284
+ xManagedUserExternalId?: string;
285
+ }
286
+ export interface GetCompositionsBatchOperationRequest {
287
+ getCompositionsBatchRequest: GetCompositionsBatchRequest;
288
+ }
289
+ export interface GetInvoicesByPartnerIdRequest {
290
+ partnerId: string;
291
+ status?: GetInvoicesByPartnerIdStatusEnum;
292
+ limit?: number;
293
+ offset?: number;
294
+ }
295
+ export interface GetManagedUserByIdRequest {
296
+ id: string;
297
+ }
298
+ export interface GetManagedUserDesignDefaultsRequest {
299
+ id: string;
300
+ }
301
+ export interface GetManagedUserEntitlementsRequest {
302
+ managedUserId: string;
303
+ includeExpired?: boolean;
304
+ feature?: string;
305
+ source?: string;
306
+ }
307
+ export interface GetManagedUserLimitsRequest {
308
+ id: string;
309
+ }
310
+ export interface GetManagedUserStorageUsageRequest {
311
+ id: string;
312
+ }
313
+ export interface GetManagedUserUsageRequest {
314
+ id: string;
315
+ startDate?: string;
316
+ endDate?: string;
317
+ }
318
+ export interface GetManagedUsersByManagerIdRequest {
319
+ managerId: string;
320
+ page?: number;
321
+ size?: number;
322
+ sort?: string;
323
+ }
324
+ export interface GetPartnerAdapterConnectionsRequest {
325
+ partnerId: string;
326
+ }
327
+ export interface GetPartnerAnalyticsByManagedUserRequest {
328
+ partnerId: string;
329
+ startDate?: string;
330
+ endDate?: string;
331
+ limit?: number;
332
+ offset?: number;
333
+ }
334
+ export interface GetPartnerAnalyticsSummaryRequest {
335
+ partnerId: string;
336
+ startDate?: string;
337
+ endDate?: string;
338
+ managedUserId?: string;
339
+ managedUserExternalId?: string;
340
+ }
341
+ export interface GetPartnerAnalyticsTimelineRequest {
342
+ partnerId: string;
343
+ startDate?: string;
344
+ endDate?: string;
345
+ managedUserId?: string;
346
+ managedUserExternalId?: string;
347
+ }
348
+ export interface GetPartnerAnalyticsTopWidgetsRequest {
349
+ partnerId: string;
350
+ startDate?: string;
351
+ endDate?: string;
352
+ managedUserId?: string;
353
+ managedUserExternalId?: string;
354
+ limit?: number;
355
+ }
356
+ export interface GetPartnerBillingOverviewRequest {
357
+ partnerId: string;
358
+ }
359
+ export interface GetPartnerContractRequest {
360
+ partnerId: string;
361
+ }
362
+ export interface GetPartnerCreditBalanceRequest {
363
+ partnerId: string;
364
+ }
365
+ export interface GetPartnerCreditTransactionsRequest {
366
+ partnerId: string;
367
+ limit?: number;
368
+ offset?: number;
369
+ type?: string;
370
+ }
371
+ export interface GetPartnerDataDatabaseRequest {
372
+ partnerId: string;
373
+ }
374
+ export interface GetPartnerDesignDefaultsRequest {
375
+ partnerId: string;
376
+ }
377
+ export interface GetPartnerEntitlementsRequest {
378
+ partnerId: string;
379
+ includeExpired?: boolean;
380
+ feature?: string;
381
+ source?: string;
382
+ }
383
+ export interface GetPartnerEntryContextSigningRequest {
384
+ partnerId: string;
385
+ }
386
+ export interface GetPartnerNotificationSettingsRequest {
387
+ partnerId: string;
388
+ }
389
+ export interface GetPartnerStorageDestinationRequest {
390
+ partnerId: string;
391
+ }
392
+ export interface GetPartnerStorageUsageRequest {
393
+ partnerId: string;
394
+ limit?: number;
395
+ offset?: number;
396
+ }
397
+ export interface GetPersonalWorkspaceDomainsRequest {
398
+ id: string;
399
+ }
400
+ export interface GetPublicCompositionEmbedRequest {
401
+ compositionId: string;
402
+ }
403
+ export interface GetPublicCompositionIframeRequest {
404
+ compositionId: string;
405
+ }
406
+ export interface GetUserAdapterConnectionsRequest {
407
+ userId: string;
408
+ }
409
+ export interface GetUserApiKeyUsageLogsRequest {
410
+ id: string;
411
+ keyId: string;
412
+ limit?: number;
413
+ }
414
+ export interface GetUserApiKeysRequest {
415
+ id: string;
416
+ }
417
+ export interface GetUserCreditBalanceRequest {
418
+ userId: string;
419
+ }
420
+ export interface GetUserCreditTransactionsRequest {
421
+ userId: string;
422
+ transactionType?: string;
423
+ limit?: number;
424
+ offset?: number;
425
+ }
426
+ export interface GetWidgetsRequest {
427
+ page?: number;
428
+ size?: number;
429
+ canvasId?: string;
430
+ managedUserId?: string;
431
+ managedUserExternalId?: string;
432
+ }
433
+ export interface GetWidgetsBatchOperationRequest {
434
+ getWidgetsBatchRequest: GetWidgetsBatchRequest;
435
+ }
436
+ export interface ListCompositionEntryItemsRequest {
437
+ id: string;
438
+ table: string;
439
+ limit?: number;
440
+ order?: ListCompositionEntryItemsOrderEnum;
441
+ since?: Date;
442
+ until?: Date;
443
+ cursor?: string;
444
+ context?: {
445
+ [key: string]: string;
446
+ };
447
+ filter?: {
448
+ [key: string]: string;
449
+ };
450
+ xManagedUserId?: string;
451
+ xManagedUserExternalId?: string;
452
+ }
453
+ export interface ListManagedUserEntriesRequest {
454
+ id: string;
455
+ compositionId?: string;
456
+ table?: string;
457
+ limit?: number;
458
+ order?: ListManagedUserEntriesOrderEnum;
459
+ since?: Date;
460
+ until?: Date;
461
+ cursor?: string;
462
+ context?: {
463
+ [key: string]: string;
464
+ };
465
+ filter?: {
466
+ [key: string]: string;
467
+ };
468
+ }
469
+ export interface ListPartnerNotificationDeliveriesRequest {
470
+ partnerId: string;
471
+ limit?: number;
472
+ }
473
+ export interface ListPartnerNotificationsRequest {
474
+ partnerId: string;
475
+ limit?: number;
476
+ before?: Date;
477
+ }
478
+ export interface ListPartnerPresetsRequest {
479
+ partnerId: string;
480
+ }
481
+ export interface OperationsIdGetRequest {
482
+ id: string;
483
+ }
484
+ export interface PatchCompositionContentItemRequest {
485
+ id: string;
486
+ list: string;
487
+ itemId: string;
488
+ idempotencyKey: string;
489
+ requestBody: {
490
+ [key: string]: any;
491
+ };
492
+ ifMatch?: string;
493
+ xManagedUserId?: string;
494
+ xManagedUserExternalId?: string;
495
+ }
496
+ export interface PostPublicCompositionEmbedStatusOperationRequest {
497
+ postPublicCompositionEmbedStatusRequest: PostPublicCompositionEmbedStatusRequest;
498
+ }
499
+ export interface ReadCompositionEntriesRequest {
500
+ id: string;
501
+ table: string;
502
+ groupBy?: string;
503
+ rows?: number;
504
+ aggregate?: string;
505
+ column?: string;
506
+ since?: Date;
507
+ until?: Date;
508
+ context?: {
509
+ [key: string]: string;
510
+ };
511
+ filter?: {
512
+ [key: string]: string;
513
+ };
514
+ xManagedUserId?: string;
515
+ xManagedUserExternalId?: string;
516
+ }
517
+ export interface RemoveAiAnswersKnowledgeDocumentRequest {
518
+ id: string;
519
+ documentId: string;
520
+ xManagedUserId?: string;
521
+ xManagedUserExternalId?: string;
522
+ }
523
+ export interface RemovePartnerAdapterConnectionRequest {
524
+ partnerId: string;
525
+ adapterId: string;
526
+ credentialKey: string;
527
+ }
528
+ export interface RemovePartnerDataDatabaseRequest {
529
+ partnerId: string;
530
+ }
531
+ export interface RemovePartnerPresetRequest {
532
+ partnerId: string;
533
+ key: string;
534
+ }
535
+ export interface RemovePartnerStorageDestinationRequest {
536
+ partnerId: string;
537
+ }
538
+ export interface RemoveUserAdapterConnectionRequest {
539
+ userId: string;
540
+ adapterId: string;
541
+ credentialKey: string;
542
+ }
543
+ export interface ReplayPartnerNotificationDeliveryRequest {
544
+ partnerId: string;
545
+ deliveryId: string;
546
+ idempotencyKey: string;
547
+ }
548
+ export interface RevokeManagedUserEditorSessionRequest {
549
+ id: string;
550
+ sessionId: string;
551
+ }
552
+ export interface RevokeManagedUserEditorSessionsRequest {
553
+ id: string;
554
+ }
555
+ export interface RotatePartnerEntryContextSecretRequest {
556
+ partnerId: string;
557
+ idempotencyKey: string;
558
+ }
559
+ export interface RotatePartnerWebhookSecretRequest {
560
+ partnerId: string;
561
+ idempotencyKey: string;
562
+ }
563
+ export interface SendPartnerNotificationTestEventRequest {
564
+ partnerId: string;
565
+ idempotencyKey: string;
566
+ partnerNotificationTestEventRequest: PartnerNotificationTestEventRequest;
567
+ }
568
+ export interface SetCompositionDataSourceOperationRequest {
569
+ id: string;
570
+ idempotencyKey: string;
571
+ setCompositionDataSourceRequest: SetCompositionDataSourceRequest;
572
+ xManagedUserId?: string;
573
+ xManagedUserExternalId?: string;
574
+ }
575
+ export interface SetDynamicContentOperationRequest {
576
+ id: string;
577
+ idempotencyKey: string;
578
+ setDynamicContentRequest: SetDynamicContentRequest;
579
+ ifMatch?: string;
580
+ xManagedUserId?: string;
581
+ xManagedUserExternalId?: string;
582
+ }
583
+ export interface SetManagedUserDesignDefaultsRequest {
584
+ id: string;
585
+ setPartnerDesignDefaultsRequest: SetPartnerDesignDefaultsRequest;
586
+ }
587
+ export interface SetManagedUserLimitsOperationRequest {
588
+ id: string;
589
+ setManagedUserLimitsRequest: SetManagedUserLimitsRequest;
590
+ }
591
+ export interface SetPartnerAdapterConnectionRequest {
592
+ partnerId: string;
593
+ adapterId: string;
594
+ credentialKey: string;
595
+ setAdapterConnectionRequest: SetAdapterConnectionRequest;
596
+ }
597
+ export interface SetPartnerDataDatabaseOperationRequest {
598
+ partnerId: string;
599
+ setPartnerDataDatabaseRequest: SetPartnerDataDatabaseRequest;
600
+ }
601
+ export interface SetPartnerDesignDefaultsOperationRequest {
602
+ partnerId: string;
603
+ setPartnerDesignDefaultsRequest: SetPartnerDesignDefaultsRequest;
604
+ }
605
+ export interface SetPartnerPresetOperationRequest {
606
+ partnerId: string;
607
+ key: string;
608
+ setPartnerPresetRequest: SetPartnerPresetRequest;
609
+ }
610
+ export interface SetPartnerStorageDestinationOperationRequest {
611
+ partnerId: string;
612
+ setPartnerStorageDestinationRequest: SetPartnerStorageDestinationRequest;
613
+ }
614
+ export interface SetUserAdapterConnectionRequest {
615
+ userId: string;
616
+ adapterId: string;
617
+ credentialKey: string;
618
+ setAdapterConnectionRequest: SetAdapterConnectionRequest;
619
+ }
620
+ export interface UpdateCanvasOperationRequest {
621
+ id: string;
622
+ updateCanvasRequest: UpdateCanvasRequest;
623
+ }
624
+ export interface UpdateCompositionRequest {
625
+ id: string;
626
+ idempotencyKey: string;
627
+ updateComposition: UpdateComposition;
628
+ xManagedUserId?: string;
629
+ xManagedUserExternalId?: string;
630
+ }
631
+ export interface UpdateCompositionDatabaseRecordRequest {
632
+ id: string;
633
+ table: string;
634
+ recordId: string;
635
+ idempotencyKey: string;
636
+ body: object;
637
+ xManagedUserId?: string;
638
+ xManagedUserExternalId?: string;
639
+ }
640
+ export interface UpdateCompositionStatusOperationRequest {
641
+ id: string;
642
+ idempotencyKey: string;
643
+ updateCompositionStatusRequest: UpdateCompositionStatusRequest;
644
+ xManagedUserId?: string;
645
+ xManagedUserExternalId?: string;
646
+ }
647
+ export interface UpdateManagedUserRequest {
648
+ id: string;
649
+ idempotencyKey: string;
650
+ updateManagedUser: UpdateManagedUser;
651
+ }
652
+ export interface UpdatePartnerEntryContextSigningOperationRequest {
653
+ partnerId: string;
654
+ updatePartnerEntryContextSigningRequest: UpdatePartnerEntryContextSigningRequest;
655
+ idempotencyKey?: string;
656
+ }
657
+ export interface UpdatePartnerNotificationSettingsOperationRequest {
658
+ partnerId: string;
659
+ updatePartnerNotificationSettingsRequest: UpdatePartnerNotificationSettingsRequest;
660
+ idempotencyKey?: string;
661
+ }
662
+ export interface UpdatePersonalWorkspaceDomainRequest {
663
+ id: string;
664
+ domainId: string;
665
+ updateDomainRequest: UpdateDomainRequest;
666
+ }
667
+ export interface UpdateUserApiKeyOperationRequest {
668
+ id: string;
669
+ keyId: string;
670
+ updateUserApiKeyRequest: UpdateUserApiKeyRequest;
671
+ }
672
+ export interface UploadPublicCompositionAdapterFileRequest {
673
+ compositionId: string;
674
+ ticket: string;
675
+ body: Blob;
676
+ }
677
+ export interface UploadsGetRequest {
678
+ limit?: number;
679
+ managedUserId?: string;
680
+ managedUserExternalId?: string;
681
+ }
682
+ export interface UploadsIdDeleteRequest {
683
+ id: string;
684
+ }
685
+ export interface UploadsIdGetRequest {
686
+ id: string;
687
+ }
688
+ export interface UploadsPostRequest {
689
+ file: Blob;
690
+ contextType?: UploadsPostContextTypeEnum;
691
+ source?: UploadsPostSourceEnum;
692
+ managedUserId?: string;
693
+ managedUserExternalId?: string;
694
+ purpose?: UploadsPostPurposeEnum;
695
+ }
696
+ export interface ValidateCompositionContentRequest {
697
+ id: string;
698
+ idempotencyKey: string;
699
+ requestBody: {
700
+ [key: string]: any;
701
+ };
702
+ xManagedUserId?: string;
703
+ xManagedUserExternalId?: string;
704
+ }
705
+ export interface VerifyPartnerDataDatabaseRequest {
706
+ partnerId: string;
707
+ }
708
+ export interface VerifyPartnerStorageDestinationRequest {
709
+ partnerId: string;
710
+ }
711
+ /**
712
+ *
713
+ */
714
+ export declare class PartnerApi extends runtime.BaseAPI {
715
+ /**
716
+ * 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). Text only: convert PDF or Word files to text first. 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.
717
+ * Add a document for a widget\'s AI to answer from
718
+ */
719
+ addAiAnswersKnowledgeDocumentRaw(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddAiAnswersKnowledgeDocument201Response>>;
720
+ /**
721
+ * 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). Text only: convert PDF or Word files to text first. 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.
722
+ * Add a document for a widget\'s AI to answer from
723
+ */
724
+ addAiAnswersKnowledgeDocument(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddAiAnswersKnowledgeDocument201Response>;
725
+ /**
726
+ * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
727
+ * Allow a website to show your widgets
728
+ */
729
+ addPersonalWorkspaceDomainRaw(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
730
+ /**
731
+ * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
732
+ * Allow a website to show your widgets
733
+ */
734
+ addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
735
+ /**
736
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
737
+ * Call a gateway operation of an adapter a published widget uses
738
+ */
739
+ callPublicCompositionAdapterRaw(requestParameters: CallPublicCompositionAdapterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterCallResult>>;
740
+ /**
741
+ * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
742
+ * Call a gateway operation of an adapter a published widget uses
743
+ */
744
+ callPublicCompositionAdapter(requestParameters: CallPublicCompositionAdapterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterCallResult>;
745
+ /**
746
+ * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
747
+ * Check Composition Access
748
+ */
749
+ checkCompositionAccessRaw(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckCompositionAccessResponse>>;
750
+ /**
751
+ * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
752
+ * Check Composition Access
753
+ */
754
+ checkCompositionAccess(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckCompositionAccessResponse>;
755
+ /**
756
+ * Copies the preset `key` (see `setPartnerPreset`) onto a new canvas for one of your managed users, so their widget creator opens on a widget of their own that starts from yours. The copy is a draft widget in your account, filed under the managed user: `getAllWidgets` with `managedUserId` lists it, and no other managed user\'s editor can reach it. The copy carries the preset\'s code, design and content schemas, and thumbnail, and starts from a fork of its code repository, so the user\'s chat edits begin where yours left off. It does not carry the preset\'s database or its compositions. It is not a preset itself, and changing or removing the preset afterwards never touches it. To start a composition (the content and design editor) instead, you do not need a copy: call `createComposition` with the preset\'s `widgetId` (from `listPartnerPresets`) and the managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one copy is made, not two. A copy that could not be made leaves nothing behind (503 `PRESET_COPY_FAILED`). The managed user must be yours and active.
757
+ * Give a managed user a copy of one of your presets
758
+ */
759
+ copyPresetForManagedUserRaw(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetCopyResponse>>;
760
+ /**
761
+ * Copies the preset `key` (see `setPartnerPreset`) onto a new canvas for one of your managed users, so their widget creator opens on a widget of their own that starts from yours. The copy is a draft widget in your account, filed under the managed user: `getAllWidgets` with `managedUserId` lists it, and no other managed user\'s editor can reach it. The copy carries the preset\'s code, design and content schemas, and thumbnail, and starts from a fork of its code repository, so the user\'s chat edits begin where yours left off. It does not carry the preset\'s database or its compositions. It is not a preset itself, and changing or removing the preset afterwards never touches it. To start a composition (the content and design editor) instead, you do not need a copy: call `createComposition` with the preset\'s `widgetId` (from `listPartnerPresets`) and the managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one copy is made, not two. A copy that could not be made leaves nothing behind (503 `PRESET_COPY_FAILED`). The managed user must be yours and active.
762
+ * Give a managed user a copy of one of your presets
763
+ */
764
+ copyPresetForManagedUser(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetCopyResponse>;
765
+ /**
766
+ * Creates a new canvas with the specified properties. To make the canvas for one of your managed users, send `managedUserId` or `managedUserExternalId`. The canvas stays in your account and is yours to edit; the tag lets you list one user\'s canvases with `getAllCanvases`. 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. Called with an editor session, the canvas is always made for the session\'s managed user.
767
+ * Create Canvas
768
+ */
769
+ createCanvasRaw(requestParameters: CreateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
770
+ /**
771
+ * Creates a new canvas with the specified properties. To make the canvas for one of your managed users, send `managedUserId` or `managedUserExternalId`. The canvas stays in your account and is yours to edit; the tag lets you list one user\'s canvases with `getAllCanvases`. 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. Called with an editor session, the canvas is always made for the session\'s managed user.
772
+ * Create Canvas
773
+ */
774
+ createCanvas(requestParameters: CreateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
775
+ /**
776
+ * 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.
777
+ * Create Composition
778
+ */
779
+ createCompositionRaw(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
780
+ /**
781
+ * 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.
782
+ * Create Composition
783
+ */
784
+ createComposition(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
785
+ /**
786
+ * 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.
787
+ * Add a content list item
788
+ */
789
+ createCompositionContentItemRaw(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
790
+ /**
791
+ * 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.
792
+ * Add a content list item
793
+ */
794
+ createCompositionContentItem(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
795
+ /**
796
+ * 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`.
797
+ * Create Record In Composition Database
798
+ */
799
+ createCompositionDatabaseRecordRaw(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
800
+ /**
801
+ * 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`.
802
+ * Create Record In Composition Database
803
+ */
804
+ createCompositionDatabaseRecord(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
805
+ /**
806
+ * Validates the name, optional content, design, embed settings and locale, then creates a draft composition filed under the managed user, built on the preset\'s widget, in a single insert. A failure never leaves a half-made composition. The preset\'s widget must be published. The managed user must be yours and active. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
807
+ * Create a composition from one of your presets in one call
808
+ */
809
+ createCompositionFromPresetRaw(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
810
+ /**
811
+ * Validates the name, optional content, design, embed settings and locale, then creates a draft composition filed under the managed user, built on the preset\'s widget, in a single insert. A failure never leaves a half-made composition. The preset\'s widget must be published. The managed user must be yours and active. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
812
+ * Create a composition from one of your presets in one call
813
+ */
814
+ createCompositionFromPreset(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
815
+ /**
816
+ * After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managedUserId`. When you send it, it must match that tag. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The widget must be published. The `Idempotency-Key` header is required.
817
+ * Create a composition for a widget in one call
818
+ */
819
+ createCompositionFromWidgetRaw(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
820
+ /**
821
+ * After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managedUserId`. When you send it, it must match that tag. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The widget must be published. The `Idempotency-Key` header is required.
822
+ * Create a composition for a widget in one call
823
+ */
824
+ createCompositionFromWidget(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
825
+ /**
826
+ * Creates a new managed user for a partner account. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one managed user is created, not two.
827
+ * Create Managed User
828
+ */
829
+ createManagedUserRaw(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
830
+ /**
831
+ * Creates a new managed user for a partner account. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one managed user is created, not two.
832
+ * Create Managed User
833
+ */
834
+ createManagedUser(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
835
+ /**
836
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
837
+ * Create an editor session for a managed user
838
+ */
839
+ createManagedUserEditorSessionRaw(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EditorSessionResponse>>;
840
+ /**
841
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
842
+ * Create an editor session for a managed user
843
+ */
844
+ createManagedUserEditorSession(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EditorSessionResponse>;
845
+ /**
846
+ * Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Allowed whatever the partner\'s standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
847
+ * Buy extra credits for a partner
848
+ */
849
+ createPartnerExtraCreditsInvoiceRaw(requestParameters: CreatePartnerExtraCreditsInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerExtraCreditsInvoiceResponse>>;
850
+ /**
851
+ * Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Allowed whatever the partner\'s standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
852
+ * Buy extra credits for a partner
853
+ */
854
+ createPartnerExtraCreditsInvoice(requestParameters: CreatePartnerExtraCreditsInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerExtraCreditsInvoiceResponse>;
855
+ /**
856
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
857
+ * Append a visitor entry through the gateway
858
+ */
859
+ createPublicCompositionEntryRaw(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicCompositionEntryCreated>>;
860
+ /**
861
+ * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
862
+ * Append a visitor entry through the gateway
863
+ */
864
+ createPublicCompositionEntry(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicCompositionEntryCreated>;
865
+ /**
866
+ * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
867
+ * Create an API key
868
+ */
869
+ createUserApiKeyRaw(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedUserApiKeyResponse>>;
870
+ /**
871
+ * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
872
+ * Create an API key
873
+ */
874
+ createUserApiKey(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedUserApiKeyResponse>;
875
+ /**
876
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. 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. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
877
+ * Create Widget
878
+ */
879
+ createWidgetRaw(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
880
+ /**
881
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. 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. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
882
+ * Create Widget
883
+ */
884
+ createWidget(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
885
+ /**
886
+ * Deletes a canvas together with every widget on it. Called with an editor session, only a canvas whose widgets were all made for the session\'s managed user can be deleted; one that also holds somebody else\'s widgets is refused with 409 and `CANVAS_HAS_OTHER_WIDGETS`, and nothing is deleted. Delete such a canvas with your API key.
887
+ * Delete Canvas
888
+ */
889
+ deleteCanvasRaw(requestParameters: DeleteCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
890
+ /**
891
+ * Deletes a canvas together with every widget on it. Called with an editor session, only a canvas whose widgets were all made for the session\'s managed user can be deleted; one that also holds somebody else\'s widgets is refused with 409 and `CANVAS_HAS_OTHER_WIDGETS`, and nothing is deleted. Delete such a canvas with your API key.
892
+ * Delete Canvas
893
+ */
894
+ deleteCanvas(requestParameters: DeleteCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
895
+ /**
896
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
897
+ * Delete Composition
898
+ */
899
+ deleteCompositionRaw(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
900
+ /**
901
+ * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
902
+ * Delete Composition
903
+ */
904
+ deleteComposition(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
905
+ /**
906
+ * Delete a content list item
907
+ */
908
+ deleteCompositionContentItemRaw(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionContentItemResponse>>;
909
+ /**
910
+ * Delete a content list item
911
+ */
912
+ deleteCompositionContentItem(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionContentItemResponse>;
913
+ /**
914
+ * 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.
915
+ * Remove the composition data source binding
916
+ */
917
+ deleteCompositionDataSourceRaw(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionDataSourceResponse>>;
918
+ /**
919
+ * 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.
920
+ * Remove the composition data source binding
921
+ */
922
+ deleteCompositionDataSource(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionDataSourceResponse>;
923
+ /**
924
+ * 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`.
925
+ * Delete Record From Composition Database
926
+ */
927
+ deleteCompositionDatabaseRecordRaw(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
928
+ /**
929
+ * 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`.
930
+ * Delete Record From Composition Database
931
+ */
932
+ deleteCompositionDatabaseRecord(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
933
+ /**
934
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
935
+ * Delete composition entry items by id or host context
936
+ */
937
+ deleteCompositionEntryItemsRaw(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryDeleteSuccess>>;
938
+ /**
939
+ * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
940
+ * Delete composition entry items by id or host context
941
+ */
942
+ deleteCompositionEntryItems(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryDeleteSuccess>;
943
+ /**
944
+ * Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
945
+ * Delete Managed User
946
+ */
947
+ deleteManagedUserRaw(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteManagedUser200Response>>;
948
+ /**
949
+ * Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
950
+ * Delete Managed User
951
+ */
952
+ deleteManagedUser(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteManagedUser200Response>;
953
+ /**
954
+ * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
955
+ * Stop allowing a website to show your widgets
956
+ */
957
+ deletePersonalWorkspaceDomainRaw(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletePersonalWorkspaceDomainResponse>>;
958
+ /**
959
+ * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
960
+ * Stop allowing a website to show your widgets
961
+ */
962
+ deletePersonalWorkspaceDomain(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletePersonalWorkspaceDomainResponse>;
963
+ /**
964
+ * Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
965
+ * Delete an API key
966
+ */
967
+ deleteUserApiKeyRaw(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUserApiKeyResponse>>;
968
+ /**
969
+ * Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
970
+ * Delete an API key
971
+ */
972
+ deleteUserApiKey(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserApiKeyResponse>;
973
+ /**
974
+ * 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.
975
+ * Describe What a Composition Keeps
976
+ */
977
+ describeCompositionEntriesRaw(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesDescriptionResponse>>;
978
+ /**
979
+ * 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.
980
+ * Describe What a Composition Keeps
981
+ */
982
+ describeCompositionEntries(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesDescriptionResponse>;
983
+ /**
984
+ * 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.
985
+ * Duplicate Composition
986
+ */
987
+ duplicateCompositionRaw(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DuplicateComposition202Response>>;
988
+ /**
989
+ * 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.
990
+ * Duplicate Composition
991
+ */
992
+ duplicateComposition(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DuplicateComposition202Response>;
993
+ /**
994
+ * 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.
995
+ * Export composition entry items
996
+ */
997
+ exportCompositionEntryItemsRaw(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
998
+ /**
999
+ * 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.
1000
+ * Export composition entry items
1001
+ */
1002
+ exportCompositionEntryItems(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
1003
+ /**
1004
+ * 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.
1005
+ * See the documents a widget\'s AI answers from
1006
+ */
1007
+ getAiAnswersKnowledgeRaw(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAiAnswersKnowledge200Response>>;
1008
+ /**
1009
+ * 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.
1010
+ * See the documents a widget\'s AI answers from
1011
+ */
1012
+ getAiAnswersKnowledge(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAiAnswersKnowledge200Response>;
1013
+ /**
1014
+ * Retrieves all canvases with pagination support and filtering options. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the canvases made for that managed user. The canvases of your other managed users, and your own, are left out. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. Called with an editor session, the list is always the session\'s managed user\'s.
1015
+ * Get All Canvases
1016
+ */
1017
+ getAllCanvasesRaw(requestParameters: GetAllCanvasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCanvasesResponse>>;
1018
+ /**
1019
+ * Retrieves all canvases with pagination support and filtering options. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the canvases made for that managed user. The canvases of your other managed users, and your own, are left out. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. Called with an editor session, the list is always the session\'s managed user\'s.
1020
+ * Get All Canvases
1021
+ */
1022
+ getAllCanvases(requestParameters?: GetAllCanvasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCanvasesResponse>;
1023
+ /**
1024
+ * 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.
1025
+ * Get All Compositions
1026
+ */
1027
+ getAllCompositionsRaw(requestParameters: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCompositions200Response>>;
1028
+ /**
1029
+ * 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.
1030
+ * Get All Compositions
1031
+ */
1032
+ getAllCompositions(requestParameters?: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCompositions200Response>;
1033
+ /**
1034
+ * Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
1035
+ * Get Managed Users
1036
+ */
1037
+ getAllManagedUsersRaw(requestParameters: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllManagedUsers200Response>>;
1038
+ /**
1039
+ * Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
1040
+ * Get Managed Users
1041
+ */
1042
+ getAllManagedUsers(requestParameters?: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllManagedUsers200Response>;
1043
+ /**
1044
+ * Retrieves a specific canvas by ID.
1045
+ * Get Canvas
1046
+ */
1047
+ getCanvasRaw(requestParameters: GetCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
1048
+ /**
1049
+ * Retrieves a specific canvas by ID.
1050
+ * Get Canvas
1051
+ */
1052
+ getCanvas(requestParameters: GetCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
1053
+ /**
1054
+ * 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 accepts them only from a website on the composition\'s allowed list, and refuses them while that list is empty (the public JSON of the composition stays open to every website). A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says.
1055
+ * Get Composition
1056
+ */
1057
+ getCompositionByIdRaw(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1058
+ /**
1059
+ * 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 accepts them only from a website on the composition\'s allowed list, and refuses them while that list is empty (the public JSON of the composition stays open to every website). A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says.
1060
+ * Get Composition
1061
+ */
1062
+ getCompositionById(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1063
+ /**
1064
+ * Retrieves the current content of a composition
1065
+ * Get Current Content
1066
+ */
1067
+ getCompositionContentRaw(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentResponse>>;
1068
+ /**
1069
+ * Retrieves the current content of a composition
1070
+ * Get Current Content
1071
+ */
1072
+ getCompositionContent(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentResponse>;
1073
+ /**
1074
+ * Retrieves the content schema for a composition based on its widget type
1075
+ * Get Content Schema
1076
+ */
1077
+ getCompositionContentSchemaRaw(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentSchemaResponse>>;
1078
+ /**
1079
+ * Retrieves the content schema for a composition based on its widget type
1080
+ * Get Content Schema
1081
+ */
1082
+ getCompositionContentSchema(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentSchemaResponse>;
1083
+ /**
1084
+ * 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).
1085
+ * Read the composition data source binding
1086
+ */
1087
+ getCompositionDataSourceRaw(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDataSourceResponse>>;
1088
+ /**
1089
+ * 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).
1090
+ * Read the composition data source binding
1091
+ */
1092
+ getCompositionDataSource(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDataSourceResponse>;
1093
+ /**
1094
+ * 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`.
1095
+ * Get Record From Composition Database
1096
+ */
1097
+ getCompositionDatabaseRecordRaw(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
1098
+ /**
1099
+ * 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`.
1100
+ * Get Record From Composition Database
1101
+ */
1102
+ getCompositionDatabaseRecord(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
1103
+ /**
1104
+ * 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`.
1105
+ * Get All Records From Composition Database Table
1106
+ */
1107
+ getCompositionDatabaseRecordsRaw(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDatabaseRecords200Response>>;
1108
+ /**
1109
+ * 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`.
1110
+ * Get All Records From Composition Database Table
1111
+ */
1112
+ getCompositionDatabaseRecords(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDatabaseRecords200Response>;
1113
+ /**
1114
+ * Retrieves only the design field from a composition.
1115
+ * Get Composition Design
1116
+ */
1117
+ getCompositionDesignRaw(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignResponse>>;
1118
+ /**
1119
+ * Retrieves only the design field from a composition.
1120
+ * Get Composition Design
1121
+ */
1122
+ getCompositionDesign(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignResponse>;
1123
+ /**
1124
+ * Retrieves the design schema for a composition based on its widget type
1125
+ * Get Design Schema
1126
+ */
1127
+ getCompositionDesignSchemaRaw(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignSchemaResponse>>;
1128
+ /**
1129
+ * Retrieves the design schema for a composition based on its widget type
1130
+ * Get Design Schema
1131
+ */
1132
+ getCompositionDesignSchema(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignSchemaResponse>;
1133
+ /**
1134
+ * 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).
1135
+ * Get Embed Schema
1136
+ */
1137
+ getCompositionEmbedSchemaRaw(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSchemaResponse>>;
1138
+ /**
1139
+ * 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).
1140
+ * Get Embed Schema
1141
+ */
1142
+ getCompositionEmbedSchema(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSchemaResponse>;
1143
+ /**
1144
+ * Retrieves only the embedSettings field from a composition.
1145
+ * Get Composition Embed Settings
1146
+ */
1147
+ getCompositionEmbedSettingsRaw(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSettingsResponse>>;
1148
+ /**
1149
+ * Retrieves only the embedSettings field from a composition.
1150
+ * Get Composition Embed Settings
1151
+ */
1152
+ getCompositionEmbedSettings(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSettingsResponse>;
1153
+ /**
1154
+ * 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`.
1155
+ * Get Composition Preview
1156
+ */
1157
+ getCompositionPreviewRaw(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionPreviewResponse>>;
1158
+ /**
1159
+ * 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`.
1160
+ * Get Composition Preview
1161
+ */
1162
+ getCompositionPreview(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionPreviewResponse>;
1163
+ /**
1164
+ * Retrieves version history for a specific composition.
1165
+ * Get Composition Versions
1166
+ */
1167
+ getCompositionVersionsRaw(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionVersions200Response>>;
1168
+ /**
1169
+ * Retrieves version history for a specific composition.
1170
+ * Get Composition Versions
1171
+ */
1172
+ getCompositionVersions(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionVersions200Response>;
1173
+ /**
1174
+ * 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.
1175
+ * Get Compositions Batch
1176
+ */
1177
+ getCompositionsBatchRaw(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionsBatchResponse>>;
1178
+ /**
1179
+ * 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.
1180
+ * Get Compositions Batch
1181
+ */
1182
+ getCompositionsBatch(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionsBatchResponse>;
1183
+ /**
1184
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
1185
+ * List a partner\'s invoices
1186
+ */
1187
+ getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
1188
+ /**
1189
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
1190
+ * List a partner\'s invoices
1191
+ */
1192
+ getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
1193
+ /**
1194
+ * Retrieves a specific managed user by ID.
1195
+ * Get Managed User By ID
1196
+ */
1197
+ getManagedUserByIdRaw(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
1198
+ /**
1199
+ * Retrieves a specific managed user by ID.
1200
+ * Get Managed User By ID
1201
+ */
1202
+ getManagedUserById(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
1203
+ /**
1204
+ * Read design defaults for one managed user
1205
+ */
1206
+ getManagedUserDesignDefaultsRaw(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1207
+ /**
1208
+ * Read design defaults for one managed user
1209
+ */
1210
+ getManagedUserDesignDefaults(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1211
+ /**
1212
+ * Retrieves all entitlements for a managed user (admin or partner access).
1213
+ * Get managed user entitlements
1214
+ */
1215
+ getManagedUserEntitlementsRaw(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserEntitlementsResponse>>;
1216
+ /**
1217
+ * Retrieves all entitlements for a managed user (admin or partner access).
1218
+ * Get managed user entitlements
1219
+ */
1220
+ getManagedUserEntitlements(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserEntitlementsResponse>;
1221
+ /**
1222
+ * Read monthly credit cap and usage for one managed user
1223
+ */
1224
+ getManagedUserLimitsRaw(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserLimits200Response>>;
1225
+ /**
1226
+ * Read monthly credit cap and usage for one managed user
1227
+ */
1228
+ getManagedUserLimits(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserLimits200Response>;
1229
+ /**
1230
+ * Storage used by one managed user\'s uploads
1231
+ */
1232
+ getManagedUserStorageUsageRaw(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserStorageUsage200Response>>;
1233
+ /**
1234
+ * Storage used by one managed user\'s uploads
1235
+ */
1236
+ getManagedUserStorageUsage(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserStorageUsage200Response>;
1237
+ /**
1238
+ * Says how many credits the editor sessions of one of your managed users took from your account over a period, in total and for each operation. A generation costs one credit, taken from your account when it starts; one that fails is refunded and is counted as refunded, not as spent. Only what was spent through editor sessions is here, and only since usage was first recorded: what you spend with your API key, and anything from before, is not. Use it to see which of your users spend the most, or to charge them for it. To hold one session to a number of credits, set `max_credits` when you make it (`createManagedUserEditorSession`). The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`.
1239
+ * What a managed user\'s editor sessions spent
1240
+ */
1241
+ getManagedUserUsageRaw(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserUsageResponse>>;
1242
+ /**
1243
+ * Says how many credits the editor sessions of one of your managed users took from your account over a period, in total and for each operation. A generation costs one credit, taken from your account when it starts; one that fails is refunded and is counted as refunded, not as spent. Only what was spent through editor sessions is here, and only since usage was first recorded: what you spend with your API key, and anything from before, is not. Use it to see which of your users spend the most, or to charge them for it. To hold one session to a number of credits, set `max_credits` when you make it (`createManagedUserEditorSession`). The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`.
1244
+ * What a managed user\'s editor sessions spent
1245
+ */
1246
+ getManagedUserUsage(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserUsageResponse>;
1247
+ /**
1248
+ * Retrieve managed users for a specific manager with pagination support.
1249
+ * Get Managed Users By Manager
1250
+ */
1251
+ getManagedUsersByManagerIdRaw(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUsersByManagerIdResponse>>;
1252
+ /**
1253
+ * Retrieve managed users for a specific manager with pagination support.
1254
+ * Get Managed Users By Manager
1255
+ */
1256
+ getManagedUsersByManagerId(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUsersByManagerIdResponse>;
1257
+ /**
1258
+ * Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so it reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
1259
+ * Find the partner you administer
1260
+ */
1261
+ getMyPartnersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MyPartnersResponse>>;
1262
+ /**
1263
+ * Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so it reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
1264
+ * Find the partner you administer
1265
+ */
1266
+ getMyPartners(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MyPartnersResponse>;
1267
+ /**
1268
+ * Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner\'s. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setPartnerAdapterConnection`; take it away with `removePartnerAdapterConnection`. A managed customer never holds a key: the widgets of a managed customer use the partner\'s, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1269
+ * See which adapter keys a partner has connected
1270
+ */
1271
+ getPartnerAdapterConnectionsRaw(requestParameters: GetPartnerAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAdapterConnections200Response>>;
1272
+ /**
1273
+ * Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner\'s. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setPartnerAdapterConnection`; take it away with `removePartnerAdapterConnection`. A managed customer never holds a key: the widgets of a managed customer use the partner\'s, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1274
+ * See which adapter keys a partner has connected
1275
+ */
1276
+ getPartnerAdapterConnections(requestParameters: GetPartnerAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAdapterConnections200Response>;
1277
+ /**
1278
+ * Lists every one of your managed users with what their widgets and compositions did in a period: views, interactions and visitors, and how many widgets and compositions they have made. A managed user whose widgets were not viewed is listed too, with zeros. The most viewed come first, and `page.hasMore` says whether more follow. Only the compositions made for a managed user count for it: file them under the user when you create them (`managedUserId` on `createComposition`), or let the user\'s editor session do it, which files everything under its user. What a visitor did with a composition that is not filed under anyone is in the summary of the whole account (`getPartnerAnalyticsSummary`) and in no managed user\'s row. The period works as it does for `getPartnerAnalyticsSummary`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1279
+ * What each managed user\'s widgets did
1280
+ */
1281
+ getPartnerAnalyticsByManagedUserRaw(requestParameters: GetPartnerAnalyticsByManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsByManagedUserResponse>>;
1282
+ /**
1283
+ * Lists every one of your managed users with what their widgets and compositions did in a period: views, interactions and visitors, and how many widgets and compositions they have made. A managed user whose widgets were not viewed is listed too, with zeros. The most viewed come first, and `page.hasMore` says whether more follow. Only the compositions made for a managed user count for it: file them under the user when you create them (`managedUserId` on `createComposition`), or let the user\'s editor session do it, which files everything under its user. What a visitor did with a composition that is not filed under anyone is in the summary of the whole account (`getPartnerAnalyticsSummary`) and in no managed user\'s row. The period works as it does for `getPartnerAnalyticsSummary`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1284
+ * What each managed user\'s widgets did
1285
+ */
1286
+ getPartnerAnalyticsByManagedUser(requestParameters: GetPartnerAnalyticsByManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsByManagedUserResponse>;
1287
+ /**
1288
+ * Counts what the visitors of the compositions made through your account did in a period: how many times a composition was **viewed**, how many times a visitor **interacted** with one, and how many different visitors there were. It covers every composition of your account, your own and the ones made for your managed users; narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The numbers come from the events the embedded widgets send while they are shown (the Widgetic embed SDK sends them by itself), counted when you ask. Only views and interactions are counted; the events that describe a visit (its start, its end, the device and the referrer) are not. The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1289
+ * What was done with a partner\'s published widgets
1290
+ */
1291
+ getPartnerAnalyticsSummaryRaw(requestParameters: GetPartnerAnalyticsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsSummaryResponse>>;
1292
+ /**
1293
+ * Counts what the visitors of the compositions made through your account did in a period: how many times a composition was **viewed**, how many times a visitor **interacted** with one, and how many different visitors there were. It covers every composition of your account, your own and the ones made for your managed users; narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The numbers come from the events the embedded widgets send while they are shown (the Widgetic embed SDK sends them by itself), counted when you ask. Only views and interactions are counted; the events that describe a visit (its start, its end, the device and the referrer) are not. The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1294
+ * What was done with a partner\'s published widgets
1295
+ */
1296
+ getPartnerAnalyticsSummary(requestParameters: GetPartnerAnalyticsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsSummaryResponse>;
1297
+ /**
1298
+ * Counts views, interactions and visitors for each day of a period (UTC days), oldest first, for a chart. Every day of the period is in the list, also one on which nothing happened (all zeros), so the list can be drawn as it is. Narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The period works as it does for `getPartnerAnalyticsSummary`; `startDate` and `endDate` are best given as dates, so that the first and the last day are whole days. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1299
+ * What was done with a partner\'s widgets, day by day
1300
+ */
1301
+ getPartnerAnalyticsTimelineRaw(requestParameters: GetPartnerAnalyticsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsTimelineResponse>>;
1302
+ /**
1303
+ * Counts views, interactions and visitors for each day of a period (UTC days), oldest first, for a chart. Every day of the period is in the list, also one on which nothing happened (all zeros), so the list can be drawn as it is. Narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The period works as it does for `getPartnerAnalyticsSummary`; `startDate` and `endDate` are best given as dates, so that the first and the last day are whole days. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1304
+ * What was done with a partner\'s widgets, day by day
1305
+ */
1306
+ getPartnerAnalyticsTimeline(requestParameters: GetPartnerAnalyticsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsTimelineResponse>;
1307
+ /**
1308
+ * Lists the widgets whose compositions were viewed the most in a period, with their views, interactions, visitors and how many of their compositions were viewed. A widget that nobody viewed or used is not listed. The most viewed come first (then the most used), and at most `limit` are listed. Narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The period works as it does for `getPartnerAnalyticsSummary`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1309
+ * Which widgets were viewed the most
1310
+ */
1311
+ getPartnerAnalyticsTopWidgetsRaw(requestParameters: GetPartnerAnalyticsTopWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsTopWidgetsResponse>>;
1312
+ /**
1313
+ * Lists the widgets whose compositions were viewed the most in a period, with their views, interactions, visitors and how many of their compositions were viewed. A widget that nobody viewed or used is not listed. The most viewed come first (then the most used), and at most `limit` are listed. Narrow it to one managed user with `managedUserId` or `managedUserExternalId` (not both). The period works as it does for `getPartnerAnalyticsSummary`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1314
+ * Which widgets were viewed the most
1315
+ */
1316
+ getPartnerAnalyticsTopWidgets(requestParameters: GetPartnerAnalyticsTopWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsTopWidgetsResponse>;
1317
+ /**
1318
+ * Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
1319
+ * Get comprehensive partner billing overview
1320
+ */
1321
+ getPartnerBillingOverviewRaw(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerBillingOverview200Response>>;
1322
+ /**
1323
+ * Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
1324
+ * Get comprehensive partner billing overview
1325
+ */
1326
+ getPartnerBillingOverview(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerBillingOverview200Response>;
1327
+ /**
1328
+ * Returns the commercial terms agreed with the partner: price, included credits and storage, billing cycle, commitment, support level, and the dates the contract runs between. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s. Responds 404 while no contract has been recorded for the partner, which is the case until Widgetic sets its terms.
1329
+ * Get a partner\'s contract
1330
+ */
1331
+ getPartnerContractRaw(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerContractResponse>>;
1332
+ /**
1333
+ * Returns the commercial terms agreed with the partner: price, included credits and storage, billing cycle, commitment, support level, and the dates the contract runs between. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s. Responds 404 while no contract has been recorded for the partner, which is the case until Widgetic sets its terms.
1334
+ * Get a partner\'s contract
1335
+ */
1336
+ getPartnerContract(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerContractResponse>;
1337
+ /**
1338
+ * Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner has ONE account for its credits: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that account, and the credits a paid invoice carries are added to it, so this is the same balance `getUserCreditBalance` reads for that person. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
1339
+ * Get partner credit balance
1340
+ */
1341
+ getPartnerCreditBalanceRaw(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
1342
+ /**
1343
+ * Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner has ONE account for its credits: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that account, and the credits a paid invoice carries are added to it, so this is the same balance `getUserCreditBalance` reads for that person. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
1344
+ * Get partner credit balance
1345
+ */
1346
+ getPartnerCreditBalance(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
1347
+ /**
1348
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is the same ledger `getUserCreditTransactions` reads for that person. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
1349
+ * Get partner credit transaction history
1350
+ */
1351
+ getPartnerCreditTransactionsRaw(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
1352
+ /**
1353
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is the same ledger `getUserCreditTransactions` reads for that person. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
1354
+ * Get partner credit transaction history
1355
+ */
1356
+ getPartnerCreditTransactions(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
1357
+ /**
1358
+ * Returns the database set with `setPartnerDataDatabase`, without its password: the host, the database and the role, when it last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no database of its own, which means the data of its compositions is kept by Widgetic. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1359
+ * See the Neon database a partner keeps the data of its compositions in
1360
+ */
1361
+ getPartnerDataDatabaseRaw(requestParameters: GetPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
1362
+ /**
1363
+ * Returns the database set with `setPartnerDataDatabase`, without its password: the host, the database and the role, when it last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no database of its own, which means the data of its compositions is kept by Widgetic. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1364
+ * See the Neon database a partner keeps the data of its compositions in
1365
+ */
1366
+ getPartnerDataDatabase(requestParameters: GetPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
1367
+ /**
1368
+ * Read partner-wide design defaults
1369
+ */
1370
+ getPartnerDesignDefaultsRaw(requestParameters: GetPartnerDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1371
+ /**
1372
+ * Read partner-wide design defaults
1373
+ */
1374
+ getPartnerDesignDefaults(requestParameters: GetPartnerDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1375
+ /**
1376
+ * Retrieves all entitlements for a partner (admin or partner access).
1377
+ * Get partner entitlements
1378
+ */
1379
+ getPartnerEntitlementsRaw(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerEntitlementsResponse>>;
1380
+ /**
1381
+ * Retrieves all entitlements for a partner (admin or partner access).
1382
+ * Get partner entitlements
1383
+ */
1384
+ getPartnerEntitlements(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerEntitlementsResponse>;
1385
+ /**
1386
+ * Says whether you have a secret to sign the `context` of your embeds with, when it was made, whether the secret it replaced is still accepted, and whether an entry without a valid signature is refused (`required`). The secret itself is never part of the answer: it is shown once, when it is made (`rotatePartnerEntryContextSecret`, which also explains what signing is for and how to sign). Signing covers the entries written through the gateway into the compositions of your managed users and into those of your own account. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1387
+ * See how the context of your embeds is signed
1388
+ */
1389
+ getPartnerEntryContextSigningRaw(requestParameters: GetPartnerEntryContextSigningRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSigningResponse>>;
1390
+ /**
1391
+ * Says whether you have a secret to sign the `context` of your embeds with, when it was made, whether the secret it replaced is still accepted, and whether an entry without a valid signature is refused (`required`). The secret itself is never part of the answer: it is shown once, when it is made (`rotatePartnerEntryContextSecret`, which also explains what signing is for and how to sign). Signing covers the entries written through the gateway into the compositions of your managed users and into those of your own account. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1392
+ * See how the context of your embeds is signed
1393
+ */
1394
+ getPartnerEntryContextSigning(requestParameters: GetPartnerEntryContextSigningRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSigningResponse>;
1395
+ /**
1396
+ * Returns who gets the emails, which events you want by email and by webhook, the address of your webhook, and whether it has a secret to sign with. The secret itself is never returned: it is shown once, when it is made. `events` lists every kind of event there is, for a settings screen. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1397
+ * Where your notifications go
1398
+ */
1399
+ getPartnerNotificationSettingsRaw(requestParameters: GetPartnerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsResponse>>;
1400
+ /**
1401
+ * Returns who gets the emails, which events you want by email and by webhook, the address of your webhook, and whether it has a secret to sign with. The secret itself is never returned: it is shown once, when it is made. `events` lists every kind of event there is, for a settings screen. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1402
+ * Where your notifications go
1403
+ */
1404
+ getPartnerNotificationSettings(requestParameters: GetPartnerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsResponse>;
1405
+ /**
1406
+ * Returns the partner\'s storage destination without its secret: the endpoint, bucket, folder and public address, the last four characters of the access key id, when the destination last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no destination, which means the partner cannot be activated, its uploads are refused, and no editor session is made for its customers until a destination is set. The caller must be the person who administers the partner, or a Widgetic administrator.
1407
+ * Get where a partner\'s uploaded files are stored
1408
+ */
1409
+ getPartnerStorageDestinationRaw(requestParameters: GetPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
1410
+ /**
1411
+ * Returns the partner\'s storage destination without its secret: the endpoint, bucket, folder and public address, the last four characters of the access key id, when the destination last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no destination, which means the partner cannot be activated, its uploads are refused, and no editor session is made for its customers until a destination is set. The caller must be the person who administers the partner, or a Widgetic administrator.
1412
+ * Get where a partner\'s uploaded files are stored
1413
+ */
1414
+ getPartnerStorageDestination(requestParameters: GetPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
1415
+ /**
1416
+ * Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic\'s storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadsPost`, or the metadata of a resumable upload), or because it was uploaded through that user\'s editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `uploadsGet`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1417
+ * What a partner\'s customers store
1418
+ */
1419
+ getPartnerStorageUsageRaw(requestParameters: GetPartnerStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageUsageResponse>>;
1420
+ /**
1421
+ * Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic\'s storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadsPost`, or the metadata of a resumable upload), or because it was uploaded through that user\'s editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `uploadsGet`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1422
+ * What a partner\'s customers store
1423
+ */
1424
+ getPartnerStorageUsage(requestParameters: GetPartnerStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageUsageResponse>;
1425
+ /**
1426
+ * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
1427
+ * List the websites allowed to show your widgets
1428
+ */
1429
+ getPersonalWorkspaceDomainsRaw(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPersonalWorkspaceDomains200Response>>;
1430
+ /**
1431
+ * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
1432
+ * List the websites allowed to show your widgets
1433
+ */
1434
+ getPersonalWorkspaceDomains(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPersonalWorkspaceDomains200Response>;
1435
+ /**
1436
+ * Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is 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 widgets of that partner: a partner\'s list never has to name it. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
1437
+ * Resolve a composition UUID to a published widget URL
1438
+ */
1439
+ getPublicCompositionEmbedRaw(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicCompositionEmbed200Response>>;
1440
+ /**
1441
+ * Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is 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 widgets of that partner: a partner\'s list never has to name it. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
1442
+ * Resolve a composition UUID to a published widget URL
1443
+ */
1444
+ getPublicCompositionEmbed(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicCompositionEmbed200Response>;
1445
+ /**
1446
+ * Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own, and the website where the partner the owner administers integrates Widgetic, with its subdomains), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1447
+ * Embed a published composition with its saved values
1448
+ */
1449
+ getPublicCompositionIframeRaw(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
1450
+ /**
1451
+ * Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own, and the website where the partner the owner administers integrates Widgetic, with its subdomains), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1452
+ * Embed a published composition with its saved values
1453
+ */
1454
+ getPublicCompositionIframe(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
1455
+ /**
1456
+ * Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
1457
+ * See which adapter keys an account has connected
1458
+ */
1459
+ getUserAdapterConnectionsRaw(requestParameters: GetUserAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAdapterConnections200Response>>;
1460
+ /**
1461
+ * Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
1462
+ * See which adapter keys an account has connected
1463
+ */
1464
+ getUserAdapterConnections(requestParameters: GetUserAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAdapterConnections200Response>;
1465
+ /**
1466
+ * Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
1467
+ * Read what an API key was used for
1468
+ */
1469
+ getUserApiKeyUsageLogsRaw(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeyUsageLogsResponse>>;
1470
+ /**
1471
+ * Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
1472
+ * Read what an API key was used for
1473
+ */
1474
+ getUserApiKeyUsageLogs(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeyUsageLogsResponse>;
1475
+ /**
1476
+ * Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
1477
+ * List the API keys of an account
1478
+ */
1479
+ getUserApiKeysRaw(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeys200Response>>;
1480
+ /**
1481
+ * Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
1482
+ * List the API keys of an account
1483
+ */
1484
+ getUserApiKeys(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeys200Response>;
1485
+ /**
1486
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
1487
+ * Get an account\'s credit balance
1488
+ */
1489
+ getUserCreditBalanceRaw(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
1490
+ /**
1491
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
1492
+ * Get an account\'s credit balance
1493
+ */
1494
+ getUserCreditBalance(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
1495
+ /**
1496
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
1497
+ * List an account\'s credit ledger
1498
+ */
1499
+ getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
1500
+ /**
1501
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
1502
+ * List an account\'s credit ledger
1503
+ */
1504
+ getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
1505
+ /**
1506
+ * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
1507
+ * List Widgets
1508
+ */
1509
+ getWidgetsRaw(requestParameters: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgets200Response>>;
1510
+ /**
1511
+ * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
1512
+ * List Widgets
1513
+ */
1514
+ getWidgets(requestParameters?: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgets200Response>;
1515
+ /**
1516
+ * Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
1517
+ * Get Widgets Batch
1518
+ */
1519
+ getWidgetsBatchRaw(requestParameters: GetWidgetsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgetsBatchResponse>>;
1520
+ /**
1521
+ * Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
1522
+ * Get Widgets Batch
1523
+ */
1524
+ getWidgetsBatch(requestParameters: GetWidgetsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetsBatchResponse>;
1525
+ /**
1526
+ * 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.
1527
+ * List composition entry items with paging and filters
1528
+ */
1529
+ listCompositionEntryItemsRaw(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryItemsPageSuccess>>;
1530
+ /**
1531
+ * 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.
1532
+ * List composition entry items with paging and filters
1533
+ */
1534
+ listCompositionEntryItems(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryItemsPageSuccess>;
1535
+ /**
1536
+ * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
1537
+ * List entries across a managed user\'s compositions
1538
+ */
1539
+ listManagedUserEntriesRaw(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserEntriesPageSuccess>>;
1540
+ /**
1541
+ * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
1542
+ * List entries across a managed user\'s compositions
1543
+ */
1544
+ listManagedUserEntries(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserEntriesPageSuccess>;
1545
+ /**
1546
+ * Lists the sends of your notifications, the newest first: each email to one address and each call to your webhook, with whether it was delivered, when it is tried again if not, how many attempts it had, and why the last one failed. Use it to find out why a webhook of yours did not receive an event. An email counts as delivered when it was handed to the mail service; a call to your webhook counts as delivered when your endpoint answered with a 2xx status. Anything else is tried again, after 1 minute, then 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and a day, eight attempts in all, because your address is read again at each attempt and you may have mended it. Two answers end the delivery at once: `410 Gone` and `413 Payload Too Large`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1547
+ * How your notifications reached you
1548
+ */
1549
+ listPartnerNotificationDeliveriesRaw(requestParameters: ListPartnerNotificationDeliveriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationDeliveryLogResponse>>;
1550
+ /**
1551
+ * Lists the sends of your notifications, the newest first: each email to one address and each call to your webhook, with whether it was delivered, when it is tried again if not, how many attempts it had, and why the last one failed. Use it to find out why a webhook of yours did not receive an event. An email counts as delivered when it was handed to the mail service; a call to your webhook counts as delivered when your endpoint answered with a 2xx status. Anything else is tried again, after 1 minute, then 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and a day, eight attempts in all, because your address is read again at each attempt and you may have mended it. Two answers end the delivery at once: `410 Gone` and `413 Payload Too Large`. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1552
+ * How your notifications reached you
1553
+ */
1554
+ listPartnerNotificationDeliveries(requestParameters: ListPartnerNotificationDeliveriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationDeliveryLogResponse>;
1555
+ /**
1556
+ * Lists the notifications of a partner, the newest first: the invoices Widgetic issued and their payments, the reminders to pay them, a warning when your credits run low, and the changes to the standing of the account (activated, paused, resumed). It is the same list your dashboard shows, and each entry is what your webhook receives as `data` when you have one (`updatePartnerNotificationSettings`). A page holds `limit` notifications (20 by default, at most 100). When there are older ones `nextBefore` is set: ask again with it as `before` to get the next page. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1557
+ * What your partner account was told
1558
+ */
1559
+ listPartnerNotificationsRaw(requestParameters: ListPartnerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationPageResponse>>;
1560
+ /**
1561
+ * Lists the notifications of a partner, the newest first: the invoices Widgetic issued and their payments, the reminders to pay them, a warning when your credits run low, and the changes to the standing of the account (activated, paused, resumed). It is the same list your dashboard shows, and each entry is what your webhook receives as `data` when you have one (`updatePartnerNotificationSettings`). A page holds `limit` notifications (20 by default, at most 100). When there are older ones `nextBefore` is set: ask again with it as `before` to get the next page. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1562
+ * What your partner account was told
1563
+ */
1564
+ listPartnerNotifications(requestParameters: ListPartnerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationPageResponse>;
1565
+ /**
1566
+ * Returns the partner\'s presets, ordered by `position` and then by `key`: the widgets it offers its managed users as starting points. The list is the same for every managed user. Use a preset in one of two ways: - **Make a composition of it** (the content and design editor): call `createComposition` with the preset\'s `widgetId` and the managed user. The widget itself stays yours; a composition is the user\'s own content. - **Give the user a copy to build on** (the widget creator): call `copyPresetForManagedUser`. The user gets a widget and a canvas of their own. Presets are not the same as the widgets Widgetic puts on every new Widgetic account. Those are chosen by Widgetic and are copied at sign-up. A preset here is yours, and is copied only when you ask. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1567
+ * List the widgets a partner offers as presets
1568
+ */
1569
+ listPartnerPresetsRaw(requestParameters: ListPartnerPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerPresets200Response>>;
1570
+ /**
1571
+ * Returns the partner\'s presets, ordered by `position` and then by `key`: the widgets it offers its managed users as starting points. The list is the same for every managed user. Use a preset in one of two ways: - **Make a composition of it** (the content and design editor): call `createComposition` with the preset\'s `widgetId` and the managed user. The widget itself stays yours; a composition is the user\'s own content. - **Give the user a copy to build on** (the widget creator): call `copyPresetForManagedUser`. The user gets a widget and a canvas of their own. Presets are not the same as the widgets Widgetic puts on every new Widgetic account. Those are chosen by Widgetic and are copied at sign-up. A preset here is yours, and is copied only when you ask. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1572
+ * List the widgets a partner offers as presets
1573
+ */
1574
+ listPartnerPresets(requestParameters: ListPartnerPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerPresets200Response>;
1575
+ /**
1576
+ * Follows work that carries on after the response that started it. Duplicating a composition, for one, answers 202 with an `operationId`: ask for that operation until its `status` is `completed` (or `failed`, with the reason in `error`). A finished duplication names the new composition in `metadata.newCompositionId`. An operation belongs to the user who started it. Asking for somebody else\'s operation answers 404, exactly as for one that does not exist. Administrators may read any operation.
1577
+ * Get operation status
1578
+ */
1579
+ operationsIdGetRaw(requestParameters: OperationsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperationsIdGetResponse>>;
1580
+ /**
1581
+ * Follows work that carries on after the response that started it. Duplicating a composition, for one, answers 202 with an `operationId`: ask for that operation until its `status` is `completed` (or `failed`, with the reason in `error`). A finished duplication names the new composition in `metadata.newCompositionId`. An operation belongs to the user who started it. Asking for somebody else\'s operation answers 404, exactly as for one that does not exist. Administrators may read any operation.
1582
+ * Get operation status
1583
+ */
1584
+ operationsIdGet(requestParameters: OperationsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperationsIdGetResponse>;
1585
+ /**
1586
+ * Update a content list item
1587
+ */
1588
+ patchCompositionContentItemRaw(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
1589
+ /**
1590
+ * Update a content list item
1591
+ */
1592
+ patchCompositionContentItem(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
1593
+ /**
1594
+ * Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
1595
+ * Batch-check whether compositions are currently served for embed
1596
+ */
1597
+ postPublicCompositionEmbedStatusRaw(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostPublicCompositionEmbedStatus200Response>>;
1598
+ /**
1599
+ * Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
1600
+ * Batch-check whether compositions are currently served for embed
1601
+ */
1602
+ postPublicCompositionEmbedStatus(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostPublicCompositionEmbedStatus200Response>;
1603
+ /**
1604
+ * 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.
1605
+ * Read the Entries of a Composition\'s Table
1606
+ */
1607
+ readCompositionEntriesRaw(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesReadingResponse>>;
1608
+ /**
1609
+ * 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.
1610
+ * Read the Entries of a Composition\'s Table
1611
+ */
1612
+ readCompositionEntries(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesReadingResponse>;
1613
+ /**
1614
+ * 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.
1615
+ * Remove a document from a widget\'s knowledge base
1616
+ */
1617
+ removeAiAnswersKnowledgeDocumentRaw(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveAiAnswersKnowledgeDocument200Response>>;
1618
+ /**
1619
+ * 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.
1620
+ * Remove a document from a widget\'s knowledge base
1621
+ */
1622
+ removeAiAnswersKnowledgeDocument(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveAiAnswersKnowledgeDocument200Response>;
1623
+ /**
1624
+ * Removes a key an adapter was given. The adapter stops working for the widgets of the partner\'s customers that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1625
+ * Remove an adapter key from a partner
1626
+ */
1627
+ removePartnerAdapterConnectionRaw(requestParameters: RemovePartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveUserAdapterConnection200Response>>;
1628
+ /**
1629
+ * Removes a key an adapter was given. The adapter stops working for the widgets of the partner\'s customers that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1630
+ * Remove an adapter key from a partner
1631
+ */
1632
+ removePartnerAdapterConnection(requestParameters: RemovePartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveUserAdapterConnection200Response>;
1633
+ /**
1634
+ * Removes the partner\'s database from Widgetic: Widgetic forgets the connection string, and from then on the data of the partner\'s compositions is kept in Widgetic\'s database again. Nothing in your database is deleted. Removing is refused with 409 `PARTNER_DATABASE_HOLDS_DATA` while any composition of the partner keeps its data in your database: it would read as empty from then on, and what it holds would stay where nothing reads it. Delete the compositions you no longer need, or keep the database. If Widgetic cannot check what your database holds (it cannot be reached) the answer is 503 `PARTNER_DATABASE_UNAVAILABLE`; check it with `verifyPartnerDataDatabase`, or set the same database again to repair its connection. Removing a database the partner does not have is not an error: the answer is `removed: false`. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1635
+ * Stop keeping the data of a partner\'s compositions in its own database
1636
+ */
1637
+ removePartnerDataDatabaseRaw(requestParameters: RemovePartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseRemovalResponse>>;
1638
+ /**
1639
+ * Removes the partner\'s database from Widgetic: Widgetic forgets the connection string, and from then on the data of the partner\'s compositions is kept in Widgetic\'s database again. Nothing in your database is deleted. Removing is refused with 409 `PARTNER_DATABASE_HOLDS_DATA` while any composition of the partner keeps its data in your database: it would read as empty from then on, and what it holds would stay where nothing reads it. Delete the compositions you no longer need, or keep the database. If Widgetic cannot check what your database holds (it cannot be reached) the answer is 503 `PARTNER_DATABASE_UNAVAILABLE`; check it with `verifyPartnerDataDatabase`, or set the same database again to repair its connection. Removing a database the partner does not have is not an error: the answer is `removed: false`. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1640
+ * Stop keeping the data of a partner\'s compositions in its own database
1641
+ */
1642
+ removePartnerDataDatabase(requestParameters: RemovePartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseRemovalResponse>;
1643
+ /**
1644
+ * Removes the preset under `key`. The widget itself is not touched, and neither are the copies and the compositions already made from it. Removing a preset the partner does not have is not an error: the answer is `removed: false`.
1645
+ * Take a widget off the partner\'s presets
1646
+ */
1647
+ removePartnerPresetRaw(requestParameters: RemovePartnerPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetRemovalResponse>>;
1648
+ /**
1649
+ * Removes the preset under `key`. The widget itself is not touched, and neither are the copies and the compositions already made from it. Removing a preset the partner does not have is not an error: the answer is `removed: false`.
1650
+ * Take a widget off the partner\'s presets
1651
+ */
1652
+ removePartnerPreset(requestParameters: RemovePartnerPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetRemovalResponse>;
1653
+ /**
1654
+ * Removes the partner\'s storage destination. Partner storage is not optional, so after this every upload of the account, on any route, and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
1655
+ * Stop storing a partner\'s uploaded files in its own bucket
1656
+ */
1657
+ removePartnerStorageDestinationRaw(requestParameters: RemovePartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageRemovalResponse>>;
1658
+ /**
1659
+ * Removes the partner\'s storage destination. Partner storage is not optional, so after this every upload of the account, on any route, and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
1660
+ * Stop storing a partner\'s uploaded files in its own bucket
1661
+ */
1662
+ removePartnerStorageDestination(requestParameters: RemovePartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageRemovalResponse>;
1663
+ /**
1664
+ * Removes a key an adapter was given. The adapter stops working for the widgets that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
1665
+ * Remove an adapter key from an account
1666
+ */
1667
+ removeUserAdapterConnectionRaw(requestParameters: RemoveUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveUserAdapterConnection200Response>>;
1668
+ /**
1669
+ * Removes a key an adapter was given. The adapter stops working for the widgets that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
1670
+ * Remove an adapter key from an account
1671
+ */
1672
+ removeUserAdapterConnection(requestParameters: RemoveUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveUserAdapterConnection200Response>;
1673
+ /**
1674
+ * Sends one earlier **webhook** delivery again to your **current** webhook address, with the same event `id` (`webhook-id`) as the original notification so a receiver that remembers ids can ignore a duplicate, and a new `createdAt` and signature made with your current secret. The attempt is recorded in the delivery log as a new row that points at the delivery you replayed. Set a webhook address (and secret) under notification settings before you replay. Changing the settings needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1675
+ * Send a webhook delivery again
1676
+ */
1677
+ replayPartnerNotificationDeliveryRaw(requestParameters: ReplayPartnerNotificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationDeliveryResponse>>;
1678
+ /**
1679
+ * Sends one earlier **webhook** delivery again to your **current** webhook address, with the same event `id` (`webhook-id`) as the original notification so a receiver that remembers ids can ignore a duplicate, and a new `createdAt` and signature made with your current secret. The attempt is recorded in the delivery log as a new row that points at the delivery you replayed. Set a webhook address (and secret) under notification settings before you replay. Changing the settings needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1680
+ * Send a webhook delivery again
1681
+ */
1682
+ replayPartnerNotificationDelivery(requestParameters: ReplayPartnerNotificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationDeliveryResponse>;
1683
+ /**
1684
+ * Ends the session at once: its token stops working on the next request (on another server of ours, within a few seconds). Ending a session that has already ended is fine.
1685
+ * End one editor session of a managed user
1686
+ */
1687
+ revokeManagedUserEditorSessionRaw(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteManagedUser200Response>>;
1688
+ /**
1689
+ * Ends the session at once: its token stops working on the next request (on another server of ours, within a few seconds). Ending a session that has already ended is fine.
1690
+ * End one editor session of a managed user
1691
+ */
1692
+ revokeManagedUserEditorSession(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteManagedUser200Response>;
1693
+ /**
1694
+ * Ends all of the managed user\'s live editor sessions at once, for example when the user signs out of your platform. Their tokens stop working on the next request (on another server of ours, within a few seconds). It is fine to call it for a user who has none.
1695
+ * End every editor session of a managed user
1696
+ */
1697
+ revokeManagedUserEditorSessionsRaw(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevokeManagedUserEditorSessionsResponse>>;
1698
+ /**
1699
+ * Ends all of the managed user\'s live editor sessions at once, for example when the user signs out of your platform. Their tokens stop working on the next request (on another server of ours, within a few seconds). It is fine to call it for a user who has none.
1700
+ * End every editor session of a managed user
1701
+ */
1702
+ revokeManagedUserEditorSessions(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevokeManagedUserEditorSessionsResponse>;
1703
+ /**
1704
+ * Makes a secret to sign the `context` of your embeds with, and returns it in `secret`: **keep it now, it is shown once** and cannot be read again. Keep it on your server only: whoever holds it can write contexts your compositions accept. Call this again to make a new secret; the one it replaces is still accepted for a day, so that your server can switch without an entry being refused (making another within that day ends the overlap with the first). **What signing is for.** `<widgetic composition-id=\"...\" context=\'{\"customerId\":\"c_42\"}\'>` hands attribution to a widget, which sends it with every entry it saves. The page is yours but the browser is the visitor\'s: anybody can change that attribute and file an entry under another customer\'s id. When your server signs the context, the gateway refuses an entry whose context was changed, and the entries you keep hold attribution your server wrote. **How to sign** (on your server, for each page you render): 1. Take the context to give the widget. It may hold text and whole numbers only (within ±2^53, written without a fraction or an exponent). 2. Choose when the signature stops being good: `widgetic_exp`, in seconds since 1970 (UTC), no more than seven days from now. A minute of difference between clocks is forgiven. 3. Write the text to sign, with no spaces except those inside values: `widgetic-context.v1.<compositionId>.<widgetic_exp>.<json>`. `<compositionId>` is the id of the composition in lower case. `<json>` is the context as JSON with the keys in character-code order (so `Z` comes before `a`, and `10` before `9`), no spaces, strings escaped as JSON escapes them, and the two keys of the signature left out. 4. Sign that text: HMAC-SHA256 with the 32 bytes the secret stands for (the base64 text after `ctxsec_`), and write the result as base64url without padding. 5. Give the widget the context with two keys added: `widgetic_exp` and `widgetic_sig` (the signature). The whole attribute, the two keys included, stays within the limits of any context: at most 20 keys, 2048 bytes of JSON, strings up to 500 characters. The two keys take two of the 20 keys and 87 bytes of the 2048. A test vector, to check your code against before you rely on it. Secret `ctxsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=` (the bytes 0 to 31), composition `7c9e6679-7425-40de-944b-e07fc1f90ae7`, `widgetic_exp` 1792000000 and context `{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` sign the text `widgetic-context.v1.7c9e6679-7425-40de-944b-e07fc1f90ae7.1792000000.{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` and give the signature `j6g7151F54tl9C8oEY9levaYSppHME4fAPZ7WPwL8C8`. (The secret is the example\'s, not a real one.) **What the gateway does with an entry.** When you have a secret, an entry whose context carries a signature is checked: a signature that does not match is refused with 403 `CONTEXT_SIGNATURE_INVALID`, and one that is past `widgetic_exp` with 403 `CONTEXT_SIGNATURE_EXPIRED`. When you also require signatures (`updatePartnerEntryContextSigning`) an entry whose context carries none is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`. The two keys are taken out before the entry is stored or announced: your entries and your `entry.created` events hold the context you wrote. A change you make reaches every part of the gateway within a minute. **What it does not do.** A signed context that has been seen (a page\'s source is public) can be sent again by anyone until `widgetic_exp`; when you must not accept the same context twice, put a value that is new for each page view in it (a `submissionId` you made up) and keep the ones you have seen. The signature covers the entries that reach Widgetic\'s gateway: a row that gets into a table another way (your own code writing straight into a database you brought, or the record calls of the composition\'s owner) does not pass through it, and carries no context. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1705
+ * Make a secret to sign the context of your embeds
1706
+ */
1707
+ rotatePartnerEntryContextSecretRaw(requestParameters: RotatePartnerEntryContextSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSecretResponse>>;
1708
+ /**
1709
+ * Makes a secret to sign the `context` of your embeds with, and returns it in `secret`: **keep it now, it is shown once** and cannot be read again. Keep it on your server only: whoever holds it can write contexts your compositions accept. Call this again to make a new secret; the one it replaces is still accepted for a day, so that your server can switch without an entry being refused (making another within that day ends the overlap with the first). **What signing is for.** `<widgetic composition-id=\"...\" context=\'{\"customerId\":\"c_42\"}\'>` hands attribution to a widget, which sends it with every entry it saves. The page is yours but the browser is the visitor\'s: anybody can change that attribute and file an entry under another customer\'s id. When your server signs the context, the gateway refuses an entry whose context was changed, and the entries you keep hold attribution your server wrote. **How to sign** (on your server, for each page you render): 1. Take the context to give the widget. It may hold text and whole numbers only (within ±2^53, written without a fraction or an exponent). 2. Choose when the signature stops being good: `widgetic_exp`, in seconds since 1970 (UTC), no more than seven days from now. A minute of difference between clocks is forgiven. 3. Write the text to sign, with no spaces except those inside values: `widgetic-context.v1.<compositionId>.<widgetic_exp>.<json>`. `<compositionId>` is the id of the composition in lower case. `<json>` is the context as JSON with the keys in character-code order (so `Z` comes before `a`, and `10` before `9`), no spaces, strings escaped as JSON escapes them, and the two keys of the signature left out. 4. Sign that text: HMAC-SHA256 with the 32 bytes the secret stands for (the base64 text after `ctxsec_`), and write the result as base64url without padding. 5. Give the widget the context with two keys added: `widgetic_exp` and `widgetic_sig` (the signature). The whole attribute, the two keys included, stays within the limits of any context: at most 20 keys, 2048 bytes of JSON, strings up to 500 characters. The two keys take two of the 20 keys and 87 bytes of the 2048. A test vector, to check your code against before you rely on it. Secret `ctxsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=` (the bytes 0 to 31), composition `7c9e6679-7425-40de-944b-e07fc1f90ae7`, `widgetic_exp` 1792000000 and context `{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` sign the text `widgetic-context.v1.7c9e6679-7425-40de-944b-e07fc1f90ae7.1792000000.{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` and give the signature `j6g7151F54tl9C8oEY9levaYSppHME4fAPZ7WPwL8C8`. (The secret is the example\'s, not a real one.) **What the gateway does with an entry.** When you have a secret, an entry whose context carries a signature is checked: a signature that does not match is refused with 403 `CONTEXT_SIGNATURE_INVALID`, and one that is past `widgetic_exp` with 403 `CONTEXT_SIGNATURE_EXPIRED`. When you also require signatures (`updatePartnerEntryContextSigning`) an entry whose context carries none is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`. The two keys are taken out before the entry is stored or announced: your entries and your `entry.created` events hold the context you wrote. A change you make reaches every part of the gateway within a minute. **What it does not do.** A signed context that has been seen (a page\'s source is public) can be sent again by anyone until `widgetic_exp`; when you must not accept the same context twice, put a value that is new for each page view in it (a `submissionId` you made up) and keep the ones you have seen. The signature covers the entries that reach Widgetic\'s gateway: a row that gets into a table another way (your own code writing straight into a database you brought, or the record calls of the composition\'s owner) does not pass through it, and carries no context. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1710
+ * Make a secret to sign the context of your embeds
1711
+ */
1712
+ rotatePartnerEntryContextSecret(requestParameters: RotatePartnerEntryContextSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSecretResponse>;
1713
+ /**
1714
+ * Makes a new secret to sign your webhook with, and returns it in `webhookSecret`: **keep it now, it is shown once** and cannot be read again. Use it when the secret was lost, or may have leaked. The secret you had keeps signing beside the new one for a day, so that your receiver can switch without a call being rejected: during that day each call carries two signatures (see `updatePartnerNotificationSettings` for how they are verified). Rotating again within the day ends the overlap with the first secret. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1715
+ * Make a new secret for your webhook
1716
+ */
1717
+ rotatePartnerWebhookSecretRaw(requestParameters: RotatePartnerWebhookSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsChangeResponse>>;
1718
+ /**
1719
+ * Makes a new secret to sign your webhook with, and returns it in `webhookSecret`: **keep it now, it is shown once** and cannot be read again. Use it when the secret was lost, or may have leaked. The secret you had keeps signing beside the new one for a day, so that your receiver can switch without a call being rejected: during that day each call carries two signatures (see `updatePartnerNotificationSettings` for how they are verified). Rotating again within the day ends the overlap with the first secret. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1720
+ * Make a new secret for your webhook
1721
+ */
1722
+ rotatePartnerWebhookSecret(requestParameters: RotatePartnerWebhookSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsChangeResponse>;
1723
+ /**
1724
+ * Sends ONE signed call, right now, to the webhook address you saved under notification settings, with a sample of what an event of the type you name carries, and answers how it went: whether your receiver answered with a 2xx status, which status, how long it took, and why not when it did not arrive. Use it to write and try your receiver (above all the signature check) before a real event happens. The call is made like every other: it is signed with your current secret (and the previous one while a rotation overlaps), it carries the headers `webhook-id`, `webhook-timestamp`, `webhook-signature` and `x-widgetic-event` (the event type), and its body is `{ \"id\", \"type\", \"createdAt\", \"partnerId\", \"data\" }`. Three things differ. `id` starts with `evt_test_` and is new every time, so a receiver that remembers ids can tell a test from an event and drop it. `data` holds made-up values of the shape a real event of that type carries (`PartnerNotification` describes each), never anything about your account. And the call is made once: it is not tried again, nothing is stored, and it appears neither in the delivery log nor in the notification list. It is sent whatever `webhookEvents` says: a test is not filtered by what you subscribed to. The answer is 200 whether or not your receiver took the call (read `delivered`); a call that gets no answer within ten seconds is given up and reported as a `timeout`. A webhook address and a signing secret must be saved first (`updatePartnerNotificationSettings`); until then the answer is 409. This needs an API key with full access, and `Idempotency-Key` is required: a retry with the same key gets the first answer back and no second call is made. The caller must be the person who administers the partner, or a Widgetic administrator. Five tests a minute.
1725
+ * Send a test event to your webhook
1726
+ */
1727
+ sendPartnerNotificationTestEventRaw(requestParameters: SendPartnerNotificationTestEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationTestEventResultResponse>>;
1728
+ /**
1729
+ * Sends ONE signed call, right now, to the webhook address you saved under notification settings, with a sample of what an event of the type you name carries, and answers how it went: whether your receiver answered with a 2xx status, which status, how long it took, and why not when it did not arrive. Use it to write and try your receiver (above all the signature check) before a real event happens. The call is made like every other: it is signed with your current secret (and the previous one while a rotation overlaps), it carries the headers `webhook-id`, `webhook-timestamp`, `webhook-signature` and `x-widgetic-event` (the event type), and its body is `{ \"id\", \"type\", \"createdAt\", \"partnerId\", \"data\" }`. Three things differ. `id` starts with `evt_test_` and is new every time, so a receiver that remembers ids can tell a test from an event and drop it. `data` holds made-up values of the shape a real event of that type carries (`PartnerNotification` describes each), never anything about your account. And the call is made once: it is not tried again, nothing is stored, and it appears neither in the delivery log nor in the notification list. It is sent whatever `webhookEvents` says: a test is not filtered by what you subscribed to. The answer is 200 whether or not your receiver took the call (read `delivered`); a call that gets no answer within ten seconds is given up and reported as a `timeout`. A webhook address and a signing secret must be saved first (`updatePartnerNotificationSettings`); until then the answer is 409. This needs an API key with full access, and `Idempotency-Key` is required: a retry with the same key gets the first answer back and no second call is made. The caller must be the person who administers the partner, or a Widgetic administrator. Five tests a minute.
1730
+ * Send a test event to your webhook
1731
+ */
1732
+ sendPartnerNotificationTestEvent(requestParameters: SendPartnerNotificationTestEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationTestEventResultResponse>;
1733
+ /**
1734
+ * 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`).
1735
+ * Bind a public JSON data source for embed refresh
1736
+ */
1737
+ setCompositionDataSourceRaw(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDataSourceResponse>>;
1738
+ /**
1739
+ * 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`).
1740
+ * Bind a public JSON data source for embed refresh
1741
+ */
1742
+ setCompositionDataSource(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDataSourceResponse>;
1743
+ /**
1744
+ * 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`.
1745
+ * Set Dynamic Content
1746
+ */
1747
+ setDynamicContentRaw(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetDynamicContentResponse>>;
1748
+ /**
1749
+ * 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`.
1750
+ * Set Dynamic Content
1751
+ */
1752
+ setDynamicContent(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetDynamicContentResponse>;
1753
+ /**
1754
+ * Send `{ \"design\": { ... } }` to store a JSON object (at most 64 KB, nesting depth 32), or `{ \"design\": null }` to remove the override. New compositions for this customer merge this layer over the partner default and under the request body.
1755
+ * Set or clear design defaults for one managed user
1756
+ */
1757
+ setManagedUserDesignDefaultsRaw(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1758
+ /**
1759
+ * Send `{ \"design\": { ... } }` to store a JSON object (at most 64 KB, nesting depth 32), or `{ \"design\": null }` to remove the override. New compositions for this customer merge this layer over the partner default and under the request body.
1760
+ * Set or clear design defaults for one managed user
1761
+ */
1762
+ setManagedUserDesignDefaults(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1763
+ /**
1764
+ * Send monthlyCredits as a whole number from 0 up to 2147483647 to cap what this customer\'s editor sessions may spend in a UTC calendar month, or null to remove the cap. The cap counts the credits the customer\'s sessions spent that month (refunded credits do not count) and applies to all of the customer\'s sessions together, beside any `max_credits` a single session was given. A cap of 0 stops all paid work by this customer until you raise it. The cap starts counting from the first of the month (UTC); a cap set below what was already spent this month stops further work at once.
1765
+ * Set or clear the monthly credit cap for one managed user
1766
+ */
1767
+ setManagedUserLimitsRaw(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserLimits200Response>>;
1768
+ /**
1769
+ * Send monthlyCredits as a whole number from 0 up to 2147483647 to cap what this customer\'s editor sessions may spend in a UTC calendar month, or null to remove the cap. The cap counts the credits the customer\'s sessions spent that month (refunded credits do not count) and applies to all of the customer\'s sessions together, beside any `max_credits` a single session was given. A cap of 0 stops all paid work by this customer until you raise it. The cap starts counting from the first of the month (UTC); a cap set below what was already spent this month stops further work at once.
1770
+ * Set or clear the monthly credit cap for one managed user
1771
+ */
1772
+ setManagedUserLimits(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserLimits200Response>;
1773
+ /**
1774
+ * Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the `adapterId` and `credentialKey` from `getPartnerAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner\'s behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to connect. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
1775
+ * Connect an adapter key to a partner
1776
+ */
1777
+ setPartnerAdapterConnectionRaw(requestParameters: SetPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
1778
+ /**
1779
+ * Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the `adapterId` and `credentialKey` from `getPartnerAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner\'s behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to connect. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
1780
+ * Connect an adapter key to a partner
1781
+ */
1782
+ setPartnerAdapterConnection(requestParameters: SetPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
1783
+ /**
1784
+ * Points the partner at a Neon database of its own. From then on, what visitors leave in the compositions of the partner\'s managed users, and of the compositions made in the partner\'s own account (the votes, ratings, answers and form submissions of the widgets that collect them), is stored in that database and nowhere else. Widgetic\'s own database is not used for them any more, and nothing of it is copied there. **What to give.** The connection string of a Neon database and a role made for this, as Neon shows it under *Connect* (`postgresql://<role>:<password>@ep-<name>.<region>.aws.neon.tech/<database>`). Only Neon databases are accepted; a string for any other host is refused with 400. What the database needs: - an empty database of its own, so that nothing else of yours shares it. Widgetic makes one schema in it for each composition (named `comp_` followed by the composition\'s id). In that schema go the tables the widget declares for what its visitors leave, and two small tables of Widgetic\'s own, whose names start with `_widgetic_`: the context a host page sent with an entry, and how far Widgetic has read the entries to tell you about new ones. It touches nothing else; - a role that may create schemas and tables in it (the CREATE privilege on the database). The role Neon makes with a project has it. A role made in the Neon console can also read and write every other database of the same project, so if you keep other data in Neon give Widgetic a project of its own, or make the role with SQL (`CREATE ROLE ... LOGIN PASSWORD ...`) and grant it only the CREATE privilege on this database; - connections from anywhere: Widgetic\'s addresses are not fixed, so a Neon project that only accepts connections from an allow list of addresses cannot be used. A suspended compute is fine: it wakes on the first request. **It is checked before it is saved.** Widgetic makes a schema in your database, creates a table in it, writes a row, reads it back, and removes the schema again, all in one step, so that nothing is left if anything fails. If it cannot be done nothing is saved and the answer is 422 `PARTNER_DATABASE_UNVERIFIED`: `details.reason` says why (`INVALID_CREDENTIALS`, `DATABASE_NOT_FOUND`, `ACCESS_DENIED`, `ACCESS_BLOCKED`, `ENDPOINT_NOT_FOUND`, `ENDPOINT_UNREACHABLE`, `TIMEOUT`, `READ_ONLY`, `RATE_LIMITED`, `DATABASE_UNAVAILABLE`, `PROBE_MISMATCH` or `DATABASE_ERROR`) and `message` says what to do. **Existing data does not move.** The data of a composition lives in one database. If any composition of the partner already keeps data somewhere else (in Widgetic\'s database, or in the database you had set), and the new database does not hold it, the change is refused with 409 `PARTNER_DATABASE_HOLDS_DATA` and nothing is changed: those compositions would read as empty from then on. `details.compositionsWithData` says how many. Set your database before your customers collect data, or delete the compositions you no longer need. Saving the same database again (a new password) moves nothing and is never refused. **It is never a fallback.** Once a database is set, a request that needs it while it cannot be used (the password was changed, the project was deleted) is refused with 503 `PARTNER_DATABASE_UNAVAILABLE`. What the visitor sent is not stored with Widgetic instead. Fix the connection and set the database again, or check it with `verifyPartnerDataDatabase`. **When it takes effect.** A change reaches every part of Widgetic within about a minute. **What Widgetic keeps.** The connection string is stored encrypted and is never returned or logged; a response shows the host, the database and the role, never the password. Widgetic\'s servers open it to read and write the data of your compositions while they handle a request for it. To cut that off, change the role\'s password in Neon: the compositions stop saving until you set the new string. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same database twice only refreshes when it was checked and saved.
1785
+ * Keep the data of a partner\'s compositions in a Neon database of its own
1786
+ */
1787
+ setPartnerDataDatabaseRaw(requestParameters: SetPartnerDataDatabaseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
1788
+ /**
1789
+ * Points the partner at a Neon database of its own. From then on, what visitors leave in the compositions of the partner\'s managed users, and of the compositions made in the partner\'s own account (the votes, ratings, answers and form submissions of the widgets that collect them), is stored in that database and nowhere else. Widgetic\'s own database is not used for them any more, and nothing of it is copied there. **What to give.** The connection string of a Neon database and a role made for this, as Neon shows it under *Connect* (`postgresql://<role>:<password>@ep-<name>.<region>.aws.neon.tech/<database>`). Only Neon databases are accepted; a string for any other host is refused with 400. What the database needs: - an empty database of its own, so that nothing else of yours shares it. Widgetic makes one schema in it for each composition (named `comp_` followed by the composition\'s id). In that schema go the tables the widget declares for what its visitors leave, and two small tables of Widgetic\'s own, whose names start with `_widgetic_`: the context a host page sent with an entry, and how far Widgetic has read the entries to tell you about new ones. It touches nothing else; - a role that may create schemas and tables in it (the CREATE privilege on the database). The role Neon makes with a project has it. A role made in the Neon console can also read and write every other database of the same project, so if you keep other data in Neon give Widgetic a project of its own, or make the role with SQL (`CREATE ROLE ... LOGIN PASSWORD ...`) and grant it only the CREATE privilege on this database; - connections from anywhere: Widgetic\'s addresses are not fixed, so a Neon project that only accepts connections from an allow list of addresses cannot be used. A suspended compute is fine: it wakes on the first request. **It is checked before it is saved.** Widgetic makes a schema in your database, creates a table in it, writes a row, reads it back, and removes the schema again, all in one step, so that nothing is left if anything fails. If it cannot be done nothing is saved and the answer is 422 `PARTNER_DATABASE_UNVERIFIED`: `details.reason` says why (`INVALID_CREDENTIALS`, `DATABASE_NOT_FOUND`, `ACCESS_DENIED`, `ACCESS_BLOCKED`, `ENDPOINT_NOT_FOUND`, `ENDPOINT_UNREACHABLE`, `TIMEOUT`, `READ_ONLY`, `RATE_LIMITED`, `DATABASE_UNAVAILABLE`, `PROBE_MISMATCH` or `DATABASE_ERROR`) and `message` says what to do. **Existing data does not move.** The data of a composition lives in one database. If any composition of the partner already keeps data somewhere else (in Widgetic\'s database, or in the database you had set), and the new database does not hold it, the change is refused with 409 `PARTNER_DATABASE_HOLDS_DATA` and nothing is changed: those compositions would read as empty from then on. `details.compositionsWithData` says how many. Set your database before your customers collect data, or delete the compositions you no longer need. Saving the same database again (a new password) moves nothing and is never refused. **It is never a fallback.** Once a database is set, a request that needs it while it cannot be used (the password was changed, the project was deleted) is refused with 503 `PARTNER_DATABASE_UNAVAILABLE`. What the visitor sent is not stored with Widgetic instead. Fix the connection and set the database again, or check it with `verifyPartnerDataDatabase`. **When it takes effect.** A change reaches every part of Widgetic within about a minute. **What Widgetic keeps.** The connection string is stored encrypted and is never returned or logged; a response shows the host, the database and the role, never the password. Widgetic\'s servers open it to read and write the data of your compositions while they handle a request for it. To cut that off, change the role\'s password in Neon: the compositions stop saving until you set the new string. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same database twice only refreshes when it was checked and saved.
1790
+ * Keep the data of a partner\'s compositions in a Neon database of its own
1791
+ */
1792
+ setPartnerDataDatabase(requestParameters: SetPartnerDataDatabaseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
1793
+ /**
1794
+ * Send `{ \"design\": { ... } }` or `{ \"design\": null }` to remove. New compositions merge this layer over the widget base and under each managed user\'s default and the request body.
1795
+ * Set or clear partner-wide design defaults
1796
+ */
1797
+ setPartnerDesignDefaultsRaw(requestParameters: SetPartnerDesignDefaultsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1798
+ /**
1799
+ * Send `{ \"design\": { ... } }` or `{ \"design\": null }` to remove. New compositions merge this layer over the widget base and under each managed user\'s default and the request body.
1800
+ * Set or clear partner-wide design defaults
1801
+ */
1802
+ setPartnerDesignDefaults(requestParameters: SetPartnerDesignDefaultsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1803
+ /**
1804
+ * Offers one of the partner\'s own widgets as a preset under `key`. If the partner already has a preset under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole preset: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit (`rating`, `quiz-3`). The widget must belong to the partner\'s account; a widget that does not exist and one that belongs to somebody else are refused in the same way (404 `PRESET_WIDGET_NOT_FOUND`). A widget is a preset under at most one key (409 `PRESET_WIDGET_ALREADY_USED`; `details.key` says which), and an account can have at most 100 presets (409 `PRESET_LIMIT_REACHED`). Later changes to the widget reach new copies and new compositions; copies made earlier are not touched. Deleting the widget removes its preset.
1805
+ * Make a widget a preset, or replace a preset
1806
+ */
1807
+ setPartnerPresetRaw(requestParameters: SetPartnerPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetResponse>>;
1808
+ /**
1809
+ * Offers one of the partner\'s own widgets as a preset under `key`. If the partner already has a preset under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole preset: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit (`rating`, `quiz-3`). The widget must belong to the partner\'s account; a widget that does not exist and one that belongs to somebody else are refused in the same way (404 `PRESET_WIDGET_NOT_FOUND`). A widget is a preset under at most one key (409 `PRESET_WIDGET_ALREADY_USED`; `details.key` says which), and an account can have at most 100 presets (409 `PRESET_LIMIT_REACHED`). Later changes to the widget reach new copies and new compositions; copies made earlier are not touched. Deleting the widget removes its preset.
1810
+ * Make a widget a preset, or replace a preset
1811
+ */
1812
+ setPartnerPreset(requestParameters: SetPartnerPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetResponse>;
1813
+ /**
1814
+ * Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadsPost` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account\'s storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic\'s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers\' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
1815
+ * Set where a partner\'s uploaded files are stored
1816
+ */
1817
+ setPartnerStorageDestinationRaw(requestParameters: SetPartnerStorageDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
1818
+ /**
1819
+ * Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadsPost` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account\'s storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic\'s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers\' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
1820
+ * Set where a partner\'s uploaded files are stored
1821
+ */
1822
+ setPartnerStorageDestination(requestParameters: SetPartnerStorageDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
1823
+ /**
1824
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
1825
+ * Connect an adapter key to an account
1826
+ */
1827
+ setUserAdapterConnectionRaw(requestParameters: SetUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
1828
+ /**
1829
+ * Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
1830
+ * Connect an adapter key to an account
1831
+ */
1832
+ setUserAdapterConnection(requestParameters: SetUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
1833
+ /**
1834
+ * Updates an existing canvas with the specified properties.
1835
+ * Update Canvas
1836
+ */
1837
+ updateCanvasRaw(requestParameters: UpdateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
1838
+ /**
1839
+ * Updates an existing canvas with the specified properties.
1840
+ * Update Canvas
1841
+ */
1842
+ updateCanvas(requestParameters: UpdateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
1843
+ /**
1844
+ * 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.
1845
+ * Update Composition
1846
+ */
1847
+ updateCompositionRaw(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1848
+ /**
1849
+ * 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.
1850
+ * Update Composition
1851
+ */
1852
+ updateComposition(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1853
+ /**
1854
+ * 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`.
1855
+ * Update Record In Composition Database
1856
+ */
1857
+ updateCompositionDatabaseRecordRaw(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
1858
+ /**
1859
+ * 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`.
1860
+ * Update Record In Composition Database
1861
+ */
1862
+ updateCompositionDatabaseRecord(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
1863
+ /**
1864
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1865
+ * Update Composition Status
1866
+ */
1867
+ updateCompositionStatusRaw(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
1868
+ /**
1869
+ * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
1870
+ * Update Composition Status
1871
+ */
1872
+ updateCompositionStatus(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
1873
+ /**
1874
+ * Updates an existing managed user. Only `externalId`, `metadata` and `isActive` can change, and `metadata` is replaced as a whole, so send all of it. `isActive: false` switches the managed user off: what it already has stays, and nothing new can be filed under it until you send `isActive: true`. Switching it off also ends all of its editor sessions, and they do not come back when you switch it on again. The `Idempotency-Key` header is required (`400` without it).
1875
+ * Update Managed User
1876
+ */
1877
+ updateManagedUserRaw(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
1878
+ /**
1879
+ * Updates an existing managed user. Only `externalId`, `metadata` and `isActive` can change, and `metadata` is replaced as a whole, so send all of it. `isActive: false` switches the managed user off: what it already has stays, and nothing new can be filed under it until you send `isActive: true`. Switching it off also ends all of its editor sessions, and they do not come back when you switch it on again. The `Idempotency-Key` header is required (`400` without it).
1880
+ * Update Managed User
1881
+ */
1882
+ updateManagedUser(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
1883
+ /**
1884
+ * Chooses what the gateway does with an entry whose `context` carries no valid signature. With `required: false` (the default) an entry that carries a signature is checked and refused when the signature is wrong or out of date, and an entry that carries none is accepted, as it always was. With `required: true` an entry without a valid signature is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`: use it once every page of yours that embeds a composition signs its context. Signatures cannot be required before you have made a secret (`rotatePartnerEntryContextSecret`): the answer is 409, so that you cannot lock your own compositions out of taking entries. The change reaches every part of the gateway within a minute. Saving the same choice twice leaves the same state, so a retry is harmless and `Idempotency-Key` is optional. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1885
+ * Require a signed context, or stop requiring it
1886
+ */
1887
+ updatePartnerEntryContextSigningRaw(requestParameters: UpdatePartnerEntryContextSigningOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSigningResponse>>;
1888
+ /**
1889
+ * Chooses what the gateway does with an entry whose `context` carries no valid signature. With `required: false` (the default) an entry that carries a signature is checked and refused when the signature is wrong or out of date, and an entry that carries none is accepted, as it always was. With `required: true` an entry without a valid signature is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`: use it once every page of yours that embeds a composition signs its context. Signatures cannot be required before you have made a secret (`rotatePartnerEntryContextSecret`): the answer is 409, so that you cannot lock your own compositions out of taking entries. The change reaches every part of the gateway within a minute. Saving the same choice twice leaves the same state, so a retry is harmless and `Idempotency-Key` is optional. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
1890
+ * Require a signed context, or stop requiring it
1891
+ */
1892
+ updatePartnerEntryContextSigning(requestParameters: UpdatePartnerEntryContextSigningOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSigningResponse>;
1893
+ /**
1894
+ * Changes who gets the emails, which events you want by email and by webhook, and the address of your webhook. A key you leave out of the body is left as it was; send only what changes. **Email.** `emailRecipients` is the list of addresses (at most five). While it is empty the emails about invoices go to the billing emails of your billing profile (your contact email when there are none), and the others to your contact email. The events about money and about the standing of your account are always emailed, whatever `emailEvents` says; it narrows the others. **Webhook.** `webhookUrl` is where Widgetic sends a signed `POST` for each event, so that your own system can act on it (mark an invoice paid, warn your team that credits are low). The address must be `https` on the standard port, on a public site, and must not redirect. Setting an address when you have no secret yet makes one, and the answer carries it as `webhookSecret`: **keep it now, it is shown once**. `webhookEvents` narrows what is sent. Each call has a JSON body, `{ \"id\": \"evt_...\", \"type\": \"invoice.paid\", \"createdAt\": \"...\", \"partnerId\": \"...\", \"data\": { ... } }` (`data` is the `data` of `PartnerNotification`), and these headers: `webhook-id` (the same as `id`, and the same on every retry), `webhook-timestamp` (seconds since 1970) and `webhook-signature` (`v1,` and a base64 HMAC-SHA256). It is the Standard Webhooks scheme, so any of its libraries verifies it. By hand: take your secret without the `whsec_` prefix, decode it from base64, and sign the text `<webhook-id>.<webhook-timestamp>.<the raw body>` with it; the header holds `v1,<base64 of the result>` (two signatures separated by a space while a rotated secret overlaps). Reject a `webhook-timestamp` that is more than five minutes old. Answer with a 2xx status within ten seconds. Anything else is tried again, eight attempts in all over about two days (`listPartnerNotificationDeliveries` shows each). Delivery is at least once: if your answer was lost the same event arrives again with the same `id`, so drop what you have already handled by it. Changing the settings needs an API key with full access: they decide where your notifications go. The caller must be the person who administers the partner, or a Widgetic administrator.
1895
+ * Choose where your notifications go
1896
+ */
1897
+ updatePartnerNotificationSettingsRaw(requestParameters: UpdatePartnerNotificationSettingsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsChangeResponse>>;
1898
+ /**
1899
+ * Changes who gets the emails, which events you want by email and by webhook, and the address of your webhook. A key you leave out of the body is left as it was; send only what changes. **Email.** `emailRecipients` is the list of addresses (at most five). While it is empty the emails about invoices go to the billing emails of your billing profile (your contact email when there are none), and the others to your contact email. The events about money and about the standing of your account are always emailed, whatever `emailEvents` says; it narrows the others. **Webhook.** `webhookUrl` is where Widgetic sends a signed `POST` for each event, so that your own system can act on it (mark an invoice paid, warn your team that credits are low). The address must be `https` on the standard port, on a public site, and must not redirect. Setting an address when you have no secret yet makes one, and the answer carries it as `webhookSecret`: **keep it now, it is shown once**. `webhookEvents` narrows what is sent. Each call has a JSON body, `{ \"id\": \"evt_...\", \"type\": \"invoice.paid\", \"createdAt\": \"...\", \"partnerId\": \"...\", \"data\": { ... } }` (`data` is the `data` of `PartnerNotification`), and these headers: `webhook-id` (the same as `id`, and the same on every retry), `webhook-timestamp` (seconds since 1970) and `webhook-signature` (`v1,` and a base64 HMAC-SHA256). It is the Standard Webhooks scheme, so any of its libraries verifies it. By hand: take your secret without the `whsec_` prefix, decode it from base64, and sign the text `<webhook-id>.<webhook-timestamp>.<the raw body>` with it; the header holds `v1,<base64 of the result>` (two signatures separated by a space while a rotated secret overlaps). Reject a `webhook-timestamp` that is more than five minutes old. Answer with a 2xx status within ten seconds. Anything else is tried again, eight attempts in all over about two days (`listPartnerNotificationDeliveries` shows each). Delivery is at least once: if your answer was lost the same event arrives again with the same `id`, so drop what you have already handled by it. Changing the settings needs an API key with full access: they decide where your notifications go. The caller must be the person who administers the partner, or a Widgetic administrator.
1900
+ * Choose where your notifications go
1901
+ */
1902
+ updatePartnerNotificationSettings(requestParameters: UpdatePartnerNotificationSettingsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsChangeResponse>;
1903
+ /**
1904
+ * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
1905
+ * Change a website on your list
1906
+ */
1907
+ updatePersonalWorkspaceDomainRaw(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
1908
+ /**
1909
+ * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
1910
+ * Change a website on your list
1911
+ */
1912
+ updatePersonalWorkspaceDomain(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
1913
+ /**
1914
+ * Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
1915
+ * Rename an API key, or switch it off or on
1916
+ */
1917
+ updateUserApiKeyRaw(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserApiKeyResponse>>;
1918
+ /**
1919
+ * Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
1920
+ * Rename an API key, or switch it off or on
1921
+ */
1922
+ updateUserApiKey(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserApiKeyResponse>;
1923
+ /**
1924
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
1925
+ * Send the file a visitor chose through the upload adapter of a published widget
1926
+ */
1927
+ uploadPublicCompositionAdapterFileRaw(requestParameters: UploadPublicCompositionAdapterFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterFileResult>>;
1928
+ /**
1929
+ * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
1930
+ * Send the file a visitor chose through the upload adapter of a published widget
1931
+ */
1932
+ uploadPublicCompositionAdapterFile(requestParameters: UploadPublicCompositionAdapterFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterFileResult>;
1933
+ /**
1934
+ * The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
1935
+ * List the account\'s uploads
1936
+ */
1937
+ uploadsGetRaw(requestParameters: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsGet200Response>>;
1938
+ /**
1939
+ * The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
1940
+ * List the account\'s uploads
1941
+ */
1942
+ uploadsGet(requestParameters?: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsGet200Response>;
1943
+ /**
1944
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
1945
+ * Delete an upload
1946
+ */
1947
+ uploadsIdDeleteRaw(requestParameters: UploadsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsIdDelete200Response>>;
1948
+ /**
1949
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
1950
+ * Delete an upload
1951
+ */
1952
+ uploadsIdDelete(requestParameters: UploadsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsIdDelete200Response>;
1953
+ /**
1954
+ * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
1955
+ * Get an upload by id
1956
+ */
1957
+ uploadsIdGetRaw(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadResponse>>;
1958
+ /**
1959
+ * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
1960
+ * Get an upload by id
1961
+ */
1962
+ uploadsIdGet(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadResponse>;
1963
+ /**
1964
+ * The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_bytes` for a resumable upload (250 MB).
1965
+ * Upload size limits and accepted file types
1966
+ */
1967
+ uploadsLimitsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadLimitsResponse>>;
1968
+ /**
1969
+ * The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_bytes` for a resumable upload (250 MB).
1970
+ * Upload size limits and accepted file types
1971
+ */
1972
+ uploadsLimitsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponse>;
1973
+ /**
1974
+ * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. A file is judged by what is in it, not by the type it is sent as. A file that is not the type it claims (a web page sent as `image/png`) is refused with 415 and `UPLOAD_UNSUPPORTED_TYPE`, and a picture sent under the wrong picture type is stored under the type it really is, which `mime_type` in the answer says. An SVG is rewritten as it is stored: script, `foreignObject`, animation and references to other addresses are taken out, it must be UTF-8 and at most 2 MB, and the stored file can be larger or smaller than the one sent. Anything that is not an image, audio or video (a PDF, for example) is served as a download rather than shown in a page. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managedUserId` (Widgetic\'s id for the user) or `managedUserExternalId` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `contextType`, `source`, `widgetId` and `conversationId` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
1975
+ * Upload a file
1976
+ */
1977
+ uploadsPostRaw(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadResponse>>;
1978
+ /**
1979
+ * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. A file is judged by what is in it, not by the type it is sent as. A file that is not the type it claims (a web page sent as `image/png`) is refused with 415 and `UPLOAD_UNSUPPORTED_TYPE`, and a picture sent under the wrong picture type is stored under the type it really is, which `mime_type` in the answer says. An SVG is rewritten as it is stored: script, `foreignObject`, animation and references to other addresses are taken out, it must be UTF-8 and at most 2 MB, and the stored file can be larger or smaller than the one sent. Anything that is not an image, audio or video (a PDF, for example) is served as a download rather than shown in a page. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managedUserId` (Widgetic\'s id for the user) or `managedUserExternalId` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `contextType`, `source`, `widgetId` and `conversationId` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
1980
+ * Upload a file
1981
+ */
1982
+ uploadsPost(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadResponse>;
1983
+ /**
1984
+ * 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.
1985
+ * Validate Content
1986
+ */
1987
+ validateCompositionContentRaw(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateCompositionContentResponse>>;
1988
+ /**
1989
+ * 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.
1990
+ * Validate Content
1991
+ */
1992
+ validateCompositionContent(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateCompositionContentResponse>;
1993
+ /**
1994
+ * Validate current authentication token
1995
+ */
1996
+ validateTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateToken200Response>>;
1997
+ /**
1998
+ * Validate current authentication token
1999
+ */
2000
+ validateToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateToken200Response>;
2001
+ /**
2002
+ * Runs the same check as `setPartnerDataDatabase` against the database already saved: a schema is made in it, a table created, a row written and read back, and the schema removed again. Use it after changing the role\'s password or the project\'s settings in Neon, or when saving is failing with 503 `PARTNER_DATABASE_UNAVAILABLE`. The result is recorded either way. A pass refreshes `verifiedAt` and clears `lastVerificationError`; a failure answers 422 `PARTNER_DATABASE_UNVERIFIED` and is recorded in `lastVerificationError` and `lastVerificationFailedAt`, so the database shows what went wrong the next time it is read. A failed check does not remove the database. `details.reason` is one of the reasons `setPartnerDataDatabase` lists, or `STORED_STRING_UNREADABLE` when the connection string Widgetic stored can no longer be read: set the database again, with its connection string. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
2003
+ * Check that a partner\'s own database still works
2004
+ */
2005
+ verifyPartnerDataDatabaseRaw(requestParameters: VerifyPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
2006
+ /**
2007
+ * Runs the same check as `setPartnerDataDatabase` against the database already saved: a schema is made in it, a table created, a row written and read back, and the schema removed again. Use it after changing the role\'s password or the project\'s settings in Neon, or when saving is failing with 503 `PARTNER_DATABASE_UNAVAILABLE`. The result is recorded either way. A pass refreshes `verifiedAt` and clears `lastVerificationError`; a failure answers 422 `PARTNER_DATABASE_UNVERIFIED` and is recorded in `lastVerificationError` and `lastVerificationFailedAt`, so the database shows what went wrong the next time it is read. A failed check does not remove the database. `details.reason` is one of the reasons `setPartnerDataDatabase` lists, or `STORED_STRING_UNREADABLE` when the connection string Widgetic stored can no longer be read: set the database again, with its connection string. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
2008
+ * Check that a partner\'s own database still works
2009
+ */
2010
+ verifyPartnerDataDatabase(requestParameters: VerifyPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
2011
+ /**
2012
+ * Runs the same check as `setPartnerStorageDestination` against the destination already saved: a test file is written, read back from the public address and deleted. Use it after rotating a key or changing a bucket policy, or when uploads are failing with 502 or 503. The result is recorded either way. A pass refreshes `verifiedAt` and clears `lastVerificationError`; a failure answers 422 `STORAGE_DESTINATION_UNVERIFIED` and is recorded in `lastVerificationError` and `lastVerificationFailedAt`, so the destination shows what went wrong the next time it is read. A failed check does not remove the destination or stop uploads from using it. The caller must be the person who administers the partner, or a Widgetic administrator.
2013
+ * Check that a partner\'s storage destination still works
2014
+ */
2015
+ verifyPartnerStorageDestinationRaw(requestParameters: VerifyPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
2016
+ /**
2017
+ * Runs the same check as `setPartnerStorageDestination` against the destination already saved: a test file is written, read back from the public address and deleted. Use it after rotating a key or changing a bucket policy, or when uploads are failing with 502 or 503. The result is recorded either way. A pass refreshes `verifiedAt` and clears `lastVerificationError`; a failure answers 422 `STORAGE_DESTINATION_UNVERIFIED` and is recorded in `lastVerificationError` and `lastVerificationFailedAt`, so the destination shows what went wrong the next time it is read. A failed check does not remove the destination or stop uploads from using it. The caller must be the person who administers the partner, or a Widgetic administrator.
2018
+ * Check that a partner\'s storage destination still works
2019
+ */
2020
+ verifyPartnerStorageDestination(requestParameters: VerifyPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
2021
+ }
2022
+ /**
2023
+ * @export
2024
+ */
2025
+ export declare const ExportCompositionEntryItemsFormatEnum: {
2026
+ readonly Csv: 'csv';
2027
+ readonly Json: 'json';
2028
+ };
2029
+ export type ExportCompositionEntryItemsFormatEnum = typeof ExportCompositionEntryItemsFormatEnum[keyof typeof ExportCompositionEntryItemsFormatEnum];
2030
+ /**
2031
+ * @export
2032
+ */
2033
+ export declare const ExportCompositionEntryItemsOrderEnum: {
2034
+ readonly Asc: 'asc';
2035
+ readonly Desc: 'desc';
2036
+ };
2037
+ export type ExportCompositionEntryItemsOrderEnum = typeof ExportCompositionEntryItemsOrderEnum[keyof typeof ExportCompositionEntryItemsOrderEnum];
2038
+ /**
2039
+ * @export
2040
+ */
2041
+ export declare const GetAllCompositionsWorkspaceEnum: {
2042
+ readonly True: 'true';
2043
+ readonly False: 'false';
2044
+ };
2045
+ export type GetAllCompositionsWorkspaceEnum = typeof GetAllCompositionsWorkspaceEnum[keyof typeof GetAllCompositionsWorkspaceEnum];
2046
+ /**
2047
+ * @export
2048
+ */
2049
+ export declare const GetAllCompositionsStatusEnum: {
2050
+ readonly Draft: 'draft';
2051
+ readonly Published: 'published';
2052
+ readonly Archived: 'archived';
2053
+ };
2054
+ export type GetAllCompositionsStatusEnum = typeof GetAllCompositionsStatusEnum[keyof typeof GetAllCompositionsStatusEnum];
2055
+ /**
2056
+ * @export
2057
+ */
2058
+ export declare const GetInvoicesByPartnerIdStatusEnum: {
2059
+ readonly Draft: 'draft';
2060
+ readonly Open: 'open';
2061
+ readonly Pending: 'pending';
2062
+ readonly Paid: 'paid';
2063
+ readonly Failed: 'failed';
2064
+ readonly Void: 'void';
2065
+ readonly Uncollectible: 'uncollectible';
2066
+ readonly Refunded: 'refunded';
2067
+ readonly Canceled: 'canceled';
2068
+ };
2069
+ export type GetInvoicesByPartnerIdStatusEnum = typeof GetInvoicesByPartnerIdStatusEnum[keyof typeof GetInvoicesByPartnerIdStatusEnum];
2070
+ /**
2071
+ * @export
2072
+ */
2073
+ export declare const ListCompositionEntryItemsOrderEnum: {
2074
+ readonly Asc: 'asc';
2075
+ readonly Desc: 'desc';
2076
+ };
2077
+ export type ListCompositionEntryItemsOrderEnum = typeof ListCompositionEntryItemsOrderEnum[keyof typeof ListCompositionEntryItemsOrderEnum];
2078
+ /**
2079
+ * @export
2080
+ */
2081
+ export declare const ListManagedUserEntriesOrderEnum: {
2082
+ readonly Asc: 'asc';
2083
+ readonly Desc: 'desc';
2084
+ };
2085
+ export type ListManagedUserEntriesOrderEnum = typeof ListManagedUserEntriesOrderEnum[keyof typeof ListManagedUserEntriesOrderEnum];
2086
+ /**
2087
+ * @export
2088
+ */
2089
+ export declare const UploadsPostContextTypeEnum: {
2090
+ readonly WidgetCodegen: 'widget-codegen';
2091
+ readonly BrowserIc: 'browser-ic';
2092
+ readonly ContentProperty: 'content-property';
2093
+ };
2094
+ export type UploadsPostContextTypeEnum = typeof UploadsPostContextTypeEnum[keyof typeof UploadsPostContextTypeEnum];
2095
+ /**
2096
+ * @export
2097
+ */
2098
+ export declare const UploadsPostSourceEnum: {
2099
+ readonly ChatUpload: 'chat-upload';
2100
+ readonly ChatScreenshot: 'chat-screenshot';
2101
+ readonly BrowserIcScreenshot: 'browser-ic-screenshot';
2102
+ readonly PreviewScreenshot: 'preview-screenshot';
2103
+ readonly FileBrowserUpload: 'file-browser-upload';
2104
+ };
2105
+ export type UploadsPostSourceEnum = typeof UploadsPostSourceEnum[keyof typeof UploadsPostSourceEnum];
2106
+ /**
2107
+ * @export
2108
+ */
2109
+ export declare const UploadsPostPurposeEnum: {
2110
+ readonly Canvas: 'canvas';
2111
+ readonly Chat: 'chat';
2112
+ readonly Field: 'field';
2113
+ };
2114
+ export type UploadsPostPurposeEnum = typeof UploadsPostPurposeEnum[keyof typeof UploadsPostPurposeEnum];