@stack-spot/portal-network 0.82.0 → 0.82.2
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/CHANGELOG.md +14 -0
- package/dist/api/ai.d.ts +224 -181
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +223 -204
- package/dist/api/ai.js.map +1 -1
- package/dist/client/ai.d.ts +0 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/types.d.ts +5 -2
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-ai.d.ts +2 -2
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +5 -1
- package/dist/client/workspace-ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +507 -445
- package/src/client/types.ts +6 -2
- package/src/client/workspace-ai.ts +12 -2
package/src/api/ai.ts
CHANGED
|
@@ -12,8 +12,30 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {};
|
|
15
|
-
export type
|
|
16
|
-
|
|
15
|
+
export type AiStackWorkspaceForkRequest = {
|
|
16
|
+
ids: string[];
|
|
17
|
+
member_id: string;
|
|
18
|
+
};
|
|
19
|
+
export type AiStackWorkspaceForkResponse = {
|
|
20
|
+
stack_ids: string[];
|
|
21
|
+
stack_ids_account: string[];
|
|
22
|
+
error_ids: string[];
|
|
23
|
+
};
|
|
24
|
+
export type ValidationError = {
|
|
25
|
+
loc: (string | number)[];
|
|
26
|
+
msg: string;
|
|
27
|
+
"type": string;
|
|
28
|
+
};
|
|
29
|
+
export type HttpValidationError = {
|
|
30
|
+
detail?: ValidationError[];
|
|
31
|
+
};
|
|
32
|
+
export type AiStackWorkspaceDeleteRequest = {
|
|
33
|
+
ids: string[];
|
|
34
|
+
};
|
|
35
|
+
export type AiStackWorkspaceListRequest = {
|
|
36
|
+
ids: string[];
|
|
37
|
+
name?: string | null;
|
|
38
|
+
};
|
|
17
39
|
export type GetAiStackResponse = {
|
|
18
40
|
id: string;
|
|
19
41
|
name: string;
|
|
@@ -30,15 +52,9 @@ export type GetAiStackResponse = {
|
|
|
30
52
|
cloud_attributes: string[] | null;
|
|
31
53
|
creator: string | null;
|
|
32
54
|
visibility_level: string;
|
|
55
|
+
use_only?: boolean | null;
|
|
33
56
|
};
|
|
34
|
-
export type
|
|
35
|
-
loc: (string | number)[];
|
|
36
|
-
msg: string;
|
|
37
|
-
"type": string;
|
|
38
|
-
};
|
|
39
|
-
export type HttpValidationError = {
|
|
40
|
-
detail?: ValidationError[];
|
|
41
|
-
};
|
|
57
|
+
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace";
|
|
42
58
|
export type NewAiStackRequest = {
|
|
43
59
|
name: string;
|
|
44
60
|
use_case: string;
|
|
@@ -67,11 +83,15 @@ export type UpdateAiStackRequest = {
|
|
|
67
83
|
image: string | null;
|
|
68
84
|
cloud_provider: string | null;
|
|
69
85
|
cloud_attributes: string[] | null;
|
|
86
|
+
use_only?: boolean | null;
|
|
70
87
|
};
|
|
71
88
|
export type AiStackForkRequest = {
|
|
72
89
|
name: string;
|
|
73
90
|
description: string | null;
|
|
74
91
|
};
|
|
92
|
+
export type AiStackPublishRequest = {
|
|
93
|
+
use_only?: boolean | null;
|
|
94
|
+
};
|
|
75
95
|
export type NewProjectFilesRequest = {
|
|
76
96
|
context?: object | null;
|
|
77
97
|
project_id: string;
|
|
@@ -89,11 +109,6 @@ export type SimpleResponse = {
|
|
|
89
109
|
completion_tokens: number;
|
|
90
110
|
total_cost?: string | null;
|
|
91
111
|
};
|
|
92
|
-
export type ChatRequest = {
|
|
93
|
-
context?: object | null;
|
|
94
|
-
user_prompt: string;
|
|
95
|
-
project_id?: string | null;
|
|
96
|
-
};
|
|
97
112
|
export type SourceStackAi = {
|
|
98
113
|
"type": "ai_stack";
|
|
99
114
|
name: string;
|
|
@@ -172,10 +187,6 @@ export type NewFileUploadUrlRequest = {
|
|
|
172
187
|
target_type: FileUploadType;
|
|
173
188
|
expiration?: number | null;
|
|
174
189
|
};
|
|
175
|
-
export type NewFileUploadUrlResponse = {
|
|
176
|
-
id: string;
|
|
177
|
-
upload_url: string;
|
|
178
|
-
};
|
|
179
190
|
export type NewFileUploadFormResponse = {
|
|
180
191
|
id: string;
|
|
181
192
|
url: string;
|
|
@@ -201,12 +212,29 @@ export type FileUploadStatusResponse = {
|
|
|
201
212
|
error_description: string | null;
|
|
202
213
|
summary: SummaryPartResponse | null;
|
|
203
214
|
};
|
|
215
|
+
export type KnowledgeSourcesWorkspaceForkRequest = {
|
|
216
|
+
ids: string[];
|
|
217
|
+
member_id: string;
|
|
218
|
+
};
|
|
219
|
+
export type KnowledgeSourcesWorkspaceForkResponse = {
|
|
220
|
+
ks_ids: string[];
|
|
221
|
+
ks_ids_account: string[];
|
|
222
|
+
error_ids: string[];
|
|
223
|
+
};
|
|
224
|
+
export type KnowledgeSourcesWorkspaceDeleteRequest = {
|
|
225
|
+
ids: string[];
|
|
226
|
+
};
|
|
227
|
+
export type KnowledgeSourcesWorkspaceListRequest = {
|
|
228
|
+
ids: string[];
|
|
229
|
+
name?: string | null;
|
|
230
|
+
};
|
|
204
231
|
export type NewKnowledgeSourceRequest = {
|
|
205
232
|
slug: string;
|
|
206
233
|
name: string;
|
|
207
234
|
description: string;
|
|
208
235
|
"type": "API" | "SNIPPET" | "CUSTOM";
|
|
209
236
|
};
|
|
237
|
+
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
210
238
|
export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
|
|
211
239
|
export type KnowledgeSourceItemResponse = {
|
|
212
240
|
id: string;
|
|
@@ -217,6 +245,7 @@ export type KnowledgeSourceItemResponse = {
|
|
|
217
245
|
object_count: number;
|
|
218
246
|
creator: string | null;
|
|
219
247
|
visibility_level: string;
|
|
248
|
+
use_only: boolean;
|
|
220
249
|
};
|
|
221
250
|
export type KnowledgeSourceResponse = {
|
|
222
251
|
slug: string;
|
|
@@ -226,10 +255,13 @@ export type KnowledgeSourceResponse = {
|
|
|
226
255
|
creator: string | null;
|
|
227
256
|
"default": boolean;
|
|
228
257
|
visibility_level: string;
|
|
258
|
+
use_only: boolean;
|
|
259
|
+
id: string;
|
|
229
260
|
};
|
|
230
261
|
export type KnowledgeSourcePatchesRequest = {
|
|
231
262
|
name: string;
|
|
232
263
|
description: string;
|
|
264
|
+
use_only?: boolean | null;
|
|
233
265
|
};
|
|
234
266
|
export type KnowledgeSourceDependenciesResponse = {
|
|
235
267
|
workspaces?: string[];
|
|
@@ -239,6 +271,9 @@ export type KnowledgeSourceSimilaritySearchItemResponse = {
|
|
|
239
271
|
score: number;
|
|
240
272
|
file_path: string | null;
|
|
241
273
|
};
|
|
274
|
+
export type KnowledgeSourcesPublishRequest = {
|
|
275
|
+
use_only?: boolean;
|
|
276
|
+
};
|
|
242
277
|
export type KnowSourcePublishBatchRequest = {
|
|
243
278
|
ids: string[];
|
|
244
279
|
};
|
|
@@ -247,16 +282,10 @@ export type ForkKnowledgeSourceRequest = {
|
|
|
247
282
|
name: string;
|
|
248
283
|
description: string;
|
|
249
284
|
};
|
|
250
|
-
export type BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost = {
|
|
251
|
-
upload: Blob;
|
|
252
|
-
};
|
|
253
285
|
export type DocumentResponse = {
|
|
254
286
|
page_content: string;
|
|
255
287
|
metadata: object;
|
|
256
288
|
};
|
|
257
|
-
export type BodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost = {
|
|
258
|
-
objects_zip: Blob;
|
|
259
|
-
};
|
|
260
289
|
export type SnippetKnowledgeSourceRequest = {
|
|
261
290
|
use_case: string;
|
|
262
291
|
code: string;
|
|
@@ -305,7 +334,37 @@ export type TokensMonthlyUsageResponse = {
|
|
|
305
334
|
export type AddWorkspaceKnowledgeSourceRequest = {
|
|
306
335
|
knowledge_source_slugs: string[];
|
|
307
336
|
};
|
|
337
|
+
export type QuickCommandWorkspaceForkRequest = {
|
|
338
|
+
ids: string[];
|
|
339
|
+
member_id: string;
|
|
340
|
+
};
|
|
341
|
+
export type QuickCommandWorkspaceDeleteRequest = {
|
|
342
|
+
ids: string[];
|
|
343
|
+
};
|
|
344
|
+
export type QuickCommandDependenciesRequest = {
|
|
345
|
+
ids: string[];
|
|
346
|
+
};
|
|
347
|
+
export type QuickCommandWorkspaceListRequest = {
|
|
348
|
+
ids: string[];
|
|
349
|
+
name?: string | null;
|
|
350
|
+
};
|
|
308
351
|
export type QuickCommandTypeRequest = "IDE" | "REMOTE";
|
|
352
|
+
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
353
|
+
export type QuickCommandListResponse = {
|
|
354
|
+
slug: string;
|
|
355
|
+
name: string;
|
|
356
|
+
"type": QuickCommandTypeRequest;
|
|
357
|
+
description: string;
|
|
358
|
+
studio_id?: string | null;
|
|
359
|
+
flow?: object | null;
|
|
360
|
+
preserve_conversation: boolean;
|
|
361
|
+
use_selected_code: boolean;
|
|
362
|
+
return_type?: QuickCommandsReturnType | null;
|
|
363
|
+
creator: string | null;
|
|
364
|
+
visibility_level: string;
|
|
365
|
+
use_only: boolean;
|
|
366
|
+
id: string;
|
|
367
|
+
};
|
|
309
368
|
export type Method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
310
369
|
export type QuickCommandsStepFetchRequest = {
|
|
311
370
|
slug: string;
|
|
@@ -321,11 +380,11 @@ export type QuickCommandsStepPromptRequest = {
|
|
|
321
380
|
prompt: string;
|
|
322
381
|
use_stack?: boolean;
|
|
323
382
|
use_project_files?: boolean;
|
|
383
|
+
allow_use_current_workspace?: boolean;
|
|
324
384
|
knowledge_source_slugs?: string[] | null;
|
|
325
385
|
agent_id?: string | null;
|
|
326
386
|
agent_built_in?: boolean | null;
|
|
327
387
|
};
|
|
328
|
-
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
329
388
|
export type CustomInputRequest = {
|
|
330
389
|
slug: string;
|
|
331
390
|
question: string;
|
|
@@ -346,20 +405,6 @@ export type QuickCommandsCreateRequest = {
|
|
|
346
405
|
export type BaseContextualRequest = {
|
|
347
406
|
context?: object | null;
|
|
348
407
|
};
|
|
349
|
-
export type QuickCommandListResponse = {
|
|
350
|
-
slug: string;
|
|
351
|
-
name: string;
|
|
352
|
-
"type": QuickCommandTypeRequest;
|
|
353
|
-
description: string;
|
|
354
|
-
studio_id?: string | null;
|
|
355
|
-
flow?: object | null;
|
|
356
|
-
preserve_conversation: boolean;
|
|
357
|
-
use_selected_code: boolean;
|
|
358
|
-
return_type?: QuickCommandsReturnType | null;
|
|
359
|
-
creator: string | null;
|
|
360
|
-
visibility_level: string;
|
|
361
|
-
id: string;
|
|
362
|
-
};
|
|
363
408
|
export type QuickCommandsUpdateRequest = {
|
|
364
409
|
name?: string | null;
|
|
365
410
|
description?: string | null;
|
|
@@ -370,6 +415,7 @@ export type QuickCommandsUpdateRequest = {
|
|
|
370
415
|
preserve_conversation?: boolean;
|
|
371
416
|
custom_inputs?: CustomInputRequest[] | null;
|
|
372
417
|
flow?: object | null;
|
|
418
|
+
use_only?: boolean | null;
|
|
373
419
|
};
|
|
374
420
|
export type QuickCommandStepType = "LLM" | "FETCH";
|
|
375
421
|
export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -445,9 +491,13 @@ export type QuickCommandResponse = {
|
|
|
445
491
|
use_selected_code?: boolean | null;
|
|
446
492
|
creator: string | null;
|
|
447
493
|
visibility_level: string;
|
|
494
|
+
use_only: boolean;
|
|
448
495
|
custom_inputs?: CustomInputResponse[] | null;
|
|
449
496
|
id: string;
|
|
450
497
|
};
|
|
498
|
+
export type QuickCommandPublishRequest = {
|
|
499
|
+
use_only?: boolean | null;
|
|
500
|
+
};
|
|
451
501
|
export type QuickCommandsMakeACopyRequest = {
|
|
452
502
|
suggested_slug: string;
|
|
453
503
|
name: string;
|
|
@@ -555,10 +605,10 @@ export type ConversationUpdateTitleRequest = {
|
|
|
555
605
|
export type BodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost = {
|
|
556
606
|
objects_zip: Blob;
|
|
557
607
|
};
|
|
558
|
-
export type
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
608
|
+
export type FeatureFlagResponse = {
|
|
609
|
+
domain: string;
|
|
610
|
+
action: string;
|
|
611
|
+
active: boolean;
|
|
562
612
|
};
|
|
563
613
|
export type SourceProjectFile3 = {
|
|
564
614
|
"type": "project_file";
|
|
@@ -574,11 +624,10 @@ export type QuickCommandDependenciesResponseV2 = {
|
|
|
574
624
|
error_ks_names?: string[] | null;
|
|
575
625
|
missing_ks_id_list?: string[] | null;
|
|
576
626
|
};
|
|
577
|
-
export type
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
objects_zip: Blob;
|
|
627
|
+
export type ChatRequest = {
|
|
628
|
+
context?: object | null;
|
|
629
|
+
user_prompt: string;
|
|
630
|
+
project_id?: string | null;
|
|
582
631
|
};
|
|
583
632
|
export type SourceProjectFile4 = {
|
|
584
633
|
"type": "project_file";
|
|
@@ -601,12 +650,88 @@ export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
|
|
|
601
650
|
...opts
|
|
602
651
|
}));
|
|
603
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Workspace Fork
|
|
655
|
+
*/
|
|
656
|
+
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }: {
|
|
657
|
+
authorization: string;
|
|
658
|
+
xAccountId?: string | null;
|
|
659
|
+
aiStackWorkspaceForkRequest: AiStackWorkspaceForkRequest;
|
|
660
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
661
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
662
|
+
status: 200;
|
|
663
|
+
data: AiStackWorkspaceForkResponse;
|
|
664
|
+
} | {
|
|
665
|
+
status: 404;
|
|
666
|
+
} | {
|
|
667
|
+
status: 422;
|
|
668
|
+
data: HttpValidationError;
|
|
669
|
+
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
670
|
+
...opts,
|
|
671
|
+
method: "POST",
|
|
672
|
+
body: aiStackWorkspaceForkRequest,
|
|
673
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
674
|
+
authorization,
|
|
675
|
+
"x-account-id": xAccountId
|
|
676
|
+
})
|
|
677
|
+
})));
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Workspace Delete Fork
|
|
681
|
+
*/
|
|
682
|
+
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }: {
|
|
683
|
+
authorization: string;
|
|
684
|
+
xAccountId?: string | null;
|
|
685
|
+
aiStackWorkspaceDeleteRequest: AiStackWorkspaceDeleteRequest;
|
|
686
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
687
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
688
|
+
status: 204;
|
|
689
|
+
} | {
|
|
690
|
+
status: 404;
|
|
691
|
+
} | {
|
|
692
|
+
status: 422;
|
|
693
|
+
data: HttpValidationError;
|
|
694
|
+
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
695
|
+
...opts,
|
|
696
|
+
method: "DELETE",
|
|
697
|
+
body: aiStackWorkspaceDeleteRequest,
|
|
698
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
699
|
+
authorization,
|
|
700
|
+
"x-account-id": xAccountId
|
|
701
|
+
})
|
|
702
|
+
})));
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Workspace List
|
|
706
|
+
*/
|
|
707
|
+
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }: {
|
|
708
|
+
authorization: string;
|
|
709
|
+
xAccountId?: string | null;
|
|
710
|
+
aiStackWorkspaceListRequest: AiStackWorkspaceListRequest;
|
|
711
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
712
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
713
|
+
status: 200;
|
|
714
|
+
data: GetAiStackResponse[];
|
|
715
|
+
} | {
|
|
716
|
+
status: 404;
|
|
717
|
+
} | {
|
|
718
|
+
status: 422;
|
|
719
|
+
data: HttpValidationError;
|
|
720
|
+
}>("/v1/ai-stacks/workspace/list", oazapfts.json({
|
|
721
|
+
...opts,
|
|
722
|
+
method: "POST",
|
|
723
|
+
body: aiStackWorkspaceListRequest,
|
|
724
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
725
|
+
authorization,
|
|
726
|
+
"x-account-id": xAccountId
|
|
727
|
+
})
|
|
728
|
+
})));
|
|
729
|
+
}
|
|
604
730
|
/**
|
|
605
731
|
* List Ai Stacks
|
|
606
732
|
*/
|
|
607
|
-
export function listAiStacksV1AiStacksGet({ visibility,
|
|
733
|
+
export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId }: {
|
|
608
734
|
visibility?: VisibilityLevelEnum;
|
|
609
|
-
order?: OrderEnum;
|
|
610
735
|
authorization: string;
|
|
611
736
|
xAccountId?: string | null;
|
|
612
737
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -619,8 +744,7 @@ export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xA
|
|
|
619
744
|
status: 422;
|
|
620
745
|
data: HttpValidationError;
|
|
621
746
|
}>(`/v1/ai-stacks${QS.query(QS.explode({
|
|
622
|
-
visibility
|
|
623
|
-
order
|
|
747
|
+
visibility
|
|
624
748
|
}))}`, {
|
|
625
749
|
...opts,
|
|
626
750
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -807,10 +931,11 @@ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccou
|
|
|
807
931
|
/**
|
|
808
932
|
* Publish
|
|
809
933
|
*/
|
|
810
|
-
export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId }: {
|
|
934
|
+
export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, aiStackPublishRequest }: {
|
|
811
935
|
stackId: string;
|
|
812
936
|
authorization: string;
|
|
813
937
|
xAccountId?: string | null;
|
|
938
|
+
aiStackPublishRequest?: AiStackPublishRequest;
|
|
814
939
|
}, opts?: Oazapfts.RequestOpts) {
|
|
815
940
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
816
941
|
status: 204;
|
|
@@ -819,21 +944,21 @@ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xA
|
|
|
819
944
|
} | {
|
|
820
945
|
status: 422;
|
|
821
946
|
data: HttpValidationError;
|
|
822
|
-
}>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, {
|
|
947
|
+
}>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, oazapfts.json({
|
|
823
948
|
...opts,
|
|
824
949
|
method: "POST",
|
|
950
|
+
body: aiStackPublishRequest,
|
|
825
951
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
826
952
|
authorization,
|
|
827
953
|
"x-account-id": xAccountId
|
|
828
954
|
})
|
|
829
|
-
}));
|
|
955
|
+
})));
|
|
830
956
|
}
|
|
831
957
|
/**
|
|
832
958
|
* Project Files
|
|
833
959
|
*/
|
|
834
|
-
export function projectFilesV1ProjectFilesPost({ authorization,
|
|
960
|
+
export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesRequest }: {
|
|
835
961
|
authorization: string;
|
|
836
|
-
xAccountId?: string | null;
|
|
837
962
|
newProjectFilesRequest: NewProjectFilesRequest;
|
|
838
963
|
}, opts?: Oazapfts.RequestOpts) {
|
|
839
964
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -849,8 +974,7 @@ export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newP
|
|
|
849
974
|
method: "POST",
|
|
850
975
|
body: newProjectFilesRequest,
|
|
851
976
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
852
|
-
authorization
|
|
853
|
-
"x-account-id": xAccountId
|
|
977
|
+
authorization
|
|
854
978
|
})
|
|
855
979
|
})));
|
|
856
980
|
}
|
|
@@ -883,28 +1007,16 @@ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quic
|
|
|
883
1007
|
/**
|
|
884
1008
|
* Dev Assistant
|
|
885
1009
|
*/
|
|
886
|
-
export function devAssistantV1ChatPost(
|
|
887
|
-
authorization: string;
|
|
888
|
-
xAccountId?: string | null;
|
|
889
|
-
codeBuddyApiV1SchemasChatRequest: ChatRequest;
|
|
890
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1010
|
+
export function devAssistantV1ChatPost(opts?: Oazapfts.RequestOpts) {
|
|
891
1011
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
892
1012
|
status: 200;
|
|
893
1013
|
data: ChatResponse;
|
|
894
1014
|
} | {
|
|
895
1015
|
status: 404;
|
|
896
|
-
}
|
|
897
|
-
status: 422;
|
|
898
|
-
data: HttpValidationError;
|
|
899
|
-
}>("/v1/chat", oazapfts.json({
|
|
1016
|
+
}>("/v1/chat", {
|
|
900
1017
|
...opts,
|
|
901
|
-
method: "POST"
|
|
902
|
-
|
|
903
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
904
|
-
authorization,
|
|
905
|
-
"x-account-id": xAccountId
|
|
906
|
-
})
|
|
907
|
-
})));
|
|
1018
|
+
method: "POST"
|
|
1019
|
+
}));
|
|
908
1020
|
}
|
|
909
1021
|
/**
|
|
910
1022
|
* Post Event
|
|
@@ -931,38 +1043,11 @@ export function postEventV1EventsPost({ authorization, xAccountId, body }: {
|
|
|
931
1043
|
})
|
|
932
1044
|
})));
|
|
933
1045
|
}
|
|
934
|
-
/**
|
|
935
|
-
* Get Upload Url
|
|
936
|
-
*/
|
|
937
|
-
export function getUploadUrlV1FileUploadUrlPost({ authorization, xAccountId, newFileUploadUrlRequest }: {
|
|
938
|
-
authorization: string;
|
|
939
|
-
xAccountId?: string | null;
|
|
940
|
-
newFileUploadUrlRequest: NewFileUploadUrlRequest;
|
|
941
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
942
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
943
|
-
status: 201;
|
|
944
|
-
data: NewFileUploadUrlResponse;
|
|
945
|
-
} | {
|
|
946
|
-
status: 404;
|
|
947
|
-
} | {
|
|
948
|
-
status: 422;
|
|
949
|
-
data: HttpValidationError;
|
|
950
|
-
}>("/v1/file-upload/url", oazapfts.json({
|
|
951
|
-
...opts,
|
|
952
|
-
method: "POST",
|
|
953
|
-
body: newFileUploadUrlRequest,
|
|
954
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
955
|
-
authorization,
|
|
956
|
-
"x-account-id": xAccountId
|
|
957
|
-
})
|
|
958
|
-
})));
|
|
959
|
-
}
|
|
960
1046
|
/**
|
|
961
1047
|
* Get Upload Form
|
|
962
1048
|
*/
|
|
963
|
-
export function getUploadFormV1FileUploadFormPost({ authorization,
|
|
1049
|
+
export function getUploadFormV1FileUploadFormPost({ authorization, newFileUploadUrlRequest }: {
|
|
964
1050
|
authorization: string;
|
|
965
|
-
xAccountId?: string | null;
|
|
966
1051
|
newFileUploadUrlRequest: NewFileUploadUrlRequest;
|
|
967
1052
|
}, opts?: Oazapfts.RequestOpts) {
|
|
968
1053
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -978,18 +1063,16 @@ export function getUploadFormV1FileUploadFormPost({ authorization, xAccountId, n
|
|
|
978
1063
|
method: "POST",
|
|
979
1064
|
body: newFileUploadUrlRequest,
|
|
980
1065
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
981
|
-
authorization
|
|
982
|
-
"x-account-id": xAccountId
|
|
1066
|
+
authorization
|
|
983
1067
|
})
|
|
984
1068
|
})));
|
|
985
1069
|
}
|
|
986
1070
|
/**
|
|
987
1071
|
* Get File Upload Status
|
|
988
1072
|
*/
|
|
989
|
-
export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, authorization
|
|
1073
|
+
export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, authorization }: {
|
|
990
1074
|
fileUploadId: string;
|
|
991
1075
|
authorization: string;
|
|
992
|
-
xAccountId?: string | null;
|
|
993
1076
|
}, opts?: Oazapfts.RequestOpts) {
|
|
994
1077
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
995
1078
|
status: 200;
|
|
@@ -1002,8 +1085,7 @@ export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, a
|
|
|
1002
1085
|
}>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
|
|
1003
1086
|
...opts,
|
|
1004
1087
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1005
|
-
authorization
|
|
1006
|
-
"x-account-id": xAccountId
|
|
1088
|
+
authorization
|
|
1007
1089
|
})
|
|
1008
1090
|
}));
|
|
1009
1091
|
}
|
|
@@ -1021,24 +1103,25 @@ export function reportHealthHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
|
1021
1103
|
}));
|
|
1022
1104
|
}
|
|
1023
1105
|
/**
|
|
1024
|
-
*
|
|
1106
|
+
* Workspace Fork
|
|
1025
1107
|
*/
|
|
1026
|
-
export function
|
|
1108
|
+
export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ authorization, xAccountId, knowledgeSourcesWorkspaceForkRequest }: {
|
|
1027
1109
|
authorization: string;
|
|
1028
1110
|
xAccountId?: string | null;
|
|
1029
|
-
|
|
1111
|
+
knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
|
|
1030
1112
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1031
1113
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1032
|
-
status:
|
|
1114
|
+
status: 200;
|
|
1115
|
+
data: KnowledgeSourcesWorkspaceForkResponse;
|
|
1033
1116
|
} | {
|
|
1034
1117
|
status: 404;
|
|
1035
1118
|
} | {
|
|
1036
1119
|
status: 422;
|
|
1037
1120
|
data: HttpValidationError;
|
|
1038
|
-
}>("/v1/knowledge-sources", oazapfts.json({
|
|
1121
|
+
}>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
1039
1122
|
...opts,
|
|
1040
1123
|
method: "POST",
|
|
1041
|
-
body:
|
|
1124
|
+
body: knowledgeSourcesWorkspaceForkRequest,
|
|
1042
1125
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1043
1126
|
authorization,
|
|
1044
1127
|
"x-account-id": xAccountId
|
|
@@ -1046,81 +1129,50 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAc
|
|
|
1046
1129
|
})));
|
|
1047
1130
|
}
|
|
1048
1131
|
/**
|
|
1049
|
-
*
|
|
1132
|
+
* Workspace Delete Fork
|
|
1050
1133
|
*/
|
|
1051
|
-
export function
|
|
1052
|
-
visibility?: VisibilityLevelEnum;
|
|
1053
|
-
order?: OrderEnum;
|
|
1054
|
-
$default?: boolean | null;
|
|
1055
|
-
types?: KnowledgeSourceTypeEnum[] | null;
|
|
1134
|
+
export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ authorization, xAccountId, knowledgeSourcesWorkspaceDeleteRequest }: {
|
|
1056
1135
|
authorization: string;
|
|
1057
1136
|
xAccountId?: string | null;
|
|
1137
|
+
knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
|
|
1058
1138
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1059
1139
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1060
|
-
status:
|
|
1061
|
-
data: KnowledgeSourceItemResponse[];
|
|
1140
|
+
status: 204;
|
|
1062
1141
|
} | {
|
|
1063
1142
|
status: 404;
|
|
1064
1143
|
} | {
|
|
1065
1144
|
status: 422;
|
|
1066
1145
|
data: HttpValidationError;
|
|
1067
|
-
}>(
|
|
1068
|
-
visibility,
|
|
1069
|
-
order,
|
|
1070
|
-
"default": $default,
|
|
1071
|
-
types
|
|
1072
|
-
}))}`, {
|
|
1146
|
+
}>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
1073
1147
|
...opts,
|
|
1148
|
+
method: "DELETE",
|
|
1149
|
+
body: knowledgeSourcesWorkspaceDeleteRequest,
|
|
1074
1150
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1075
1151
|
authorization,
|
|
1076
1152
|
"x-account-id": xAccountId
|
|
1077
1153
|
})
|
|
1078
|
-
}));
|
|
1154
|
+
})));
|
|
1079
1155
|
}
|
|
1080
1156
|
/**
|
|
1081
|
-
*
|
|
1157
|
+
* Workspace List
|
|
1082
1158
|
*/
|
|
1083
|
-
export function
|
|
1084
|
-
slug: string;
|
|
1159
|
+
export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ authorization, xAccountId, knowledgeSourcesWorkspaceListRequest }: {
|
|
1085
1160
|
authorization: string;
|
|
1086
1161
|
xAccountId?: string | null;
|
|
1162
|
+
knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
|
|
1087
1163
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1088
1164
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1089
1165
|
status: 200;
|
|
1090
|
-
data:
|
|
1091
|
-
} | {
|
|
1092
|
-
status: 404;
|
|
1093
|
-
} | {
|
|
1094
|
-
status: 422;
|
|
1095
|
-
data: HttpValidationError;
|
|
1096
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1097
|
-
...opts,
|
|
1098
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1099
|
-
authorization,
|
|
1100
|
-
"x-account-id": xAccountId
|
|
1101
|
-
})
|
|
1102
|
-
}));
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* Update Knowledge Source
|
|
1106
|
-
*/
|
|
1107
|
-
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, xAccountId, knowledgeSourcePatchesRequest }: {
|
|
1108
|
-
slug: string;
|
|
1109
|
-
authorization: string;
|
|
1110
|
-
xAccountId?: string | null;
|
|
1111
|
-
knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
|
|
1112
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1113
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1114
|
-
status: 204;
|
|
1166
|
+
data: any;
|
|
1115
1167
|
} | {
|
|
1116
1168
|
status: 404;
|
|
1117
1169
|
} | {
|
|
1118
1170
|
status: 422;
|
|
1119
1171
|
data: HttpValidationError;
|
|
1120
|
-
}>(
|
|
1172
|
+
}>("/v1/knowledge-sources/workspace/list", oazapfts.json({
|
|
1121
1173
|
...opts,
|
|
1122
|
-
method: "
|
|
1123
|
-
body:
|
|
1174
|
+
method: "POST",
|
|
1175
|
+
body: knowledgeSourcesWorkspaceListRequest,
|
|
1124
1176
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1125
1177
|
authorization,
|
|
1126
1178
|
"x-account-id": xAccountId
|
|
@@ -1128,12 +1180,12 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
|
|
|
1128
1180
|
})));
|
|
1129
1181
|
}
|
|
1130
1182
|
/**
|
|
1131
|
-
*
|
|
1183
|
+
* Create Knowledge Source
|
|
1132
1184
|
*/
|
|
1133
|
-
export function
|
|
1134
|
-
slug: string;
|
|
1185
|
+
export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAccountId, newKnowledgeSourceRequest }: {
|
|
1135
1186
|
authorization: string;
|
|
1136
1187
|
xAccountId?: string | null;
|
|
1188
|
+
newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
|
|
1137
1189
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1138
1190
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1139
1191
|
status: 204;
|
|
@@ -1142,60 +1194,40 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
|
|
|
1142
1194
|
} | {
|
|
1143
1195
|
status: 422;
|
|
1144
1196
|
data: HttpValidationError;
|
|
1145
|
-
}>(
|
|
1146
|
-
...opts,
|
|
1147
|
-
method: "DELETE",
|
|
1148
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1149
|
-
authorization,
|
|
1150
|
-
"x-account-id": xAccountId
|
|
1151
|
-
})
|
|
1152
|
-
}));
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Find Knowledge Source Dependencies
|
|
1156
|
-
*/
|
|
1157
|
-
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
|
|
1158
|
-
slug: string;
|
|
1159
|
-
authorization: string;
|
|
1160
|
-
xAccountId?: string | null;
|
|
1161
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1162
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1163
|
-
status: 200;
|
|
1164
|
-
data: KnowledgeSourceDependenciesResponse;
|
|
1165
|
-
} | {
|
|
1166
|
-
status: 404;
|
|
1167
|
-
} | {
|
|
1168
|
-
status: 422;
|
|
1169
|
-
data: HttpValidationError;
|
|
1170
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
1197
|
+
}>("/v1/knowledge-sources", oazapfts.json({
|
|
1171
1198
|
...opts,
|
|
1199
|
+
method: "POST",
|
|
1200
|
+
body: newKnowledgeSourceRequest,
|
|
1172
1201
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1173
1202
|
authorization,
|
|
1174
1203
|
"x-account-id": xAccountId
|
|
1175
1204
|
})
|
|
1176
|
-
}));
|
|
1205
|
+
})));
|
|
1177
1206
|
}
|
|
1178
1207
|
/**
|
|
1179
|
-
*
|
|
1208
|
+
* List Knowledge Sources
|
|
1180
1209
|
*/
|
|
1181
|
-
export function
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1210
|
+
export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }: {
|
|
1211
|
+
visibility?: VisibilityLevelEnum;
|
|
1212
|
+
order?: OrderEnum;
|
|
1213
|
+
$default?: boolean | null;
|
|
1214
|
+
types?: KnowledgeSourceTypeEnum[] | null;
|
|
1185
1215
|
authorization: string;
|
|
1186
1216
|
xAccountId?: string | null;
|
|
1187
1217
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1188
1218
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1189
1219
|
status: 200;
|
|
1190
|
-
data:
|
|
1220
|
+
data: KnowledgeSourceItemResponse[];
|
|
1191
1221
|
} | {
|
|
1192
1222
|
status: 404;
|
|
1193
1223
|
} | {
|
|
1194
1224
|
status: 422;
|
|
1195
1225
|
data: HttpValidationError;
|
|
1196
|
-
}>(`/v1/knowledge-sources
|
|
1197
|
-
|
|
1198
|
-
|
|
1226
|
+
}>(`/v1/knowledge-sources${QS.query(QS.explode({
|
|
1227
|
+
visibility,
|
|
1228
|
+
order,
|
|
1229
|
+
"default": $default,
|
|
1230
|
+
types
|
|
1199
1231
|
}))}`, {
|
|
1200
1232
|
...opts,
|
|
1201
1233
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1205,23 +1237,23 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
|
|
|
1205
1237
|
}));
|
|
1206
1238
|
}
|
|
1207
1239
|
/**
|
|
1208
|
-
*
|
|
1240
|
+
* Find Knowledge Source
|
|
1209
1241
|
*/
|
|
1210
|
-
export function
|
|
1242
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization, xAccountId }: {
|
|
1211
1243
|
slug: string;
|
|
1212
1244
|
authorization: string;
|
|
1213
1245
|
xAccountId?: string | null;
|
|
1214
1246
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1215
1247
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1216
|
-
status:
|
|
1248
|
+
status: 200;
|
|
1249
|
+
data: KnowledgeSourceResponse;
|
|
1217
1250
|
} | {
|
|
1218
1251
|
status: 404;
|
|
1219
1252
|
} | {
|
|
1220
1253
|
status: 422;
|
|
1221
1254
|
data: HttpValidationError;
|
|
1222
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}
|
|
1255
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1223
1256
|
...opts,
|
|
1224
|
-
method: "POST",
|
|
1225
1257
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1226
1258
|
authorization,
|
|
1227
1259
|
"x-account-id": xAccountId
|
|
@@ -1229,12 +1261,13 @@ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, auth
|
|
|
1229
1261
|
}));
|
|
1230
1262
|
}
|
|
1231
1263
|
/**
|
|
1232
|
-
*
|
|
1264
|
+
* Update Knowledge Source
|
|
1233
1265
|
*/
|
|
1234
|
-
export function
|
|
1266
|
+
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, xAccountId, knowledgeSourcePatchesRequest }: {
|
|
1235
1267
|
slug: string;
|
|
1236
1268
|
authorization: string;
|
|
1237
1269
|
xAccountId?: string | null;
|
|
1270
|
+
knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
|
|
1238
1271
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1239
1272
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1240
1273
|
status: 204;
|
|
@@ -1243,34 +1276,10 @@ export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug,
|
|
|
1243
1276
|
} | {
|
|
1244
1277
|
status: 422;
|
|
1245
1278
|
data: HttpValidationError;
|
|
1246
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}
|
|
1247
|
-
...opts,
|
|
1248
|
-
method: "POST",
|
|
1249
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1250
|
-
authorization,
|
|
1251
|
-
"x-account-id": xAccountId
|
|
1252
|
-
})
|
|
1253
|
-
}));
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* Publish Knowledge Source In Batch
|
|
1257
|
-
*/
|
|
1258
|
-
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, xAccountId, knowSourcePublishBatchRequest }: {
|
|
1259
|
-
authorization: string;
|
|
1260
|
-
xAccountId?: string | null;
|
|
1261
|
-
knowSourcePublishBatchRequest: KnowSourcePublishBatchRequest;
|
|
1262
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1263
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1264
|
-
status: 204;
|
|
1265
|
-
} | {
|
|
1266
|
-
status: 404;
|
|
1267
|
-
} | {
|
|
1268
|
-
status: 422;
|
|
1269
|
-
data: HttpValidationError;
|
|
1270
|
-
}>("/v1/knowledge-sources/publish/batch", oazapfts.json({
|
|
1279
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
1271
1280
|
...opts,
|
|
1272
|
-
method: "
|
|
1273
|
-
body:
|
|
1281
|
+
method: "PATCH",
|
|
1282
|
+
body: knowledgeSourcePatchesRequest,
|
|
1274
1283
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1275
1284
|
authorization,
|
|
1276
1285
|
"x-account-id": xAccountId
|
|
@@ -1278,11 +1287,10 @@ export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost(
|
|
|
1278
1287
|
})));
|
|
1279
1288
|
}
|
|
1280
1289
|
/**
|
|
1281
|
-
*
|
|
1290
|
+
* Delete Knowledge Source
|
|
1282
1291
|
*/
|
|
1283
|
-
export function
|
|
1292
|
+
export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }: {
|
|
1284
1293
|
slug: string;
|
|
1285
|
-
value: boolean;
|
|
1286
1294
|
authorization: string;
|
|
1287
1295
|
xAccountId?: string | null;
|
|
1288
1296
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1293,11 +1301,9 @@ export function configureKnowledgeSourceDefaultFlagV1KnowledgeSourcesSlugDefault
|
|
|
1293
1301
|
} | {
|
|
1294
1302
|
status: 422;
|
|
1295
1303
|
data: HttpValidationError;
|
|
1296
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}
|
|
1297
|
-
value
|
|
1298
|
-
}))}`, {
|
|
1304
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1299
1305
|
...opts,
|
|
1300
|
-
method: "
|
|
1306
|
+
method: "DELETE",
|
|
1301
1307
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1302
1308
|
authorization,
|
|
1303
1309
|
"x-account-id": xAccountId
|
|
@@ -1305,13 +1311,12 @@ export function configureKnowledgeSourceDefaultFlagV1KnowledgeSourcesSlugDefault
|
|
|
1305
1311
|
}));
|
|
1306
1312
|
}
|
|
1307
1313
|
/**
|
|
1308
|
-
*
|
|
1314
|
+
* Find Knowledge Source
|
|
1309
1315
|
*/
|
|
1310
|
-
export function
|
|
1316
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization, xAccountId }: {
|
|
1311
1317
|
slug: string;
|
|
1312
1318
|
authorization: string;
|
|
1313
1319
|
xAccountId?: string | null;
|
|
1314
|
-
forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
|
|
1315
1320
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1316
1321
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1317
1322
|
status: 204;
|
|
@@ -1320,61 +1325,59 @@ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, author
|
|
|
1320
1325
|
} | {
|
|
1321
1326
|
status: 422;
|
|
1322
1327
|
data: HttpValidationError;
|
|
1323
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1328
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/exists`, {
|
|
1324
1329
|
...opts,
|
|
1325
|
-
method: "POST",
|
|
1326
|
-
body: forkKnowledgeSourceRequest,
|
|
1327
1330
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1328
1331
|
authorization,
|
|
1329
1332
|
"x-account-id": xAccountId
|
|
1330
1333
|
})
|
|
1331
|
-
}))
|
|
1334
|
+
}));
|
|
1332
1335
|
}
|
|
1333
1336
|
/**
|
|
1334
|
-
*
|
|
1337
|
+
* Find Knowledge Source Dependencies
|
|
1335
1338
|
*/
|
|
1336
|
-
export function
|
|
1339
|
+
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
|
|
1337
1340
|
slug: string;
|
|
1338
1341
|
authorization: string;
|
|
1339
1342
|
xAccountId?: string | null;
|
|
1340
|
-
bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost: BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost;
|
|
1341
1343
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1342
1344
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1343
|
-
status:
|
|
1345
|
+
status: 200;
|
|
1346
|
+
data: KnowledgeSourceDependenciesResponse;
|
|
1344
1347
|
} | {
|
|
1345
1348
|
status: 404;
|
|
1346
1349
|
} | {
|
|
1347
1350
|
status: 422;
|
|
1348
1351
|
data: HttpValidationError;
|
|
1349
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1352
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
1350
1353
|
...opts,
|
|
1351
|
-
method: "POST",
|
|
1352
|
-
body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
|
|
1353
1354
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1354
1355
|
authorization,
|
|
1355
1356
|
"x-account-id": xAccountId
|
|
1356
1357
|
})
|
|
1357
|
-
}))
|
|
1358
|
+
}));
|
|
1358
1359
|
}
|
|
1359
1360
|
/**
|
|
1360
|
-
*
|
|
1361
|
+
* Search
|
|
1361
1362
|
*/
|
|
1362
|
-
export function
|
|
1363
|
+
export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId }: {
|
|
1363
1364
|
slug: string;
|
|
1364
|
-
|
|
1365
|
+
q: string;
|
|
1366
|
+
size?: number;
|
|
1365
1367
|
authorization: string;
|
|
1366
1368
|
xAccountId?: string | null;
|
|
1367
1369
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1368
1370
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1369
1371
|
status: 200;
|
|
1370
|
-
data:
|
|
1372
|
+
data: KnowledgeSourceSimilaritySearchItemResponse[];
|
|
1371
1373
|
} | {
|
|
1372
1374
|
status: 404;
|
|
1373
1375
|
} | {
|
|
1374
1376
|
status: 422;
|
|
1375
1377
|
data: HttpValidationError;
|
|
1376
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1377
|
-
|
|
1378
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
|
|
1379
|
+
q,
|
|
1380
|
+
size
|
|
1378
1381
|
}))}`, {
|
|
1379
1382
|
...opts,
|
|
1380
1383
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1384,11 +1387,10 @@ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, sta
|
|
|
1384
1387
|
}));
|
|
1385
1388
|
}
|
|
1386
1389
|
/**
|
|
1387
|
-
*
|
|
1390
|
+
* Share Knowledge Source
|
|
1388
1391
|
*/
|
|
1389
|
-
export function
|
|
1392
|
+
export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization, xAccountId }: {
|
|
1390
1393
|
slug: string;
|
|
1391
|
-
standalone?: boolean | null;
|
|
1392
1394
|
authorization: string;
|
|
1393
1395
|
xAccountId?: string | null;
|
|
1394
1396
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1399,11 +1401,9 @@ export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug,
|
|
|
1399
1401
|
} | {
|
|
1400
1402
|
status: 422;
|
|
1401
1403
|
data: HttpValidationError;
|
|
1402
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1403
|
-
standalone
|
|
1404
|
-
}))}`, {
|
|
1404
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
|
|
1405
1405
|
...opts,
|
|
1406
|
-
method: "
|
|
1406
|
+
method: "POST",
|
|
1407
1407
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1408
1408
|
authorization,
|
|
1409
1409
|
"x-account-id": xAccountId
|
|
@@ -1411,14 +1411,13 @@ export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug,
|
|
|
1411
1411
|
}));
|
|
1412
1412
|
}
|
|
1413
1413
|
/**
|
|
1414
|
-
*
|
|
1414
|
+
* Publish Knowledge Source
|
|
1415
1415
|
*/
|
|
1416
|
-
export function
|
|
1416
|
+
export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, xAccountId, knowledgeSourcesPublishRequest }: {
|
|
1417
1417
|
slug: string;
|
|
1418
|
-
autoDelete?: boolean;
|
|
1419
1418
|
authorization: string;
|
|
1420
1419
|
xAccountId?: string | null;
|
|
1421
|
-
|
|
1420
|
+
knowledgeSourcesPublishRequest?: KnowledgeSourcesPublishRequest;
|
|
1422
1421
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1423
1422
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1424
1423
|
status: 204;
|
|
@@ -1427,12 +1426,10 @@ export function uploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost(
|
|
|
1427
1426
|
} | {
|
|
1428
1427
|
status: 422;
|
|
1429
1428
|
data: HttpValidationError;
|
|
1430
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1431
|
-
"auto-delete": autoDelete
|
|
1432
|
-
}))}`, oazapfts.multipart({
|
|
1429
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, oazapfts.json({
|
|
1433
1430
|
...opts,
|
|
1434
1431
|
method: "POST",
|
|
1435
|
-
body:
|
|
1432
|
+
body: knowledgeSourcesPublishRequest,
|
|
1436
1433
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1437
1434
|
authorization,
|
|
1438
1435
|
"x-account-id": xAccountId
|
|
@@ -1440,38 +1437,12 @@ export function uploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost(
|
|
|
1440
1437
|
})));
|
|
1441
1438
|
}
|
|
1442
1439
|
/**
|
|
1443
|
-
*
|
|
1444
|
-
*/
|
|
1445
|
-
export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization, xAccountId }: {
|
|
1446
|
-
slug: string;
|
|
1447
|
-
customId: string;
|
|
1448
|
-
authorization: string;
|
|
1449
|
-
xAccountId?: string | null;
|
|
1450
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1451
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1452
|
-
status: 200;
|
|
1453
|
-
data: DocumentResponse;
|
|
1454
|
-
} | {
|
|
1455
|
-
status: 404;
|
|
1456
|
-
} | {
|
|
1457
|
-
status: 422;
|
|
1458
|
-
data: HttpValidationError;
|
|
1459
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
1460
|
-
...opts,
|
|
1461
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1462
|
-
authorization,
|
|
1463
|
-
"x-account-id": xAccountId
|
|
1464
|
-
})
|
|
1465
|
-
}));
|
|
1466
|
-
}
|
|
1467
|
-
/**
|
|
1468
|
-
* Delete Knowledge Object By Custom Id
|
|
1440
|
+
* Publish Knowledge Source In Batch
|
|
1469
1441
|
*/
|
|
1470
|
-
export function
|
|
1471
|
-
customId: string;
|
|
1472
|
-
slug: string;
|
|
1442
|
+
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, xAccountId, knowSourcePublishBatchRequest }: {
|
|
1473
1443
|
authorization: string;
|
|
1474
1444
|
xAccountId?: string | null;
|
|
1445
|
+
knowSourcePublishBatchRequest: KnowSourcePublishBatchRequest;
|
|
1475
1446
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1476
1447
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1477
1448
|
status: 204;
|
|
@@ -1480,48 +1451,24 @@ export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCust
|
|
|
1480
1451
|
} | {
|
|
1481
1452
|
status: 422;
|
|
1482
1453
|
data: HttpValidationError;
|
|
1483
|
-
}>(
|
|
1484
|
-
...opts,
|
|
1485
|
-
method: "DELETE",
|
|
1486
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1487
|
-
authorization,
|
|
1488
|
-
"x-account-id": xAccountId
|
|
1489
|
-
})
|
|
1490
|
-
}));
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* Find Snippet Doc By Custom Id
|
|
1494
|
-
*/
|
|
1495
|
-
export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ slug, id, authorization, xAccountId }: {
|
|
1496
|
-
slug: string;
|
|
1497
|
-
id: string;
|
|
1498
|
-
authorization: string;
|
|
1499
|
-
xAccountId?: string | null;
|
|
1500
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1501
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1502
|
-
status: 200;
|
|
1503
|
-
data: DocumentResponse;
|
|
1504
|
-
} | {
|
|
1505
|
-
status: 404;
|
|
1506
|
-
} | {
|
|
1507
|
-
status: 422;
|
|
1508
|
-
data: HttpValidationError;
|
|
1509
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets/${encodeURIComponent(id)}`, {
|
|
1454
|
+
}>("/v1/knowledge-sources/publish/batch", oazapfts.json({
|
|
1510
1455
|
...opts,
|
|
1456
|
+
method: "POST",
|
|
1457
|
+
body: knowSourcePublishBatchRequest,
|
|
1511
1458
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1512
1459
|
authorization,
|
|
1513
1460
|
"x-account-id": xAccountId
|
|
1514
1461
|
})
|
|
1515
|
-
}));
|
|
1462
|
+
})));
|
|
1516
1463
|
}
|
|
1517
1464
|
/**
|
|
1518
|
-
*
|
|
1465
|
+
* Fork Knowledge Source
|
|
1519
1466
|
*/
|
|
1520
|
-
export function
|
|
1467
|
+
export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, xAccountId, forkKnowledgeSourceRequest }: {
|
|
1521
1468
|
slug: string;
|
|
1522
1469
|
authorization: string;
|
|
1523
1470
|
xAccountId?: string | null;
|
|
1524
|
-
|
|
1471
|
+
forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
|
|
1525
1472
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1526
1473
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1527
1474
|
status: 204;
|
|
@@ -1530,10 +1477,10 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
|
|
|
1530
1477
|
} | {
|
|
1531
1478
|
status: 422;
|
|
1532
1479
|
data: HttpValidationError;
|
|
1533
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1480
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/fork`, oazapfts.json({
|
|
1534
1481
|
...opts,
|
|
1535
1482
|
method: "POST",
|
|
1536
|
-
body:
|
|
1483
|
+
body: forkKnowledgeSourceRequest,
|
|
1537
1484
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1538
1485
|
authorization,
|
|
1539
1486
|
"x-account-id": xAccountId
|
|
@@ -1541,23 +1488,25 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
|
|
|
1541
1488
|
})));
|
|
1542
1489
|
}
|
|
1543
1490
|
/**
|
|
1544
|
-
*
|
|
1491
|
+
* List Knowledge Objects
|
|
1545
1492
|
*/
|
|
1546
|
-
export function
|
|
1493
|
+
export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }: {
|
|
1547
1494
|
slug: string;
|
|
1548
|
-
|
|
1495
|
+
standalone?: boolean | null;
|
|
1549
1496
|
authorization: string;
|
|
1550
1497
|
xAccountId?: string | null;
|
|
1551
1498
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1552
1499
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1553
1500
|
status: 200;
|
|
1554
|
-
data: DocumentResponse;
|
|
1501
|
+
data: DocumentResponse[];
|
|
1555
1502
|
} | {
|
|
1556
1503
|
status: 404;
|
|
1557
1504
|
} | {
|
|
1558
1505
|
status: 422;
|
|
1559
1506
|
data: HttpValidationError;
|
|
1560
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1507
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
|
|
1508
|
+
standalone
|
|
1509
|
+
}))}`, {
|
|
1561
1510
|
...opts,
|
|
1562
1511
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1563
1512
|
authorization,
|
|
@@ -1566,13 +1515,13 @@ export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id,
|
|
|
1566
1515
|
}));
|
|
1567
1516
|
}
|
|
1568
1517
|
/**
|
|
1569
|
-
*
|
|
1518
|
+
* Reset Knowledge Objects
|
|
1570
1519
|
*/
|
|
1571
|
-
export function
|
|
1520
|
+
export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization, xAccountId }: {
|
|
1572
1521
|
slug: string;
|
|
1522
|
+
standalone?: boolean | null;
|
|
1573
1523
|
authorization: string;
|
|
1574
1524
|
xAccountId?: string | null;
|
|
1575
|
-
body: object;
|
|
1576
1525
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1577
1526
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1578
1527
|
status: 204;
|
|
@@ -1581,22 +1530,23 @@ export function vectorizeApiKnowledgeSourceV1KnowledgeSourcesSlugApisPost({ slug
|
|
|
1581
1530
|
} | {
|
|
1582
1531
|
status: 422;
|
|
1583
1532
|
data: HttpValidationError;
|
|
1584
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1533
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
|
|
1534
|
+
standalone
|
|
1535
|
+
}))}`, {
|
|
1585
1536
|
...opts,
|
|
1586
|
-
method: "
|
|
1587
|
-
body,
|
|
1537
|
+
method: "DELETE",
|
|
1588
1538
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1589
1539
|
authorization,
|
|
1590
1540
|
"x-account-id": xAccountId
|
|
1591
1541
|
})
|
|
1592
|
-
}))
|
|
1542
|
+
}));
|
|
1593
1543
|
}
|
|
1594
1544
|
/**
|
|
1595
|
-
* Find
|
|
1545
|
+
* Find Knowledge Object By Custom Id
|
|
1596
1546
|
*/
|
|
1597
|
-
export function
|
|
1547
|
+
export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization, xAccountId }: {
|
|
1598
1548
|
slug: string;
|
|
1599
|
-
|
|
1549
|
+
customId: string;
|
|
1600
1550
|
authorization: string;
|
|
1601
1551
|
xAccountId?: string | null;
|
|
1602
1552
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1608,7 +1558,7 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
|
|
|
1608
1558
|
} | {
|
|
1609
1559
|
status: 422;
|
|
1610
1560
|
data: HttpValidationError;
|
|
1611
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1561
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
1612
1562
|
...opts,
|
|
1613
1563
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1614
1564
|
authorization,
|
|
@@ -1617,13 +1567,13 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
|
|
|
1617
1567
|
}));
|
|
1618
1568
|
}
|
|
1619
1569
|
/**
|
|
1620
|
-
*
|
|
1570
|
+
* Delete Knowledge Object By Custom Id
|
|
1621
1571
|
*/
|
|
1622
|
-
export function
|
|
1572
|
+
export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization, xAccountId }: {
|
|
1573
|
+
customId: string;
|
|
1623
1574
|
slug: string;
|
|
1624
1575
|
authorization: string;
|
|
1625
1576
|
xAccountId?: string | null;
|
|
1626
|
-
body: object;
|
|
1627
1577
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1628
1578
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1629
1579
|
status: 204;
|
|
@@ -1632,40 +1582,40 @@ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({
|
|
|
1632
1582
|
} | {
|
|
1633
1583
|
status: 422;
|
|
1634
1584
|
data: HttpValidationError;
|
|
1635
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1585
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
1636
1586
|
...opts,
|
|
1637
|
-
method: "
|
|
1638
|
-
body,
|
|
1587
|
+
method: "DELETE",
|
|
1639
1588
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1640
1589
|
authorization,
|
|
1641
1590
|
"x-account-id": xAccountId
|
|
1642
1591
|
})
|
|
1643
|
-
}))
|
|
1592
|
+
}));
|
|
1644
1593
|
}
|
|
1645
1594
|
/**
|
|
1646
|
-
*
|
|
1595
|
+
* Vectorize Snippet Knowledge Source
|
|
1647
1596
|
*/
|
|
1648
|
-
export function
|
|
1597
|
+
export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }: {
|
|
1649
1598
|
slug: string;
|
|
1650
|
-
id: string;
|
|
1651
1599
|
authorization: string;
|
|
1652
1600
|
xAccountId?: string | null;
|
|
1601
|
+
snippetKnowledgeSourceRequest: SnippetKnowledgeSourceRequest;
|
|
1653
1602
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1654
1603
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1655
|
-
status:
|
|
1656
|
-
data: DocumentResponse;
|
|
1604
|
+
status: 204;
|
|
1657
1605
|
} | {
|
|
1658
1606
|
status: 404;
|
|
1659
1607
|
} | {
|
|
1660
1608
|
status: 422;
|
|
1661
1609
|
data: HttpValidationError;
|
|
1662
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1610
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
|
|
1663
1611
|
...opts,
|
|
1612
|
+
method: "POST",
|
|
1613
|
+
body: snippetKnowledgeSourceRequest,
|
|
1664
1614
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1665
1615
|
authorization,
|
|
1666
1616
|
"x-account-id": xAccountId
|
|
1667
1617
|
})
|
|
1668
|
-
}));
|
|
1618
|
+
})));
|
|
1669
1619
|
}
|
|
1670
1620
|
/**
|
|
1671
1621
|
* Vectorize Custom Knowledge Source
|
|
@@ -1857,6 +1807,38 @@ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAc
|
|
|
1857
1807
|
})
|
|
1858
1808
|
})));
|
|
1859
1809
|
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Get External Configs
|
|
1812
|
+
*/
|
|
1813
|
+
export function getExternalConfigsV1AccountsExternalConfigGet(opts?: Oazapfts.RequestOpts) {
|
|
1814
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1815
|
+
status: 200;
|
|
1816
|
+
data: any;
|
|
1817
|
+
} | {
|
|
1818
|
+
status: 404;
|
|
1819
|
+
}>("/v1/accounts/external-config", {
|
|
1820
|
+
...opts
|
|
1821
|
+
}));
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Change External Configs
|
|
1825
|
+
*/
|
|
1826
|
+
export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
|
|
1827
|
+
body: object;
|
|
1828
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1829
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1830
|
+
status: 204;
|
|
1831
|
+
} | {
|
|
1832
|
+
status: 404;
|
|
1833
|
+
} | {
|
|
1834
|
+
status: 422;
|
|
1835
|
+
data: HttpValidationError;
|
|
1836
|
+
}>("/v1/accounts/external-config", oazapfts.json({
|
|
1837
|
+
...opts,
|
|
1838
|
+
method: "PATCH",
|
|
1839
|
+
body
|
|
1840
|
+
})));
|
|
1841
|
+
}
|
|
1860
1842
|
/**
|
|
1861
1843
|
* Current
|
|
1862
1844
|
*/
|
|
@@ -2014,6 +1996,109 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
|
|
|
2014
1996
|
})
|
|
2015
1997
|
}));
|
|
2016
1998
|
}
|
|
1999
|
+
/**
|
|
2000
|
+
* Workspace Fork
|
|
2001
|
+
*/
|
|
2002
|
+
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }: {
|
|
2003
|
+
authorization: string;
|
|
2004
|
+
xAccountId?: string | null;
|
|
2005
|
+
quickCommandWorkspaceForkRequest: QuickCommandWorkspaceForkRequest;
|
|
2006
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2007
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2008
|
+
status: 200;
|
|
2009
|
+
data: any;
|
|
2010
|
+
} | {
|
|
2011
|
+
status: 404;
|
|
2012
|
+
} | {
|
|
2013
|
+
status: 422;
|
|
2014
|
+
data: HttpValidationError;
|
|
2015
|
+
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
2016
|
+
...opts,
|
|
2017
|
+
method: "POST",
|
|
2018
|
+
body: quickCommandWorkspaceForkRequest,
|
|
2019
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2020
|
+
authorization,
|
|
2021
|
+
"x-account-id": xAccountId
|
|
2022
|
+
})
|
|
2023
|
+
})));
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* Workspace Delete Fork
|
|
2027
|
+
*/
|
|
2028
|
+
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }: {
|
|
2029
|
+
authorization: string;
|
|
2030
|
+
xAccountId?: string | null;
|
|
2031
|
+
quickCommandWorkspaceDeleteRequest: QuickCommandWorkspaceDeleteRequest;
|
|
2032
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2033
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2034
|
+
status: 204;
|
|
2035
|
+
} | {
|
|
2036
|
+
status: 404;
|
|
2037
|
+
} | {
|
|
2038
|
+
status: 422;
|
|
2039
|
+
data: HttpValidationError;
|
|
2040
|
+
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
2041
|
+
...opts,
|
|
2042
|
+
method: "DELETE",
|
|
2043
|
+
body: quickCommandWorkspaceDeleteRequest,
|
|
2044
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2045
|
+
authorization,
|
|
2046
|
+
"x-account-id": xAccountId
|
|
2047
|
+
})
|
|
2048
|
+
})));
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* Qc Dependencies
|
|
2052
|
+
*/
|
|
2053
|
+
export function qcDependenciesV1QuickCommandsDependenciesPost({ authorization, xAccountId, quickCommandDependenciesRequest }: {
|
|
2054
|
+
authorization: string;
|
|
2055
|
+
xAccountId?: string | null;
|
|
2056
|
+
quickCommandDependenciesRequest: QuickCommandDependenciesRequest;
|
|
2057
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2058
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2059
|
+
status: 200;
|
|
2060
|
+
data: any;
|
|
2061
|
+
} | {
|
|
2062
|
+
status: 404;
|
|
2063
|
+
} | {
|
|
2064
|
+
status: 422;
|
|
2065
|
+
data: HttpValidationError;
|
|
2066
|
+
}>("/v1/quick-commands/dependencies", oazapfts.json({
|
|
2067
|
+
...opts,
|
|
2068
|
+
method: "POST",
|
|
2069
|
+
body: quickCommandDependenciesRequest,
|
|
2070
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2071
|
+
authorization,
|
|
2072
|
+
"x-account-id": xAccountId
|
|
2073
|
+
})
|
|
2074
|
+
})));
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Workspace List
|
|
2078
|
+
*/
|
|
2079
|
+
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }: {
|
|
2080
|
+
authorization: string;
|
|
2081
|
+
xAccountId?: string | null;
|
|
2082
|
+
quickCommandWorkspaceListRequest: QuickCommandWorkspaceListRequest;
|
|
2083
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2084
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2085
|
+
status: 200;
|
|
2086
|
+
data: QuickCommandListResponse[];
|
|
2087
|
+
} | {
|
|
2088
|
+
status: 404;
|
|
2089
|
+
} | {
|
|
2090
|
+
status: 422;
|
|
2091
|
+
data: HttpValidationError;
|
|
2092
|
+
}>("/v1/quick-commands/workspace/list", oazapfts.json({
|
|
2093
|
+
...opts,
|
|
2094
|
+
method: "POST",
|
|
2095
|
+
body: quickCommandWorkspaceListRequest,
|
|
2096
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2097
|
+
authorization,
|
|
2098
|
+
"x-account-id": xAccountId
|
|
2099
|
+
})
|
|
2100
|
+
})));
|
|
2101
|
+
}
|
|
2017
2102
|
/**
|
|
2018
2103
|
* Create Quick Command
|
|
2019
2104
|
*/
|
|
@@ -2202,10 +2287,11 @@ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccoun
|
|
|
2202
2287
|
/**
|
|
2203
2288
|
* Publish
|
|
2204
2289
|
*/
|
|
2205
|
-
export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId }: {
|
|
2290
|
+
export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, quickCommandPublishRequest }: {
|
|
2206
2291
|
slug: string;
|
|
2207
2292
|
authorization: string;
|
|
2208
2293
|
xAccountId?: string | null;
|
|
2294
|
+
quickCommandPublishRequest?: QuickCommandPublishRequest;
|
|
2209
2295
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2210
2296
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2211
2297
|
status: 204;
|
|
@@ -2214,14 +2300,15 @@ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAc
|
|
|
2214
2300
|
} | {
|
|
2215
2301
|
status: 422;
|
|
2216
2302
|
data: HttpValidationError;
|
|
2217
|
-
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, {
|
|
2303
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, oazapfts.json({
|
|
2218
2304
|
...opts,
|
|
2219
2305
|
method: "POST",
|
|
2306
|
+
body: quickCommandPublishRequest,
|
|
2220
2307
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2221
2308
|
authorization,
|
|
2222
2309
|
"x-account-id": xAccountId
|
|
2223
2310
|
})
|
|
2224
|
-
}));
|
|
2311
|
+
})));
|
|
2225
2312
|
}
|
|
2226
2313
|
/**
|
|
2227
2314
|
* Fork
|
|
@@ -2250,6 +2337,29 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
|
|
|
2250
2337
|
})
|
|
2251
2338
|
})));
|
|
2252
2339
|
}
|
|
2340
|
+
/**
|
|
2341
|
+
* Get Quick Command
|
|
2342
|
+
*/
|
|
2343
|
+
export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId }: {
|
|
2344
|
+
slug: string;
|
|
2345
|
+
authorization: string;
|
|
2346
|
+
xAccountId?: string | null;
|
|
2347
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2348
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2349
|
+
status: 204;
|
|
2350
|
+
} | {
|
|
2351
|
+
status: 404;
|
|
2352
|
+
} | {
|
|
2353
|
+
status: 422;
|
|
2354
|
+
data: HttpValidationError;
|
|
2355
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/exists`, {
|
|
2356
|
+
...opts,
|
|
2357
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2358
|
+
authorization,
|
|
2359
|
+
"x-account-id": xAccountId
|
|
2360
|
+
})
|
|
2361
|
+
}));
|
|
2362
|
+
}
|
|
2253
2363
|
/**
|
|
2254
2364
|
* Get Quick Command By Ks Slug
|
|
2255
2365
|
*/
|
|
@@ -2688,7 +2798,8 @@ export function downloadConversationV1ConversationsConversationIdDownloadGet({ c
|
|
|
2688
2798
|
/**
|
|
2689
2799
|
* Create Knowledge Source
|
|
2690
2800
|
*/
|
|
2691
|
-
export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ newKnowledgeSourceRequest }: {
|
|
2801
|
+
export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }: {
|
|
2802
|
+
authorization: string;
|
|
2692
2803
|
newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
|
|
2693
2804
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2694
2805
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2701,7 +2812,10 @@ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ newKnowledg
|
|
|
2701
2812
|
}>("/v1/default-knowledge-sources", oazapfts.json({
|
|
2702
2813
|
...opts,
|
|
2703
2814
|
method: "POST",
|
|
2704
|
-
body: newKnowledgeSourceRequest
|
|
2815
|
+
body: newKnowledgeSourceRequest,
|
|
2816
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2817
|
+
authorization
|
|
2818
|
+
})
|
|
2705
2819
|
})));
|
|
2706
2820
|
}
|
|
2707
2821
|
/**
|
|
@@ -2745,14 +2859,22 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
|
|
|
2745
2859
|
body: bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost
|
|
2746
2860
|
})));
|
|
2747
2861
|
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Get Flags
|
|
2864
|
+
*/
|
|
2865
|
+
export function getFlagsV1FlagsGet(opts?: Oazapfts.RequestOpts) {
|
|
2866
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2867
|
+
status: 200;
|
|
2868
|
+
data: FeatureFlagResponse[];
|
|
2869
|
+
}>("/v1/flags", {
|
|
2870
|
+
...opts
|
|
2871
|
+
}));
|
|
2872
|
+
}
|
|
2748
2873
|
/**
|
|
2749
2874
|
* Dev Assistant V2
|
|
2750
2875
|
*/
|
|
2751
|
-
export function devAssistantV2V2ChatPost({ accept
|
|
2876
|
+
export function devAssistantV2V2ChatPost({ accept }: {
|
|
2752
2877
|
accept?: string | null;
|
|
2753
|
-
authorization: string;
|
|
2754
|
-
xAccountId?: string | null;
|
|
2755
|
-
codeBuddyApiV2SchemasChatRequest: ChatRequest2;
|
|
2756
2878
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2757
2879
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2758
2880
|
status: 200;
|
|
@@ -2762,16 +2884,13 @@ export function devAssistantV2V2ChatPost({ accept, authorization, xAccountId, co
|
|
|
2762
2884
|
} | {
|
|
2763
2885
|
status: 422;
|
|
2764
2886
|
data: HttpValidationError;
|
|
2765
|
-
}>("/v2/chat",
|
|
2887
|
+
}>("/v2/chat", {
|
|
2766
2888
|
...opts,
|
|
2767
2889
|
method: "POST",
|
|
2768
|
-
body: codeBuddyApiV2SchemasChatRequest,
|
|
2769
2890
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2770
|
-
accept
|
|
2771
|
-
authorization,
|
|
2772
|
-
"x-account-id": xAccountId
|
|
2891
|
+
accept
|
|
2773
2892
|
})
|
|
2774
|
-
}))
|
|
2893
|
+
}));
|
|
2775
2894
|
}
|
|
2776
2895
|
/**
|
|
2777
2896
|
* Quick Commands Run V2
|
|
@@ -2827,70 +2946,13 @@ export function getDependenciesV2QuickCommandsSlugDependenciesGet({ slug, author
|
|
|
2827
2946
|
})
|
|
2828
2947
|
}));
|
|
2829
2948
|
}
|
|
2830
|
-
/**
|
|
2831
|
-
* Vectorize Objects From File
|
|
2832
|
-
*/
|
|
2833
|
-
export function vectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost }: {
|
|
2834
|
-
slug: string;
|
|
2835
|
-
authorization: string;
|
|
2836
|
-
xAccountId?: string | null;
|
|
2837
|
-
bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost: BodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost;
|
|
2838
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2839
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2840
|
-
status: 202;
|
|
2841
|
-
data: any;
|
|
2842
|
-
} | {
|
|
2843
|
-
status: 404;
|
|
2844
|
-
} | {
|
|
2845
|
-
status: 422;
|
|
2846
|
-
data: HttpValidationError;
|
|
2847
|
-
}>(`/v2/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
|
|
2848
|
-
...opts,
|
|
2849
|
-
method: "POST",
|
|
2850
|
-
body: bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost,
|
|
2851
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2852
|
-
authorization,
|
|
2853
|
-
"x-account-id": xAccountId
|
|
2854
|
-
})
|
|
2855
|
-
})));
|
|
2856
|
-
}
|
|
2857
|
-
/**
|
|
2858
|
-
* Upload Knowledge Objects Zip
|
|
2859
|
-
*/
|
|
2860
|
-
export function uploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost({ slug, autoDelete, authorization, xAccountId, bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost }: {
|
|
2861
|
-
slug: string;
|
|
2862
|
-
autoDelete?: boolean;
|
|
2863
|
-
authorization: string;
|
|
2864
|
-
xAccountId?: string | null;
|
|
2865
|
-
bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost: BodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost;
|
|
2866
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2867
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2868
|
-
status: 202;
|
|
2869
|
-
data: any;
|
|
2870
|
-
} | {
|
|
2871
|
-
status: 404;
|
|
2872
|
-
} | {
|
|
2873
|
-
status: 422;
|
|
2874
|
-
data: HttpValidationError;
|
|
2875
|
-
}>(`/v2/knowledge-sources/${encodeURIComponent(slug)}/objects/batch${QS.query(QS.explode({
|
|
2876
|
-
"auto-delete": autoDelete
|
|
2877
|
-
}))}`, oazapfts.multipart({
|
|
2878
|
-
...opts,
|
|
2879
|
-
method: "POST",
|
|
2880
|
-
body: bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost,
|
|
2881
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2882
|
-
authorization,
|
|
2883
|
-
"x-account-id": xAccountId
|
|
2884
|
-
})
|
|
2885
|
-
})));
|
|
2886
|
-
}
|
|
2887
2949
|
/**
|
|
2888
2950
|
* Dev Assistant V3
|
|
2889
2951
|
*/
|
|
2890
|
-
export function devAssistantV3V3ChatPost({ authorization, xAccountId,
|
|
2952
|
+
export function devAssistantV3V3ChatPost({ authorization, xAccountId, chatRequest }: {
|
|
2891
2953
|
authorization: string;
|
|
2892
2954
|
xAccountId?: string | null;
|
|
2893
|
-
|
|
2955
|
+
chatRequest: ChatRequest;
|
|
2894
2956
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2895
2957
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2896
2958
|
status: 200;
|
|
@@ -2903,7 +2965,7 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, codeBuddyA
|
|
|
2903
2965
|
}>("/v3/chat", oazapfts.json({
|
|
2904
2966
|
...opts,
|
|
2905
2967
|
method: "POST",
|
|
2906
|
-
body:
|
|
2968
|
+
body: chatRequest,
|
|
2907
2969
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2908
2970
|
authorization,
|
|
2909
2971
|
"x-account-id": xAccountId
|