@widgetic/api-sdk-ts 1.11.111 → 2.0.0

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 (148) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +40 -40
  3. package/dist/apis/BrandKitApi.js +40 -40
  4. package/dist/apis/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +255 -155
  6. package/dist/apis/CompositionsApi.js +333 -133
  7. package/dist/apis/CreditsApi.d.ts +7 -7
  8. package/dist/apis/CreditsApi.js +1 -1
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/PartnersApi.d.ts +125 -125
  17. package/dist/apis/PartnersApi.js +11 -11
  18. package/dist/apis/PublicEmbedApi.d.ts +42 -42
  19. package/dist/apis/PublicEmbedApi.js +29 -29
  20. package/dist/apis/UploadsApi.d.ts +38 -38
  21. package/dist/apis/UploadsApi.js +60 -60
  22. package/dist/apis/UsersApi.d.ts +40 -40
  23. package/dist/apis/UsersApi.js +4 -4
  24. package/dist/apis/WidgetsApi.d.ts +23 -23
  25. package/dist/apis/WidgetsApi.js +36 -36
  26. package/dist/apis/WorkflowsApi.d.ts +85 -127
  27. package/dist/apis/WorkflowsApi.js +82 -192
  28. package/dist/apis/index.d.ts +0 -2
  29. package/dist/apis/index.js +0 -2
  30. package/dist/esm/apis/BrandKitApi.js +39 -39
  31. package/dist/esm/apis/CompositionsApi.js +333 -133
  32. package/dist/esm/apis/CreditsApi.js +2 -2
  33. package/dist/esm/apis/InvoicesApi.js +1 -1
  34. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  35. package/dist/esm/apis/OperationsApi.js +6 -6
  36. package/dist/esm/apis/PartnersApi.js +12 -12
  37. package/dist/esm/apis/PublicEmbedApi.js +30 -30
  38. package/dist/esm/apis/UploadsApi.js +60 -60
  39. package/dist/esm/apis/UsersApi.js +5 -5
  40. package/dist/esm/apis/WidgetsApi.js +37 -37
  41. package/dist/esm/apis/WorkflowsApi.js +82 -192
  42. package/dist/esm/apis/index.js +0 -2
  43. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  44. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  45. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  46. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  47. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  48. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  49. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  50. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  51. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  52. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  53. package/dist/esm/models/GetOperationResponse.js +51 -0
  54. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +9 -9
  55. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  56. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  57. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  58. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  59. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  60. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  61. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  62. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  63. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  64. package/dist/esm/models/WorkflowStats.js +3 -0
  65. package/dist/esm/models/index.js +20 -19
  66. package/dist/esm/runtime.js +1 -1
  67. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  68. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  69. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  70. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  71. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  72. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  73. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  74. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  75. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  76. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  77. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  78. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  79. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  80. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  81. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  82. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  83. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  84. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  85. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  86. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  87. package/dist/models/GetOperationResponse.d.ts +46 -0
  88. package/dist/models/GetOperationResponse.js +58 -0
  89. package/dist/models/{OperationsIdGetResponseData.d.ts → GetOperationResponseData.d.ts} +19 -19
  90. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +15 -15
  91. package/dist/models/ListUploads200Response.d.ts +46 -0
  92. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  93. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  94. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  95. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  96. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  97. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  98. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  99. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  100. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  101. package/dist/models/Upload.d.ts +1 -1
  102. package/dist/models/UploadLimits.d.ts +3 -3
  103. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  104. package/dist/models/WorkflowDetailResponse.js +58 -0
  105. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  106. package/dist/models/WorkflowFailureReason.js +57 -0
  107. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  108. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  109. package/dist/models/WorkflowResponse.d.ts +46 -0
  110. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  111. package/dist/models/WorkflowStats.d.ts +16 -1
  112. package/dist/models/WorkflowStats.js +3 -0
  113. package/dist/models/index.d.ts +20 -19
  114. package/dist/models/index.js +20 -19
  115. package/dist/runtime.d.ts +2 -2
  116. package/dist/runtime.js +1 -1
  117. package/package.json +1 -1
  118. package/dist/apis/PartnerApi.d.ts +0 -2707
  119. package/dist/apis/PartnerApi.js +0 -7073
  120. package/dist/apis/WorkspacesApi.d.ts +0 -352
  121. package/dist/apis/WorkspacesApi.js +0 -946
  122. package/dist/esm/apis/PartnerApi.js +0 -7036
  123. package/dist/esm/apis/WorkspacesApi.js +0 -909
  124. package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
  125. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  126. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  127. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  128. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  129. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  130. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  131. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  132. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  133. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  134. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  135. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  136. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  137. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  138. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  139. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  140. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  141. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  142. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  143. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  144. package/dist/models/UploadsGet200Response.d.ts +0 -46
  145. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  146. package/dist/models/UploadsIdDelete200Response.js +0 -58
  147. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  148. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -1,2707 +0,0 @@
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, BrandKitViewResponse, CanvasResponse, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionEntryDeleteSuccess, CompositionEntryItemsPageSuccess, CompositionResponse, ConfirmAdapterConnectionRequest, CopyPartnerPresetRequest, CreateCanvasRequest, CreateCompositionContentItem201Response, CreateCompositionContentItemRequest, CreateCompositionDatabaseRecord201Response, CreateCompositionFromPresetRequest, CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateUserApiKeyRequest, CreateWidget201Response, CreateWorkspaceWorkflowFromPreset201Response, CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, CreatedUserApiKeyResponse, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DeleteManagedUser200Response, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, DeleteWorkspaceWorkflow200Response, 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, GetPublicWorkflow200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, GetWidgets200Response, GetWidgetsBatchRequest, GetWidgetsBatchResponse, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListPartnerPresets200Response, ListPartnerWorkflowPresets200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, ManagedUserEntriesPageSuccess, ManagedUserResponse, ManagedUserUsageResponse, MyPartnersResponse, NewComposition, NewEditorSession, NewManagedUser, NewWidget, OfferWorkflowPresetRequest, OperationsIdGetResponse, PartnerAnalyticsByManagedUserResponse, PartnerAnalyticsSummaryResponse, PartnerAnalyticsTimelineResponse, PartnerAnalyticsTopWidgetsResponse, PartnerContractResponse, PartnerDataDatabaseRemovalResponse, PartnerDataDatabaseResponse, PartnerEntryContextSecretResponse, PartnerEntryContextSigningResponse, PartnerExtraCreditsInvoiceResponse, PartnerNotificationDeliveryLogResponse, PartnerNotificationDeliveryResponse, PartnerNotificationPageResponse, PartnerNotificationSettingsChangeResponse, PartnerNotificationSettingsResponse, PartnerNotificationTestEventRequest, PartnerNotificationTestEventResultResponse, PartnerPresetCopyResponse, PartnerPresetRemovalResponse, PartnerPresetResponse, PartnerStorageDestinationResponse, PartnerStorageRemovalResponse, PartnerStorageUsageResponse, PatchBrandKitAssetRequest, PatchBrandKitRequest, PersonalWorkspaceDomainResultResponse, PostBrandKitIconRequest, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest, PublicWorkflowEventsRequest, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, PutBrandKitRequest, RemoveAiAnswersKnowledgeDocument200Response, RemovePartnerWorkflowPreset200Response, RemoveUserAdapterConnection200Response, ReportPublicWorkflowEvents200Response, RequestExtraCredits, RevokeManagedUserEditorSessionsResponse, SaveWorkspaceWorkflow200Response, SaveWorkspaceWorkflowRequest, SetAdapterConnectionRequest, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, SetManagedUserLimitsRequest, SetPartnerDataDatabaseRequest, SetPartnerDesignDefaultsRequest, SetPartnerPresetRequest, SetPartnerStorageDestinationRequest, SetPartnerWorkflowPreset200Response, 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 AddAiAnswersKnowledgeFileRequest {
21
- id: string;
22
- file: Blob;
23
- xManagedUserId?: string;
24
- xManagedUserExternalId?: string;
25
- title?: string;
26
- }
27
- export interface AddPersonalWorkspaceDomainRequest {
28
- id: string;
29
- addDomainRequest: AddDomainRequest;
30
- }
31
- export interface ArchiveWorkspaceWorkflowRequest {
32
- workspaceId: string;
33
- workflowId: string;
34
- xManagedUserId?: string;
35
- xManagedUserExternalId?: string;
36
- }
37
- export interface CallPublicCompositionAdapterRequest {
38
- compositionId: string;
39
- adapterId: string;
40
- operation: string;
41
- publicAdapterCallRequest: PublicAdapterCallRequest;
42
- }
43
- export interface CheckCompositionAccessRequest {
44
- id: string;
45
- }
46
- export interface ConfirmPartnerAdapterConnectionRequest {
47
- partnerId: string;
48
- adapterId: string;
49
- credentialKey: string;
50
- confirmAdapterConnectionRequest: ConfirmAdapterConnectionRequest;
51
- }
52
- export interface ConfirmUserAdapterConnectionRequest {
53
- userId: string;
54
- adapterId: string;
55
- credentialKey: string;
56
- confirmAdapterConnectionRequest: ConfirmAdapterConnectionRequest;
57
- }
58
- export interface CopyPresetForManagedUserRequest {
59
- id: string;
60
- key: string;
61
- idempotencyKey: string;
62
- copyPartnerPresetRequest?: CopyPartnerPresetRequest;
63
- }
64
- export interface CreateCanvasOperationRequest {
65
- createCanvasRequest: CreateCanvasRequest;
66
- }
67
- export interface CreateCompositionRequest {
68
- idempotencyKey: string;
69
- newComposition: NewComposition;
70
- xManagedUserId?: string;
71
- xManagedUserExternalId?: string;
72
- }
73
- export interface CreateCompositionContentItemOperationRequest {
74
- id: string;
75
- list: string;
76
- idempotencyKey: string;
77
- createCompositionContentItemRequest: CreateCompositionContentItemRequest;
78
- ifMatch?: string;
79
- xManagedUserId?: string;
80
- xManagedUserExternalId?: string;
81
- }
82
- export interface CreateCompositionDatabaseRecordRequest {
83
- id: string;
84
- table: string;
85
- idempotencyKey: string;
86
- body: object;
87
- xManagedUserId?: string;
88
- xManagedUserExternalId?: string;
89
- }
90
- export interface CreateCompositionFromPresetOperationRequest {
91
- id: string;
92
- key: string;
93
- idempotencyKey: string;
94
- createCompositionFromPresetRequest: CreateCompositionFromPresetRequest;
95
- }
96
- export interface CreateCompositionFromWidgetOperationRequest {
97
- id: string;
98
- idempotencyKey: string;
99
- createCompositionFromWidgetRequest: CreateCompositionFromWidgetRequest;
100
- }
101
- export interface CreateManagedUserRequest {
102
- idempotencyKey: string;
103
- newManagedUser: NewManagedUser;
104
- }
105
- export interface CreateManagedUserEditorSessionRequest {
106
- id: string;
107
- newEditorSession: NewEditorSession;
108
- }
109
- export interface CreatePartnerExtraCreditsInvoiceRequest {
110
- partnerId: string;
111
- idempotencyKey: string;
112
- requestExtraCredits: RequestExtraCredits;
113
- }
114
- export interface CreatePublicCompositionEntryRequest {
115
- compositionId: string;
116
- table: string;
117
- publicCompositionEntryRequest: PublicCompositionEntryRequest;
118
- xWidgeticWriteToken?: string;
119
- xWidgeticVisitorId?: string;
120
- }
121
- export interface CreateUserApiKeyOperationRequest {
122
- id: string;
123
- idempotencyKey: string;
124
- createUserApiKeyRequest: CreateUserApiKeyRequest;
125
- }
126
- export interface CreateWidgetRequest {
127
- idempotencyKey: string;
128
- newWidget: NewWidget;
129
- }
130
- export interface CreateWorkspaceWorkflowOperationRequest {
131
- workspaceId: string;
132
- idempotencyKey: string;
133
- createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
134
- xManagedUserId?: string;
135
- xManagedUserExternalId?: string;
136
- }
137
- export interface CreateWorkspaceWorkflowFromPresetOperationRequest {
138
- workspaceId: string;
139
- idempotencyKey: string;
140
- createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
141
- xManagedUserId?: string;
142
- xManagedUserExternalId?: string;
143
- }
144
- export interface DeleteBrandKitRequest {
145
- organizationId?: string;
146
- }
147
- export interface DeleteBrandKitAssetRequest {
148
- assetId: string;
149
- organizationId?: string;
150
- }
151
- export interface DeleteCanvasRequest {
152
- id: string;
153
- }
154
- export interface DeleteCompositionRequest {
155
- id: string;
156
- xManagedUserId?: string;
157
- xManagedUserExternalId?: string;
158
- }
159
- export interface DeleteCompositionContentItemRequest {
160
- id: string;
161
- list: string;
162
- itemId: string;
163
- idempotencyKey: string;
164
- ifMatch?: string;
165
- xManagedUserId?: string;
166
- xManagedUserExternalId?: string;
167
- }
168
- export interface DeleteCompositionDataSourceRequest {
169
- id: string;
170
- idempotencyKey: string;
171
- xManagedUserId?: string;
172
- xManagedUserExternalId?: string;
173
- }
174
- export interface DeleteCompositionDatabaseRecordRequest {
175
- id: string;
176
- table: string;
177
- recordId: string;
178
- xManagedUserId?: string;
179
- xManagedUserExternalId?: string;
180
- }
181
- export interface DeleteCompositionEntryItemsRequest {
182
- id: string;
183
- table: string;
184
- ids?: string;
185
- context?: {
186
- [key: string]: string;
187
- };
188
- filter?: {
189
- [key: string]: string;
190
- };
191
- xManagedUserId?: string;
192
- xManagedUserExternalId?: string;
193
- }
194
- export interface DeleteManagedUserRequest {
195
- id: string;
196
- }
197
- export interface DeletePersonalWorkspaceDomainRequest {
198
- id: string;
199
- domainId: string;
200
- }
201
- export interface DeleteUserApiKeyRequest {
202
- id: string;
203
- keyId: string;
204
- }
205
- export interface DeleteWorkspaceWorkflowRequest {
206
- workspaceId: string;
207
- workflowId: string;
208
- xManagedUserId?: string;
209
- xManagedUserExternalId?: string;
210
- }
211
- export interface DescribeCompositionEntriesRequest {
212
- id: string;
213
- xManagedUserId?: string;
214
- xManagedUserExternalId?: string;
215
- }
216
- export interface DiscardWorkspaceWorkflowChangesRequest {
217
- workspaceId: string;
218
- workflowId: string;
219
- publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
220
- xManagedUserId?: string;
221
- xManagedUserExternalId?: string;
222
- }
223
- export interface DuplicateCompositionOperationRequest {
224
- id: string;
225
- idempotencyKey: string;
226
- xManagedUserId?: string;
227
- xManagedUserExternalId?: string;
228
- duplicateCompositionRequest?: DuplicateCompositionRequest;
229
- }
230
- export interface DuplicateWorkspaceWorkflowRequest {
231
- workspaceId: string;
232
- workflowId: string;
233
- idempotencyKey: string;
234
- xManagedUserId?: string;
235
- xManagedUserExternalId?: string;
236
- }
237
- export interface ExportCompositionEntryItemsRequest {
238
- id: string;
239
- table: string;
240
- format?: ExportCompositionEntryItemsFormatEnum;
241
- order?: ExportCompositionEntryItemsOrderEnum;
242
- since?: Date;
243
- until?: Date;
244
- context?: {
245
- [key: string]: string;
246
- };
247
- filter?: {
248
- [key: string]: string;
249
- };
250
- xManagedUserId?: string;
251
- xManagedUserExternalId?: string;
252
- }
253
- export interface GetAiAnswersKnowledgeRequest {
254
- id: string;
255
- xManagedUserId?: string;
256
- xManagedUserExternalId?: string;
257
- }
258
- export interface GetAllCanvasesRequest {
259
- page?: number;
260
- size?: number;
261
- sort?: string;
262
- createdAfter?: Date;
263
- createdBefore?: Date;
264
- updatedAfter?: Date;
265
- updatedBefore?: Date;
266
- managedUserId?: string;
267
- managedUserExternalId?: string;
268
- }
269
- export interface GetAllCompositionsRequest {
270
- page?: number;
271
- size?: number;
272
- sort?: string;
273
- widgetId?: string;
274
- workspace?: GetAllCompositionsWorkspaceEnum;
275
- projectFolder?: string;
276
- status?: GetAllCompositionsStatusEnum;
277
- managedUserId?: string;
278
- managedUserExternalId?: string;
279
- xManagedUserId?: string;
280
- xManagedUserExternalId?: string;
281
- }
282
- export interface GetAllManagedUsersRequest {
283
- page?: number;
284
- size?: number;
285
- sort?: string;
286
- }
287
- export interface GetBrandKitRequest {
288
- organizationId?: string;
289
- }
290
- export interface GetCanvasRequest {
291
- id: string;
292
- }
293
- export interface GetCompositionByIdRequest {
294
- id: string;
295
- xManagedUserId?: string;
296
- xManagedUserExternalId?: string;
297
- }
298
- export interface GetCompositionContentRequest {
299
- id: string;
300
- xManagedUserId?: string;
301
- xManagedUserExternalId?: string;
302
- }
303
- export interface GetCompositionContentSchemaRequest {
304
- id: string;
305
- xManagedUserId?: string;
306
- xManagedUserExternalId?: string;
307
- }
308
- export interface GetCompositionDataSourceRequest {
309
- id: string;
310
- xManagedUserId?: string;
311
- xManagedUserExternalId?: string;
312
- }
313
- export interface GetCompositionDatabaseRecordRequest {
314
- id: string;
315
- table: string;
316
- recordId: string;
317
- xManagedUserId?: string;
318
- xManagedUserExternalId?: string;
319
- }
320
- export interface GetCompositionDatabaseRecordsRequest {
321
- id: string;
322
- table: string;
323
- xManagedUserId?: string;
324
- xManagedUserExternalId?: string;
325
- }
326
- export interface GetCompositionDesignRequest {
327
- id: string;
328
- xManagedUserId?: string;
329
- xManagedUserExternalId?: string;
330
- }
331
- export interface GetCompositionDesignSchemaRequest {
332
- id: string;
333
- xManagedUserId?: string;
334
- xManagedUserExternalId?: string;
335
- }
336
- export interface GetCompositionEmbedSchemaRequest {
337
- id: string;
338
- xManagedUserId?: string;
339
- xManagedUserExternalId?: string;
340
- }
341
- export interface GetCompositionEmbedSettingsRequest {
342
- id: string;
343
- xManagedUserId?: string;
344
- xManagedUserExternalId?: string;
345
- }
346
- export interface GetCompositionPreviewRequest {
347
- id: string;
348
- xManagedUserId?: string;
349
- xManagedUserExternalId?: string;
350
- }
351
- export interface GetCompositionVersionsRequest {
352
- id: string;
353
- xManagedUserId?: string;
354
- xManagedUserExternalId?: string;
355
- }
356
- export interface GetCompositionsBatchOperationRequest {
357
- getCompositionsBatchRequest: GetCompositionsBatchRequest;
358
- }
359
- export interface GetInvoicesByPartnerIdRequest {
360
- partnerId: string;
361
- status?: GetInvoicesByPartnerIdStatusEnum;
362
- limit?: number;
363
- offset?: number;
364
- }
365
- export interface GetManagedUserByIdRequest {
366
- id: string;
367
- }
368
- export interface GetManagedUserDesignDefaultsRequest {
369
- id: string;
370
- }
371
- export interface GetManagedUserEntitlementsRequest {
372
- managedUserId: string;
373
- includeExpired?: boolean;
374
- feature?: string;
375
- source?: string;
376
- }
377
- export interface GetManagedUserLimitsRequest {
378
- id: string;
379
- }
380
- export interface GetManagedUserStorageUsageRequest {
381
- id: string;
382
- }
383
- export interface GetManagedUserUsageRequest {
384
- id: string;
385
- startDate?: string;
386
- endDate?: string;
387
- }
388
- export interface GetManagedUsersByManagerIdRequest {
389
- managerId: string;
390
- page?: number;
391
- size?: number;
392
- sort?: string;
393
- }
394
- export interface GetPartnerAdapterConnectionsRequest {
395
- partnerId: string;
396
- }
397
- export interface GetPartnerAnalyticsByManagedUserRequest {
398
- partnerId: string;
399
- startDate?: string;
400
- endDate?: string;
401
- limit?: number;
402
- offset?: number;
403
- }
404
- export interface GetPartnerAnalyticsSummaryRequest {
405
- partnerId: string;
406
- startDate?: string;
407
- endDate?: string;
408
- managedUserId?: string;
409
- managedUserExternalId?: string;
410
- }
411
- export interface GetPartnerAnalyticsTimelineRequest {
412
- partnerId: string;
413
- startDate?: string;
414
- endDate?: string;
415
- managedUserId?: string;
416
- managedUserExternalId?: string;
417
- }
418
- export interface GetPartnerAnalyticsTopWidgetsRequest {
419
- partnerId: string;
420
- startDate?: string;
421
- endDate?: string;
422
- managedUserId?: string;
423
- managedUserExternalId?: string;
424
- limit?: number;
425
- }
426
- export interface GetPartnerBillingOverviewRequest {
427
- partnerId: string;
428
- }
429
- export interface GetPartnerContractRequest {
430
- partnerId: string;
431
- }
432
- export interface GetPartnerCreditBalanceRequest {
433
- partnerId: string;
434
- }
435
- export interface GetPartnerCreditTransactionsRequest {
436
- partnerId: string;
437
- limit?: number;
438
- offset?: number;
439
- type?: string;
440
- }
441
- export interface GetPartnerDataDatabaseRequest {
442
- partnerId: string;
443
- }
444
- export interface GetPartnerDesignDefaultsRequest {
445
- partnerId: string;
446
- }
447
- export interface GetPartnerEntitlementsRequest {
448
- partnerId: string;
449
- includeExpired?: boolean;
450
- feature?: string;
451
- source?: string;
452
- }
453
- export interface GetPartnerEntryContextSigningRequest {
454
- partnerId: string;
455
- }
456
- export interface GetPartnerNotificationSettingsRequest {
457
- partnerId: string;
458
- }
459
- export interface GetPartnerStorageDestinationRequest {
460
- partnerId: string;
461
- }
462
- export interface GetPartnerStorageUsageRequest {
463
- partnerId: string;
464
- limit?: number;
465
- offset?: number;
466
- }
467
- export interface GetPersonalWorkspaceDomainsRequest {
468
- id: string;
469
- }
470
- export interface GetPublicCompositionEmbedRequest {
471
- compositionId: string;
472
- }
473
- export interface GetPublicCompositionIframeRequest {
474
- compositionId: string;
475
- }
476
- export interface GetPublicWorkflowRequest {
477
- workflowId: string;
478
- }
479
- export interface GetPublicWorkflowFrameRequest {
480
- workflowId: string;
481
- }
482
- export interface GetPublicWorkflowVersionRequest {
483
- workflowId: string;
484
- versionId: string;
485
- }
486
- export interface GetUserAdapterConnectionsRequest {
487
- userId: string;
488
- }
489
- export interface GetUserApiKeyUsageLogsRequest {
490
- id: string;
491
- keyId: string;
492
- limit?: number;
493
- }
494
- export interface GetUserApiKeysRequest {
495
- id: string;
496
- }
497
- export interface GetUserCreditBalanceRequest {
498
- userId: string;
499
- }
500
- export interface GetUserCreditTransactionsRequest {
501
- userId: string;
502
- transactionType?: string;
503
- limit?: number;
504
- offset?: number;
505
- }
506
- export interface GetWidgetsRequest {
507
- page?: number;
508
- size?: number;
509
- canvasId?: string;
510
- managedUserId?: string;
511
- managedUserExternalId?: string;
512
- }
513
- export interface GetWidgetsBatchOperationRequest {
514
- getWidgetsBatchRequest: GetWidgetsBatchRequest;
515
- }
516
- export interface GetWorkspaceWorkflowRequest {
517
- workspaceId: string;
518
- workflowId: string;
519
- xManagedUserId?: string;
520
- xManagedUserExternalId?: string;
521
- }
522
- export interface GetWorkspaceWorkflowStatsRequest {
523
- workspaceId: string;
524
- workflowId: string;
525
- versionId?: string;
526
- from?: string;
527
- to?: string;
528
- xManagedUserId?: string;
529
- xManagedUserExternalId?: string;
530
- }
531
- export interface GetWorkspaceWorkflowVersionRequest {
532
- workspaceId: string;
533
- workflowId: string;
534
- versionId: string;
535
- xManagedUserId?: string;
536
- xManagedUserExternalId?: string;
537
- }
538
- export interface ListCompositionEntryItemsRequest {
539
- id: string;
540
- table: string;
541
- limit?: number;
542
- order?: ListCompositionEntryItemsOrderEnum;
543
- since?: Date;
544
- until?: Date;
545
- cursor?: string;
546
- context?: {
547
- [key: string]: string;
548
- };
549
- filter?: {
550
- [key: string]: string;
551
- };
552
- xManagedUserId?: string;
553
- xManagedUserExternalId?: string;
554
- }
555
- export interface ListManagedUserEntriesRequest {
556
- id: string;
557
- compositionId?: string;
558
- table?: string;
559
- limit?: number;
560
- order?: ListManagedUserEntriesOrderEnum;
561
- since?: Date;
562
- until?: Date;
563
- cursor?: string;
564
- context?: {
565
- [key: string]: string;
566
- };
567
- filter?: {
568
- [key: string]: string;
569
- };
570
- }
571
- export interface ListPartnerNotificationDeliveriesRequest {
572
- partnerId: string;
573
- limit?: number;
574
- }
575
- export interface ListPartnerNotificationsRequest {
576
- partnerId: string;
577
- limit?: number;
578
- before?: Date;
579
- }
580
- export interface ListPartnerPresetsRequest {
581
- partnerId: string;
582
- }
583
- export interface ListPartnerWorkflowPresetsRequest {
584
- partnerId: string;
585
- }
586
- export interface ListWorkspaceWorkflowCompositionOptionsRequest {
587
- workspaceId: string;
588
- search?: string;
589
- ids?: string;
590
- limit?: number;
591
- offset?: number;
592
- xManagedUserId?: string;
593
- xManagedUserExternalId?: string;
594
- }
595
- export interface ListWorkspaceWorkflowPresetsRequest {
596
- workspaceId: string;
597
- xManagedUserId?: string;
598
- xManagedUserExternalId?: string;
599
- }
600
- export interface ListWorkspaceWorkflowVersionsRequest {
601
- workspaceId: string;
602
- workflowId: string;
603
- xManagedUserId?: string;
604
- xManagedUserExternalId?: string;
605
- }
606
- export interface ListWorkspaceWorkflowsRequest {
607
- workspaceId: string;
608
- search?: string;
609
- status?: ListWorkspaceWorkflowsStatusEnum;
610
- sort?: string;
611
- limit?: number;
612
- offset?: number;
613
- xManagedUserId?: string;
614
- xManagedUserExternalId?: string;
615
- }
616
- export interface OperationsIdGetRequest {
617
- id: string;
618
- }
619
- export interface PatchBrandKitOperationRequest {
620
- patchBrandKitRequest: PatchBrandKitRequest;
621
- organizationId?: string;
622
- }
623
- export interface PatchBrandKitAssetOperationRequest {
624
- assetId: string;
625
- patchBrandKitAssetRequest: PatchBrandKitAssetRequest;
626
- organizationId?: string;
627
- }
628
- export interface PatchCompositionContentItemRequest {
629
- id: string;
630
- list: string;
631
- itemId: string;
632
- idempotencyKey: string;
633
- requestBody: {
634
- [key: string]: any;
635
- };
636
- ifMatch?: string;
637
- xManagedUserId?: string;
638
- xManagedUserExternalId?: string;
639
- }
640
- export interface PauseWorkspaceWorkflowRequest {
641
- workspaceId: string;
642
- workflowId: string;
643
- xManagedUserId?: string;
644
- xManagedUserExternalId?: string;
645
- }
646
- export interface PostBrandKitFontRequest {
647
- file: Blob;
648
- family: string;
649
- weight: number;
650
- organizationId?: string;
651
- style?: PostBrandKitFontStyleEnum;
652
- }
653
- export interface PostBrandKitIconOperationRequest {
654
- postBrandKitIconRequest: PostBrandKitIconRequest;
655
- organizationId?: string;
656
- }
657
- export interface PostPublicCompositionEmbedStatusOperationRequest {
658
- postPublicCompositionEmbedStatusRequest: PostPublicCompositionEmbedStatusRequest;
659
- }
660
- export interface PublishWorkspaceWorkflowOperationRequest {
661
- workspaceId: string;
662
- workflowId: string;
663
- idempotencyKey: string;
664
- publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
665
- xManagedUserId?: string;
666
- xManagedUserExternalId?: string;
667
- }
668
- export interface PutBrandKitOperationRequest {
669
- putBrandKitRequest: PutBrandKitRequest;
670
- organizationId?: string;
671
- }
672
- export interface ReadCompositionEntriesRequest {
673
- id: string;
674
- table: string;
675
- groupBy?: string;
676
- rows?: number;
677
- aggregate?: string;
678
- column?: string;
679
- since?: Date;
680
- until?: Date;
681
- context?: {
682
- [key: string]: string;
683
- };
684
- filter?: {
685
- [key: string]: string;
686
- };
687
- xManagedUserId?: string;
688
- xManagedUserExternalId?: string;
689
- }
690
- export interface RemoveAiAnswersKnowledgeDocumentRequest {
691
- id: string;
692
- documentId: string;
693
- xManagedUserId?: string;
694
- xManagedUserExternalId?: string;
695
- }
696
- export interface RemovePartnerAdapterConnectionRequest {
697
- partnerId: string;
698
- adapterId: string;
699
- credentialKey: string;
700
- }
701
- export interface RemovePartnerDataDatabaseRequest {
702
- partnerId: string;
703
- }
704
- export interface RemovePartnerPresetRequest {
705
- partnerId: string;
706
- key: string;
707
- }
708
- export interface RemovePartnerStorageDestinationRequest {
709
- partnerId: string;
710
- }
711
- export interface RemovePartnerWorkflowPresetRequest {
712
- partnerId: string;
713
- key: string;
714
- }
715
- export interface RemoveUserAdapterConnectionRequest {
716
- userId: string;
717
- adapterId: string;
718
- credentialKey: string;
719
- }
720
- export interface ReplayPartnerNotificationDeliveryRequest {
721
- partnerId: string;
722
- deliveryId: string;
723
- idempotencyKey: string;
724
- }
725
- export interface ReportPublicWorkflowEventsRequest {
726
- workflowId: string;
727
- publicWorkflowEventsRequest: PublicWorkflowEventsRequest;
728
- }
729
- export interface RestoreWorkspaceWorkflowVersionRequest {
730
- workspaceId: string;
731
- workflowId: string;
732
- versionId: string;
733
- publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
734
- xManagedUserId?: string;
735
- xManagedUserExternalId?: string;
736
- }
737
- export interface ResumeWorkspaceWorkflowRequest {
738
- workspaceId: string;
739
- workflowId: string;
740
- xManagedUserId?: string;
741
- xManagedUserExternalId?: string;
742
- }
743
- export interface RevokeManagedUserEditorSessionRequest {
744
- id: string;
745
- sessionId: string;
746
- }
747
- export interface RevokeManagedUserEditorSessionsRequest {
748
- id: string;
749
- }
750
- export interface RotatePartnerEntryContextSecretRequest {
751
- partnerId: string;
752
- idempotencyKey: string;
753
- }
754
- export interface RotatePartnerWebhookSecretRequest {
755
- partnerId: string;
756
- idempotencyKey: string;
757
- }
758
- export interface SaveWorkspaceWorkflowOperationRequest {
759
- workspaceId: string;
760
- workflowId: string;
761
- saveWorkspaceWorkflowRequest: SaveWorkspaceWorkflowRequest;
762
- xManagedUserId?: string;
763
- xManagedUserExternalId?: string;
764
- }
765
- export interface SendPartnerNotificationTestEventRequest {
766
- partnerId: string;
767
- idempotencyKey: string;
768
- partnerNotificationTestEventRequest: PartnerNotificationTestEventRequest;
769
- }
770
- export interface SetCompositionDataSourceOperationRequest {
771
- id: string;
772
- idempotencyKey: string;
773
- setCompositionDataSourceRequest: SetCompositionDataSourceRequest;
774
- xManagedUserId?: string;
775
- xManagedUserExternalId?: string;
776
- }
777
- export interface SetDynamicContentOperationRequest {
778
- id: string;
779
- idempotencyKey: string;
780
- setDynamicContentRequest: SetDynamicContentRequest;
781
- ifMatch?: string;
782
- xManagedUserId?: string;
783
- xManagedUserExternalId?: string;
784
- }
785
- export interface SetManagedUserDesignDefaultsRequest {
786
- id: string;
787
- setPartnerDesignDefaultsRequest: SetPartnerDesignDefaultsRequest;
788
- }
789
- export interface SetManagedUserLimitsOperationRequest {
790
- id: string;
791
- setManagedUserLimitsRequest: SetManagedUserLimitsRequest;
792
- }
793
- export interface SetPartnerAdapterConnectionRequest {
794
- partnerId: string;
795
- adapterId: string;
796
- credentialKey: string;
797
- setAdapterConnectionRequest: SetAdapterConnectionRequest;
798
- }
799
- export interface SetPartnerDataDatabaseOperationRequest {
800
- partnerId: string;
801
- setPartnerDataDatabaseRequest: SetPartnerDataDatabaseRequest;
802
- }
803
- export interface SetPartnerDesignDefaultsOperationRequest {
804
- partnerId: string;
805
- setPartnerDesignDefaultsRequest: SetPartnerDesignDefaultsRequest;
806
- }
807
- export interface SetPartnerPresetOperationRequest {
808
- partnerId: string;
809
- key: string;
810
- setPartnerPresetRequest: SetPartnerPresetRequest;
811
- }
812
- export interface SetPartnerStorageDestinationOperationRequest {
813
- partnerId: string;
814
- setPartnerStorageDestinationRequest: SetPartnerStorageDestinationRequest;
815
- }
816
- export interface SetPartnerWorkflowPresetRequest {
817
- partnerId: string;
818
- key: string;
819
- offerWorkflowPresetRequest: OfferWorkflowPresetRequest;
820
- }
821
- export interface SetUserAdapterConnectionRequest {
822
- userId: string;
823
- adapterId: string;
824
- credentialKey: string;
825
- setAdapterConnectionRequest: SetAdapterConnectionRequest;
826
- }
827
- export interface UnarchiveWorkspaceWorkflowRequest {
828
- workspaceId: string;
829
- workflowId: string;
830
- xManagedUserId?: string;
831
- xManagedUserExternalId?: string;
832
- }
833
- export interface UpdateCanvasOperationRequest {
834
- id: string;
835
- updateCanvasRequest: UpdateCanvasRequest;
836
- }
837
- export interface UpdateCompositionRequest {
838
- id: string;
839
- idempotencyKey: string;
840
- updateComposition: UpdateComposition;
841
- ifMatch?: string;
842
- xManagedUserId?: string;
843
- xManagedUserExternalId?: string;
844
- }
845
- export interface UpdateCompositionDatabaseRecordRequest {
846
- id: string;
847
- table: string;
848
- recordId: string;
849
- idempotencyKey: string;
850
- body: object;
851
- xManagedUserId?: string;
852
- xManagedUserExternalId?: string;
853
- }
854
- export interface UpdateCompositionStatusOperationRequest {
855
- id: string;
856
- idempotencyKey: string;
857
- updateCompositionStatusRequest: UpdateCompositionStatusRequest;
858
- xManagedUserId?: string;
859
- xManagedUserExternalId?: string;
860
- }
861
- export interface UpdateManagedUserRequest {
862
- id: string;
863
- idempotencyKey: string;
864
- updateManagedUser: UpdateManagedUser;
865
- }
866
- export interface UpdatePartnerEntryContextSigningOperationRequest {
867
- partnerId: string;
868
- updatePartnerEntryContextSigningRequest: UpdatePartnerEntryContextSigningRequest;
869
- idempotencyKey?: string;
870
- }
871
- export interface UpdatePartnerNotificationSettingsOperationRequest {
872
- partnerId: string;
873
- updatePartnerNotificationSettingsRequest: UpdatePartnerNotificationSettingsRequest;
874
- idempotencyKey?: string;
875
- }
876
- export interface UpdatePersonalWorkspaceDomainRequest {
877
- id: string;
878
- domainId: string;
879
- updateDomainRequest: UpdateDomainRequest;
880
- }
881
- export interface UpdateUserApiKeyOperationRequest {
882
- id: string;
883
- keyId: string;
884
- updateUserApiKeyRequest: UpdateUserApiKeyRequest;
885
- }
886
- export interface UploadPublicCompositionAdapterFileRequest {
887
- compositionId: string;
888
- ticket: string;
889
- body: Blob;
890
- }
891
- export interface UploadsGetRequest {
892
- limit?: number;
893
- managedUserId?: string;
894
- managedUserExternalId?: string;
895
- }
896
- export interface UploadsIdDeleteRequest {
897
- id: string;
898
- }
899
- export interface UploadsIdGetRequest {
900
- id: string;
901
- }
902
- export interface UploadsPostRequest {
903
- file: Blob;
904
- contextType?: UploadsPostContextTypeEnum;
905
- source?: UploadsPostSourceEnum;
906
- managedUserId?: string;
907
- managedUserExternalId?: string;
908
- purpose?: UploadsPostPurposeEnum;
909
- }
910
- export interface ValidateCompositionContentRequest {
911
- id: string;
912
- idempotencyKey: string;
913
- requestBody: {
914
- [key: string]: any;
915
- };
916
- xManagedUserId?: string;
917
- xManagedUserExternalId?: string;
918
- }
919
- export interface VerifyPartnerDataDatabaseRequest {
920
- partnerId: string;
921
- }
922
- export interface VerifyPartnerStorageDestinationRequest {
923
- partnerId: string;
924
- }
925
- /**
926
- *
927
- */
928
- export declare class PartnerApi extends runtime.BaseAPI {
929
- /**
930
- * Gives the widget\'s AI a document to answer visitors\' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. **How it is used.** The text is cleaned, cut into short passages and each passage is turned into numbers (an embedding) so the widget can find the passages nearest to a question. When a visitor asks, the nearest passages and the question are shown to an AI model, which writes the answer from them and from nothing else; if the documents say nothing about the question the visitor is told so, and the owner is not charged for that question. The titles of the documents an answer used are shown to the visitor as its sources. **What leaves Widgetic.** The text of a document is sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** A widget holds up to 20 documents, each up to 100000 characters, and up to 400000 characters in all (`getAiAnswersKnowledge` reports the current numbers). This call takes text. To add a text file or a picture of a document (a PDF too, once PDFs are read) without turning it into text yourself, use `addAiAnswersKnowledgeFile`. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds are limited to ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
931
- * Add a document for a widget\'s AI to answer from
932
- */
933
- addAiAnswersKnowledgeDocumentRaw(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddAiAnswersKnowledgeDocument201Response>>;
934
- /**
935
- * Gives the widget\'s AI a document to answer visitors\' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. **How it is used.** The text is cleaned, cut into short passages and each passage is turned into numbers (an embedding) so the widget can find the passages nearest to a question. When a visitor asks, the nearest passages and the question are shown to an AI model, which writes the answer from them and from nothing else; if the documents say nothing about the question the visitor is told so, and the owner is not charged for that question. The titles of the documents an answer used are shown to the visitor as its sources. **What leaves Widgetic.** The text of a document is sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** A widget holds up to 20 documents, each up to 100000 characters, and up to 400000 characters in all (`getAiAnswersKnowledge` reports the current numbers). This call takes text. To add a text file or a picture of a document (a PDF too, once PDFs are read) without turning it into text yourself, use `addAiAnswersKnowledgeFile`. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds are limited to ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
936
- * Add a document for a widget\'s AI to answer from
937
- */
938
- addAiAnswersKnowledgeDocument(requestParameters: AddAiAnswersKnowledgeDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddAiAnswersKnowledgeDocument201Response>;
939
- /**
940
- * Gives the widget\'s AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same refusal of a copy of a document the widget already has. The call returns once the document is ready to be used, which takes a few seconds (a PDF is read first, so it takes longer). **PDFs are not read yet.** For now a PDF is refused with 415, in a sentence that says what to do instead: paste the text, upload it as a text file, or upload its pages as pictures. What this description says about a PDF is what will hold from the day PDFs are read. **Which files.** - A **PDF** (not read yet, see above), up to 10 MB and 300 pages. Its text is read and its paragraphs are put back together. A PDF that is only pictures of pages (a scan) has no text to read: upload the pages as pictures instead. A PDF locked with a password is refused. - A **text file**: `.txt`, `.text`, `.md`, `.markdown` or `.csv`, in UTF-8, UTF-16 or Windows-1252. - A **picture of a document**: PNG, JPEG or WebP, up to 4 MB. The text in it is read with the same text recognition as the `ocr` adapter. - Word and other office files are not read yet: save the file as a PDF and upload that. What a file is comes from what is in it, not from its name or the type it is sent as. A file that is none of these is refused with 415. **The title.** Left out, the name of the file (without its extension) is the title. Visitors see the title as the source of an answer, so send one that means something to them. **The file is not kept.** Only its text, cut into passages, is kept, and `getAiAnswersKnowledge` never returns it. **What leaves Widgetic.** As for text, the words of the document are sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. A picture is also sent to the text recognition service. A PDF is read on Widgetic\'s own servers and is not sent anywhere to be read. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** The widget\'s limits are those of `addAiAnswersKnowledgeDocument` (up to 20 documents, each up to 100000 characters of text, and up to 400000 characters in all; `getAiAnswersKnowledge` reports the current numbers), and the file is at most 10 MB. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds, from text or from a file, share one limit of ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
941
- * Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
942
- */
943
- addAiAnswersKnowledgeFileRaw(requestParameters: AddAiAnswersKnowledgeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddAiAnswersKnowledgeDocument201Response>>;
944
- /**
945
- * Gives the widget\'s AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same refusal of a copy of a document the widget already has. The call returns once the document is ready to be used, which takes a few seconds (a PDF is read first, so it takes longer). **PDFs are not read yet.** For now a PDF is refused with 415, in a sentence that says what to do instead: paste the text, upload it as a text file, or upload its pages as pictures. What this description says about a PDF is what will hold from the day PDFs are read. **Which files.** - A **PDF** (not read yet, see above), up to 10 MB and 300 pages. Its text is read and its paragraphs are put back together. A PDF that is only pictures of pages (a scan) has no text to read: upload the pages as pictures instead. A PDF locked with a password is refused. - A **text file**: `.txt`, `.text`, `.md`, `.markdown` or `.csv`, in UTF-8, UTF-16 or Windows-1252. - A **picture of a document**: PNG, JPEG or WebP, up to 4 MB. The text in it is read with the same text recognition as the `ocr` adapter. - Word and other office files are not read yet: save the file as a PDF and upload that. What a file is comes from what is in it, not from its name or the type it is sent as. A file that is none of these is refused with 415. **The title.** Left out, the name of the file (without its extension) is the title. Visitors see the title as the source of an answer, so send one that means something to them. **The file is not kept.** Only its text, cut into passages, is kept, and `getAiAnswersKnowledge` never returns it. **What leaves Widgetic.** As for text, the words of the document are sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. A picture is also sent to the text recognition service. A PDF is read on Widgetic\'s own servers and is not sent anywhere to be read. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** The widget\'s limits are those of `addAiAnswersKnowledgeDocument` (up to 20 documents, each up to 100000 characters of text, and up to 400000 characters in all; `getAiAnswersKnowledge` reports the current numbers), and the file is at most 10 MB. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds, from text or from a file, share one limit of ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
946
- * Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
947
- */
948
- addAiAnswersKnowledgeFile(requestParameters: AddAiAnswersKnowledgeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddAiAnswersKnowledgeDocument201Response>;
949
- /**
950
- * 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.
951
- * Allow a website to show your widgets
952
- */
953
- addPersonalWorkspaceDomainRaw(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
954
- /**
955
- * 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.
956
- * Allow a website to show your widgets
957
- */
958
- addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
959
- /**
960
- * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
961
- * Archive a Workflow
962
- */
963
- archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
964
- /**
965
- * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
966
- * Archive a Workflow
967
- */
968
- archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
969
- /**
970
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
971
- * Call a gateway operation of an adapter a published widget uses
972
- */
973
- callPublicCompositionAdapterRaw(requestParameters: CallPublicCompositionAdapterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterCallResult>>;
974
- /**
975
- * The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
976
- * Call a gateway operation of an adapter a published widget uses
977
- */
978
- callPublicCompositionAdapter(requestParameters: CallPublicCompositionAdapterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterCallResult>;
979
- /**
980
- * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
981
- * Check Composition Access
982
- */
983
- checkCompositionAccessRaw(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckCompositionAccessResponse>>;
984
- /**
985
- * Checks if the authenticated user can access a specific composition based on workspace context and permissions.
986
- * Check Composition Access
987
- */
988
- checkCompositionAccess(requestParameters: CheckCompositionAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckCompositionAccessResponse>;
989
- /**
990
- * Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one with `setPartnerAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets of the partner\'s customers that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
991
- * Confirm a partner\'s adapter address with the code that was emailed to it
992
- */
993
- confirmPartnerAdapterConnectionRaw(requestParameters: ConfirmPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
994
- /**
995
- * Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one with `setPartnerAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets of the partner\'s customers that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
996
- * Confirm a partner\'s adapter address with the code that was emailed to it
997
- */
998
- confirmPartnerAdapterConnection(requestParameters: ConfirmPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
999
- /**
1000
- * Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one with `setUserAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
1001
- * Confirm an adapter address with the code that was emailed to it
1002
- */
1003
- confirmUserAdapterConnectionRaw(requestParameters: ConfirmUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
1004
- /**
1005
- * Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one with `setUserAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
1006
- * Confirm an adapter address with the code that was emailed to it
1007
- */
1008
- confirmUserAdapterConnection(requestParameters: ConfirmUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
1009
- /**
1010
- * 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.
1011
- * Give a managed user a copy of one of your presets
1012
- */
1013
- copyPresetForManagedUserRaw(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetCopyResponse>>;
1014
- /**
1015
- * 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.
1016
- * Give a managed user a copy of one of your presets
1017
- */
1018
- copyPresetForManagedUser(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetCopyResponse>;
1019
- /**
1020
- * 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.
1021
- * Create Canvas
1022
- */
1023
- createCanvasRaw(requestParameters: CreateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
1024
- /**
1025
- * 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.
1026
- * Create Canvas
1027
- */
1028
- createCanvas(requestParameters: CreateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
1029
- /**
1030
- * 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.
1031
- * Create Composition
1032
- */
1033
- createCompositionRaw(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1034
- /**
1035
- * 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.
1036
- * Create Composition
1037
- */
1038
- createComposition(requestParameters: CreateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1039
- /**
1040
- * 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.
1041
- * Add a content list item
1042
- */
1043
- createCompositionContentItemRaw(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
1044
- /**
1045
- * 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.
1046
- * Add a content list item
1047
- */
1048
- createCompositionContentItem(requestParameters: CreateCompositionContentItemOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
1049
- /**
1050
- * 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`.
1051
- * Create Record In Composition Database
1052
- */
1053
- createCompositionDatabaseRecordRaw(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
1054
- /**
1055
- * 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`.
1056
- * Create Record In Composition Database
1057
- */
1058
- createCompositionDatabaseRecord(requestParameters: CreateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
1059
- /**
1060
- * 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.
1061
- * Create a composition from one of your presets in one call
1062
- */
1063
- createCompositionFromPresetRaw(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1064
- /**
1065
- * 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.
1066
- * Create a composition from one of your presets in one call
1067
- */
1068
- createCompositionFromPreset(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1069
- /**
1070
- * 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.
1071
- * Create a composition for a widget in one call
1072
- */
1073
- createCompositionFromWidgetRaw(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1074
- /**
1075
- * 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.
1076
- * Create a composition for a widget in one call
1077
- */
1078
- createCompositionFromWidget(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1079
- /**
1080
- * 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.
1081
- * Create Managed User
1082
- */
1083
- createManagedUserRaw(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
1084
- /**
1085
- * 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.
1086
- * Create Managed User
1087
- */
1088
- createManagedUser(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
1089
- /**
1090
- * 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`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. 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`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: 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`.
1091
- * Create an editor session for a managed user
1092
- */
1093
- createManagedUserEditorSessionRaw(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EditorSessionResponse>>;
1094
- /**
1095
- * 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`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. 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`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: 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`.
1096
- * Create an editor session for a managed user
1097
- */
1098
- createManagedUserEditorSession(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EditorSessionResponse>;
1099
- /**
1100
- * 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`). Available only to partners that have an active paid contract in force with Widgetic (`NO_PAID_CONTRACT` when none is in force) and no overdue contract invoice (`CONTRACT_INVOICE_OVERDUE` while a contract invoice is past its due day). A partner that has run out of credits during its period can buy more at the list price. 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`.
1101
- * Buy extra credits for a partner
1102
- */
1103
- createPartnerExtraCreditsInvoiceRaw(requestParameters: CreatePartnerExtraCreditsInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerExtraCreditsInvoiceResponse>>;
1104
- /**
1105
- * 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`). Available only to partners that have an active paid contract in force with Widgetic (`NO_PAID_CONTRACT` when none is in force) and no overdue contract invoice (`CONTRACT_INVOICE_OVERDUE` while a contract invoice is past its due day). A partner that has run out of credits during its period can buy more at the list price. 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`.
1106
- * Buy extra credits for a partner
1107
- */
1108
- createPartnerExtraCreditsInvoice(requestParameters: CreatePartnerExtraCreditsInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerExtraCreditsInvoiceResponse>;
1109
- /**
1110
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
1111
- * Append a visitor entry through the gateway
1112
- */
1113
- createPublicCompositionEntryRaw(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicCompositionEntryCreated>>;
1114
- /**
1115
- * Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
1116
- * Append a visitor entry through the gateway
1117
- */
1118
- createPublicCompositionEntry(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicCompositionEntryCreated>;
1119
- /**
1120
- * 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).
1121
- * Create an API key
1122
- */
1123
- createUserApiKeyRaw(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedUserApiKeyResponse>>;
1124
- /**
1125
- * 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).
1126
- * Create an API key
1127
- */
1128
- createUserApiKey(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedUserApiKeyResponse>;
1129
- /**
1130
- * 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.
1131
- * Create Widget
1132
- */
1133
- createWidgetRaw(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
1134
- /**
1135
- * 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.
1136
- * Create Widget
1137
- */
1138
- createWidget(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
1139
- /**
1140
- * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
1141
- * Create a Workflow
1142
- */
1143
- createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
1144
- /**
1145
- * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
1146
- * Create a Workflow
1147
- */
1148
- createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
1149
- /**
1150
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
1151
- * Start a Workflow from a starting point
1152
- */
1153
- createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
1154
- /**
1155
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
1156
- * Start a Workflow from a starting point
1157
- */
1158
- createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
1159
- /**
1160
- * Reset the Brand Kit to the default
1161
- */
1162
- deleteBrandKitRaw(requestParameters: DeleteBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
1163
- /**
1164
- * Reset the Brand Kit to the default
1165
- */
1166
- deleteBrandKit(requestParameters?: DeleteBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
1167
- /**
1168
- * Remove a font or icon from the Brand Kit
1169
- */
1170
- deleteBrandKitAssetRaw(requestParameters: DeleteBrandKitAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
1171
- /**
1172
- * Remove a font or icon from the Brand Kit
1173
- */
1174
- deleteBrandKitAsset(requestParameters: DeleteBrandKitAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
1175
- /**
1176
- * 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.
1177
- * Delete Canvas
1178
- */
1179
- deleteCanvasRaw(requestParameters: DeleteCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
1180
- /**
1181
- * 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.
1182
- * Delete Canvas
1183
- */
1184
- deleteCanvas(requestParameters: DeleteCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
1185
- /**
1186
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
1187
- * Delete Composition
1188
- */
1189
- deleteCompositionRaw(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1190
- /**
1191
- * Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
1192
- * Delete Composition
1193
- */
1194
- deleteComposition(requestParameters: DeleteCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1195
- /**
1196
- * Delete a content list item
1197
- */
1198
- deleteCompositionContentItemRaw(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionContentItemResponse>>;
1199
- /**
1200
- * Delete a content list item
1201
- */
1202
- deleteCompositionContentItem(requestParameters: DeleteCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionContentItemResponse>;
1203
- /**
1204
- * 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.
1205
- * Remove the composition data source binding
1206
- */
1207
- deleteCompositionDataSourceRaw(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteCompositionDataSourceResponse>>;
1208
- /**
1209
- * 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.
1210
- * Remove the composition data source binding
1211
- */
1212
- deleteCompositionDataSource(requestParameters: DeleteCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteCompositionDataSourceResponse>;
1213
- /**
1214
- * 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`.
1215
- * Delete Record From Composition Database
1216
- */
1217
- deleteCompositionDatabaseRecordRaw(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
1218
- /**
1219
- * 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`.
1220
- * Delete Record From Composition Database
1221
- */
1222
- deleteCompositionDatabaseRecord(requestParameters: DeleteCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
1223
- /**
1224
- * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
1225
- * Delete composition entry items by id or host context
1226
- */
1227
- deleteCompositionEntryItemsRaw(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryDeleteSuccess>>;
1228
- /**
1229
- * Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute.
1230
- * Delete composition entry items by id or host context
1231
- */
1232
- deleteCompositionEntryItems(requestParameters: DeleteCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryDeleteSuccess>;
1233
- /**
1234
- * 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.
1235
- * Delete Managed User
1236
- */
1237
- deleteManagedUserRaw(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteManagedUser200Response>>;
1238
- /**
1239
- * 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.
1240
- * Delete Managed User
1241
- */
1242
- deleteManagedUser(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteManagedUser200Response>;
1243
- /**
1244
- * 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.
1245
- * Stop allowing a website to show your widgets
1246
- */
1247
- deletePersonalWorkspaceDomainRaw(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletePersonalWorkspaceDomainResponse>>;
1248
- /**
1249
- * 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.
1250
- * Stop allowing a website to show your widgets
1251
- */
1252
- deletePersonalWorkspaceDomain(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletePersonalWorkspaceDomainResponse>;
1253
- /**
1254
- * 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`.
1255
- * Delete an API key
1256
- */
1257
- deleteUserApiKeyRaw(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUserApiKeyResponse>>;
1258
- /**
1259
- * 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`.
1260
- * Delete an API key
1261
- */
1262
- deleteUserApiKey(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserApiKeyResponse>;
1263
- /**
1264
- * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
1265
- * Delete a Workflow
1266
- */
1267
- deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
1268
- /**
1269
- * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
1270
- * Delete a Workflow
1271
- */
1272
- deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
1273
- /**
1274
- * 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.
1275
- * Describe What a Composition Keeps
1276
- */
1277
- describeCompositionEntriesRaw(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesDescriptionResponse>>;
1278
- /**
1279
- * 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.
1280
- * Describe What a Composition Keeps
1281
- */
1282
- describeCompositionEntries(requestParameters: DescribeCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesDescriptionResponse>;
1283
- /**
1284
- * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
1285
- * Discard the Unpublished Changes of a Workflow
1286
- */
1287
- discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
1288
- /**
1289
- * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
1290
- * Discard the Unpublished Changes of a Workflow
1291
- */
1292
- discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
1293
- /**
1294
- * 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.
1295
- * Duplicate Composition
1296
- */
1297
- duplicateCompositionRaw(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DuplicateComposition202Response>>;
1298
- /**
1299
- * 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.
1300
- * Duplicate Composition
1301
- */
1302
- duplicateComposition(requestParameters: DuplicateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DuplicateComposition202Response>;
1303
- /**
1304
- * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
1305
- * Duplicate a Workflow
1306
- */
1307
- duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
1308
- /**
1309
- * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
1310
- * Duplicate a Workflow
1311
- */
1312
- duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
1313
- /**
1314
- * 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.
1315
- * Export composition entry items
1316
- */
1317
- exportCompositionEntryItemsRaw(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
1318
- /**
1319
- * 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.
1320
- * Export composition entry items
1321
- */
1322
- exportCompositionEntryItems(requestParameters: ExportCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
1323
- /**
1324
- * 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.
1325
- * See the documents a widget\'s AI answers from
1326
- */
1327
- getAiAnswersKnowledgeRaw(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAiAnswersKnowledge200Response>>;
1328
- /**
1329
- * 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.
1330
- * See the documents a widget\'s AI answers from
1331
- */
1332
- getAiAnswersKnowledge(requestParameters: GetAiAnswersKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAiAnswersKnowledge200Response>;
1333
- /**
1334
- * 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.
1335
- * Get All Canvases
1336
- */
1337
- getAllCanvasesRaw(requestParameters: GetAllCanvasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCanvasesResponse>>;
1338
- /**
1339
- * 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.
1340
- * Get All Canvases
1341
- */
1342
- getAllCanvases(requestParameters?: GetAllCanvasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCanvasesResponse>;
1343
- /**
1344
- * 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.
1345
- * Get All Compositions
1346
- */
1347
- getAllCompositionsRaw(requestParameters: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllCompositions200Response>>;
1348
- /**
1349
- * 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.
1350
- * Get All Compositions
1351
- */
1352
- getAllCompositions(requestParameters?: GetAllCompositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllCompositions200Response>;
1353
- /**
1354
- * Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
1355
- * Get Managed Users
1356
- */
1357
- getAllManagedUsersRaw(requestParameters: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllManagedUsers200Response>>;
1358
- /**
1359
- * Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
1360
- * Get Managed Users
1361
- */
1362
- getAllManagedUsers(requestParameters?: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllManagedUsers200Response>;
1363
- /**
1364
- * The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
1365
- * The Brand Kit of the current workspace
1366
- */
1367
- getBrandKitRaw(requestParameters: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
1368
- /**
1369
- * The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
1370
- * The Brand Kit of the current workspace
1371
- */
1372
- getBrandKit(requestParameters?: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
1373
- /**
1374
- * Retrieves a specific canvas by ID.
1375
- * Get Canvas
1376
- */
1377
- getCanvasRaw(requestParameters: GetCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
1378
- /**
1379
- * Retrieves a specific canvas by ID.
1380
- * Get Canvas
1381
- */
1382
- getCanvas(requestParameters: GetCanvasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
1383
- /**
1384
- * Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route looks at the website that page is on. While the composition\'s allowed list is empty (you have not restricted the allowed websites), every website may write; once you list websites, only those may, besides Widgetic\'s own sites, the visitor\'s own machine and your own platform. A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says. The public JSON of the composition stays open to every website. For a composition a team shares (one filed under a project of an organization, or made in a Shopify store\'s workspace) the answer also carries `lastEditedBy` and `lastEditedAt`: who made the latest change and when, so that a teammate who opens it can be told \"Anna changed this at 14:32\". A composition in a personal project leaves both out, and so does an answer given to an editor session or to a call made for one managed user: only a person is told who a teammate is.
1385
- * Get Composition
1386
- */
1387
- getCompositionByIdRaw(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
1388
- /**
1389
- * Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route looks at the website that page is on. While the composition\'s allowed list is empty (you have not restricted the allowed websites), every website may write; once you list websites, only those may, besides Widgetic\'s own sites, the visitor\'s own machine and your own platform. A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says. The public JSON of the composition stays open to every website. For a composition a team shares (one filed under a project of an organization, or made in a Shopify store\'s workspace) the answer also carries `lastEditedBy` and `lastEditedAt`: who made the latest change and when, so that a teammate who opens it can be told \"Anna changed this at 14:32\". A composition in a personal project leaves both out, and so does an answer given to an editor session or to a call made for one managed user: only a person is told who a teammate is.
1390
- * Get Composition
1391
- */
1392
- getCompositionById(requestParameters: GetCompositionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
1393
- /**
1394
- * Retrieves the current content of a composition
1395
- * Get Current Content
1396
- */
1397
- getCompositionContentRaw(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentResponse>>;
1398
- /**
1399
- * Retrieves the current content of a composition
1400
- * Get Current Content
1401
- */
1402
- getCompositionContent(requestParameters: GetCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentResponse>;
1403
- /**
1404
- * Retrieves the content schema for a composition based on its widget type
1405
- * Get Content Schema
1406
- */
1407
- getCompositionContentSchemaRaw(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionContentSchemaResponse>>;
1408
- /**
1409
- * Retrieves the content schema for a composition based on its widget type
1410
- * Get Content Schema
1411
- */
1412
- getCompositionContentSchema(requestParameters: GetCompositionContentSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionContentSchemaResponse>;
1413
- /**
1414
- * 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).
1415
- * Read the composition data source binding
1416
- */
1417
- getCompositionDataSourceRaw(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDataSourceResponse>>;
1418
- /**
1419
- * 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).
1420
- * Read the composition data source binding
1421
- */
1422
- getCompositionDataSource(requestParameters: GetCompositionDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDataSourceResponse>;
1423
- /**
1424
- * 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`.
1425
- * Get Record From Composition Database
1426
- */
1427
- getCompositionDatabaseRecordRaw(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
1428
- /**
1429
- * 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`.
1430
- * Get Record From Composition Database
1431
- */
1432
- getCompositionDatabaseRecord(requestParameters: GetCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
1433
- /**
1434
- * 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`.
1435
- * Get All Records From Composition Database Table
1436
- */
1437
- getCompositionDatabaseRecordsRaw(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDatabaseRecords200Response>>;
1438
- /**
1439
- * 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`.
1440
- * Get All Records From Composition Database Table
1441
- */
1442
- getCompositionDatabaseRecords(requestParameters: GetCompositionDatabaseRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDatabaseRecords200Response>;
1443
- /**
1444
- * Retrieves only the design field from a composition.
1445
- * Get Composition Design
1446
- */
1447
- getCompositionDesignRaw(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignResponse>>;
1448
- /**
1449
- * Retrieves only the design field from a composition.
1450
- * Get Composition Design
1451
- */
1452
- getCompositionDesign(requestParameters: GetCompositionDesignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignResponse>;
1453
- /**
1454
- * Retrieves the design schema for a composition based on its widget type
1455
- * Get Design Schema
1456
- */
1457
- getCompositionDesignSchemaRaw(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionDesignSchemaResponse>>;
1458
- /**
1459
- * Retrieves the design schema for a composition based on its widget type
1460
- * Get Design Schema
1461
- */
1462
- getCompositionDesignSchema(requestParameters: GetCompositionDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionDesignSchemaResponse>;
1463
- /**
1464
- * 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).
1465
- * Get Embed Schema
1466
- */
1467
- getCompositionEmbedSchemaRaw(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSchemaResponse>>;
1468
- /**
1469
- * 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).
1470
- * Get Embed Schema
1471
- */
1472
- getCompositionEmbedSchema(requestParameters: GetCompositionEmbedSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSchemaResponse>;
1473
- /**
1474
- * Retrieves only the embedSettings field from a composition.
1475
- * Get Composition Embed Settings
1476
- */
1477
- getCompositionEmbedSettingsRaw(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionEmbedSettingsResponse>>;
1478
- /**
1479
- * Retrieves only the embedSettings field from a composition.
1480
- * Get Composition Embed Settings
1481
- */
1482
- getCompositionEmbedSettings(requestParameters: GetCompositionEmbedSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionEmbedSettingsResponse>;
1483
- /**
1484
- * 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`.
1485
- * Get Composition Preview
1486
- */
1487
- getCompositionPreviewRaw(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionPreviewResponse>>;
1488
- /**
1489
- * 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`.
1490
- * Get Composition Preview
1491
- */
1492
- getCompositionPreview(requestParameters: GetCompositionPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionPreviewResponse>;
1493
- /**
1494
- * Retrieves version history for a specific composition.
1495
- * Get Composition Versions
1496
- */
1497
- getCompositionVersionsRaw(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionVersions200Response>>;
1498
- /**
1499
- * Retrieves version history for a specific composition.
1500
- * Get Composition Versions
1501
- */
1502
- getCompositionVersions(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionVersions200Response>;
1503
- /**
1504
- * 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.
1505
- * Get Compositions Batch
1506
- */
1507
- getCompositionsBatchRaw(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionsBatchResponse>>;
1508
- /**
1509
- * 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.
1510
- * Get Compositions Batch
1511
- */
1512
- getCompositionsBatch(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionsBatchResponse>;
1513
- /**
1514
- * 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.
1515
- * List a partner\'s invoices
1516
- */
1517
- getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
1518
- /**
1519
- * 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.
1520
- * List a partner\'s invoices
1521
- */
1522
- getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
1523
- /**
1524
- * Retrieves a specific managed user by ID.
1525
- * Get Managed User By ID
1526
- */
1527
- getManagedUserByIdRaw(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
1528
- /**
1529
- * Retrieves a specific managed user by ID.
1530
- * Get Managed User By ID
1531
- */
1532
- getManagedUserById(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
1533
- /**
1534
- * Read design defaults for one managed user
1535
- */
1536
- getManagedUserDesignDefaultsRaw(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1537
- /**
1538
- * Read design defaults for one managed user
1539
- */
1540
- getManagedUserDesignDefaults(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1541
- /**
1542
- * Retrieves all entitlements for a managed user (admin or partner access).
1543
- * Get managed user entitlements
1544
- */
1545
- getManagedUserEntitlementsRaw(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserEntitlementsResponse>>;
1546
- /**
1547
- * Retrieves all entitlements for a managed user (admin or partner access).
1548
- * Get managed user entitlements
1549
- */
1550
- getManagedUserEntitlements(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserEntitlementsResponse>;
1551
- /**
1552
- * Read monthly credit cap and usage for one managed user
1553
- */
1554
- getManagedUserLimitsRaw(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserLimits200Response>>;
1555
- /**
1556
- * Read monthly credit cap and usage for one managed user
1557
- */
1558
- getManagedUserLimits(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserLimits200Response>;
1559
- /**
1560
- * Storage used by one managed user\'s uploads
1561
- */
1562
- getManagedUserStorageUsageRaw(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserStorageUsage200Response>>;
1563
- /**
1564
- * Storage used by one managed user\'s uploads
1565
- */
1566
- getManagedUserStorageUsage(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserStorageUsage200Response>;
1567
- /**
1568
- * 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`.
1569
- * What a managed user\'s editor sessions spent
1570
- */
1571
- getManagedUserUsageRaw(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserUsageResponse>>;
1572
- /**
1573
- * 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`.
1574
- * What a managed user\'s editor sessions spent
1575
- */
1576
- getManagedUserUsage(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserUsageResponse>;
1577
- /**
1578
- * Retrieve managed users for a specific manager with pagination support.
1579
- * Get Managed Users By Manager
1580
- */
1581
- getManagedUsersByManagerIdRaw(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUsersByManagerIdResponse>>;
1582
- /**
1583
- * Retrieve managed users for a specific manager with pagination support.
1584
- * Get Managed Users By Manager
1585
- */
1586
- getManagedUsersByManagerId(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUsersByManagerIdResponse>;
1587
- /**
1588
- * 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.
1589
- * Find the partner you administer
1590
- */
1591
- getMyPartnersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MyPartnersResponse>>;
1592
- /**
1593
- * 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.
1594
- * Find the partner you administer
1595
- */
1596
- getMyPartners(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MyPartnersResponse>;
1597
- /**
1598
- * 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.
1599
- * See which adapter keys a partner has connected
1600
- */
1601
- getPartnerAdapterConnectionsRaw(requestParameters: GetPartnerAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAdapterConnections200Response>>;
1602
- /**
1603
- * 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.
1604
- * See which adapter keys a partner has connected
1605
- */
1606
- getPartnerAdapterConnections(requestParameters: GetPartnerAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAdapterConnections200Response>;
1607
- /**
1608
- * 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.
1609
- * What each managed user\'s widgets did
1610
- */
1611
- getPartnerAnalyticsByManagedUserRaw(requestParameters: GetPartnerAnalyticsByManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsByManagedUserResponse>>;
1612
- /**
1613
- * 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.
1614
- * What each managed user\'s widgets did
1615
- */
1616
- getPartnerAnalyticsByManagedUser(requestParameters: GetPartnerAnalyticsByManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsByManagedUserResponse>;
1617
- /**
1618
- * 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.
1619
- * What was done with a partner\'s published widgets
1620
- */
1621
- getPartnerAnalyticsSummaryRaw(requestParameters: GetPartnerAnalyticsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsSummaryResponse>>;
1622
- /**
1623
- * 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.
1624
- * What was done with a partner\'s published widgets
1625
- */
1626
- getPartnerAnalyticsSummary(requestParameters: GetPartnerAnalyticsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsSummaryResponse>;
1627
- /**
1628
- * 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.
1629
- * What was done with a partner\'s widgets, day by day
1630
- */
1631
- getPartnerAnalyticsTimelineRaw(requestParameters: GetPartnerAnalyticsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsTimelineResponse>>;
1632
- /**
1633
- * 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.
1634
- * What was done with a partner\'s widgets, day by day
1635
- */
1636
- getPartnerAnalyticsTimeline(requestParameters: GetPartnerAnalyticsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsTimelineResponse>;
1637
- /**
1638
- * 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.
1639
- * Which widgets were viewed the most
1640
- */
1641
- getPartnerAnalyticsTopWidgetsRaw(requestParameters: GetPartnerAnalyticsTopWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerAnalyticsTopWidgetsResponse>>;
1642
- /**
1643
- * 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.
1644
- * Which widgets were viewed the most
1645
- */
1646
- getPartnerAnalyticsTopWidgets(requestParameters: GetPartnerAnalyticsTopWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsTopWidgetsResponse>;
1647
- /**
1648
- * 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.
1649
- * Get comprehensive partner billing overview
1650
- */
1651
- getPartnerBillingOverviewRaw(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerBillingOverview200Response>>;
1652
- /**
1653
- * 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.
1654
- * Get comprehensive partner billing overview
1655
- */
1656
- getPartnerBillingOverview(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerBillingOverview200Response>;
1657
- /**
1658
- * 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.
1659
- * Get a partner\'s contract
1660
- */
1661
- getPartnerContractRaw(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerContractResponse>>;
1662
- /**
1663
- * 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.
1664
- * Get a partner\'s contract
1665
- */
1666
- getPartnerContract(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerContractResponse>;
1667
- /**
1668
- * 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.
1669
- * Get partner credit balance
1670
- */
1671
- getPartnerCreditBalanceRaw(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
1672
- /**
1673
- * 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.
1674
- * Get partner credit balance
1675
- */
1676
- getPartnerCreditBalance(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
1677
- /**
1678
- * 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.
1679
- * Get partner credit transaction history
1680
- */
1681
- getPartnerCreditTransactionsRaw(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
1682
- /**
1683
- * 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.
1684
- * Get partner credit transaction history
1685
- */
1686
- getPartnerCreditTransactions(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
1687
- /**
1688
- * 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.
1689
- * See the Neon database a partner keeps the data of its compositions in
1690
- */
1691
- getPartnerDataDatabaseRaw(requestParameters: GetPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
1692
- /**
1693
- * 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.
1694
- * See the Neon database a partner keeps the data of its compositions in
1695
- */
1696
- getPartnerDataDatabase(requestParameters: GetPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
1697
- /**
1698
- * Read partner-wide design defaults
1699
- */
1700
- getPartnerDesignDefaultsRaw(requestParameters: GetPartnerDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
1701
- /**
1702
- * Read partner-wide design defaults
1703
- */
1704
- getPartnerDesignDefaults(requestParameters: GetPartnerDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
1705
- /**
1706
- * Retrieves all entitlements for a partner (admin or partner access).
1707
- * Get partner entitlements
1708
- */
1709
- getPartnerEntitlementsRaw(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerEntitlementsResponse>>;
1710
- /**
1711
- * Retrieves all entitlements for a partner (admin or partner access).
1712
- * Get partner entitlements
1713
- */
1714
- getPartnerEntitlements(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerEntitlementsResponse>;
1715
- /**
1716
- * 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.
1717
- * See how the context of your embeds is signed
1718
- */
1719
- getPartnerEntryContextSigningRaw(requestParameters: GetPartnerEntryContextSigningRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSigningResponse>>;
1720
- /**
1721
- * 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.
1722
- * See how the context of your embeds is signed
1723
- */
1724
- getPartnerEntryContextSigning(requestParameters: GetPartnerEntryContextSigningRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSigningResponse>;
1725
- /**
1726
- * 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.
1727
- * Where your notifications go
1728
- */
1729
- getPartnerNotificationSettingsRaw(requestParameters: GetPartnerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsResponse>>;
1730
- /**
1731
- * 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.
1732
- * Where your notifications go
1733
- */
1734
- getPartnerNotificationSettings(requestParameters: GetPartnerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsResponse>;
1735
- /**
1736
- * 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.
1737
- * Get where a partner\'s uploaded files are stored
1738
- */
1739
- getPartnerStorageDestinationRaw(requestParameters: GetPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
1740
- /**
1741
- * 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.
1742
- * Get where a partner\'s uploaded files are stored
1743
- */
1744
- getPartnerStorageDestination(requestParameters: GetPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
1745
- /**
1746
- * 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.
1747
- * What a partner\'s customers store
1748
- */
1749
- getPartnerStorageUsageRaw(requestParameters: GetPartnerStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageUsageResponse>>;
1750
- /**
1751
- * 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.
1752
- * What a partner\'s customers store
1753
- */
1754
- getPartnerStorageUsage(requestParameters: GetPartnerStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageUsageResponse>;
1755
- /**
1756
- * 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.
1757
- * List the websites allowed to show your widgets
1758
- */
1759
- getPersonalWorkspaceDomainsRaw(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPersonalWorkspaceDomains200Response>>;
1760
- /**
1761
- * 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.
1762
- * List the websites allowed to show your widgets
1763
- */
1764
- getPersonalWorkspaceDomains(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPersonalWorkspaceDomains200Response>;
1765
- /**
1766
- * 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.
1767
- * Resolve a composition UUID to a published widget URL
1768
- */
1769
- getPublicCompositionEmbedRaw(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicCompositionEmbed200Response>>;
1770
- /**
1771
- * 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.
1772
- * Resolve a composition UUID to a published widget URL
1773
- */
1774
- getPublicCompositionEmbed(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicCompositionEmbed200Response>;
1775
- /**
1776
- * 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.
1777
- * Embed a published composition with its saved values
1778
- */
1779
- getPublicCompositionIframeRaw(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
1780
- /**
1781
- * 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.
1782
- * Embed a published composition with its saved values
1783
- */
1784
- getPublicCompositionIframe(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
1785
- /**
1786
- * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
1787
- * Read the published Workflow of an embed
1788
- */
1789
- getPublicWorkflowRaw(requestParameters: GetPublicWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicWorkflow200Response>>;
1790
- /**
1791
- * Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` with nothing else, in which case the embed shows only its first composition. A workflow that is a draft, archived or unknown answers 404, and the embed then behaves as a plain embed of its `composition-id`. So does a workflow whose owner is not being served (a plan that lapsed, a partner whose agreement is not in force): the answer is the one the compositions of that owner give. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. The answer may be reused for a few seconds (`Cache-Control: public, max-age=15`), so a publish or a pause reaches visitors within moments. The graph is readable by anyone who has the workflow\'s id: its rules run in the visitor\'s browser, so a rule must never hold a secret.
1792
- * Read the published Workflow of an embed
1793
- */
1794
- getPublicWorkflow(requestParameters: GetPublicWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicWorkflow200Response>;
1795
- /**
1796
- * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1797
- * Show a published Workflow in a page of its own
1798
- */
1799
- getPublicWorkflowFrameRaw(requestParameters: GetPublicWorkflowFrameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
1800
- /**
1801
- * A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`<widgetic workflow-id composition-id>`), so a visitor moves from one composition to the next in place, by the same rules, exactly as on a website. A paused workflow shows its first composition alone, as its embeds do. **What the frame can count.** Only what happens inside it: entries, a widget\'s goals and actions, and waits. The page events a website can send to a workflow (`widgetic:workflow-event`) are events of the page around the embed, and they do not cross an iframe, so a connection that waits for one never fires from a frame. A workflow that is a draft, is archived, or does not exist, and one whose owner is not being served, answers 404 with a short page that gives no reason. If the owner of the workflow\'s first composition listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website. Opening the address directly still works. An owner who listed nothing is not restricted. The page links its oEmbed card, so a site that follows oEmbed turns the address of the frame into an embed. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1802
- * Show a published Workflow in a page of its own
1803
- */
1804
- getPublicWorkflowFrame(requestParameters: GetPublicWorkflowFrameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
1805
- /**
1806
- * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1807
- * Read one published version of a Workflow
1808
- */
1809
- getPublicWorkflowVersionRaw(requestParameters: GetPublicWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicWorkflow200Response>>;
1810
- /**
1811
- * Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown in (`translations`) are read each time, as for the live version. Like the read of the live version, it answers `status: paused` with nothing else while the workflow is paused, and 404 when the workflow is a draft or archived, or has no such version. **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/versions/{versionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
1812
- * Read one published version of a Workflow
1813
- */
1814
- getPublicWorkflowVersion(requestParameters: GetPublicWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicWorkflow200Response>;
1815
- /**
1816
- * 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.
1817
- * See which adapter keys an account has connected
1818
- */
1819
- getUserAdapterConnectionsRaw(requestParameters: GetUserAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAdapterConnections200Response>>;
1820
- /**
1821
- * 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.
1822
- * See which adapter keys an account has connected
1823
- */
1824
- getUserAdapterConnections(requestParameters: GetUserAdapterConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAdapterConnections200Response>;
1825
- /**
1826
- * 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.
1827
- * Read what an API key was used for
1828
- */
1829
- getUserApiKeyUsageLogsRaw(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeyUsageLogsResponse>>;
1830
- /**
1831
- * 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.
1832
- * Read what an API key was used for
1833
- */
1834
- getUserApiKeyUsageLogs(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeyUsageLogsResponse>;
1835
- /**
1836
- * 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.
1837
- * List the API keys of an account
1838
- */
1839
- getUserApiKeysRaw(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeys200Response>>;
1840
- /**
1841
- * 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.
1842
- * List the API keys of an account
1843
- */
1844
- getUserApiKeys(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeys200Response>;
1845
- /**
1846
- * 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.
1847
- * Get an account\'s credit balance
1848
- */
1849
- getUserCreditBalanceRaw(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
1850
- /**
1851
- * 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.
1852
- * Get an account\'s credit balance
1853
- */
1854
- getUserCreditBalance(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
1855
- /**
1856
- * 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.
1857
- * List an account\'s credit ledger
1858
- */
1859
- getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
1860
- /**
1861
- * 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.
1862
- * List an account\'s credit ledger
1863
- */
1864
- getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
1865
- /**
1866
- * 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`.
1867
- * List Widgets
1868
- */
1869
- getWidgetsRaw(requestParameters: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgets200Response>>;
1870
- /**
1871
- * 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`.
1872
- * List Widgets
1873
- */
1874
- getWidgets(requestParameters?: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgets200Response>;
1875
- /**
1876
- * 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.
1877
- * Get Widgets Batch
1878
- */
1879
- getWidgetsBatchRaw(requestParameters: GetWidgetsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgetsBatchResponse>>;
1880
- /**
1881
- * 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.
1882
- * Get Widgets Batch
1883
- */
1884
- getWidgetsBatch(requestParameters: GetWidgetsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetsBatchResponse>;
1885
- /**
1886
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
1887
- * Get a Workflow
1888
- */
1889
- getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
1890
- /**
1891
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
1892
- * Get a Workflow
1893
- */
1894
- getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
1895
- /**
1896
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
1897
- * Get what Visitors Did in a Workflow
1898
- */
1899
- getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
1900
- /**
1901
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
1902
- * Get what Visitors Did in a Workflow
1903
- */
1904
- getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
1905
- /**
1906
- * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
1907
- * Get a Published Version of a Workflow
1908
- */
1909
- getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
1910
- /**
1911
- * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
1912
- * Get a Published Version of a Workflow
1913
- */
1914
- getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
1915
- /**
1916
- * 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.
1917
- * List composition entry items with paging and filters
1918
- */
1919
- listCompositionEntryItemsRaw(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntryItemsPageSuccess>>;
1920
- /**
1921
- * 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.
1922
- * List composition entry items with paging and filters
1923
- */
1924
- listCompositionEntryItems(requestParameters: ListCompositionEntryItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntryItemsPageSuccess>;
1925
- /**
1926
- * 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.
1927
- * List entries across a managed user\'s compositions
1928
- */
1929
- listManagedUserEntriesRaw(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserEntriesPageSuccess>>;
1930
- /**
1931
- * 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.
1932
- * List entries across a managed user\'s compositions
1933
- */
1934
- listManagedUserEntries(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserEntriesPageSuccess>;
1935
- /**
1936
- * 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.
1937
- * How your notifications reached you
1938
- */
1939
- listPartnerNotificationDeliveriesRaw(requestParameters: ListPartnerNotificationDeliveriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationDeliveryLogResponse>>;
1940
- /**
1941
- * 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.
1942
- * How your notifications reached you
1943
- */
1944
- listPartnerNotificationDeliveries(requestParameters: ListPartnerNotificationDeliveriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationDeliveryLogResponse>;
1945
- /**
1946
- * 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.
1947
- * What your partner account was told
1948
- */
1949
- listPartnerNotificationsRaw(requestParameters: ListPartnerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationPageResponse>>;
1950
- /**
1951
- * 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.
1952
- * What your partner account was told
1953
- */
1954
- listPartnerNotifications(requestParameters: ListPartnerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationPageResponse>;
1955
- /**
1956
- * 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.
1957
- * List the widgets a partner offers as presets
1958
- */
1959
- listPartnerPresetsRaw(requestParameters: ListPartnerPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerPresets200Response>>;
1960
- /**
1961
- * 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.
1962
- * List the widgets a partner offers as presets
1963
- */
1964
- listPartnerPresets(requestParameters: ListPartnerPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerPresets200Response>;
1965
- /**
1966
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1967
- * List the workflows a partner offers as places to start
1968
- */
1969
- listPartnerWorkflowPresetsRaw(requestParameters: ListPartnerWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerWorkflowPresets200Response>>;
1970
- /**
1971
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1972
- * List the workflows a partner offers as places to start
1973
- */
1974
- listPartnerWorkflowPresets(requestParameters: ListPartnerWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerWorkflowPresets200Response>;
1975
- /**
1976
- * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
1977
- * List the compositions a workflow can show, and what each can do
1978
- */
1979
- listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
1980
- /**
1981
- * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
1982
- * List the compositions a workflow can show, and what each can do
1983
- */
1984
- listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
1985
- /**
1986
- * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
1987
- * List the starting points for a new Workflow
1988
- */
1989
- listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
1990
- /**
1991
- * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
1992
- * List the starting points for a new Workflow
1993
- */
1994
- listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
1995
- /**
1996
- * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
1997
- * List the Published Versions of a Workflow
1998
- */
1999
- listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
2000
- /**
2001
- * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
2002
- * List the Published Versions of a Workflow
2003
- */
2004
- listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
2005
- /**
2006
- * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
2007
- * List the Workflows of a Workspace
2008
- */
2009
- listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
2010
- /**
2011
- * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
2012
- * List the Workflows of a Workspace
2013
- */
2014
- listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
2015
- /**
2016
- * 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.
2017
- * Get operation status
2018
- */
2019
- operationsIdGetRaw(requestParameters: OperationsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperationsIdGetResponse>>;
2020
- /**
2021
- * 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.
2022
- * Get operation status
2023
- */
2024
- operationsIdGet(requestParameters: OperationsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperationsIdGetResponse>;
2025
- /**
2026
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
2027
- * Change part of the Brand Kit
2028
- */
2029
- patchBrandKitRaw(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
2030
- /**
2031
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
2032
- * Change part of the Brand Kit
2033
- */
2034
- patchBrandKit(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
2035
- /**
2036
- * Rename an icon or relabel a font variant
2037
- */
2038
- patchBrandKitAssetRaw(requestParameters: PatchBrandKitAssetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
2039
- /**
2040
- * Rename an icon or relabel a font variant
2041
- */
2042
- patchBrandKitAsset(requestParameters: PatchBrandKitAssetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
2043
- /**
2044
- * Update a content list item
2045
- */
2046
- patchCompositionContentItemRaw(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionContentItem201Response>>;
2047
- /**
2048
- * Update a content list item
2049
- */
2050
- patchCompositionContentItem(requestParameters: PatchCompositionContentItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionContentItem201Response>;
2051
- /**
2052
- * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
2053
- * Pause a Workflow
2054
- */
2055
- pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
2056
- /**
2057
- * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
2058
- * Pause a Workflow
2059
- */
2060
- pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
2061
- /**
2062
- * Upload a font file to the Brand Kit
2063
- */
2064
- postBrandKitFontRaw(requestParameters: PostBrandKitFontRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
2065
- /**
2066
- * Upload a font file to the Brand Kit
2067
- */
2068
- postBrandKitFont(requestParameters: PostBrandKitFontRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
2069
- /**
2070
- * Add a named SVG icon to the Brand Kit
2071
- */
2072
- postBrandKitIconRaw(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
2073
- /**
2074
- * Add a named SVG icon to the Brand Kit
2075
- */
2076
- postBrandKitIcon(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
2077
- /**
2078
- * 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.
2079
- * Batch-check whether compositions are currently served for embed
2080
- */
2081
- postPublicCompositionEmbedStatusRaw(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostPublicCompositionEmbedStatus200Response>>;
2082
- /**
2083
- * 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.
2084
- * Batch-check whether compositions are currently served for embed
2085
- */
2086
- postPublicCompositionEmbedStatus(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostPublicCompositionEmbedStatus200Response>;
2087
- /**
2088
- * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
2089
- * Publish the Draft of a Workflow
2090
- */
2091
- publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
2092
- /**
2093
- * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
2094
- * Publish the Draft of a Workflow
2095
- */
2096
- publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
2097
- /**
2098
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
2099
- * Save Brand Kit tokens
2100
- */
2101
- putBrandKitRaw(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
2102
- /**
2103
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
2104
- * Save Brand Kit tokens
2105
- */
2106
- putBrandKit(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
2107
- /**
2108
- * 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.
2109
- * Read the Entries of a Composition\'s Table
2110
- */
2111
- readCompositionEntriesRaw(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionEntriesReadingResponse>>;
2112
- /**
2113
- * 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.
2114
- * Read the Entries of a Composition\'s Table
2115
- */
2116
- readCompositionEntries(requestParameters: ReadCompositionEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionEntriesReadingResponse>;
2117
- /**
2118
- * 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.
2119
- * Remove a document from a widget\'s knowledge base
2120
- */
2121
- removeAiAnswersKnowledgeDocumentRaw(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveAiAnswersKnowledgeDocument200Response>>;
2122
- /**
2123
- * 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.
2124
- * Remove a document from a widget\'s knowledge base
2125
- */
2126
- removeAiAnswersKnowledgeDocument(requestParameters: RemoveAiAnswersKnowledgeDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveAiAnswersKnowledgeDocument200Response>;
2127
- /**
2128
- * 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.
2129
- * Remove an adapter key from a partner
2130
- */
2131
- removePartnerAdapterConnectionRaw(requestParameters: RemovePartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveUserAdapterConnection200Response>>;
2132
- /**
2133
- * 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.
2134
- * Remove an adapter key from a partner
2135
- */
2136
- removePartnerAdapterConnection(requestParameters: RemovePartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveUserAdapterConnection200Response>;
2137
- /**
2138
- * 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.
2139
- * Stop keeping the data of a partner\'s compositions in its own database
2140
- */
2141
- removePartnerDataDatabaseRaw(requestParameters: RemovePartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseRemovalResponse>>;
2142
- /**
2143
- * 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.
2144
- * Stop keeping the data of a partner\'s compositions in its own database
2145
- */
2146
- removePartnerDataDatabase(requestParameters: RemovePartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseRemovalResponse>;
2147
- /**
2148
- * 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`.
2149
- * Take a widget off the partner\'s presets
2150
- */
2151
- removePartnerPresetRaw(requestParameters: RemovePartnerPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetRemovalResponse>>;
2152
- /**
2153
- * 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`.
2154
- * Take a widget off the partner\'s presets
2155
- */
2156
- removePartnerPreset(requestParameters: RemovePartnerPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetRemovalResponse>;
2157
- /**
2158
- * 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.
2159
- * Stop storing a partner\'s uploaded files in its own bucket
2160
- */
2161
- removePartnerStorageDestinationRaw(requestParameters: RemovePartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageRemovalResponse>>;
2162
- /**
2163
- * 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.
2164
- * Stop storing a partner\'s uploaded files in its own bucket
2165
- */
2166
- removePartnerStorageDestination(requestParameters: RemovePartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageRemovalResponse>;
2167
- /**
2168
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
2169
- * Stop offering a workflow as a place to start
2170
- */
2171
- removePartnerWorkflowPresetRaw(requestParameters: RemovePartnerWorkflowPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemovePartnerWorkflowPreset200Response>>;
2172
- /**
2173
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
2174
- * Stop offering a workflow as a place to start
2175
- */
2176
- removePartnerWorkflowPreset(requestParameters: RemovePartnerWorkflowPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemovePartnerWorkflowPreset200Response>;
2177
- /**
2178
- * 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.
2179
- * Remove an adapter key from an account
2180
- */
2181
- removeUserAdapterConnectionRaw(requestParameters: RemoveUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveUserAdapterConnection200Response>>;
2182
- /**
2183
- * 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.
2184
- * Remove an adapter key from an account
2185
- */
2186
- removeUserAdapterConnection(requestParameters: RemoveUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveUserAdapterConnection200Response>;
2187
- /**
2188
- * 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.
2189
- * Send a webhook delivery again
2190
- */
2191
- replayPartnerNotificationDeliveryRaw(requestParameters: ReplayPartnerNotificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationDeliveryResponse>>;
2192
- /**
2193
- * 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.
2194
- * Send a webhook delivery again
2195
- */
2196
- replayPartnerNotificationDelivery(requestParameters: ReplayPartnerNotificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationDeliveryResponse>;
2197
- /**
2198
- * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
2199
- * Report what visitors did in a Workflow, as counts
2200
- */
2201
- reportPublicWorkflowEventsRaw(requestParameters: ReportPublicWorkflowEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportPublicWorkflowEvents200Response>>;
2202
- /**
2203
- * Public report of counts for a workflow, sent by the embed. No API key. Each event is one id and a number: a visitor reached a block (`n`), took a connection (`e`), or could not be moved on (`f`). Nothing else is kept: no visitor, no value a visitor typed, no address. A batch carries at most 100 events and 16 KB. The same report may carry `heights`: how tall a step settled at in the browser, which the embed code of the workflow uses to start its box at a real height (a composition, a whole number of pixels, nothing about the visitor). A report is accepted only with the `token` the workflow\'s own read handed out for that `versionId`, so a page that never read the workflow cannot raise its numbers. An expired token (`EVENT_TOKEN_EXPIRED`) is refused with 401: read the workflow again for a new one. Counts for ids that are not in that version, or for a workflow that is not live, are not recorded and the answer says so (`recorded: false`) with 200: the visitor\'s page has nothing to fix. The body is JSON, sent as `application/json` or as `text/plain` (a \"simple\" cross-origin request, which is what lets a report leave a page that is being closed). **Address.** `https://api.widgetic.com/embed/workflows/{workflowId}/events`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
2204
- * Report what visitors did in a Workflow, as counts
2205
- */
2206
- reportPublicWorkflowEvents(requestParameters: ReportPublicWorkflowEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportPublicWorkflowEvents200Response>;
2207
- /**
2208
- * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
2209
- * Restore a Version of a Workflow into the Draft
2210
- */
2211
- restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
2212
- /**
2213
- * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
2214
- * Restore a Version of a Workflow into the Draft
2215
- */
2216
- restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
2217
- /**
2218
- * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
2219
- * Resume a Paused Workflow
2220
- */
2221
- resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
2222
- /**
2223
- * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
2224
- * Resume a Paused Workflow
2225
- */
2226
- resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
2227
- /**
2228
- * 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.
2229
- * End one editor session of a managed user
2230
- */
2231
- revokeManagedUserEditorSessionRaw(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteManagedUser200Response>>;
2232
- /**
2233
- * 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.
2234
- * End one editor session of a managed user
2235
- */
2236
- revokeManagedUserEditorSession(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteManagedUser200Response>;
2237
- /**
2238
- * 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.
2239
- * End every editor session of a managed user
2240
- */
2241
- revokeManagedUserEditorSessionsRaw(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevokeManagedUserEditorSessionsResponse>>;
2242
- /**
2243
- * 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.
2244
- * End every editor session of a managed user
2245
- */
2246
- revokeManagedUserEditorSessions(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevokeManagedUserEditorSessionsResponse>;
2247
- /**
2248
- * 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.
2249
- * Make a secret to sign the context of your embeds
2250
- */
2251
- rotatePartnerEntryContextSecretRaw(requestParameters: RotatePartnerEntryContextSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSecretResponse>>;
2252
- /**
2253
- * 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.
2254
- * Make a secret to sign the context of your embeds
2255
- */
2256
- rotatePartnerEntryContextSecret(requestParameters: RotatePartnerEntryContextSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSecretResponse>;
2257
- /**
2258
- * 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.
2259
- * Make a new secret for your webhook
2260
- */
2261
- rotatePartnerWebhookSecretRaw(requestParameters: RotatePartnerWebhookSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsChangeResponse>>;
2262
- /**
2263
- * 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.
2264
- * Make a new secret for your webhook
2265
- */
2266
- rotatePartnerWebhookSecret(requestParameters: RotatePartnerWebhookSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsChangeResponse>;
2267
- /**
2268
- * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
2269
- * Save the Draft of a Workflow
2270
- */
2271
- saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
2272
- /**
2273
- * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
2274
- * Save the Draft of a Workflow
2275
- */
2276
- saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
2277
- /**
2278
- * 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.
2279
- * Send a test event to your webhook
2280
- */
2281
- sendPartnerNotificationTestEventRaw(requestParameters: SendPartnerNotificationTestEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationTestEventResultResponse>>;
2282
- /**
2283
- * 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.
2284
- * Send a test event to your webhook
2285
- */
2286
- sendPartnerNotificationTestEvent(requestParameters: SendPartnerNotificationTestEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationTestEventResultResponse>;
2287
- /**
2288
- * 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`).
2289
- * Bind a public JSON data source for embed refresh
2290
- */
2291
- setCompositionDataSourceRaw(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionDataSourceResponse>>;
2292
- /**
2293
- * 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`).
2294
- * Bind a public JSON data source for embed refresh
2295
- */
2296
- setCompositionDataSource(requestParameters: SetCompositionDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionDataSourceResponse>;
2297
- /**
2298
- * 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`.
2299
- * Set Dynamic Content
2300
- */
2301
- setDynamicContentRaw(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetDynamicContentResponse>>;
2302
- /**
2303
- * 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`.
2304
- * Set Dynamic Content
2305
- */
2306
- setDynamicContent(requestParameters: SetDynamicContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetDynamicContentResponse>;
2307
- /**
2308
- * 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.
2309
- * Set or clear design defaults for one managed user
2310
- */
2311
- setManagedUserDesignDefaultsRaw(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
2312
- /**
2313
- * 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.
2314
- * Set or clear design defaults for one managed user
2315
- */
2316
- setManagedUserDesignDefaults(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
2317
- /**
2318
- * 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.
2319
- * Set or clear the monthly credit cap for one managed user
2320
- */
2321
- setManagedUserLimitsRaw(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserLimits200Response>>;
2322
- /**
2323
- * 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.
2324
- * Set or clear the monthly credit cap for one managed user
2325
- */
2326
- setManagedUserLimits(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserLimits200Response>;
2327
- /**
2328
- * 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. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmPartnerAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, 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 do. 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.
2329
- * Connect an adapter key to a partner
2330
- */
2331
- setPartnerAdapterConnectionRaw(requestParameters: SetPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
2332
- /**
2333
- * 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. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmPartnerAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, 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 do. 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.
2334
- * Connect an adapter key to a partner
2335
- */
2336
- setPartnerAdapterConnection(requestParameters: SetPartnerAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
2337
- /**
2338
- * 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.
2339
- * Keep the data of a partner\'s compositions in a Neon database of its own
2340
- */
2341
- setPartnerDataDatabaseRaw(requestParameters: SetPartnerDataDatabaseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
2342
- /**
2343
- * 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.
2344
- * Keep the data of a partner\'s compositions in a Neon database of its own
2345
- */
2346
- setPartnerDataDatabase(requestParameters: SetPartnerDataDatabaseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
2347
- /**
2348
- * 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.
2349
- * Set or clear partner-wide design defaults
2350
- */
2351
- setPartnerDesignDefaultsRaw(requestParameters: SetPartnerDesignDefaultsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerDesignDefaults200Response>>;
2352
- /**
2353
- * 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.
2354
- * Set or clear partner-wide design defaults
2355
- */
2356
- setPartnerDesignDefaults(requestParameters: SetPartnerDesignDefaultsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerDesignDefaults200Response>;
2357
- /**
2358
- * 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.
2359
- * Make a widget a preset, or replace a preset
2360
- */
2361
- setPartnerPresetRaw(requestParameters: SetPartnerPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetResponse>>;
2362
- /**
2363
- * 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.
2364
- * Make a widget a preset, or replace a preset
2365
- */
2366
- setPartnerPreset(requestParameters: SetPartnerPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetResponse>;
2367
- /**
2368
- * 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.
2369
- * Set where a partner\'s uploaded files are stored
2370
- */
2371
- setPartnerStorageDestinationRaw(requestParameters: SetPartnerStorageDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
2372
- /**
2373
- * 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.
2374
- * Set where a partner\'s uploaded files are stored
2375
- */
2376
- setPartnerStorageDestination(requestParameters: SetPartnerStorageDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
2377
- /**
2378
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: 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. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
2379
- * Offer a workflow as a place to start, or replace what a key offers
2380
- */
2381
- setPartnerWorkflowPresetRaw(requestParameters: SetPartnerWorkflowPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetPartnerWorkflowPreset200Response>>;
2382
- /**
2383
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: 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. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
2384
- * Offer a workflow as a place to start, or replace what a key offers
2385
- */
2386
- setPartnerWorkflowPreset(requestParameters: SetPartnerWorkflowPresetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetPartnerWorkflowPreset200Response>;
2387
- /**
2388
- * 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. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, 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 do. 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.
2389
- * Connect an adapter key to an account
2390
- */
2391
- setUserAdapterConnectionRaw(requestParameters: SetUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetUserAdapterConnection200Response>>;
2392
- /**
2393
- * 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. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmUserAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, 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 do. 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.
2394
- * Connect an adapter key to an account
2395
- */
2396
- setUserAdapterConnection(requestParameters: SetUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetUserAdapterConnection200Response>;
2397
- /**
2398
- * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
2399
- * Unarchive a Workflow
2400
- */
2401
- unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
2402
- /**
2403
- * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
2404
- * Unarchive a Workflow
2405
- */
2406
- unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
2407
- /**
2408
- * Updates an existing canvas with the specified properties.
2409
- * Update Canvas
2410
- */
2411
- updateCanvasRaw(requestParameters: UpdateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasResponse>>;
2412
- /**
2413
- * Updates an existing canvas with the specified properties.
2414
- * Update Canvas
2415
- */
2416
- updateCanvas(requestParameters: UpdateCanvasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasResponse>;
2417
- /**
2418
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
2419
- * Update Composition
2420
- */
2421
- updateCompositionRaw(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
2422
- /**
2423
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
2424
- * Update Composition
2425
- */
2426
- updateComposition(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
2427
- /**
2428
- * 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`.
2429
- * Update Record In Composition Database
2430
- */
2431
- updateCompositionDatabaseRecordRaw(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionDatabaseRecord201Response>>;
2432
- /**
2433
- * 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`.
2434
- * Update Record In Composition Database
2435
- */
2436
- updateCompositionDatabaseRecord(requestParameters: UpdateCompositionDatabaseRecordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionDatabaseRecord201Response>;
2437
- /**
2438
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
2439
- * Update Composition Status
2440
- */
2441
- updateCompositionStatusRaw(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
2442
- /**
2443
- * Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
2444
- * Update Composition Status
2445
- */
2446
- updateCompositionStatus(requestParameters: UpdateCompositionStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
2447
- /**
2448
- * 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).
2449
- * Update Managed User
2450
- */
2451
- updateManagedUserRaw(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
2452
- /**
2453
- * 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).
2454
- * Update Managed User
2455
- */
2456
- updateManagedUser(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
2457
- /**
2458
- * 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.
2459
- * Require a signed context, or stop requiring it
2460
- */
2461
- updatePartnerEntryContextSigningRaw(requestParameters: UpdatePartnerEntryContextSigningOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerEntryContextSigningResponse>>;
2462
- /**
2463
- * 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.
2464
- * Require a signed context, or stop requiring it
2465
- */
2466
- updatePartnerEntryContextSigning(requestParameters: UpdatePartnerEntryContextSigningOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEntryContextSigningResponse>;
2467
- /**
2468
- * 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.
2469
- * Choose where your notifications go
2470
- */
2471
- updatePartnerNotificationSettingsRaw(requestParameters: UpdatePartnerNotificationSettingsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerNotificationSettingsChangeResponse>>;
2472
- /**
2473
- * 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.
2474
- * Choose where your notifications go
2475
- */
2476
- updatePartnerNotificationSettings(requestParameters: UpdatePartnerNotificationSettingsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerNotificationSettingsChangeResponse>;
2477
- /**
2478
- * 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.
2479
- * Change a website on your list
2480
- */
2481
- updatePersonalWorkspaceDomainRaw(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
2482
- /**
2483
- * 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.
2484
- * Change a website on your list
2485
- */
2486
- updatePersonalWorkspaceDomain(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
2487
- /**
2488
- * 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.
2489
- * Rename an API key, or switch it off or on
2490
- */
2491
- updateUserApiKeyRaw(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserApiKeyResponse>>;
2492
- /**
2493
- * 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.
2494
- * Rename an API key, or switch it off or on
2495
- */
2496
- updateUserApiKey(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserApiKeyResponse>;
2497
- /**
2498
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
2499
- * Send the file a visitor chose through the upload adapter of a published widget
2500
- */
2501
- uploadPublicCompositionAdapterFileRaw(requestParameters: UploadPublicCompositionAdapterFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAdapterFileResult>>;
2502
- /**
2503
- * The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **The virus check.** Before anything is stored, the file is checked for viruses, wherever it would be kept (Widgetic\'s storage or a partner\'s own bucket). A file that fails the check is refused with 422 `UPLOAD_FILE_UNSAFE` and nothing is stored. When the check cannot be done, nothing is stored either, and the answer is the same neutral 503 `UPLOAD_UNAVAILABLE` as for any other cause the visitor is not told. The ticket of a refused file is spent. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic\'s own sites, the visitor\'s own machine or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
2504
- * Send the file a visitor chose through the upload adapter of a published widget
2505
- */
2506
- uploadPublicCompositionAdapterFile(requestParameters: UploadPublicCompositionAdapterFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAdapterFileResult>;
2507
- /**
2508
- * 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.
2509
- * List the account\'s uploads
2510
- */
2511
- uploadsGetRaw(requestParameters: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsGet200Response>>;
2512
- /**
2513
- * 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.
2514
- * List the account\'s uploads
2515
- */
2516
- uploadsGet(requestParameters?: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsGet200Response>;
2517
- /**
2518
- * 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.
2519
- * Delete an upload
2520
- */
2521
- uploadsIdDeleteRaw(requestParameters: UploadsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsIdDelete200Response>>;
2522
- /**
2523
- * 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.
2524
- * Delete an upload
2525
- */
2526
- uploadsIdDelete(requestParameters: UploadsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsIdDelete200Response>;
2527
- /**
2528
- * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
2529
- * Get an upload by id
2530
- */
2531
- uploadsIdGetRaw(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadResponse>>;
2532
- /**
2533
- * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
2534
- * Get an upload by id
2535
- */
2536
- uploadsIdGet(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadResponse>;
2537
- /**
2538
- * 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).
2539
- * Upload size limits and accepted file types
2540
- */
2541
- uploadsLimitsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadLimitsResponse>>;
2542
- /**
2543
- * 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).
2544
- * Upload size limits and accepted file types
2545
- */
2546
- uploadsLimitsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponse>;
2547
- /**
2548
- * 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.
2549
- * Upload a file
2550
- */
2551
- uploadsPostRaw(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadResponse>>;
2552
- /**
2553
- * 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.
2554
- * Upload a file
2555
- */
2556
- uploadsPost(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadResponse>;
2557
- /**
2558
- * 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.
2559
- * Validate Content
2560
- */
2561
- validateCompositionContentRaw(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateCompositionContentResponse>>;
2562
- /**
2563
- * 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.
2564
- * Validate Content
2565
- */
2566
- validateCompositionContent(requestParameters: ValidateCompositionContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateCompositionContentResponse>;
2567
- /**
2568
- * Validate current authentication token
2569
- */
2570
- validateTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateToken200Response>>;
2571
- /**
2572
- * Validate current authentication token
2573
- */
2574
- validateToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateToken200Response>;
2575
- /**
2576
- * 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.
2577
- * Check that a partner\'s own database still works
2578
- */
2579
- verifyPartnerDataDatabaseRaw(requestParameters: VerifyPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDataDatabaseResponse>>;
2580
- /**
2581
- * 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.
2582
- * Check that a partner\'s own database still works
2583
- */
2584
- verifyPartnerDataDatabase(requestParameters: VerifyPartnerDataDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDataDatabaseResponse>;
2585
- /**
2586
- * 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.
2587
- * Check that a partner\'s storage destination still works
2588
- */
2589
- verifyPartnerStorageDestinationRaw(requestParameters: VerifyPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerStorageDestinationResponse>>;
2590
- /**
2591
- * 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.
2592
- * Check that a partner\'s storage destination still works
2593
- */
2594
- verifyPartnerStorageDestination(requestParameters: VerifyPartnerStorageDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerStorageDestinationResponse>;
2595
- }
2596
- /**
2597
- * @export
2598
- */
2599
- export declare const ExportCompositionEntryItemsFormatEnum: {
2600
- readonly Csv: 'csv';
2601
- readonly Json: 'json';
2602
- };
2603
- export type ExportCompositionEntryItemsFormatEnum = typeof ExportCompositionEntryItemsFormatEnum[keyof typeof ExportCompositionEntryItemsFormatEnum];
2604
- /**
2605
- * @export
2606
- */
2607
- export declare const ExportCompositionEntryItemsOrderEnum: {
2608
- readonly Asc: 'asc';
2609
- readonly Desc: 'desc';
2610
- };
2611
- export type ExportCompositionEntryItemsOrderEnum = typeof ExportCompositionEntryItemsOrderEnum[keyof typeof ExportCompositionEntryItemsOrderEnum];
2612
- /**
2613
- * @export
2614
- */
2615
- export declare const GetAllCompositionsWorkspaceEnum: {
2616
- readonly True: 'true';
2617
- readonly False: 'false';
2618
- };
2619
- export type GetAllCompositionsWorkspaceEnum = typeof GetAllCompositionsWorkspaceEnum[keyof typeof GetAllCompositionsWorkspaceEnum];
2620
- /**
2621
- * @export
2622
- */
2623
- export declare const GetAllCompositionsStatusEnum: {
2624
- readonly Draft: 'draft';
2625
- readonly Published: 'published';
2626
- readonly Archived: 'archived';
2627
- };
2628
- export type GetAllCompositionsStatusEnum = typeof GetAllCompositionsStatusEnum[keyof typeof GetAllCompositionsStatusEnum];
2629
- /**
2630
- * @export
2631
- */
2632
- export declare const GetInvoicesByPartnerIdStatusEnum: {
2633
- readonly Draft: 'draft';
2634
- readonly Open: 'open';
2635
- readonly Pending: 'pending';
2636
- readonly Paid: 'paid';
2637
- readonly Failed: 'failed';
2638
- readonly Void: 'void';
2639
- readonly Uncollectible: 'uncollectible';
2640
- readonly Refunded: 'refunded';
2641
- readonly Canceled: 'canceled';
2642
- };
2643
- export type GetInvoicesByPartnerIdStatusEnum = typeof GetInvoicesByPartnerIdStatusEnum[keyof typeof GetInvoicesByPartnerIdStatusEnum];
2644
- /**
2645
- * @export
2646
- */
2647
- export declare const ListCompositionEntryItemsOrderEnum: {
2648
- readonly Asc: 'asc';
2649
- readonly Desc: 'desc';
2650
- };
2651
- export type ListCompositionEntryItemsOrderEnum = typeof ListCompositionEntryItemsOrderEnum[keyof typeof ListCompositionEntryItemsOrderEnum];
2652
- /**
2653
- * @export
2654
- */
2655
- export declare const ListManagedUserEntriesOrderEnum: {
2656
- readonly Asc: 'asc';
2657
- readonly Desc: 'desc';
2658
- };
2659
- export type ListManagedUserEntriesOrderEnum = typeof ListManagedUserEntriesOrderEnum[keyof typeof ListManagedUserEntriesOrderEnum];
2660
- /**
2661
- * @export
2662
- */
2663
- export declare const ListWorkspaceWorkflowsStatusEnum: {
2664
- readonly Draft: 'draft';
2665
- readonly Live: 'live';
2666
- readonly Paused: 'paused';
2667
- readonly Archived: 'archived';
2668
- readonly All: 'all';
2669
- };
2670
- export type ListWorkspaceWorkflowsStatusEnum = typeof ListWorkspaceWorkflowsStatusEnum[keyof typeof ListWorkspaceWorkflowsStatusEnum];
2671
- /**
2672
- * @export
2673
- */
2674
- export declare const PostBrandKitFontStyleEnum: {
2675
- readonly Normal: 'normal';
2676
- readonly Italic: 'italic';
2677
- };
2678
- export type PostBrandKitFontStyleEnum = typeof PostBrandKitFontStyleEnum[keyof typeof PostBrandKitFontStyleEnum];
2679
- /**
2680
- * @export
2681
- */
2682
- export declare const UploadsPostContextTypeEnum: {
2683
- readonly WidgetCodegen: 'widget-codegen';
2684
- readonly BrowserIc: 'browser-ic';
2685
- readonly ContentProperty: 'content-property';
2686
- };
2687
- export type UploadsPostContextTypeEnum = typeof UploadsPostContextTypeEnum[keyof typeof UploadsPostContextTypeEnum];
2688
- /**
2689
- * @export
2690
- */
2691
- export declare const UploadsPostSourceEnum: {
2692
- readonly ChatUpload: 'chat-upload';
2693
- readonly ChatScreenshot: 'chat-screenshot';
2694
- readonly BrowserIcScreenshot: 'browser-ic-screenshot';
2695
- readonly PreviewScreenshot: 'preview-screenshot';
2696
- readonly FileBrowserUpload: 'file-browser-upload';
2697
- };
2698
- export type UploadsPostSourceEnum = typeof UploadsPostSourceEnum[keyof typeof UploadsPostSourceEnum];
2699
- /**
2700
- * @export
2701
- */
2702
- export declare const UploadsPostPurposeEnum: {
2703
- readonly Canvas: 'canvas';
2704
- readonly Chat: 'chat';
2705
- readonly Field: 'field';
2706
- };
2707
- export type UploadsPostPurposeEnum = typeof UploadsPostPurposeEnum[keyof typeof UploadsPostPurposeEnum];