@widgetic/api-sdk-ts 1.11.111 → 2.0.1

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