@stack-spot/portal-network 0.97.2 → 0.99.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/api/ai.d.ts +132 -216
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +150 -211
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +8 -17
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/ai.d.ts +25 -3
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +28 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +1 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +319 -475
- package/src/api/codeShift.ts +8 -18
- package/src/client/ai.ts +15 -0
package/src/api/ai.ts
CHANGED
|
@@ -12,30 +12,7 @@ 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
|
-
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
|
-
};
|
|
15
|
+
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace";
|
|
39
16
|
export type GetAiStackResponse = {
|
|
40
17
|
id: string;
|
|
41
18
|
name: string;
|
|
@@ -54,7 +31,14 @@ export type GetAiStackResponse = {
|
|
|
54
31
|
visibility_level: string;
|
|
55
32
|
use_only?: boolean | null;
|
|
56
33
|
};
|
|
57
|
-
export type
|
|
34
|
+
export type ValidationError = {
|
|
35
|
+
loc: (string | number)[];
|
|
36
|
+
msg: string;
|
|
37
|
+
"type": string;
|
|
38
|
+
};
|
|
39
|
+
export type HttpValidationError = {
|
|
40
|
+
detail?: ValidationError[];
|
|
41
|
+
};
|
|
58
42
|
export type NewAiStackRequest = {
|
|
59
43
|
name: string;
|
|
60
44
|
use_case: string;
|
|
@@ -212,22 +196,6 @@ export type FileUploadStatusResponse = {
|
|
|
212
196
|
error_description: string | null;
|
|
213
197
|
summary: SummaryPartResponse | null;
|
|
214
198
|
};
|
|
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
|
-
};
|
|
231
199
|
export type NewKnowledgeSourceRequest = {
|
|
232
200
|
slug: string;
|
|
233
201
|
name: string;
|
|
@@ -263,9 +231,6 @@ export type KnowledgeSourcePatchesRequest = {
|
|
|
263
231
|
description: string;
|
|
264
232
|
use_only?: boolean | null;
|
|
265
233
|
};
|
|
266
|
-
export type KnowledgeSourceDependenciesResponse = {
|
|
267
|
-
workspaces?: string[];
|
|
268
|
-
};
|
|
269
234
|
export type KnowledgeSourceSimilaritySearchItemResponse = {
|
|
270
235
|
doc: string;
|
|
271
236
|
score: number;
|
|
@@ -326,37 +291,7 @@ export type TokensMonthlyUsageResponse = {
|
|
|
326
291
|
export type AddWorkspaceKnowledgeSourceRequest = {
|
|
327
292
|
knowledge_source_slugs: string[];
|
|
328
293
|
};
|
|
329
|
-
export type QuickCommandWorkspaceForkRequest = {
|
|
330
|
-
ids: string[];
|
|
331
|
-
member_id: string;
|
|
332
|
-
};
|
|
333
|
-
export type QuickCommandWorkspaceDeleteRequest = {
|
|
334
|
-
ids: string[];
|
|
335
|
-
};
|
|
336
|
-
export type QuickCommandDependenciesRequest = {
|
|
337
|
-
ids: string[];
|
|
338
|
-
};
|
|
339
|
-
export type QuickCommandWorkspaceListRequest = {
|
|
340
|
-
ids: string[];
|
|
341
|
-
name?: string | null;
|
|
342
|
-
};
|
|
343
294
|
export type QuickCommandTypeRequest = "IDE" | "REMOTE";
|
|
344
|
-
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
345
|
-
export type QuickCommandListResponse = {
|
|
346
|
-
slug: string;
|
|
347
|
-
name: string;
|
|
348
|
-
"type": QuickCommandTypeRequest;
|
|
349
|
-
description: string;
|
|
350
|
-
studio_id?: string | null;
|
|
351
|
-
flow?: object | null;
|
|
352
|
-
preserve_conversation: boolean;
|
|
353
|
-
use_selected_code: boolean;
|
|
354
|
-
return_type?: QuickCommandsReturnType | null;
|
|
355
|
-
creator: string | null;
|
|
356
|
-
visibility_level: string;
|
|
357
|
-
use_only: boolean;
|
|
358
|
-
id: string;
|
|
359
|
-
};
|
|
360
295
|
export type Method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
361
296
|
export type QuickCommandsStepFetchRequest = {
|
|
362
297
|
slug: string;
|
|
@@ -377,6 +312,7 @@ export type QuickCommandsStepPromptRequest = {
|
|
|
377
312
|
agent_id?: string | null;
|
|
378
313
|
agent_built_in?: boolean | null;
|
|
379
314
|
};
|
|
315
|
+
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
380
316
|
export type CustomInputRequest = {
|
|
381
317
|
slug: string;
|
|
382
318
|
question: string;
|
|
@@ -397,6 +333,21 @@ export type QuickCommandsCreateRequest = {
|
|
|
397
333
|
export type BaseContextualRequest = {
|
|
398
334
|
context?: object | null;
|
|
399
335
|
};
|
|
336
|
+
export type QuickCommandListResponse = {
|
|
337
|
+
slug: string;
|
|
338
|
+
name: string;
|
|
339
|
+
"type": QuickCommandTypeRequest;
|
|
340
|
+
description: string;
|
|
341
|
+
studio_id?: string | null;
|
|
342
|
+
flow?: object | null;
|
|
343
|
+
preserve_conversation: boolean;
|
|
344
|
+
use_selected_code: boolean;
|
|
345
|
+
return_type?: QuickCommandsReturnType | null;
|
|
346
|
+
creator: string | null;
|
|
347
|
+
visibility_level: string;
|
|
348
|
+
use_only: boolean;
|
|
349
|
+
id: string;
|
|
350
|
+
};
|
|
400
351
|
export type QuickCommandsUpdateRequest = {
|
|
401
352
|
name?: string | null;
|
|
402
353
|
description?: string | null;
|
|
@@ -495,10 +446,6 @@ export type QuickCommandsMakeACopyRequest = {
|
|
|
495
446
|
name: string;
|
|
496
447
|
description: string;
|
|
497
448
|
};
|
|
498
|
-
export type QuickCommandDependenciesResponse = {
|
|
499
|
-
studios?: string[] | null;
|
|
500
|
-
workspaces?: string[] | null;
|
|
501
|
-
};
|
|
502
449
|
export type QuickCommandPromptResponse = {
|
|
503
450
|
answer: string;
|
|
504
451
|
sources?: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile2 | KnowledgeSourceEvent)[] | null;
|
|
@@ -597,11 +544,20 @@ export type ConversationUpdateTitleRequest = {
|
|
|
597
544
|
export type BodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost = {
|
|
598
545
|
objects_zip: Blob;
|
|
599
546
|
};
|
|
547
|
+
export type KnowledgeSourceDependenciesResponse = {
|
|
548
|
+
workspaces?: string[];
|
|
549
|
+
};
|
|
600
550
|
export type FeatureFlagResponse = {
|
|
601
551
|
domain: string;
|
|
602
552
|
action: string;
|
|
603
553
|
active: boolean;
|
|
604
554
|
};
|
|
555
|
+
export type FavoriteTypeEnum = "agent" | "ks" | "qc" | "stack" | "workspace";
|
|
556
|
+
export type FavoriteRequest = {
|
|
557
|
+
id: string;
|
|
558
|
+
"type": FavoriteTypeEnum;
|
|
559
|
+
};
|
|
560
|
+
export type ContentDependencyType = "agent" | "knowledge-source" | "quick-command";
|
|
605
561
|
export type ContentDependencyResponse = {
|
|
606
562
|
id: string;
|
|
607
563
|
slug: string;
|
|
@@ -612,8 +568,8 @@ export type ContentDependencyResponse = {
|
|
|
612
568
|
export type DependencyResponse = {
|
|
613
569
|
promote_contents?: ContentDependencyResponse[] | null;
|
|
614
570
|
promote_error_list?: ContentDependencyResponse[] | null;
|
|
615
|
-
missing_list?: ContentDependencyResponse[] | null;
|
|
616
571
|
delete_contents?: ContentDependencyResponse[] | null;
|
|
572
|
+
missing_list?: ContentDependencyResponse[] | null;
|
|
617
573
|
};
|
|
618
574
|
export type SourceProjectFile3 = {
|
|
619
575
|
"type": "project_file";
|
|
@@ -624,11 +580,6 @@ export type ChatResponse2 = {
|
|
|
624
580
|
answer: string;
|
|
625
581
|
sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
|
|
626
582
|
};
|
|
627
|
-
export type QuickCommandDependenciesResponseV2 = {
|
|
628
|
-
ks_names?: string[] | null;
|
|
629
|
-
error_ks_names?: string[] | null;
|
|
630
|
-
missing_ks_id_list?: string[] | null;
|
|
631
|
-
};
|
|
632
583
|
export type ChatRequest = {
|
|
633
584
|
context?: object | null;
|
|
634
585
|
user_prompt: string;
|
|
@@ -655,83 +606,6 @@ export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
|
|
|
655
606
|
...opts
|
|
656
607
|
}));
|
|
657
608
|
}
|
|
658
|
-
/**
|
|
659
|
-
* Workspace Fork
|
|
660
|
-
*/
|
|
661
|
-
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }: {
|
|
662
|
-
authorization: string;
|
|
663
|
-
xAccountId?: string | null;
|
|
664
|
-
aiStackWorkspaceForkRequest: AiStackWorkspaceForkRequest;
|
|
665
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
666
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
667
|
-
status: 200;
|
|
668
|
-
data: AiStackWorkspaceForkResponse;
|
|
669
|
-
} | {
|
|
670
|
-
status: 404;
|
|
671
|
-
} | {
|
|
672
|
-
status: 422;
|
|
673
|
-
data: HttpValidationError;
|
|
674
|
-
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
675
|
-
...opts,
|
|
676
|
-
method: "POST",
|
|
677
|
-
body: aiStackWorkspaceForkRequest,
|
|
678
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
679
|
-
authorization,
|
|
680
|
-
"x-account-id": xAccountId
|
|
681
|
-
})
|
|
682
|
-
})));
|
|
683
|
-
}
|
|
684
|
-
/**
|
|
685
|
-
* Workspace Delete Fork
|
|
686
|
-
*/
|
|
687
|
-
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }: {
|
|
688
|
-
authorization: string;
|
|
689
|
-
xAccountId?: string | null;
|
|
690
|
-
aiStackWorkspaceDeleteRequest: AiStackWorkspaceDeleteRequest;
|
|
691
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
692
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
693
|
-
status: 204;
|
|
694
|
-
} | {
|
|
695
|
-
status: 404;
|
|
696
|
-
} | {
|
|
697
|
-
status: 422;
|
|
698
|
-
data: HttpValidationError;
|
|
699
|
-
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
700
|
-
...opts,
|
|
701
|
-
method: "DELETE",
|
|
702
|
-
body: aiStackWorkspaceDeleteRequest,
|
|
703
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
704
|
-
authorization,
|
|
705
|
-
"x-account-id": xAccountId
|
|
706
|
-
})
|
|
707
|
-
})));
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Workspace List
|
|
711
|
-
*/
|
|
712
|
-
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }: {
|
|
713
|
-
authorization: string;
|
|
714
|
-
xAccountId?: string | null;
|
|
715
|
-
aiStackWorkspaceListRequest: AiStackWorkspaceListRequest;
|
|
716
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
717
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
718
|
-
status: 200;
|
|
719
|
-
data: GetAiStackResponse[];
|
|
720
|
-
} | {
|
|
721
|
-
status: 404;
|
|
722
|
-
} | {
|
|
723
|
-
status: 422;
|
|
724
|
-
data: HttpValidationError;
|
|
725
|
-
}>("/v1/ai-stacks/workspace/list", oazapfts.json({
|
|
726
|
-
...opts,
|
|
727
|
-
method: "POST",
|
|
728
|
-
body: aiStackWorkspaceListRequest,
|
|
729
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
730
|
-
authorization,
|
|
731
|
-
"x-account-id": xAccountId
|
|
732
|
-
})
|
|
733
|
-
})));
|
|
734
|
-
}
|
|
735
609
|
/**
|
|
736
610
|
* List Ai Stacks
|
|
737
611
|
*/
|
|
@@ -1107,89 +981,11 @@ export function reportHealthHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
|
1107
981
|
...opts
|
|
1108
982
|
}));
|
|
1109
983
|
}
|
|
1110
|
-
/**
|
|
1111
|
-
* Workspace Fork
|
|
1112
|
-
*/
|
|
1113
|
-
export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ authorization, xAccountId, knowledgeSourcesWorkspaceForkRequest }: {
|
|
1114
|
-
authorization: string;
|
|
1115
|
-
xAccountId?: string | null;
|
|
1116
|
-
knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
|
|
1117
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1118
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1119
|
-
status: 200;
|
|
1120
|
-
data: KnowledgeSourcesWorkspaceForkResponse;
|
|
1121
|
-
} | {
|
|
1122
|
-
status: 404;
|
|
1123
|
-
} | {
|
|
1124
|
-
status: 422;
|
|
1125
|
-
data: HttpValidationError;
|
|
1126
|
-
}>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
1127
|
-
...opts,
|
|
1128
|
-
method: "POST",
|
|
1129
|
-
body: knowledgeSourcesWorkspaceForkRequest,
|
|
1130
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1131
|
-
authorization,
|
|
1132
|
-
"x-account-id": xAccountId
|
|
1133
|
-
})
|
|
1134
|
-
})));
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Workspace Delete Fork
|
|
1138
|
-
*/
|
|
1139
|
-
export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ authorization, xAccountId, knowledgeSourcesWorkspaceDeleteRequest }: {
|
|
1140
|
-
authorization: string;
|
|
1141
|
-
xAccountId?: string | null;
|
|
1142
|
-
knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
|
|
1143
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1144
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1145
|
-
status: 204;
|
|
1146
|
-
} | {
|
|
1147
|
-
status: 404;
|
|
1148
|
-
} | {
|
|
1149
|
-
status: 422;
|
|
1150
|
-
data: HttpValidationError;
|
|
1151
|
-
}>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
1152
|
-
...opts,
|
|
1153
|
-
method: "DELETE",
|
|
1154
|
-
body: knowledgeSourcesWorkspaceDeleteRequest,
|
|
1155
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1156
|
-
authorization,
|
|
1157
|
-
"x-account-id": xAccountId
|
|
1158
|
-
})
|
|
1159
|
-
})));
|
|
1160
|
-
}
|
|
1161
|
-
/**
|
|
1162
|
-
* Workspace List
|
|
1163
|
-
*/
|
|
1164
|
-
export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ authorization, xAccountId, knowledgeSourcesWorkspaceListRequest }: {
|
|
1165
|
-
authorization: string;
|
|
1166
|
-
xAccountId?: string | null;
|
|
1167
|
-
knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
|
|
1168
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1169
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1170
|
-
status: 200;
|
|
1171
|
-
data: any;
|
|
1172
|
-
} | {
|
|
1173
|
-
status: 404;
|
|
1174
|
-
} | {
|
|
1175
|
-
status: 422;
|
|
1176
|
-
data: HttpValidationError;
|
|
1177
|
-
}>("/v1/knowledge-sources/workspace/list", oazapfts.json({
|
|
1178
|
-
...opts,
|
|
1179
|
-
method: "POST",
|
|
1180
|
-
body: knowledgeSourcesWorkspaceListRequest,
|
|
1181
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1182
|
-
authorization,
|
|
1183
|
-
"x-account-id": xAccountId
|
|
1184
|
-
})
|
|
1185
|
-
})));
|
|
1186
|
-
}
|
|
1187
984
|
/**
|
|
1188
985
|
* Create Knowledge Source
|
|
1189
986
|
*/
|
|
1190
|
-
export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization,
|
|
987
|
+
export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }: {
|
|
1191
988
|
authorization: string;
|
|
1192
|
-
xAccountId?: string | null;
|
|
1193
989
|
newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
|
|
1194
990
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1195
991
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1204,8 +1000,7 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAc
|
|
|
1204
1000
|
method: "POST",
|
|
1205
1001
|
body: newKnowledgeSourceRequest,
|
|
1206
1002
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1207
|
-
authorization
|
|
1208
|
-
"x-account-id": xAccountId
|
|
1003
|
+
authorization
|
|
1209
1004
|
})
|
|
1210
1005
|
})));
|
|
1211
1006
|
}
|
|
@@ -1244,10 +1039,9 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
|
|
|
1244
1039
|
/**
|
|
1245
1040
|
* Find Knowledge Source
|
|
1246
1041
|
*/
|
|
1247
|
-
export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization
|
|
1042
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization }: {
|
|
1248
1043
|
slug: string;
|
|
1249
1044
|
authorization: string;
|
|
1250
|
-
xAccountId?: string | null;
|
|
1251
1045
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1252
1046
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1253
1047
|
status: 200;
|
|
@@ -1260,18 +1054,16 @@ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorizati
|
|
|
1260
1054
|
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1261
1055
|
...opts,
|
|
1262
1056
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1263
|
-
authorization
|
|
1264
|
-
"x-account-id": xAccountId
|
|
1057
|
+
authorization
|
|
1265
1058
|
})
|
|
1266
1059
|
}));
|
|
1267
1060
|
}
|
|
1268
1061
|
/**
|
|
1269
1062
|
* Update Knowledge Source
|
|
1270
1063
|
*/
|
|
1271
|
-
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization,
|
|
1064
|
+
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, knowledgeSourcePatchesRequest }: {
|
|
1272
1065
|
slug: string;
|
|
1273
1066
|
authorization: string;
|
|
1274
|
-
xAccountId?: string | null;
|
|
1275
1067
|
knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
|
|
1276
1068
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1277
1069
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1286,8 +1078,7 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
|
|
|
1286
1078
|
method: "PATCH",
|
|
1287
1079
|
body: knowledgeSourcePatchesRequest,
|
|
1288
1080
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1289
|
-
authorization
|
|
1290
|
-
"x-account-id": xAccountId
|
|
1081
|
+
authorization
|
|
1291
1082
|
})
|
|
1292
1083
|
})));
|
|
1293
1084
|
}
|
|
@@ -1318,10 +1109,9 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
|
|
|
1318
1109
|
/**
|
|
1319
1110
|
* Find Knowledge Source
|
|
1320
1111
|
*/
|
|
1321
|
-
export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization
|
|
1112
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization }: {
|
|
1322
1113
|
slug: string;
|
|
1323
1114
|
authorization: string;
|
|
1324
|
-
xAccountId?: string | null;
|
|
1325
1115
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1326
1116
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1327
1117
|
status: 204;
|
|
@@ -1333,32 +1123,7 @@ export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, autho
|
|
|
1333
1123
|
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/exists`, {
|
|
1334
1124
|
...opts,
|
|
1335
1125
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1336
|
-
authorization
|
|
1337
|
-
"x-account-id": xAccountId
|
|
1338
|
-
})
|
|
1339
|
-
}));
|
|
1340
|
-
}
|
|
1341
|
-
/**
|
|
1342
|
-
* Find Knowledge Source Dependencies
|
|
1343
|
-
*/
|
|
1344
|
-
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
|
|
1345
|
-
slug: string;
|
|
1346
|
-
authorization: string;
|
|
1347
|
-
xAccountId?: string | null;
|
|
1348
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1349
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1350
|
-
status: 200;
|
|
1351
|
-
data: KnowledgeSourceDependenciesResponse;
|
|
1352
|
-
} | {
|
|
1353
|
-
status: 404;
|
|
1354
|
-
} | {
|
|
1355
|
-
status: 422;
|
|
1356
|
-
data: HttpValidationError;
|
|
1357
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
1358
|
-
...opts,
|
|
1359
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1360
|
-
authorization,
|
|
1361
|
-
"x-account-id": xAccountId
|
|
1126
|
+
authorization
|
|
1362
1127
|
})
|
|
1363
1128
|
}));
|
|
1364
1129
|
}
|
|
@@ -1394,10 +1159,9 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
|
|
|
1394
1159
|
/**
|
|
1395
1160
|
* Share Knowledge Source
|
|
1396
1161
|
*/
|
|
1397
|
-
export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization
|
|
1162
|
+
export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization }: {
|
|
1398
1163
|
slug: string;
|
|
1399
1164
|
authorization: string;
|
|
1400
|
-
xAccountId?: string | null;
|
|
1401
1165
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1402
1166
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1403
1167
|
status: 204;
|
|
@@ -1410,18 +1174,16 @@ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, auth
|
|
|
1410
1174
|
...opts,
|
|
1411
1175
|
method: "POST",
|
|
1412
1176
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1413
|
-
authorization
|
|
1414
|
-
"x-account-id": xAccountId
|
|
1177
|
+
authorization
|
|
1415
1178
|
})
|
|
1416
1179
|
}));
|
|
1417
1180
|
}
|
|
1418
1181
|
/**
|
|
1419
1182
|
* Publish Knowledge Source
|
|
1420
1183
|
*/
|
|
1421
|
-
export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization,
|
|
1184
|
+
export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, knowledgeSourcesPublishRequest }: {
|
|
1422
1185
|
slug: string;
|
|
1423
1186
|
authorization: string;
|
|
1424
|
-
xAccountId?: string | null;
|
|
1425
1187
|
knowledgeSourcesPublishRequest?: KnowledgeSourcesPublishRequest;
|
|
1426
1188
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1427
1189
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1436,17 +1198,15 @@ export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug,
|
|
|
1436
1198
|
method: "POST",
|
|
1437
1199
|
body: knowledgeSourcesPublishRequest,
|
|
1438
1200
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1439
|
-
authorization
|
|
1440
|
-
"x-account-id": xAccountId
|
|
1201
|
+
authorization
|
|
1441
1202
|
})
|
|
1442
1203
|
})));
|
|
1443
1204
|
}
|
|
1444
1205
|
/**
|
|
1445
1206
|
* Publish Knowledge Source In Batch
|
|
1446
1207
|
*/
|
|
1447
|
-
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization,
|
|
1208
|
+
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, knowSourcePublishBatchRequest }: {
|
|
1448
1209
|
authorization: string;
|
|
1449
|
-
xAccountId?: string | null;
|
|
1450
1210
|
knowSourcePublishBatchRequest: KnowSourcePublishBatchRequest;
|
|
1451
1211
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1452
1212
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1461,18 +1221,16 @@ export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost(
|
|
|
1461
1221
|
method: "POST",
|
|
1462
1222
|
body: knowSourcePublishBatchRequest,
|
|
1463
1223
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1464
|
-
authorization
|
|
1465
|
-
"x-account-id": xAccountId
|
|
1224
|
+
authorization
|
|
1466
1225
|
})
|
|
1467
1226
|
})));
|
|
1468
1227
|
}
|
|
1469
1228
|
/**
|
|
1470
1229
|
* Fork Knowledge Source
|
|
1471
1230
|
*/
|
|
1472
|
-
export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization,
|
|
1231
|
+
export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, forkKnowledgeSourceRequest }: {
|
|
1473
1232
|
slug: string;
|
|
1474
1233
|
authorization: string;
|
|
1475
|
-
xAccountId?: string | null;
|
|
1476
1234
|
forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
|
|
1477
1235
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1478
1236
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1487,19 +1245,17 @@ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, author
|
|
|
1487
1245
|
method: "POST",
|
|
1488
1246
|
body: forkKnowledgeSourceRequest,
|
|
1489
1247
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1490
|
-
authorization
|
|
1491
|
-
"x-account-id": xAccountId
|
|
1248
|
+
authorization
|
|
1492
1249
|
})
|
|
1493
1250
|
})));
|
|
1494
1251
|
}
|
|
1495
1252
|
/**
|
|
1496
1253
|
* List Knowledge Objects
|
|
1497
1254
|
*/
|
|
1498
|
-
export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization
|
|
1255
|
+
export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization }: {
|
|
1499
1256
|
slug: string;
|
|
1500
1257
|
standalone?: boolean | null;
|
|
1501
1258
|
authorization: string;
|
|
1502
|
-
xAccountId?: string | null;
|
|
1503
1259
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1504
1260
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1505
1261
|
status: 200;
|
|
@@ -1514,46 +1270,160 @@ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, sta
|
|
|
1514
1270
|
}))}`, {
|
|
1515
1271
|
...opts,
|
|
1516
1272
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1517
|
-
authorization
|
|
1518
|
-
"x-account-id": xAccountId
|
|
1273
|
+
authorization
|
|
1519
1274
|
})
|
|
1520
1275
|
}));
|
|
1521
1276
|
}
|
|
1522
1277
|
/**
|
|
1523
1278
|
* Reset Knowledge Objects
|
|
1524
1279
|
*/
|
|
1525
|
-
export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization
|
|
1280
|
+
export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization }: {
|
|
1526
1281
|
slug: string;
|
|
1527
1282
|
standalone?: boolean | null;
|
|
1528
1283
|
authorization: string;
|
|
1529
|
-
xAccountId?: string | null;
|
|
1530
1284
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1531
1285
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1532
|
-
status: 204;
|
|
1286
|
+
status: 204;
|
|
1287
|
+
} | {
|
|
1288
|
+
status: 404;
|
|
1289
|
+
} | {
|
|
1290
|
+
status: 422;
|
|
1291
|
+
data: HttpValidationError;
|
|
1292
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
|
|
1293
|
+
standalone
|
|
1294
|
+
}))}`, {
|
|
1295
|
+
...opts,
|
|
1296
|
+
method: "DELETE",
|
|
1297
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1298
|
+
authorization
|
|
1299
|
+
})
|
|
1300
|
+
}));
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Find Knowledge Object By Custom Id
|
|
1304
|
+
*/
|
|
1305
|
+
export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization }: {
|
|
1306
|
+
slug: string;
|
|
1307
|
+
customId: string;
|
|
1308
|
+
authorization: string;
|
|
1309
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1310
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1311
|
+
status: 200;
|
|
1312
|
+
data: DocumentResponse;
|
|
1313
|
+
} | {
|
|
1314
|
+
status: 404;
|
|
1315
|
+
} | {
|
|
1316
|
+
status: 422;
|
|
1317
|
+
data: HttpValidationError;
|
|
1318
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
1319
|
+
...opts,
|
|
1320
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1321
|
+
authorization
|
|
1322
|
+
})
|
|
1323
|
+
}));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Delete Knowledge Object By Custom Id
|
|
1327
|
+
*/
|
|
1328
|
+
export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization }: {
|
|
1329
|
+
customId: string;
|
|
1330
|
+
slug: string;
|
|
1331
|
+
authorization: string;
|
|
1332
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1333
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1334
|
+
status: 204;
|
|
1335
|
+
} | {
|
|
1336
|
+
status: 404;
|
|
1337
|
+
} | {
|
|
1338
|
+
status: 422;
|
|
1339
|
+
data: HttpValidationError;
|
|
1340
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
1341
|
+
...opts,
|
|
1342
|
+
method: "DELETE",
|
|
1343
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1344
|
+
authorization
|
|
1345
|
+
})
|
|
1346
|
+
}));
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Find Snippet Doc By Custom Id
|
|
1350
|
+
*/
|
|
1351
|
+
export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ slug, id, authorization }: {
|
|
1352
|
+
slug: string;
|
|
1353
|
+
id: string;
|
|
1354
|
+
authorization: string;
|
|
1355
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1356
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1357
|
+
status: 200;
|
|
1358
|
+
data: DocumentResponse;
|
|
1359
|
+
} | {
|
|
1360
|
+
status: 404;
|
|
1361
|
+
} | {
|
|
1362
|
+
status: 422;
|
|
1363
|
+
data: HttpValidationError;
|
|
1364
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets/${encodeURIComponent(id)}`, {
|
|
1365
|
+
...opts,
|
|
1366
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1367
|
+
authorization
|
|
1368
|
+
})
|
|
1369
|
+
}));
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Vectorize Snippet Knowledge Source
|
|
1373
|
+
*/
|
|
1374
|
+
export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }: {
|
|
1375
|
+
slug: string;
|
|
1376
|
+
authorization: string;
|
|
1377
|
+
xAccountId?: string | null;
|
|
1378
|
+
snippetKnowledgeSourceRequest: SnippetKnowledgeSourceRequest;
|
|
1379
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1380
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1381
|
+
status: 204;
|
|
1382
|
+
} | {
|
|
1383
|
+
status: 404;
|
|
1384
|
+
} | {
|
|
1385
|
+
status: 422;
|
|
1386
|
+
data: HttpValidationError;
|
|
1387
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
|
|
1388
|
+
...opts,
|
|
1389
|
+
method: "POST",
|
|
1390
|
+
body: snippetKnowledgeSourceRequest,
|
|
1391
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1392
|
+
authorization,
|
|
1393
|
+
"x-account-id": xAccountId
|
|
1394
|
+
})
|
|
1395
|
+
})));
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Find Api Doc By Custom Id
|
|
1399
|
+
*/
|
|
1400
|
+
export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id, authorization }: {
|
|
1401
|
+
slug: string;
|
|
1402
|
+
id: string;
|
|
1403
|
+
authorization: string;
|
|
1404
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1405
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1406
|
+
status: 200;
|
|
1407
|
+
data: DocumentResponse;
|
|
1533
1408
|
} | {
|
|
1534
1409
|
status: 404;
|
|
1535
1410
|
} | {
|
|
1536
1411
|
status: 422;
|
|
1537
1412
|
data: HttpValidationError;
|
|
1538
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1539
|
-
standalone
|
|
1540
|
-
}))}`, {
|
|
1413
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/apis/${encodeURIComponent(id)}`, {
|
|
1541
1414
|
...opts,
|
|
1542
|
-
method: "DELETE",
|
|
1543
1415
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1544
|
-
authorization
|
|
1545
|
-
"x-account-id": xAccountId
|
|
1416
|
+
authorization
|
|
1546
1417
|
})
|
|
1547
1418
|
}));
|
|
1548
1419
|
}
|
|
1549
1420
|
/**
|
|
1550
|
-
* Find
|
|
1421
|
+
* Find Event Doc By Custom Id
|
|
1551
1422
|
*/
|
|
1552
|
-
export function
|
|
1423
|
+
export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug, id, authorization }: {
|
|
1553
1424
|
slug: string;
|
|
1554
|
-
|
|
1425
|
+
id: string;
|
|
1555
1426
|
authorization: string;
|
|
1556
|
-
xAccountId?: string | null;
|
|
1557
1427
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1558
1428
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1559
1429
|
status: 200;
|
|
@@ -1563,22 +1433,21 @@ export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustom
|
|
|
1563
1433
|
} | {
|
|
1564
1434
|
status: 422;
|
|
1565
1435
|
data: HttpValidationError;
|
|
1566
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1436
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events/${encodeURIComponent(id)}`, {
|
|
1567
1437
|
...opts,
|
|
1568
1438
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1569
|
-
authorization
|
|
1570
|
-
"x-account-id": xAccountId
|
|
1439
|
+
authorization
|
|
1571
1440
|
})
|
|
1572
1441
|
}));
|
|
1573
1442
|
}
|
|
1574
1443
|
/**
|
|
1575
|
-
*
|
|
1444
|
+
* Vectorize Event Knowledge Source
|
|
1576
1445
|
*/
|
|
1577
|
-
export function
|
|
1578
|
-
customId: string;
|
|
1446
|
+
export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }: {
|
|
1579
1447
|
slug: string;
|
|
1580
1448
|
authorization: string;
|
|
1581
1449
|
xAccountId?: string | null;
|
|
1450
|
+
body: object;
|
|
1582
1451
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1583
1452
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1584
1453
|
status: 204;
|
|
@@ -1587,40 +1456,38 @@ export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCust
|
|
|
1587
1456
|
} | {
|
|
1588
1457
|
status: 422;
|
|
1589
1458
|
data: HttpValidationError;
|
|
1590
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1459
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
|
|
1591
1460
|
...opts,
|
|
1592
|
-
method: "
|
|
1461
|
+
method: "POST",
|
|
1462
|
+
body,
|
|
1593
1463
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1594
1464
|
authorization,
|
|
1595
1465
|
"x-account-id": xAccountId
|
|
1596
1466
|
})
|
|
1597
|
-
}));
|
|
1467
|
+
})));
|
|
1598
1468
|
}
|
|
1599
1469
|
/**
|
|
1600
|
-
*
|
|
1470
|
+
* Find Custom Doc By Custom Id
|
|
1601
1471
|
*/
|
|
1602
|
-
export function
|
|
1472
|
+
export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug, id, authorization }: {
|
|
1603
1473
|
slug: string;
|
|
1474
|
+
id: string;
|
|
1604
1475
|
authorization: string;
|
|
1605
|
-
xAccountId?: string | null;
|
|
1606
|
-
snippetKnowledgeSourceRequest: SnippetKnowledgeSourceRequest;
|
|
1607
1476
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1608
1477
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1609
|
-
status:
|
|
1478
|
+
status: 200;
|
|
1479
|
+
data: DocumentResponse;
|
|
1610
1480
|
} | {
|
|
1611
1481
|
status: 404;
|
|
1612
1482
|
} | {
|
|
1613
1483
|
status: 422;
|
|
1614
1484
|
data: HttpValidationError;
|
|
1615
|
-
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/
|
|
1485
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom/${encodeURIComponent(id)}`, {
|
|
1616
1486
|
...opts,
|
|
1617
|
-
method: "POST",
|
|
1618
|
-
body: snippetKnowledgeSourceRequest,
|
|
1619
1487
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1620
|
-
authorization
|
|
1621
|
-
"x-account-id": xAccountId
|
|
1488
|
+
authorization
|
|
1622
1489
|
})
|
|
1623
|
-
}))
|
|
1490
|
+
}));
|
|
1624
1491
|
}
|
|
1625
1492
|
/**
|
|
1626
1493
|
* Vectorize Custom Knowledge Source
|
|
@@ -1665,9 +1532,8 @@ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts?: Oazapfts.Req
|
|
|
1665
1532
|
/**
|
|
1666
1533
|
* Search Knowledge Sources
|
|
1667
1534
|
*/
|
|
1668
|
-
export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization,
|
|
1535
|
+
export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization, searchKnowledgeSourcesRequest }: {
|
|
1669
1536
|
authorization: string;
|
|
1670
|
-
xAccountId?: string | null;
|
|
1671
1537
|
searchKnowledgeSourcesRequest: SearchKnowledgeSourcesRequest;
|
|
1672
1538
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1673
1539
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1683,8 +1549,7 @@ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorizati
|
|
|
1683
1549
|
method: "POST",
|
|
1684
1550
|
body: searchKnowledgeSourcesRequest,
|
|
1685
1551
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1686
|
-
authorization
|
|
1687
|
-
"x-account-id": xAccountId
|
|
1552
|
+
authorization
|
|
1688
1553
|
})
|
|
1689
1554
|
})));
|
|
1690
1555
|
}
|
|
@@ -1975,109 +1840,6 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
|
|
|
1975
1840
|
})
|
|
1976
1841
|
}));
|
|
1977
1842
|
}
|
|
1978
|
-
/**
|
|
1979
|
-
* Workspace Fork
|
|
1980
|
-
*/
|
|
1981
|
-
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }: {
|
|
1982
|
-
authorization: string;
|
|
1983
|
-
xAccountId?: string | null;
|
|
1984
|
-
quickCommandWorkspaceForkRequest: QuickCommandWorkspaceForkRequest;
|
|
1985
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1986
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1987
|
-
status: 200;
|
|
1988
|
-
data: any;
|
|
1989
|
-
} | {
|
|
1990
|
-
status: 404;
|
|
1991
|
-
} | {
|
|
1992
|
-
status: 422;
|
|
1993
|
-
data: HttpValidationError;
|
|
1994
|
-
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
1995
|
-
...opts,
|
|
1996
|
-
method: "POST",
|
|
1997
|
-
body: quickCommandWorkspaceForkRequest,
|
|
1998
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1999
|
-
authorization,
|
|
2000
|
-
"x-account-id": xAccountId
|
|
2001
|
-
})
|
|
2002
|
-
})));
|
|
2003
|
-
}
|
|
2004
|
-
/**
|
|
2005
|
-
* Workspace Delete Fork
|
|
2006
|
-
*/
|
|
2007
|
-
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }: {
|
|
2008
|
-
authorization: string;
|
|
2009
|
-
xAccountId?: string | null;
|
|
2010
|
-
quickCommandWorkspaceDeleteRequest: QuickCommandWorkspaceDeleteRequest;
|
|
2011
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2012
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2013
|
-
status: 204;
|
|
2014
|
-
} | {
|
|
2015
|
-
status: 404;
|
|
2016
|
-
} | {
|
|
2017
|
-
status: 422;
|
|
2018
|
-
data: HttpValidationError;
|
|
2019
|
-
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
2020
|
-
...opts,
|
|
2021
|
-
method: "DELETE",
|
|
2022
|
-
body: quickCommandWorkspaceDeleteRequest,
|
|
2023
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2024
|
-
authorization,
|
|
2025
|
-
"x-account-id": xAccountId
|
|
2026
|
-
})
|
|
2027
|
-
})));
|
|
2028
|
-
}
|
|
2029
|
-
/**
|
|
2030
|
-
* Qc Dependencies
|
|
2031
|
-
*/
|
|
2032
|
-
export function qcDependenciesV1QuickCommandsDependenciesPost({ authorization, xAccountId, quickCommandDependenciesRequest }: {
|
|
2033
|
-
authorization: string;
|
|
2034
|
-
xAccountId?: string | null;
|
|
2035
|
-
quickCommandDependenciesRequest: QuickCommandDependenciesRequest;
|
|
2036
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2037
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2038
|
-
status: 200;
|
|
2039
|
-
data: any;
|
|
2040
|
-
} | {
|
|
2041
|
-
status: 404;
|
|
2042
|
-
} | {
|
|
2043
|
-
status: 422;
|
|
2044
|
-
data: HttpValidationError;
|
|
2045
|
-
}>("/v1/quick-commands/dependencies", oazapfts.json({
|
|
2046
|
-
...opts,
|
|
2047
|
-
method: "POST",
|
|
2048
|
-
body: quickCommandDependenciesRequest,
|
|
2049
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2050
|
-
authorization,
|
|
2051
|
-
"x-account-id": xAccountId
|
|
2052
|
-
})
|
|
2053
|
-
})));
|
|
2054
|
-
}
|
|
2055
|
-
/**
|
|
2056
|
-
* Workspace List
|
|
2057
|
-
*/
|
|
2058
|
-
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }: {
|
|
2059
|
-
authorization: string;
|
|
2060
|
-
xAccountId?: string | null;
|
|
2061
|
-
quickCommandWorkspaceListRequest: QuickCommandWorkspaceListRequest;
|
|
2062
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2063
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2064
|
-
status: 200;
|
|
2065
|
-
data: QuickCommandListResponse[];
|
|
2066
|
-
} | {
|
|
2067
|
-
status: 404;
|
|
2068
|
-
} | {
|
|
2069
|
-
status: 422;
|
|
2070
|
-
data: HttpValidationError;
|
|
2071
|
-
}>("/v1/quick-commands/workspace/list", oazapfts.json({
|
|
2072
|
-
...opts,
|
|
2073
|
-
method: "POST",
|
|
2074
|
-
body: quickCommandWorkspaceListRequest,
|
|
2075
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2076
|
-
authorization,
|
|
2077
|
-
"x-account-id": xAccountId
|
|
2078
|
-
})
|
|
2079
|
-
})));
|
|
2080
|
-
}
|
|
2081
1843
|
/**
|
|
2082
1844
|
* Create Quick Command
|
|
2083
1845
|
*/
|
|
@@ -2388,23 +2150,24 @@ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agent
|
|
|
2388
2150
|
}));
|
|
2389
2151
|
}
|
|
2390
2152
|
/**
|
|
2391
|
-
*
|
|
2153
|
+
* Disassociate Agent
|
|
2392
2154
|
*/
|
|
2393
|
-
export function
|
|
2394
|
-
|
|
2155
|
+
export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId }: {
|
|
2156
|
+
agentId: string;
|
|
2395
2157
|
authorization: string;
|
|
2396
2158
|
xAccountId?: string | null;
|
|
2397
2159
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2398
2160
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2399
2161
|
status: 200;
|
|
2400
|
-
data:
|
|
2162
|
+
data: any;
|
|
2401
2163
|
} | {
|
|
2402
2164
|
status: 404;
|
|
2403
2165
|
} | {
|
|
2404
2166
|
status: 422;
|
|
2405
2167
|
data: HttpValidationError;
|
|
2406
|
-
}>(`/v1/quick-commands/
|
|
2168
|
+
}>(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
|
|
2407
2169
|
...opts,
|
|
2170
|
+
method: "DELETE",
|
|
2408
2171
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2409
2172
|
authorization,
|
|
2410
2173
|
"x-account-id": xAccountId
|
|
@@ -2412,22 +2175,22 @@ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ works
|
|
|
2412
2175
|
}));
|
|
2413
2176
|
}
|
|
2414
2177
|
/**
|
|
2415
|
-
*
|
|
2178
|
+
* List By Workspace Id
|
|
2416
2179
|
*/
|
|
2417
|
-
export function
|
|
2418
|
-
|
|
2180
|
+
export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
|
|
2181
|
+
workspaceId: string;
|
|
2419
2182
|
authorization: string;
|
|
2420
2183
|
xAccountId?: string | null;
|
|
2421
2184
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2422
2185
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2423
2186
|
status: 200;
|
|
2424
|
-
data:
|
|
2187
|
+
data: QuickCommandListResponse[];
|
|
2425
2188
|
} | {
|
|
2426
2189
|
status: 404;
|
|
2427
2190
|
} | {
|
|
2428
2191
|
status: 422;
|
|
2429
2192
|
data: HttpValidationError;
|
|
2430
|
-
}>(`/v1/quick-commands/${encodeURIComponent(
|
|
2193
|
+
}>(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
2431
2194
|
...opts,
|
|
2432
2195
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2433
2196
|
authorization,
|
|
@@ -2800,8 +2563,9 @@ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorizati
|
|
|
2800
2563
|
/**
|
|
2801
2564
|
* Delete Knowledge Source
|
|
2802
2565
|
*/
|
|
2803
|
-
export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug }: {
|
|
2566
|
+
export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug, authorization }: {
|
|
2804
2567
|
slug: string;
|
|
2568
|
+
authorization: string;
|
|
2805
2569
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2806
2570
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2807
2571
|
status: 204;
|
|
@@ -2812,7 +2576,10 @@ export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug
|
|
|
2812
2576
|
data: HttpValidationError;
|
|
2813
2577
|
}>(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
2814
2578
|
...opts,
|
|
2815
|
-
method: "DELETE"
|
|
2579
|
+
method: "DELETE",
|
|
2580
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2581
|
+
authorization
|
|
2582
|
+
})
|
|
2816
2583
|
}));
|
|
2817
2584
|
}
|
|
2818
2585
|
/**
|
|
@@ -2838,6 +2605,30 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
|
|
|
2838
2605
|
body: bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost
|
|
2839
2606
|
})));
|
|
2840
2607
|
}
|
|
2608
|
+
/**
|
|
2609
|
+
* Find Knowledge Source Dependencies
|
|
2610
|
+
*/
|
|
2611
|
+
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
|
|
2612
|
+
slug: string;
|
|
2613
|
+
authorization: string;
|
|
2614
|
+
xAccountId?: string | null;
|
|
2615
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2616
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2617
|
+
status: 200;
|
|
2618
|
+
data: KnowledgeSourceDependenciesResponse;
|
|
2619
|
+
} | {
|
|
2620
|
+
status: 404;
|
|
2621
|
+
} | {
|
|
2622
|
+
status: 422;
|
|
2623
|
+
data: HttpValidationError;
|
|
2624
|
+
}>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
2625
|
+
...opts,
|
|
2626
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2627
|
+
authorization,
|
|
2628
|
+
"x-account-id": xAccountId
|
|
2629
|
+
})
|
|
2630
|
+
}));
|
|
2631
|
+
}
|
|
2841
2632
|
/**
|
|
2842
2633
|
* Get Flags
|
|
2843
2634
|
*/
|
|
@@ -2849,11 +2640,88 @@ export function getFlagsV1FlagsGet(opts?: Oazapfts.RequestOpts) {
|
|
|
2849
2640
|
...opts
|
|
2850
2641
|
}));
|
|
2851
2642
|
}
|
|
2643
|
+
/**
|
|
2644
|
+
* Get Favorites By Type
|
|
2645
|
+
*/
|
|
2646
|
+
export function getFavoritesByTypeV1FavoritesGet({ $type, authorization, xAccountId }: {
|
|
2647
|
+
$type: FavoriteTypeEnum;
|
|
2648
|
+
authorization: string;
|
|
2649
|
+
xAccountId?: string | null;
|
|
2650
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2651
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2652
|
+
status: 200;
|
|
2653
|
+
data: string[];
|
|
2654
|
+
} | {
|
|
2655
|
+
status: 422;
|
|
2656
|
+
data: HttpValidationError;
|
|
2657
|
+
}>(`/v1/favorites${QS.query(QS.explode({
|
|
2658
|
+
"type": $type
|
|
2659
|
+
}))}`, {
|
|
2660
|
+
...opts,
|
|
2661
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2662
|
+
authorization,
|
|
2663
|
+
"x-account-id": xAccountId
|
|
2664
|
+
})
|
|
2665
|
+
}));
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* Add Favorite
|
|
2669
|
+
*/
|
|
2670
|
+
export function addFavoriteV1FavoritesPost({ authorization, xAccountId, favoriteRequest }: {
|
|
2671
|
+
authorization: string;
|
|
2672
|
+
xAccountId?: string | null;
|
|
2673
|
+
favoriteRequest: FavoriteRequest;
|
|
2674
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2675
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2676
|
+
status: 201;
|
|
2677
|
+
data: any;
|
|
2678
|
+
} | {
|
|
2679
|
+
status: 404;
|
|
2680
|
+
} | {
|
|
2681
|
+
status: 406;
|
|
2682
|
+
} | {
|
|
2683
|
+
status: 422;
|
|
2684
|
+
data: HttpValidationError;
|
|
2685
|
+
}>("/v1/favorites", oazapfts.json({
|
|
2686
|
+
...opts,
|
|
2687
|
+
method: "POST",
|
|
2688
|
+
body: favoriteRequest,
|
|
2689
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2690
|
+
authorization,
|
|
2691
|
+
"x-account-id": xAccountId
|
|
2692
|
+
})
|
|
2693
|
+
})));
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
* Delete Favorite
|
|
2697
|
+
*/
|
|
2698
|
+
export function deleteFavoriteV1FavoritesDelete({ authorization, xAccountId, favoriteRequest }: {
|
|
2699
|
+
authorization: string;
|
|
2700
|
+
xAccountId?: string | null;
|
|
2701
|
+
favoriteRequest: FavoriteRequest;
|
|
2702
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2703
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2704
|
+
status: 204;
|
|
2705
|
+
} | {
|
|
2706
|
+
status: 404;
|
|
2707
|
+
} | {
|
|
2708
|
+
status: 422;
|
|
2709
|
+
data: HttpValidationError;
|
|
2710
|
+
}>("/v1/favorites", oazapfts.json({
|
|
2711
|
+
...opts,
|
|
2712
|
+
method: "DELETE",
|
|
2713
|
+
body: favoriteRequest,
|
|
2714
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2715
|
+
authorization,
|
|
2716
|
+
"x-account-id": xAccountId
|
|
2717
|
+
})
|
|
2718
|
+
})));
|
|
2719
|
+
}
|
|
2852
2720
|
/**
|
|
2853
2721
|
* Get Content Dependencies
|
|
2854
2722
|
*/
|
|
2855
2723
|
export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId }: {
|
|
2856
|
-
contentType:
|
|
2724
|
+
contentType: ContentDependencyType;
|
|
2857
2725
|
contentId: string;
|
|
2858
2726
|
authorization: string;
|
|
2859
2727
|
xAccountId?: string | null;
|
|
@@ -2926,30 +2794,6 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
|
|
|
2926
2794
|
})
|
|
2927
2795
|
})));
|
|
2928
2796
|
}
|
|
2929
|
-
/**
|
|
2930
|
-
* Get Dependencies
|
|
2931
|
-
*/
|
|
2932
|
-
export function getDependenciesV2QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }: {
|
|
2933
|
-
slug: string;
|
|
2934
|
-
authorization: string;
|
|
2935
|
-
xAccountId?: string | null;
|
|
2936
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2937
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2938
|
-
status: 200;
|
|
2939
|
-
data: QuickCommandDependenciesResponseV2;
|
|
2940
|
-
} | {
|
|
2941
|
-
status: 404;
|
|
2942
|
-
} | {
|
|
2943
|
-
status: 422;
|
|
2944
|
-
data: HttpValidationError;
|
|
2945
|
-
}>(`/v2/quick-commands/${encodeURIComponent(slug)}/dependencies`, {
|
|
2946
|
-
...opts,
|
|
2947
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2948
|
-
authorization,
|
|
2949
|
-
"x-account-id": xAccountId
|
|
2950
|
-
})
|
|
2951
|
-
}));
|
|
2952
|
-
}
|
|
2953
2797
|
/**
|
|
2954
2798
|
* Dev Assistant V3
|
|
2955
2799
|
*/
|