@djangocfg/api 1.2.4 → 1.2.6
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.
- package/dist/index.cjs +7562 -3753
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8096 -3976
- package/dist/index.d.ts +8096 -3976
- package/dist/index.mjs +7581 -3799
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/contexts/TasksContext.tsx +242 -0
- package/src/cfg/contexts/index.ts +3 -0
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +62 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +211 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +150 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +152 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard.ts +150 -0
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -57
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -8
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
- package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
- package/src/cfg/generated/_utils/fetchers/index.ts +5 -2
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +49 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_admin_api.ts +246 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +137 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_testing.ts +171 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard.ts +137 -0
- package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +29 -0
- package/src/cfg/generated/_utils/hooks/index.ts +5 -2
- package/src/cfg/generated/_utils/schemas/ActivityEntry.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelInfo.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResult.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoError.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryResult.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoInfoResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoInfoResult.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoMetrics.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoNodeInfo.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResult.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoProcess.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoStreamPosition.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ChannelList.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ChannelStatsSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ConnectionTokenRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ConnectionTokenResponse.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/HealthCheck.schema.ts +5 -7
- package/src/cfg/generated/_utils/schemas/ManualAckRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ManualAckResponse.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/OverviewStats.schema.ts +9 -12
- package/src/cfg/generated/_utils/schemas/PublishTestRequestRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/PublishTestResponse.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/QuickAction.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/StatCard.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/SystemHealth.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/SystemHealthItem.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/SystemMetrics.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/URLPattern.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/URLsList.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/UserStatistics.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/index.ts +42 -10
- package/src/cfg/generated/cfg__centrifugo/client.ts +30 -0
- package/src/cfg/generated/cfg__centrifugo/models.ts +0 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/client.ts +136 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +256 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +160 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/index.ts +2 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +92 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/client.ts +100 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/index.ts +2 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +88 -0
- package/src/cfg/generated/cfg__dashboard/client.ts +106 -0
- package/src/cfg/generated/cfg__dashboard/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard/models.ts +108 -0
- package/src/cfg/generated/cfg__endpoints/client.ts +16 -0
- package/src/cfg/generated/cfg__endpoints/models.ts +44 -0
- package/src/cfg/generated/cfg__health/models.ts +7 -11
- package/src/cfg/generated/client.ts +15 -6
- package/src/cfg/generated/enums.ts +56 -0
- package/src/cfg/generated/index.ts +32 -20
- package/src/cfg/generated/schema.ts +4840 -2127
- package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_monitoring.ts +0 -179
- package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_testing.ts +0 -151
- package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_monitoring.ts +0 -166
- package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_testing.ts +0 -162
- package/src/cfg/generated/_utils/schemas/LoadTestRequestRequest.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/LoadTestResponse.schema.ts +0 -21
- package/src/cfg/generated/_utils/schemas/LoadTestStatus.schema.ts +0 -27
- package/src/cfg/generated/_utils/schemas/MethodStat.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/MethodStats.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/NotificationStats.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/RPCRequest.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/TestRPCRequestRequest.schema.ts +0 -21
- package/src/cfg/generated/_utils/schemas/TestRPCResponse.schema.ts +0 -23
- package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/client.ts +0 -136
- package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/models.ts +0 -144
- package/src/cfg/generated/cfg__ipc__ipcrpc_testing/client.ts +0 -96
- package/src/cfg/generated/cfg__ipc__ipcrpc_testing/models.ts +0 -88
- /package/src/cfg/generated/{cfg__ipc__ipcrpc_monitoring → cfg__centrifugo}/index.ts +0 -0
- /package/src/cfg/generated/{cfg__ipc__ipcrpc_testing → cfg__centrifugo__centrifugo_admin_api}/index.ts +0 -0
|
@@ -82,7 +82,7 @@ import type { API } from '../../index'
|
|
|
82
82
|
* @method GET
|
|
83
83
|
* @path /cfg/knowbase/admin/chat/
|
|
84
84
|
*/
|
|
85
|
-
export async function getKnowbaseAdminChatList( params?: { page?: number; page_size?: number }, client
|
|
85
|
+
export async function getKnowbaseAdminChatList( params?: { page?: number; page_size?: number }, client?: API
|
|
86
86
|
): Promise<PaginatedChatResponseList> {
|
|
87
87
|
const api = client || getAPIInstance()
|
|
88
88
|
const response = await api.cfg_knowbase.adminChatList(params?.page, params?.page_size)
|
|
@@ -96,7 +96,7 @@ export async function getKnowbaseAdminChatList( params?: { page?: number; page_
|
|
|
96
96
|
* @method POST
|
|
97
97
|
* @path /cfg/knowbase/admin/chat/
|
|
98
98
|
*/
|
|
99
|
-
export async function createKnowbaseAdminChatCreate( data: ChatResponseRequest, client
|
|
99
|
+
export async function createKnowbaseAdminChatCreate( data: ChatResponseRequest, client?: API
|
|
100
100
|
): Promise<ChatResponse> {
|
|
101
101
|
const api = client || getAPIInstance()
|
|
102
102
|
const response = await api.cfg_knowbase.adminChatCreate(data)
|
|
@@ -110,7 +110,7 @@ export async function createKnowbaseAdminChatCreate( data: ChatResponseRequest,
|
|
|
110
110
|
* @method GET
|
|
111
111
|
* @path /cfg/knowbase/admin/chat/{id}/
|
|
112
112
|
*/
|
|
113
|
-
export async function getKnowbaseAdminChatRetrieve( id: string, client
|
|
113
|
+
export async function getKnowbaseAdminChatRetrieve( id: string, client?: API
|
|
114
114
|
): Promise<ChatResponse> {
|
|
115
115
|
const api = client || getAPIInstance()
|
|
116
116
|
const response = await api.cfg_knowbase.adminChatRetrieve(id)
|
|
@@ -124,7 +124,7 @@ export async function getKnowbaseAdminChatRetrieve( id: string, client?
|
|
|
124
124
|
* @method PUT
|
|
125
125
|
* @path /cfg/knowbase/admin/chat/{id}/
|
|
126
126
|
*/
|
|
127
|
-
export async function updateKnowbaseAdminChatUpdate( id: string, data: ChatResponseRequest, client
|
|
127
|
+
export async function updateKnowbaseAdminChatUpdate( id: string, data: ChatResponseRequest, client?: API
|
|
128
128
|
): Promise<ChatResponse> {
|
|
129
129
|
const api = client || getAPIInstance()
|
|
130
130
|
const response = await api.cfg_knowbase.adminChatUpdate(id, data)
|
|
@@ -138,7 +138,7 @@ export async function updateKnowbaseAdminChatUpdate( id: string, data: ChatResp
|
|
|
138
138
|
* @method PATCH
|
|
139
139
|
* @path /cfg/knowbase/admin/chat/{id}/
|
|
140
140
|
*/
|
|
141
|
-
export async function partialUpdateKnowbaseAdminChatPartialUpdate( id: string, data?: PatchedChatResponseRequest, client
|
|
141
|
+
export async function partialUpdateKnowbaseAdminChatPartialUpdate( id: string, data?: PatchedChatResponseRequest, client?: API
|
|
142
142
|
): Promise<ChatResponse> {
|
|
143
143
|
const api = client || getAPIInstance()
|
|
144
144
|
const response = await api.cfg_knowbase.adminChatPartialUpdate(id, data)
|
|
@@ -152,7 +152,7 @@ export async function partialUpdateKnowbaseAdminChatPartialUpdate( id: string,
|
|
|
152
152
|
* @method DELETE
|
|
153
153
|
* @path /cfg/knowbase/admin/chat/{id}/
|
|
154
154
|
*/
|
|
155
|
-
export async function deleteKnowbaseAdminChatDestroy( id: string, client
|
|
155
|
+
export async function deleteKnowbaseAdminChatDestroy( id: string, client?: API
|
|
156
156
|
): Promise<void> {
|
|
157
157
|
const api = client || getAPIInstance()
|
|
158
158
|
const response = await api.cfg_knowbase.adminChatDestroy(id)
|
|
@@ -166,7 +166,7 @@ export async function deleteKnowbaseAdminChatDestroy( id: string, client?
|
|
|
166
166
|
* @method GET
|
|
167
167
|
* @path /cfg/knowbase/admin/chat/{id}/history/
|
|
168
168
|
*/
|
|
169
|
-
export async function getKnowbaseAdminChatHistoryRetrieve( id: string, client
|
|
169
|
+
export async function getKnowbaseAdminChatHistoryRetrieve( id: string, client?: API
|
|
170
170
|
): Promise<ChatHistory> {
|
|
171
171
|
const api = client || getAPIInstance()
|
|
172
172
|
const response = await api.cfg_knowbase.adminChatHistoryRetrieve(id)
|
|
@@ -180,7 +180,7 @@ export async function getKnowbaseAdminChatHistoryRetrieve( id: string, client?
|
|
|
180
180
|
* @method POST
|
|
181
181
|
* @path /cfg/knowbase/admin/chat/query/
|
|
182
182
|
*/
|
|
183
|
-
export async function createKnowbaseAdminChatQueryCreate( data: ChatQueryRequest, client
|
|
183
|
+
export async function createKnowbaseAdminChatQueryCreate( data: ChatQueryRequest, client?: API
|
|
184
184
|
): Promise<ChatResponse> {
|
|
185
185
|
const api = client || getAPIInstance()
|
|
186
186
|
const response = await api.cfg_knowbase.adminChatQueryCreate(data)
|
|
@@ -194,7 +194,7 @@ export async function createKnowbaseAdminChatQueryCreate( data: ChatQueryReques
|
|
|
194
194
|
* @method GET
|
|
195
195
|
* @path /cfg/knowbase/admin/documents/
|
|
196
196
|
*/
|
|
197
|
-
export async function getKnowbaseAdminDocumentsList( params?: { page?: number; page_size?: number; status?: string }, client
|
|
197
|
+
export async function getKnowbaseAdminDocumentsList( params?: { page?: number; page_size?: number; status?: string }, client?: API
|
|
198
198
|
): Promise<PaginatedDocumentList> {
|
|
199
199
|
const api = client || getAPIInstance()
|
|
200
200
|
const response = await api.cfg_knowbase.adminDocumentsList(params?.page, params?.page_size, params?.status)
|
|
@@ -208,7 +208,7 @@ export async function getKnowbaseAdminDocumentsList( params?: { page?: number;
|
|
|
208
208
|
* @method POST
|
|
209
209
|
* @path /cfg/knowbase/admin/documents/
|
|
210
210
|
*/
|
|
211
|
-
export async function createKnowbaseAdminDocumentsCreate( data: DocumentCreateRequest, client
|
|
211
|
+
export async function createKnowbaseAdminDocumentsCreate( data: DocumentCreateRequest, client?: API
|
|
212
212
|
): Promise<Document> {
|
|
213
213
|
const api = client || getAPIInstance()
|
|
214
214
|
const response = await api.cfg_knowbase.adminDocumentsCreate(data)
|
|
@@ -222,7 +222,7 @@ export async function createKnowbaseAdminDocumentsCreate( data: DocumentCreateR
|
|
|
222
222
|
* @method GET
|
|
223
223
|
* @path /cfg/knowbase/admin/documents/{id}/
|
|
224
224
|
*/
|
|
225
|
-
export async function getKnowbaseAdminDocumentsRetrieve( id: string, client
|
|
225
|
+
export async function getKnowbaseAdminDocumentsRetrieve( id: string, client?: API
|
|
226
226
|
): Promise<Document> {
|
|
227
227
|
const api = client || getAPIInstance()
|
|
228
228
|
const response = await api.cfg_knowbase.adminDocumentsRetrieve(id)
|
|
@@ -236,7 +236,7 @@ export async function getKnowbaseAdminDocumentsRetrieve( id: string, client?
|
|
|
236
236
|
* @method PUT
|
|
237
237
|
* @path /cfg/knowbase/admin/documents/{id}/
|
|
238
238
|
*/
|
|
239
|
-
export async function updateKnowbaseAdminDocumentsUpdate( id: string, data: DocumentRequest, client
|
|
239
|
+
export async function updateKnowbaseAdminDocumentsUpdate( id: string, data: DocumentRequest, client?: API
|
|
240
240
|
): Promise<Document> {
|
|
241
241
|
const api = client || getAPIInstance()
|
|
242
242
|
const response = await api.cfg_knowbase.adminDocumentsUpdate(id, data)
|
|
@@ -250,7 +250,7 @@ export async function updateKnowbaseAdminDocumentsUpdate( id: string, data: Doc
|
|
|
250
250
|
* @method PATCH
|
|
251
251
|
* @path /cfg/knowbase/admin/documents/{id}/
|
|
252
252
|
*/
|
|
253
|
-
export async function partialUpdateKnowbaseAdminDocumentsPartialUpdate( id: string, data?: PatchedDocumentRequest, client
|
|
253
|
+
export async function partialUpdateKnowbaseAdminDocumentsPartialUpdate( id: string, data?: PatchedDocumentRequest, client?: API
|
|
254
254
|
): Promise<Document> {
|
|
255
255
|
const api = client || getAPIInstance()
|
|
256
256
|
const response = await api.cfg_knowbase.adminDocumentsPartialUpdate(id, data)
|
|
@@ -264,7 +264,7 @@ export async function partialUpdateKnowbaseAdminDocumentsPartialUpdate( id: str
|
|
|
264
264
|
* @method DELETE
|
|
265
265
|
* @path /cfg/knowbase/admin/documents/{id}/
|
|
266
266
|
*/
|
|
267
|
-
export async function deleteKnowbaseAdminDocumentsDestroy( id: string, client
|
|
267
|
+
export async function deleteKnowbaseAdminDocumentsDestroy( id: string, client?: API
|
|
268
268
|
): Promise<void> {
|
|
269
269
|
const api = client || getAPIInstance()
|
|
270
270
|
const response = await api.cfg_knowbase.adminDocumentsDestroy(id)
|
|
@@ -278,7 +278,7 @@ export async function deleteKnowbaseAdminDocumentsDestroy( id: string, client?
|
|
|
278
278
|
* @method POST
|
|
279
279
|
* @path /cfg/knowbase/admin/documents/{id}/reprocess/
|
|
280
280
|
*/
|
|
281
|
-
export async function createKnowbaseAdminDocumentsReprocessCreate( id: string, data: DocumentRequest, client
|
|
281
|
+
export async function createKnowbaseAdminDocumentsReprocessCreate( id: string, data: DocumentRequest, client?: API
|
|
282
282
|
): Promise<Document> {
|
|
283
283
|
const api = client || getAPIInstance()
|
|
284
284
|
const response = await api.cfg_knowbase.adminDocumentsReprocessCreate(id, data)
|
|
@@ -292,7 +292,7 @@ export async function createKnowbaseAdminDocumentsReprocessCreate( id: string,
|
|
|
292
292
|
* @method GET
|
|
293
293
|
* @path /cfg/knowbase/admin/documents/{id}/status/
|
|
294
294
|
*/
|
|
295
|
-
export async function getKnowbaseAdminDocumentsStatusRetrieve( id: string, client
|
|
295
|
+
export async function getKnowbaseAdminDocumentsStatusRetrieve( id: string, client?: API
|
|
296
296
|
): Promise<DocumentProcessingStatus> {
|
|
297
297
|
const api = client || getAPIInstance()
|
|
298
298
|
const response = await api.cfg_knowbase.adminDocumentsStatusRetrieve(id)
|
|
@@ -306,7 +306,7 @@ export async function getKnowbaseAdminDocumentsStatusRetrieve( id: string, cli
|
|
|
306
306
|
* @method GET
|
|
307
307
|
* @path /cfg/knowbase/admin/documents/stats/
|
|
308
308
|
*/
|
|
309
|
-
export async function getKnowbaseAdminDocumentsStatsRetrieve( client
|
|
309
|
+
export async function getKnowbaseAdminDocumentsStatsRetrieve( client?: API
|
|
310
310
|
): Promise<DocumentStats> {
|
|
311
311
|
const api = client || getAPIInstance()
|
|
312
312
|
const response = await api.cfg_knowbase.adminDocumentsStatsRetrieve()
|
|
@@ -320,7 +320,7 @@ export async function getKnowbaseAdminDocumentsStatsRetrieve( client?
|
|
|
320
320
|
* @method GET
|
|
321
321
|
* @path /cfg/knowbase/admin/sessions/
|
|
322
322
|
*/
|
|
323
|
-
export async function getKnowbaseAdminSessionsList( params?: { page?: number; page_size?: number }, client
|
|
323
|
+
export async function getKnowbaseAdminSessionsList( params?: { page?: number; page_size?: number }, client?: API
|
|
324
324
|
): Promise<PaginatedChatSessionList> {
|
|
325
325
|
const api = client || getAPIInstance()
|
|
326
326
|
const response = await api.cfg_knowbase.adminSessionsList(params?.page, params?.page_size)
|
|
@@ -334,7 +334,7 @@ export async function getKnowbaseAdminSessionsList( params?: { page?: number; p
|
|
|
334
334
|
* @method POST
|
|
335
335
|
* @path /cfg/knowbase/admin/sessions/
|
|
336
336
|
*/
|
|
337
|
-
export async function createKnowbaseAdminSessionsCreate( data: ChatSessionCreateRequest, client
|
|
337
|
+
export async function createKnowbaseAdminSessionsCreate( data: ChatSessionCreateRequest, client?: API
|
|
338
338
|
): Promise<ChatSession> {
|
|
339
339
|
const api = client || getAPIInstance()
|
|
340
340
|
const response = await api.cfg_knowbase.adminSessionsCreate(data)
|
|
@@ -348,7 +348,7 @@ export async function createKnowbaseAdminSessionsCreate( data: ChatSessionCreat
|
|
|
348
348
|
* @method GET
|
|
349
349
|
* @path /cfg/knowbase/admin/sessions/{id}/
|
|
350
350
|
*/
|
|
351
|
-
export async function getKnowbaseAdminSessionsRetrieve( id: string, client
|
|
351
|
+
export async function getKnowbaseAdminSessionsRetrieve( id: string, client?: API
|
|
352
352
|
): Promise<ChatSession> {
|
|
353
353
|
const api = client || getAPIInstance()
|
|
354
354
|
const response = await api.cfg_knowbase.adminSessionsRetrieve(id)
|
|
@@ -362,7 +362,7 @@ export async function getKnowbaseAdminSessionsRetrieve( id: string, client?
|
|
|
362
362
|
* @method PUT
|
|
363
363
|
* @path /cfg/knowbase/admin/sessions/{id}/
|
|
364
364
|
*/
|
|
365
|
-
export async function updateKnowbaseAdminSessionsUpdate( id: string, data: ChatSessionRequest, client
|
|
365
|
+
export async function updateKnowbaseAdminSessionsUpdate( id: string, data: ChatSessionRequest, client?: API
|
|
366
366
|
): Promise<ChatSession> {
|
|
367
367
|
const api = client || getAPIInstance()
|
|
368
368
|
const response = await api.cfg_knowbase.adminSessionsUpdate(id, data)
|
|
@@ -376,7 +376,7 @@ export async function updateKnowbaseAdminSessionsUpdate( id: string, data: Chat
|
|
|
376
376
|
* @method PATCH
|
|
377
377
|
* @path /cfg/knowbase/admin/sessions/{id}/
|
|
378
378
|
*/
|
|
379
|
-
export async function partialUpdateKnowbaseAdminSessionsPartialUpdate( id: string, data?: PatchedChatSessionRequest, client
|
|
379
|
+
export async function partialUpdateKnowbaseAdminSessionsPartialUpdate( id: string, data?: PatchedChatSessionRequest, client?: API
|
|
380
380
|
): Promise<ChatSession> {
|
|
381
381
|
const api = client || getAPIInstance()
|
|
382
382
|
const response = await api.cfg_knowbase.adminSessionsPartialUpdate(id, data)
|
|
@@ -390,7 +390,7 @@ export async function partialUpdateKnowbaseAdminSessionsPartialUpdate( id: stri
|
|
|
390
390
|
* @method DELETE
|
|
391
391
|
* @path /cfg/knowbase/admin/sessions/{id}/
|
|
392
392
|
*/
|
|
393
|
-
export async function deleteKnowbaseAdminSessionsDestroy( id: string, client
|
|
393
|
+
export async function deleteKnowbaseAdminSessionsDestroy( id: string, client?: API
|
|
394
394
|
): Promise<void> {
|
|
395
395
|
const api = client || getAPIInstance()
|
|
396
396
|
const response = await api.cfg_knowbase.adminSessionsDestroy(id)
|
|
@@ -404,7 +404,7 @@ export async function deleteKnowbaseAdminSessionsDestroy( id: string, client?
|
|
|
404
404
|
* @method POST
|
|
405
405
|
* @path /cfg/knowbase/admin/sessions/{id}/activate/
|
|
406
406
|
*/
|
|
407
|
-
export async function createKnowbaseAdminSessionsActivateCreate( id: string, data: ChatSessionRequest, client
|
|
407
|
+
export async function createKnowbaseAdminSessionsActivateCreate( id: string, data: ChatSessionRequest, client?: API
|
|
408
408
|
): Promise<ChatSession> {
|
|
409
409
|
const api = client || getAPIInstance()
|
|
410
410
|
const response = await api.cfg_knowbase.adminSessionsActivateCreate(id, data)
|
|
@@ -418,7 +418,7 @@ export async function createKnowbaseAdminSessionsActivateCreate( id: string, da
|
|
|
418
418
|
* @method POST
|
|
419
419
|
* @path /cfg/knowbase/admin/sessions/{id}/archive/
|
|
420
420
|
*/
|
|
421
|
-
export async function createKnowbaseAdminSessionsArchiveCreate( id: string, data: ChatSessionRequest, client
|
|
421
|
+
export async function createKnowbaseAdminSessionsArchiveCreate( id: string, data: ChatSessionRequest, client?: API
|
|
422
422
|
): Promise<ChatSession> {
|
|
423
423
|
const api = client || getAPIInstance()
|
|
424
424
|
const response = await api.cfg_knowbase.adminSessionsArchiveCreate(id, data)
|
|
@@ -432,7 +432,7 @@ export async function createKnowbaseAdminSessionsArchiveCreate( id: string, dat
|
|
|
432
432
|
* @method GET
|
|
433
433
|
* @path /cfg/knowbase/categories/
|
|
434
434
|
*/
|
|
435
|
-
export async function getKnowbaseCategoriesList( params?: { page?: number; page_size?: number }, client
|
|
435
|
+
export async function getKnowbaseCategoriesList( params?: { page?: number; page_size?: number }, client?: API
|
|
436
436
|
): Promise<PaginatedPublicCategoryList> {
|
|
437
437
|
const api = client || getAPIInstance()
|
|
438
438
|
const response = await api.cfg_knowbase.categoriesList(params?.page, params?.page_size)
|
|
@@ -446,7 +446,7 @@ export async function getKnowbaseCategoriesList( params?: { page?: number; page
|
|
|
446
446
|
* @method GET
|
|
447
447
|
* @path /cfg/knowbase/categories/{id}/
|
|
448
448
|
*/
|
|
449
|
-
export async function getKnowbaseCategoriesRetrieve( id: string, client
|
|
449
|
+
export async function getKnowbaseCategoriesRetrieve( id: string, client?: API
|
|
450
450
|
): Promise<PublicCategory> {
|
|
451
451
|
const api = client || getAPIInstance()
|
|
452
452
|
const response = await api.cfg_knowbase.categoriesRetrieve(id)
|
|
@@ -460,7 +460,7 @@ export async function getKnowbaseCategoriesRetrieve( id: string, client?
|
|
|
460
460
|
* @method GET
|
|
461
461
|
* @path /cfg/knowbase/documents/
|
|
462
462
|
*/
|
|
463
|
-
export async function getKnowbaseDocumentsList( params?: { category?: string; page?: number; page_size?: number; search?: string }, client
|
|
463
|
+
export async function getKnowbaseDocumentsList( params?: { category?: string; page?: number; page_size?: number; search?: string }, client?: API
|
|
464
464
|
): Promise<PaginatedPublicDocumentListList> {
|
|
465
465
|
const api = client || getAPIInstance()
|
|
466
466
|
const response = await api.cfg_knowbase.documentsList(params?.category, params?.page, params?.page_size, params?.search)
|
|
@@ -474,7 +474,7 @@ export async function getKnowbaseDocumentsList( params?: { category?: string; p
|
|
|
474
474
|
* @method GET
|
|
475
475
|
* @path /cfg/knowbase/documents/{id}/
|
|
476
476
|
*/
|
|
477
|
-
export async function getKnowbaseDocumentsRetrieve( id: string, client
|
|
477
|
+
export async function getKnowbaseDocumentsRetrieve( id: string, client?: API
|
|
478
478
|
): Promise<PublicDocument> {
|
|
479
479
|
const api = client || getAPIInstance()
|
|
480
480
|
const response = await api.cfg_knowbase.documentsRetrieve(id)
|
|
@@ -488,7 +488,7 @@ export async function getKnowbaseDocumentsRetrieve( id: string, client?
|
|
|
488
488
|
* @method GET
|
|
489
489
|
* @path /cfg/knowbase/system/archives/
|
|
490
490
|
*/
|
|
491
|
-
export async function getKnowbaseSystemArchivesList( params?: { page?: number; page_size?: number }, client
|
|
491
|
+
export async function getKnowbaseSystemArchivesList( params?: { page?: number; page_size?: number }, client?: API
|
|
492
492
|
): Promise<PaginatedDocumentArchiveListList> {
|
|
493
493
|
const api = client || getAPIInstance()
|
|
494
494
|
const response = await api.cfg_knowbase.systemArchivesList(params?.page, params?.page_size)
|
|
@@ -502,7 +502,7 @@ export async function getKnowbaseSystemArchivesList( params?: { page?: number;
|
|
|
502
502
|
* @method POST
|
|
503
503
|
* @path /cfg/knowbase/system/archives/
|
|
504
504
|
*/
|
|
505
|
-
export async function createKnowbaseSystemArchivesCreate( data: any, client
|
|
505
|
+
export async function createKnowbaseSystemArchivesCreate( data: any, client?: API
|
|
506
506
|
): Promise<ArchiveProcessingResult> {
|
|
507
507
|
const api = client || getAPIInstance()
|
|
508
508
|
const response = await api.cfg_knowbase.systemArchivesCreate(data)
|
|
@@ -516,7 +516,7 @@ export async function createKnowbaseSystemArchivesCreate( data: any, client?
|
|
|
516
516
|
* @method GET
|
|
517
517
|
* @path /cfg/knowbase/system/archives/{id}/
|
|
518
518
|
*/
|
|
519
|
-
export async function getKnowbaseSystemArchivesRetrieve( id: string, client
|
|
519
|
+
export async function getKnowbaseSystemArchivesRetrieve( id: string, client?: API
|
|
520
520
|
): Promise<DocumentArchiveDetail> {
|
|
521
521
|
const api = client || getAPIInstance()
|
|
522
522
|
const response = await api.cfg_knowbase.systemArchivesRetrieve(id)
|
|
@@ -530,7 +530,7 @@ export async function getKnowbaseSystemArchivesRetrieve( id: string, client?
|
|
|
530
530
|
* @method PUT
|
|
531
531
|
* @path /cfg/knowbase/system/archives/{id}/
|
|
532
532
|
*/
|
|
533
|
-
export async function updateKnowbaseSystemArchivesUpdate( id: string, data: DocumentArchiveRequest, client
|
|
533
|
+
export async function updateKnowbaseSystemArchivesUpdate( id: string, data: DocumentArchiveRequest, client?: API
|
|
534
534
|
): Promise<DocumentArchive> {
|
|
535
535
|
const api = client || getAPIInstance()
|
|
536
536
|
const response = await api.cfg_knowbase.systemArchivesUpdate(id, data)
|
|
@@ -544,7 +544,7 @@ export async function updateKnowbaseSystemArchivesUpdate( id: string, data: Doc
|
|
|
544
544
|
* @method PATCH
|
|
545
545
|
* @path /cfg/knowbase/system/archives/{id}/
|
|
546
546
|
*/
|
|
547
|
-
export async function partialUpdateKnowbaseSystemArchivesPartialUpdate( id: string, data?: PatchedDocumentArchiveRequest, client
|
|
547
|
+
export async function partialUpdateKnowbaseSystemArchivesPartialUpdate( id: string, data?: PatchedDocumentArchiveRequest, client?: API
|
|
548
548
|
): Promise<DocumentArchive> {
|
|
549
549
|
const api = client || getAPIInstance()
|
|
550
550
|
const response = await api.cfg_knowbase.systemArchivesPartialUpdate(id, data)
|
|
@@ -558,7 +558,7 @@ export async function partialUpdateKnowbaseSystemArchivesPartialUpdate( id: str
|
|
|
558
558
|
* @method DELETE
|
|
559
559
|
* @path /cfg/knowbase/system/archives/{id}/
|
|
560
560
|
*/
|
|
561
|
-
export async function deleteKnowbaseSystemArchivesDestroy( id: string, client
|
|
561
|
+
export async function deleteKnowbaseSystemArchivesDestroy( id: string, client?: API
|
|
562
562
|
): Promise<void> {
|
|
563
563
|
const api = client || getAPIInstance()
|
|
564
564
|
const response = await api.cfg_knowbase.systemArchivesDestroy(id)
|
|
@@ -572,7 +572,7 @@ export async function deleteKnowbaseSystemArchivesDestroy( id: string, client?
|
|
|
572
572
|
* @method GET
|
|
573
573
|
* @path /cfg/knowbase/system/archives/{id}/file_tree/
|
|
574
574
|
*/
|
|
575
|
-
export async function getKnowbaseSystemArchivesFileTreeRetrieve( id: string, client
|
|
575
|
+
export async function getKnowbaseSystemArchivesFileTreeRetrieve( id: string, client?: API
|
|
576
576
|
): Promise<any> {
|
|
577
577
|
const api = client || getAPIInstance()
|
|
578
578
|
const response = await api.cfg_knowbase.systemArchivesFileTreeRetrieve(id)
|
|
@@ -586,7 +586,7 @@ export async function getKnowbaseSystemArchivesFileTreeRetrieve( id: string, c
|
|
|
586
586
|
* @method GET
|
|
587
587
|
* @path /cfg/knowbase/system/archives/{id}/items/
|
|
588
588
|
*/
|
|
589
|
-
export async function getKnowbaseSystemArchivesItemsList( id: string, params?: { page?: number; page_size?: number }, client
|
|
589
|
+
export async function getKnowbaseSystemArchivesItemsList( id: string, params?: { page?: number; page_size?: number }, client?: API
|
|
590
590
|
): Promise<PaginatedArchiveItemList> {
|
|
591
591
|
const api = client || getAPIInstance()
|
|
592
592
|
const response = await api.cfg_knowbase.systemArchivesItemsList(id, params?.page, params?.page_size)
|
|
@@ -600,7 +600,7 @@ export async function getKnowbaseSystemArchivesItemsList( id: string, params?:
|
|
|
600
600
|
* @method POST
|
|
601
601
|
* @path /cfg/knowbase/system/archives/{id}/search/
|
|
602
602
|
*/
|
|
603
|
-
export async function createKnowbaseSystemArchivesSearchCreate( id: string, data: ArchiveSearchRequestRequest, params?: { page?: number; page_size?: number }, client
|
|
603
|
+
export async function createKnowbaseSystemArchivesSearchCreate( id: string, data: ArchiveSearchRequestRequest, params?: { page?: number; page_size?: number }, client?: API
|
|
604
604
|
): Promise<PaginatedArchiveSearchResultList> {
|
|
605
605
|
const api = client || getAPIInstance()
|
|
606
606
|
const response = await api.cfg_knowbase.systemArchivesSearchCreate(id, data, params?.page, params?.page_size)
|
|
@@ -614,7 +614,7 @@ export async function createKnowbaseSystemArchivesSearchCreate( id: string, dat
|
|
|
614
614
|
* @method POST
|
|
615
615
|
* @path /cfg/knowbase/system/archives/revectorize/
|
|
616
616
|
*/
|
|
617
|
-
export async function createKnowbaseSystemArchivesRevectorizeCreate( data: ChunkRevectorizationRequestRequest, client
|
|
617
|
+
export async function createKnowbaseSystemArchivesRevectorizeCreate( data: ChunkRevectorizationRequestRequest, client?: API
|
|
618
618
|
): Promise<VectorizationResult> {
|
|
619
619
|
const api = client || getAPIInstance()
|
|
620
620
|
const response = await api.cfg_knowbase.systemArchivesRevectorizeCreate(data)
|
|
@@ -628,7 +628,7 @@ export async function createKnowbaseSystemArchivesRevectorizeCreate( data: Chun
|
|
|
628
628
|
* @method GET
|
|
629
629
|
* @path /cfg/knowbase/system/archives/statistics/
|
|
630
630
|
*/
|
|
631
|
-
export async function getKnowbaseSystemArchivesStatisticsRetrieve( client
|
|
631
|
+
export async function getKnowbaseSystemArchivesStatisticsRetrieve( client?: API
|
|
632
632
|
): Promise<ArchiveStatistics> {
|
|
633
633
|
const api = client || getAPIInstance()
|
|
634
634
|
const response = await api.cfg_knowbase.systemArchivesStatisticsRetrieve()
|
|
@@ -642,7 +642,7 @@ export async function getKnowbaseSystemArchivesStatisticsRetrieve( client?
|
|
|
642
642
|
* @method GET
|
|
643
643
|
* @path /cfg/knowbase/system/archives/vectorization_stats/
|
|
644
644
|
*/
|
|
645
|
-
export async function getKnowbaseSystemArchivesVectorizationStatsRetrieve( client
|
|
645
|
+
export async function getKnowbaseSystemArchivesVectorizationStatsRetrieve( client?: API
|
|
646
646
|
): Promise<VectorizationStatistics> {
|
|
647
647
|
const api = client || getAPIInstance()
|
|
648
648
|
const response = await api.cfg_knowbase.systemArchivesVectorizationStatsRetrieve()
|
|
@@ -656,7 +656,7 @@ export async function getKnowbaseSystemArchivesVectorizationStatsRetrieve( clie
|
|
|
656
656
|
* @method GET
|
|
657
657
|
* @path /cfg/knowbase/system/chunks/
|
|
658
658
|
*/
|
|
659
|
-
export async function getKnowbaseSystemChunksList( params?: { page?: number; page_size?: number }, client
|
|
659
|
+
export async function getKnowbaseSystemChunksList( params?: { page?: number; page_size?: number }, client?: API
|
|
660
660
|
): Promise<PaginatedArchiveItemChunkList> {
|
|
661
661
|
const api = client || getAPIInstance()
|
|
662
662
|
const response = await api.cfg_knowbase.systemChunksList(params?.page, params?.page_size)
|
|
@@ -670,7 +670,7 @@ export async function getKnowbaseSystemChunksList( params?: { page?: number; pa
|
|
|
670
670
|
* @method POST
|
|
671
671
|
* @path /cfg/knowbase/system/chunks/
|
|
672
672
|
*/
|
|
673
|
-
export async function createKnowbaseSystemChunksCreate( data: ArchiveItemChunkRequest, client
|
|
673
|
+
export async function createKnowbaseSystemChunksCreate( data: ArchiveItemChunkRequest, client?: API
|
|
674
674
|
): Promise<ArchiveItemChunk> {
|
|
675
675
|
const api = client || getAPIInstance()
|
|
676
676
|
const response = await api.cfg_knowbase.systemChunksCreate(data)
|
|
@@ -684,7 +684,7 @@ export async function createKnowbaseSystemChunksCreate( data: ArchiveItemChunkR
|
|
|
684
684
|
* @method GET
|
|
685
685
|
* @path /cfg/knowbase/system/chunks/{id}/
|
|
686
686
|
*/
|
|
687
|
-
export async function getKnowbaseSystemChunksRetrieve( id: string, client
|
|
687
|
+
export async function getKnowbaseSystemChunksRetrieve( id: string, client?: API
|
|
688
688
|
): Promise<ArchiveItemChunkDetail> {
|
|
689
689
|
const api = client || getAPIInstance()
|
|
690
690
|
const response = await api.cfg_knowbase.systemChunksRetrieve(id)
|
|
@@ -698,7 +698,7 @@ export async function getKnowbaseSystemChunksRetrieve( id: string, client?
|
|
|
698
698
|
* @method PUT
|
|
699
699
|
* @path /cfg/knowbase/system/chunks/{id}/
|
|
700
700
|
*/
|
|
701
|
-
export async function updateKnowbaseSystemChunksUpdate( id: string, data: ArchiveItemChunkRequest, client
|
|
701
|
+
export async function updateKnowbaseSystemChunksUpdate( id: string, data: ArchiveItemChunkRequest, client?: API
|
|
702
702
|
): Promise<ArchiveItemChunk> {
|
|
703
703
|
const api = client || getAPIInstance()
|
|
704
704
|
const response = await api.cfg_knowbase.systemChunksUpdate(id, data)
|
|
@@ -712,7 +712,7 @@ export async function updateKnowbaseSystemChunksUpdate( id: string, data: Archi
|
|
|
712
712
|
* @method PATCH
|
|
713
713
|
* @path /cfg/knowbase/system/chunks/{id}/
|
|
714
714
|
*/
|
|
715
|
-
export async function partialUpdateKnowbaseSystemChunksPartialUpdate( id: string, data?: PatchedArchiveItemChunkRequest, client
|
|
715
|
+
export async function partialUpdateKnowbaseSystemChunksPartialUpdate( id: string, data?: PatchedArchiveItemChunkRequest, client?: API
|
|
716
716
|
): Promise<ArchiveItemChunk> {
|
|
717
717
|
const api = client || getAPIInstance()
|
|
718
718
|
const response = await api.cfg_knowbase.systemChunksPartialUpdate(id, data)
|
|
@@ -726,7 +726,7 @@ export async function partialUpdateKnowbaseSystemChunksPartialUpdate( id: strin
|
|
|
726
726
|
* @method DELETE
|
|
727
727
|
* @path /cfg/knowbase/system/chunks/{id}/
|
|
728
728
|
*/
|
|
729
|
-
export async function deleteKnowbaseSystemChunksDestroy( id: string, client
|
|
729
|
+
export async function deleteKnowbaseSystemChunksDestroy( id: string, client?: API
|
|
730
730
|
): Promise<void> {
|
|
731
731
|
const api = client || getAPIInstance()
|
|
732
732
|
const response = await api.cfg_knowbase.systemChunksDestroy(id)
|
|
@@ -740,7 +740,7 @@ export async function deleteKnowbaseSystemChunksDestroy( id: string, client?
|
|
|
740
740
|
* @method GET
|
|
741
741
|
* @path /cfg/knowbase/system/chunks/{id}/context/
|
|
742
742
|
*/
|
|
743
|
-
export async function getKnowbaseSystemChunksContextRetrieve( id: string, client
|
|
743
|
+
export async function getKnowbaseSystemChunksContextRetrieve( id: string, client?: API
|
|
744
744
|
): Promise<ArchiveItemChunkDetail> {
|
|
745
745
|
const api = client || getAPIInstance()
|
|
746
746
|
const response = await api.cfg_knowbase.systemChunksContextRetrieve(id)
|
|
@@ -754,7 +754,7 @@ export async function getKnowbaseSystemChunksContextRetrieve( id: string, clie
|
|
|
754
754
|
* @method POST
|
|
755
755
|
* @path /cfg/knowbase/system/chunks/{id}/vectorize/
|
|
756
756
|
*/
|
|
757
|
-
export async function createKnowbaseSystemChunksVectorizeCreate( id: string, data: ArchiveItemChunkRequest, client
|
|
757
|
+
export async function createKnowbaseSystemChunksVectorizeCreate( id: string, data: ArchiveItemChunkRequest, client?: API
|
|
758
758
|
): Promise<any> {
|
|
759
759
|
const api = client || getAPIInstance()
|
|
760
760
|
const response = await api.cfg_knowbase.systemChunksVectorizeCreate(id, data)
|
|
@@ -768,7 +768,7 @@ export async function createKnowbaseSystemChunksVectorizeCreate( id: string, da
|
|
|
768
768
|
* @method GET
|
|
769
769
|
* @path /cfg/knowbase/system/items/
|
|
770
770
|
*/
|
|
771
|
-
export async function getKnowbaseSystemItemsList( params?: { page?: number; page_size?: number }, client
|
|
771
|
+
export async function getKnowbaseSystemItemsList( params?: { page?: number; page_size?: number }, client?: API
|
|
772
772
|
): Promise<PaginatedArchiveItemList> {
|
|
773
773
|
const api = client || getAPIInstance()
|
|
774
774
|
const response = await api.cfg_knowbase.systemItemsList(params?.page, params?.page_size)
|
|
@@ -782,7 +782,7 @@ export async function getKnowbaseSystemItemsList( params?: { page?: number; pag
|
|
|
782
782
|
* @method POST
|
|
783
783
|
* @path /cfg/knowbase/system/items/
|
|
784
784
|
*/
|
|
785
|
-
export async function createKnowbaseSystemItemsCreate( data: ArchiveItemRequest, client
|
|
785
|
+
export async function createKnowbaseSystemItemsCreate( data: ArchiveItemRequest, client?: API
|
|
786
786
|
): Promise<ArchiveItem> {
|
|
787
787
|
const api = client || getAPIInstance()
|
|
788
788
|
const response = await api.cfg_knowbase.systemItemsCreate(data)
|
|
@@ -796,7 +796,7 @@ export async function createKnowbaseSystemItemsCreate( data: ArchiveItemRequest
|
|
|
796
796
|
* @method GET
|
|
797
797
|
* @path /cfg/knowbase/system/items/{id}/
|
|
798
798
|
*/
|
|
799
|
-
export async function getKnowbaseSystemItemsRetrieve( id: string, client
|
|
799
|
+
export async function getKnowbaseSystemItemsRetrieve( id: string, client?: API
|
|
800
800
|
): Promise<ArchiveItemDetail> {
|
|
801
801
|
const api = client || getAPIInstance()
|
|
802
802
|
const response = await api.cfg_knowbase.systemItemsRetrieve(id)
|
|
@@ -810,7 +810,7 @@ export async function getKnowbaseSystemItemsRetrieve( id: string, client?
|
|
|
810
810
|
* @method PUT
|
|
811
811
|
* @path /cfg/knowbase/system/items/{id}/
|
|
812
812
|
*/
|
|
813
|
-
export async function updateKnowbaseSystemItemsUpdate( id: string, data: ArchiveItemRequest, client
|
|
813
|
+
export async function updateKnowbaseSystemItemsUpdate( id: string, data: ArchiveItemRequest, client?: API
|
|
814
814
|
): Promise<ArchiveItem> {
|
|
815
815
|
const api = client || getAPIInstance()
|
|
816
816
|
const response = await api.cfg_knowbase.systemItemsUpdate(id, data)
|
|
@@ -824,7 +824,7 @@ export async function updateKnowbaseSystemItemsUpdate( id: string, data: Archiv
|
|
|
824
824
|
* @method PATCH
|
|
825
825
|
* @path /cfg/knowbase/system/items/{id}/
|
|
826
826
|
*/
|
|
827
|
-
export async function partialUpdateKnowbaseSystemItemsPartialUpdate( id: string, data?: PatchedArchiveItemRequest, client
|
|
827
|
+
export async function partialUpdateKnowbaseSystemItemsPartialUpdate( id: string, data?: PatchedArchiveItemRequest, client?: API
|
|
828
828
|
): Promise<ArchiveItem> {
|
|
829
829
|
const api = client || getAPIInstance()
|
|
830
830
|
const response = await api.cfg_knowbase.systemItemsPartialUpdate(id, data)
|
|
@@ -838,7 +838,7 @@ export async function partialUpdateKnowbaseSystemItemsPartialUpdate( id: string
|
|
|
838
838
|
* @method DELETE
|
|
839
839
|
* @path /cfg/knowbase/system/items/{id}/
|
|
840
840
|
*/
|
|
841
|
-
export async function deleteKnowbaseSystemItemsDestroy( id: string, client
|
|
841
|
+
export async function deleteKnowbaseSystemItemsDestroy( id: string, client?: API
|
|
842
842
|
): Promise<void> {
|
|
843
843
|
const api = client || getAPIInstance()
|
|
844
844
|
const response = await api.cfg_knowbase.systemItemsDestroy(id)
|
|
@@ -852,7 +852,7 @@ export async function deleteKnowbaseSystemItemsDestroy( id: string, client?
|
|
|
852
852
|
* @method GET
|
|
853
853
|
* @path /cfg/knowbase/system/items/{id}/chunks/
|
|
854
854
|
*/
|
|
855
|
-
export async function getKnowbaseSystemItemsChunksList( id: string, params?: { page?: number; page_size?: number }, client
|
|
855
|
+
export async function getKnowbaseSystemItemsChunksList( id: string, params?: { page?: number; page_size?: number }, client?: API
|
|
856
856
|
): Promise<PaginatedArchiveItemChunkList> {
|
|
857
857
|
const api = client || getAPIInstance()
|
|
858
858
|
const response = await api.cfg_knowbase.systemItemsChunksList(id, params?.page, params?.page_size)
|
|
@@ -866,7 +866,7 @@ export async function getKnowbaseSystemItemsChunksList( id: string, params?: {
|
|
|
866
866
|
* @method GET
|
|
867
867
|
* @path /cfg/knowbase/system/items/{id}/content/
|
|
868
868
|
*/
|
|
869
|
-
export async function getKnowbaseSystemItemsContentRetrieve( id: string, client
|
|
869
|
+
export async function getKnowbaseSystemItemsContentRetrieve( id: string, client?: API
|
|
870
870
|
): Promise<ArchiveItemDetail> {
|
|
871
871
|
const api = client || getAPIInstance()
|
|
872
872
|
const response = await api.cfg_knowbase.systemItemsContentRetrieve(id)
|
|
@@ -42,7 +42,7 @@ import type { API } from '../../index'
|
|
|
42
42
|
* @method GET
|
|
43
43
|
* @path /cfg/leads/
|
|
44
44
|
*/
|
|
45
|
-
export async function getLeadsList( params?: { page?: number; page_size?: number }, client
|
|
45
|
+
export async function getLeadsList( params?: { page?: number; page_size?: number }, client?: API
|
|
46
46
|
): Promise<PaginatedLeadSubmissionList> {
|
|
47
47
|
const api = client || getAPIInstance()
|
|
48
48
|
const response = await api.cfg_leads.list(params?.page, params?.page_size)
|
|
@@ -56,7 +56,7 @@ export async function getLeadsList( params?: { page?: number; page_size?: numbe
|
|
|
56
56
|
* @method POST
|
|
57
57
|
* @path /cfg/leads/
|
|
58
58
|
*/
|
|
59
|
-
export async function createLeadsCreate( data: LeadSubmissionRequest, client
|
|
59
|
+
export async function createLeadsCreate( data: LeadSubmissionRequest, client?: API
|
|
60
60
|
): Promise<LeadSubmission> {
|
|
61
61
|
const api = client || getAPIInstance()
|
|
62
62
|
const response = await api.cfg_leads.create(data)
|
|
@@ -70,7 +70,7 @@ export async function createLeadsCreate( data: LeadSubmissionRequest, client?
|
|
|
70
70
|
* @method GET
|
|
71
71
|
* @path /cfg/leads/{id}/
|
|
72
72
|
*/
|
|
73
|
-
export async function getLeadsRetrieve( id: number, client
|
|
73
|
+
export async function getLeadsRetrieve( id: number, client?: API
|
|
74
74
|
): Promise<LeadSubmission> {
|
|
75
75
|
const api = client || getAPIInstance()
|
|
76
76
|
const response = await api.cfg_leads.retrieve(id)
|
|
@@ -84,7 +84,7 @@ export async function getLeadsRetrieve( id: number, client?
|
|
|
84
84
|
* @method PUT
|
|
85
85
|
* @path /cfg/leads/{id}/
|
|
86
86
|
*/
|
|
87
|
-
export async function updateLeadsUpdate( id: number, data: LeadSubmissionRequest, client
|
|
87
|
+
export async function updateLeadsUpdate( id: number, data: LeadSubmissionRequest, client?: API
|
|
88
88
|
): Promise<LeadSubmission> {
|
|
89
89
|
const api = client || getAPIInstance()
|
|
90
90
|
const response = await api.cfg_leads.update(id, data)
|
|
@@ -98,7 +98,7 @@ export async function updateLeadsUpdate( id: number, data: LeadSubmissionReques
|
|
|
98
98
|
* @method PATCH
|
|
99
99
|
* @path /cfg/leads/{id}/
|
|
100
100
|
*/
|
|
101
|
-
export async function partialUpdateLeadsPartialUpdate( id: number, data?: PatchedLeadSubmissionRequest, client
|
|
101
|
+
export async function partialUpdateLeadsPartialUpdate( id: number, data?: PatchedLeadSubmissionRequest, client?: API
|
|
102
102
|
): Promise<LeadSubmission> {
|
|
103
103
|
const api = client || getAPIInstance()
|
|
104
104
|
const response = await api.cfg_leads.partialUpdate(id, data)
|
|
@@ -112,7 +112,7 @@ export async function partialUpdateLeadsPartialUpdate( id: number, data?: Patch
|
|
|
112
112
|
* @method DELETE
|
|
113
113
|
* @path /cfg/leads/{id}/
|
|
114
114
|
*/
|
|
115
|
-
export async function deleteLeadsDestroy( id: number, client
|
|
115
|
+
export async function deleteLeadsDestroy( id: number, client?: API
|
|
116
116
|
): Promise<void> {
|
|
117
117
|
const api = client || getAPIInstance()
|
|
118
118
|
const response = await api.cfg_leads.destroy(id)
|
|
@@ -40,7 +40,7 @@ import type { API } from '../../index'
|
|
|
40
40
|
* @method POST
|
|
41
41
|
* @path /cfg/leads/submit/
|
|
42
42
|
*/
|
|
43
|
-
export async function createLeadsSubmitCreate( data: LeadSubmissionRequest, client
|
|
43
|
+
export async function createLeadsSubmitCreate( data: LeadSubmissionRequest, client?: API
|
|
44
44
|
): Promise<LeadSubmissionResponse> {
|
|
45
45
|
const api = client || getAPIInstance()
|
|
46
46
|
const response = await api.cfg_lead_submission.leadsSubmitCreate(data)
|
|
@@ -43,7 +43,7 @@ import type { API } from '../../index'
|
|
|
43
43
|
* @method PATCH
|
|
44
44
|
* @path /cfg/newsletter/campaigns/{id}/
|
|
45
45
|
*/
|
|
46
|
-
export async function partialUpdateNewsletterCampaignsPartialUpdate( id: number, data?: PatchedNewsletterCampaignRequest, client
|
|
46
|
+
export async function partialUpdateNewsletterCampaignsPartialUpdate( id: number, data?: PatchedNewsletterCampaignRequest, client?: API
|
|
47
47
|
): Promise<NewsletterCampaign> {
|
|
48
48
|
const api = client || getAPIInstance()
|
|
49
49
|
const response = await api.cfg_newsletter.campaignsPartialUpdate(id, data)
|
|
@@ -57,7 +57,7 @@ export async function partialUpdateNewsletterCampaignsPartialUpdate( id: number
|
|
|
57
57
|
* @method PUT
|
|
58
58
|
* @path /cfg/newsletter/unsubscribe/
|
|
59
59
|
*/
|
|
60
|
-
export async function updateNewsletterUnsubscribeUpdate( data: UnsubscribeRequest, client
|
|
60
|
+
export async function updateNewsletterUnsubscribeUpdate( data: UnsubscribeRequest, client?: API
|
|
61
61
|
): Promise<Unsubscribe> {
|
|
62
62
|
const api = client || getAPIInstance()
|
|
63
63
|
const response = await api.cfg_newsletter.unsubscribeUpdate(data)
|
|
@@ -71,7 +71,7 @@ export async function updateNewsletterUnsubscribeUpdate( data: UnsubscribeReque
|
|
|
71
71
|
* @method PATCH
|
|
72
72
|
* @path /cfg/newsletter/unsubscribe/
|
|
73
73
|
*/
|
|
74
|
-
export async function partialUpdateNewsletterUnsubscribePartialUpdate( data?: PatchedUnsubscribeRequest, client
|
|
74
|
+
export async function partialUpdateNewsletterUnsubscribePartialUpdate( data?: PatchedUnsubscribeRequest, client?: API
|
|
75
75
|
): Promise<Unsubscribe> {
|
|
76
76
|
const api = client || getAPIInstance()
|
|
77
77
|
const response = await api.cfg_newsletter.unsubscribePartialUpdate(data)
|
|
@@ -40,7 +40,7 @@ import type { API } from '../../index'
|
|
|
40
40
|
* @method POST
|
|
41
41
|
* @path /cfg/newsletter/bulk/
|
|
42
42
|
*/
|
|
43
|
-
export async function createNewsletterBulkCreate( data: BulkEmailRequest, client
|
|
43
|
+
export async function createNewsletterBulkCreate( data: BulkEmailRequest, client?: API
|
|
44
44
|
): Promise<BulkEmailResponse> {
|
|
45
45
|
const api = client || getAPIInstance()
|
|
46
46
|
const response = await api.cfg_bulk_email.newsletterBulkCreate(data)
|
|
@@ -43,7 +43,7 @@ import type { API } from '../../index'
|
|
|
43
43
|
* @method GET
|
|
44
44
|
* @path /cfg/newsletter/campaigns/
|
|
45
45
|
*/
|
|
46
|
-
export async function getNewsletterCampaignsList( params?: { page?: number; page_size?: number }, client
|
|
46
|
+
export async function getNewsletterCampaignsList( params?: { page?: number; page_size?: number }, client?: API
|
|
47
47
|
): Promise<PaginatedNewsletterCampaignList> {
|
|
48
48
|
const api = client || getAPIInstance()
|
|
49
49
|
const response = await api.cfg_campaigns.newsletterCampaignsList(params?.page, params?.page_size)
|
|
@@ -57,7 +57,7 @@ export async function getNewsletterCampaignsList( params?: { page?: number; pag
|
|
|
57
57
|
* @method POST
|
|
58
58
|
* @path /cfg/newsletter/campaigns/
|
|
59
59
|
*/
|
|
60
|
-
export async function createNewsletterCampaignsCreate( data: NewsletterCampaignRequest, client
|
|
60
|
+
export async function createNewsletterCampaignsCreate( data: NewsletterCampaignRequest, client?: API
|
|
61
61
|
): Promise<NewsletterCampaign> {
|
|
62
62
|
const api = client || getAPIInstance()
|
|
63
63
|
const response = await api.cfg_campaigns.newsletterCampaignsCreate(data)
|
|
@@ -71,7 +71,7 @@ export async function createNewsletterCampaignsCreate( data: NewsletterCampaign
|
|
|
71
71
|
* @method GET
|
|
72
72
|
* @path /cfg/newsletter/campaigns/{id}/
|
|
73
73
|
*/
|
|
74
|
-
export async function getNewsletterCampaignsRetrieve( id: number, client
|
|
74
|
+
export async function getNewsletterCampaignsRetrieve( id: number, client?: API
|
|
75
75
|
): Promise<NewsletterCampaign> {
|
|
76
76
|
const api = client || getAPIInstance()
|
|
77
77
|
const response = await api.cfg_campaigns.newsletterCampaignsRetrieve(id)
|
|
@@ -85,7 +85,7 @@ export async function getNewsletterCampaignsRetrieve( id: number, client?
|
|
|
85
85
|
* @method PUT
|
|
86
86
|
* @path /cfg/newsletter/campaigns/{id}/
|
|
87
87
|
*/
|
|
88
|
-
export async function updateNewsletterCampaignsUpdate( id: number, data: NewsletterCampaignRequest, client
|
|
88
|
+
export async function updateNewsletterCampaignsUpdate( id: number, data: NewsletterCampaignRequest, client?: API
|
|
89
89
|
): Promise<NewsletterCampaign> {
|
|
90
90
|
const api = client || getAPIInstance()
|
|
91
91
|
const response = await api.cfg_campaigns.newsletterCampaignsUpdate(id, data)
|
|
@@ -99,7 +99,7 @@ export async function updateNewsletterCampaignsUpdate( id: number, data: Newsle
|
|
|
99
99
|
* @method DELETE
|
|
100
100
|
* @path /cfg/newsletter/campaigns/{id}/
|
|
101
101
|
*/
|
|
102
|
-
export async function deleteNewsletterCampaignsDestroy( id: number, client
|
|
102
|
+
export async function deleteNewsletterCampaignsDestroy( id: number, client?: API
|
|
103
103
|
): Promise<void> {
|
|
104
104
|
const api = client || getAPIInstance()
|
|
105
105
|
const response = await api.cfg_campaigns.newsletterCampaignsDestroy(id)
|
|
@@ -113,7 +113,7 @@ export async function deleteNewsletterCampaignsDestroy( id: number, client?
|
|
|
113
113
|
* @method POST
|
|
114
114
|
* @path /cfg/newsletter/campaigns/send/
|
|
115
115
|
*/
|
|
116
|
-
export async function createNewsletterCampaignsSendCreate( data: SendCampaignRequest, client
|
|
116
|
+
export async function createNewsletterCampaignsSendCreate( data: SendCampaignRequest, client?: API
|
|
117
117
|
): Promise<SendCampaignResponse> {
|
|
118
118
|
const api = client || getAPIInstance()
|
|
119
119
|
const response = await api.cfg_campaigns.newsletterCampaignsSendCreate(data)
|