@stack-spot/portal-network 0.138.1 → 0.139.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/agent-tools.d.ts +178 -4
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +98 -2
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/dataIntegration.d.ts +183 -179
  7. package/dist/api/dataIntegration.d.ts.map +1 -1
  8. package/dist/api/dataIntegration.js +166 -161
  9. package/dist/api/dataIntegration.js.map +1 -1
  10. package/dist/client/agent-tools.d.ts +77 -0
  11. package/dist/client/agent-tools.d.ts.map +1 -1
  12. package/dist/client/agent-tools.js +134 -1
  13. package/dist/client/agent-tools.js.map +1 -1
  14. package/dist/client/agent.d.ts +2 -49
  15. package/dist/client/agent.d.ts.map +1 -1
  16. package/dist/client/agent.js +0 -63
  17. package/dist/client/agent.js.map +1 -1
  18. package/dist/client/ai.d.ts +7 -0
  19. package/dist/client/ai.d.ts.map +1 -1
  20. package/dist/client/ai.js +10 -1
  21. package/dist/client/ai.js.map +1 -1
  22. package/dist/client/data-integration.d.ts +12 -14
  23. package/dist/client/data-integration.d.ts.map +1 -1
  24. package/dist/client/data-integration.js +33 -3
  25. package/dist/client/data-integration.js.map +1 -1
  26. package/dist/client/types.d.ts +6 -3
  27. package/dist/client/types.d.ts.map +1 -1
  28. package/dist/error/FileUploadError.d.ts +6 -0
  29. package/dist/error/FileUploadError.d.ts.map +1 -0
  30. package/dist/error/FileUploadError.js +21 -0
  31. package/dist/error/FileUploadError.js.map +1 -0
  32. package/dist/index.d.ts +2 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +2 -1
  35. package/dist/index.js.map +1 -1
  36. package/package.json +2 -2
  37. package/src/api/agent-tools.ts +306 -4
  38. package/src/api/dataIntegration.ts +327 -307
  39. package/src/client/agent-tools.ts +103 -1
  40. package/src/client/agent.ts +1 -67
  41. package/src/client/ai.ts +5 -0
  42. package/src/client/data-integration.ts +29 -6
  43. package/src/client/types.ts +8 -4
  44. package/src/error/FileUploadError.ts +18 -0
  45. package/src/index.ts +2 -1
@@ -54,25 +54,19 @@ export type SearchCrossAccountKnowledgeObjectRequest = {
54
54
  strategy?: SearchStrategy;
55
55
  method?: SearchMethod;
56
56
  };
57
+ export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
57
58
  export type NewKnowledgeSourceRequest = {
58
59
  slug: string;
59
60
  name: string;
60
61
  description: string;
61
- "type": "api" | "custom" | "snippet";
62
+ "type": KnowledgeSourceTypeEnum;
62
63
  };
63
- export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND";
64
- export type HttpErrorResponse = {
65
- "type"?: string;
66
- status: string;
67
- code: ExceptionType;
68
- details: string;
69
- value?: string | null;
70
- field?: string | null;
64
+ export type KnowledgeSourcesWorkspaceForkRequest = {
65
+ ids: string[];
66
+ member_id: string;
71
67
  };
72
68
  export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
73
- export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
74
- export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
75
- export type KnowledgeSourceItemResponse = {
69
+ export type KnowledgeSourceResponse = {
76
70
  id: string;
77
71
  slug: string;
78
72
  name: string;
@@ -81,13 +75,22 @@ export type KnowledgeSourceItemResponse = {
81
75
  creator: string | null;
82
76
  "default": boolean;
83
77
  visibility_level: VisibilityLevelEnum;
84
- object_count: number;
78
+ model_name: string;
85
79
  use_only: boolean;
86
80
  };
87
- export type KnowledgeSourceSearchRequest = {
81
+ export type KnowledgeSourcesWorkspaceForkResponse = {
82
+ list_ks: KnowledgeSourceResponse[];
83
+ ks_ids_account: string[];
84
+ error_ids: string[];
85
+ };
86
+ export type KnowledgeSourcesWorkspaceDeleteRequest = {
88
87
  ids: string[];
89
88
  };
90
- export type KnowledgeSourceResponse = {
89
+ export type KnowledgeSourcesWorkspaceListRequest = {
90
+ ids: string[];
91
+ name?: string | null;
92
+ };
93
+ export type KnowledgeSourceItemResponse = {
91
94
  id: string;
92
95
  slug: string;
93
96
  name: string;
@@ -96,9 +99,22 @@ export type KnowledgeSourceResponse = {
96
99
  creator: string | null;
97
100
  "default": boolean;
98
101
  visibility_level: VisibilityLevelEnum;
99
- model_name: string;
102
+ object_count: number;
100
103
  use_only: boolean;
101
104
  };
105
+ export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND";
106
+ export type HttpErrorResponse = {
107
+ "type"?: string;
108
+ status: string;
109
+ code: ExceptionType;
110
+ details: string;
111
+ value?: string | null;
112
+ field?: string | null;
113
+ };
114
+ export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
115
+ export type KnowledgeSourceSearchRequest = {
116
+ ids: string[];
117
+ };
102
118
  export type KnowledgeSourcePatchesRequest = {
103
119
  name: string;
104
120
  description: string;
@@ -145,27 +161,11 @@ export type KnowledgeSourceFilesIngestedResponse = {
145
161
  export type DeleteIndexedFilesRequest = {
146
162
  paths: string[];
147
163
  };
148
- export type KnowledgeSourcesWorkspaceForkRequest = {
149
- ids: string[];
150
- member_id: string;
151
- };
152
- export type KnowledgeSourcesWorkspaceForkResponse = {
153
- ks_ids: string[];
154
- ks_ids_account: string[];
155
- error_ids: string[];
156
- };
157
- export type KnowledgeSourcesWorkspaceDeleteRequest = {
158
- ids: string[];
159
- };
160
- export type KnowledgeSourcesWorkspaceListRequest = {
161
- ids: string[];
162
- name?: string | null;
163
- };
164
- export type FileUploadType = "PROJECT" | "KNOWLEDGE_SOURCE";
164
+ export type FileUploadType = "PROJECT" | "KNOWLEDGE_SOURCE" | "CONTEXT" | "TOOLKIT";
165
165
  export type FileUploadIndexType = "RELEVANT" | "FULL_INDEX";
166
166
  export type NewFileUploadRequest = {
167
167
  file_name: string;
168
- target_id: string;
168
+ target_id?: string | null;
169
169
  target_type: FileUploadType;
170
170
  expiration?: number;
171
171
  index_type?: FileUploadIndexType | null;
@@ -219,6 +219,7 @@ export type FileSplitRequest = {
219
219
  split_quantity?: number | null;
220
220
  split_strategy: FileSplitStrategy;
221
221
  embed_after_split?: boolean;
222
+ max_split_preview?: number;
222
223
  };
223
224
  export type FileMetadataResponse = {
224
225
  id: string;
@@ -230,6 +231,20 @@ export type FileMetadataResponse = {
230
231
  error_description: string | null;
231
232
  user_id_headers: string;
232
233
  };
234
+ export type FileUploadException = {
235
+ "type": ExceptionType;
236
+ message: string;
237
+ value?: string | null;
238
+ field?: string | null;
239
+ };
240
+ export type PresignedUrlsDto = {
241
+ presigned_urls: string[] | null;
242
+ invalid: FileUploadException | null;
243
+ };
244
+ export type AccountEmbeddingTokenUsage = {
245
+ current_used: number;
246
+ max_embedding_tokens: number;
247
+ };
233
248
  export type ConsumeTokenRequest = {
234
249
  token_quantity: number;
235
250
  };
@@ -306,11 +321,10 @@ export function readinessCheckReadyzGet(opts?: Oazapfts.RequestOpts) {
306
321
  /**
307
322
  * Search Objects
308
323
  */
309
- export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization, authorizationHeader, searchKnowledgeObjectRequest }: {
324
+ export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization, searchKnowledgeObjectRequest }: {
310
325
  xAccountId?: string | null;
311
326
  xUsername?: string | null;
312
- authorization?: string | null;
313
- authorizationHeader: string;
327
+ authorization: string;
314
328
  searchKnowledgeObjectRequest: SearchKnowledgeObjectRequest;
315
329
  }, opts?: Oazapfts.RequestOpts) {
316
330
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -328,19 +342,17 @@ export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization
328
342
  headers: oazapfts.mergeHeaders(opts?.headers, {
329
343
  "x-account-id": xAccountId,
330
344
  "x-username": xUsername,
331
- Authorization: authorization,
332
- authorization: authorizationHeader
345
+ authorization
333
346
  })
334
347
  })));
335
348
  }
336
349
  /**
337
350
  * Search Cross Account Objects
338
351
  */
339
- export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization, authorizationHeader, searchCrossAccountKnowledgeObjectRequest }: {
352
+ export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization, searchCrossAccountKnowledgeObjectRequest }: {
340
353
  xAccountId: string;
341
354
  xUsername: string;
342
- authorization?: string | null;
343
- authorizationHeader: string;
355
+ authorization: string;
344
356
  searchCrossAccountKnowledgeObjectRequest: SearchCrossAccountKnowledgeObjectRequest;
345
357
  }, opts?: Oazapfts.RequestOpts) {
346
358
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -358,8 +370,7 @@ export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId,
358
370
  headers: oazapfts.mergeHeaders(opts?.headers, {
359
371
  "x-account-id": xAccountId,
360
372
  "x-username": xUsername,
361
- Authorization: authorization,
362
- authorization: authorizationHeader
373
+ authorization
363
374
  })
364
375
  })));
365
376
  }
@@ -400,14 +411,96 @@ export function deleteFtKnowledgeSourceV1FtKnowledgeSourcesSlugDelete({ slug }:
400
411
  method: "DELETE"
401
412
  }));
402
413
  }
414
+ /**
415
+ * Workspace Fork
416
+ */
417
+ export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceForkRequest }: {
418
+ xAccountId?: string | null;
419
+ xUsername?: string | null;
420
+ authorization: string;
421
+ knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
422
+ }, opts?: Oazapfts.RequestOpts) {
423
+ return oazapfts.ok(oazapfts.fetchJson<{
424
+ status: 200;
425
+ data: KnowledgeSourcesWorkspaceForkResponse;
426
+ } | {
427
+ status: 404;
428
+ } | {
429
+ status: 422;
430
+ data: HttpValidationError;
431
+ }>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
432
+ ...opts,
433
+ method: "POST",
434
+ body: knowledgeSourcesWorkspaceForkRequest,
435
+ headers: oazapfts.mergeHeaders(opts?.headers, {
436
+ "x-account-id": xAccountId,
437
+ "x-username": xUsername,
438
+ authorization
439
+ })
440
+ })));
441
+ }
442
+ /**
443
+ * Workspace Delete Fork
444
+ */
445
+ export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceDeleteRequest }: {
446
+ xAccountId?: string | null;
447
+ xUsername?: string | null;
448
+ authorization: string;
449
+ knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
450
+ }, opts?: Oazapfts.RequestOpts) {
451
+ return oazapfts.ok(oazapfts.fetchJson<{
452
+ status: 204;
453
+ } | {
454
+ status: 404;
455
+ } | {
456
+ status: 422;
457
+ data: HttpValidationError;
458
+ }>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
459
+ ...opts,
460
+ method: "DELETE",
461
+ body: knowledgeSourcesWorkspaceDeleteRequest,
462
+ headers: oazapfts.mergeHeaders(opts?.headers, {
463
+ "x-account-id": xAccountId,
464
+ "x-username": xUsername,
465
+ authorization
466
+ })
467
+ })));
468
+ }
469
+ /**
470
+ * Workspace List
471
+ */
472
+ export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceListRequest }: {
473
+ xAccountId?: string | null;
474
+ xUsername?: string | null;
475
+ authorization: string;
476
+ knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
477
+ }, opts?: Oazapfts.RequestOpts) {
478
+ return oazapfts.ok(oazapfts.fetchJson<{
479
+ status: 200;
480
+ data: KnowledgeSourceItemResponse[];
481
+ } | {
482
+ status: 404;
483
+ } | {
484
+ status: 422;
485
+ data: HttpValidationError;
486
+ }>("/v1/knowledge-sources/workspace/list", oazapfts.json({
487
+ ...opts,
488
+ method: "POST",
489
+ body: knowledgeSourcesWorkspaceListRequest,
490
+ headers: oazapfts.mergeHeaders(opts?.headers, {
491
+ "x-account-id": xAccountId,
492
+ "x-username": xUsername,
493
+ authorization
494
+ })
495
+ })));
496
+ }
403
497
  /**
404
498
  * Create Ks
405
499
  */
406
- export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization, authorizationHeader, newKnowledgeSourceRequest }: {
500
+ export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization, newKnowledgeSourceRequest }: {
407
501
  xAccountId?: string | null;
408
502
  xUsername?: string | null;
409
- authorization?: string | null;
410
- authorizationHeader: string;
503
+ authorization: string;
411
504
  newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
412
505
  }, opts?: Oazapfts.RequestOpts) {
413
506
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -428,22 +521,20 @@ export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authoriz
428
521
  headers: oazapfts.mergeHeaders(opts?.headers, {
429
522
  "x-account-id": xAccountId,
430
523
  "x-username": xUsername,
431
- Authorization: authorization,
432
- authorization: authorizationHeader
524
+ authorization
433
525
  })
434
526
  })));
435
527
  }
436
528
  /**
437
529
  * List Ks
438
530
  */
439
- export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization, authorizationHeader }: {
531
+ export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization }: {
440
532
  visibility?: VisibilityLevelEnum;
441
533
  order?: OrderEnum;
442
534
  types?: KnowledgeSourceTypeEnum[];
443
535
  xAccountId?: string | null;
444
536
  xUsername?: string | null;
445
- authorization?: string | null;
446
- authorizationHeader: string;
537
+ authorization: string;
447
538
  }, opts?: Oazapfts.RequestOpts) {
448
539
  return oazapfts.ok(oazapfts.fetchJson<{
449
540
  status: 200;
@@ -462,19 +553,17 @@ export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccount
462
553
  headers: oazapfts.mergeHeaders(opts?.headers, {
463
554
  "x-account-id": xAccountId,
464
555
  "x-username": xUsername,
465
- Authorization: authorization,
466
- authorization: authorizationHeader
556
+ authorization
467
557
  })
468
558
  }));
469
559
  }
470
560
  /**
471
561
  * Search Ks
472
562
  */
473
- export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourceSearchRequest }: {
563
+ export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization, knowledgeSourceSearchRequest }: {
474
564
  xAccountId?: string | null;
475
565
  xUsername?: string | null;
476
- authorization?: string | null;
477
- authorizationHeader: string;
566
+ authorization: string;
478
567
  knowledgeSourceSearchRequest: KnowledgeSourceSearchRequest;
479
568
  }, opts?: Oazapfts.RequestOpts) {
480
569
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -492,20 +581,18 @@ export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, au
492
581
  headers: oazapfts.mergeHeaders(opts?.headers, {
493
582
  "x-account-id": xAccountId,
494
583
  "x-username": xUsername,
495
- Authorization: authorization,
496
- authorization: authorizationHeader
584
+ authorization
497
585
  })
498
586
  })));
499
587
  }
500
588
  /**
501
589
  * Find Ks
502
590
  */
503
- export function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
591
+ export function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization }: {
504
592
  slug: string;
505
593
  xAccountId?: string | null;
506
594
  xUsername?: string | null;
507
- authorization?: string | null;
508
- authorizationHeader: string;
595
+ authorization: string;
509
596
  }, opts?: Oazapfts.RequestOpts) {
510
597
  return oazapfts.ok(oazapfts.fetchJson<{
511
598
  status: 200;
@@ -521,20 +608,18 @@ export function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, a
521
608
  headers: oazapfts.mergeHeaders(opts?.headers, {
522
609
  "x-account-id": xAccountId,
523
610
  "x-username": xUsername,
524
- Authorization: authorization,
525
- authorization: authorizationHeader
611
+ authorization
526
612
  })
527
613
  }));
528
614
  }
529
615
  /**
530
616
  * Update Ks
531
617
  */
532
- export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcePatchesRequest }: {
618
+ export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization, knowledgeSourcePatchesRequest }: {
533
619
  slug: string;
534
620
  xAccountId?: string | null;
535
621
  xUsername?: string | null;
536
- authorization?: string | null;
537
- authorizationHeader: string;
622
+ authorization: string;
538
623
  knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
539
624
  }, opts?: Oazapfts.RequestOpts) {
540
625
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -555,20 +640,18 @@ export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsernam
555
640
  headers: oazapfts.mergeHeaders(opts?.headers, {
556
641
  "x-account-id": xAccountId,
557
642
  "x-username": xUsername,
558
- Authorization: authorization,
559
- authorization: authorizationHeader
643
+ authorization
560
644
  })
561
645
  })));
562
646
  }
563
647
  /**
564
648
  * Delete Ks
565
649
  */
566
- export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
650
+ export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization }: {
567
651
  slug: string;
568
652
  xAccountId: string;
569
653
  xUsername: string;
570
- authorization?: string | null;
571
- authorizationHeader: string;
654
+ authorization: string;
572
655
  }, opts?: Oazapfts.RequestOpts) {
573
656
  return oazapfts.ok(oazapfts.fetchJson<{
574
657
  status: 204;
@@ -590,20 +673,18 @@ export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUserna
590
673
  headers: oazapfts.mergeHeaders(opts?.headers, {
591
674
  "x-account-id": xAccountId,
592
675
  "x-username": xUsername,
593
- Authorization: authorization,
594
- authorization: authorizationHeader
676
+ authorization
595
677
  })
596
678
  }));
597
679
  }
598
680
  /**
599
681
  * Exists Ks
600
682
  */
601
- export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
683
+ export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization }: {
602
684
  slug: string;
603
685
  xAccountId?: string | null;
604
686
  xUsername?: string | null;
605
- authorization?: string | null;
606
- authorizationHeader: string;
687
+ authorization: string;
607
688
  }, opts?: Oazapfts.RequestOpts) {
608
689
  return oazapfts.ok(oazapfts.fetchJson<{
609
690
  status: 204;
@@ -618,20 +699,18 @@ export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUse
618
699
  headers: oazapfts.mergeHeaders(opts?.headers, {
619
700
  "x-account-id": xAccountId,
620
701
  "x-username": xUsername,
621
- Authorization: authorization,
622
- authorization: authorizationHeader
702
+ authorization
623
703
  })
624
704
  }));
625
705
  }
626
706
  /**
627
707
  * Share Ks
628
708
  */
629
- export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
709
+ export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization }: {
630
710
  slug: string;
631
711
  xAccountId?: string | null;
632
712
  xUsername?: string | null;
633
- authorization?: string | null;
634
- authorizationHeader: string;
713
+ authorization: string;
635
714
  }, opts?: Oazapfts.RequestOpts) {
636
715
  return oazapfts.ok(oazapfts.fetchJson<{
637
716
  status: 204;
@@ -650,20 +729,18 @@ export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUser
650
729
  headers: oazapfts.mergeHeaders(opts?.headers, {
651
730
  "x-account-id": xAccountId,
652
731
  "x-username": xUsername,
653
- Authorization: authorization,
654
- authorization: authorizationHeader
732
+ authorization
655
733
  })
656
734
  }));
657
735
  }
658
736
  /**
659
737
  * Add Favorite
660
738
  */
661
- export function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
739
+ export function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization }: {
662
740
  slug: string;
663
741
  xAccountId?: string | null;
664
742
  xUsername?: string | null;
665
- authorization?: string | null;
666
- authorizationHeader: string;
743
+ authorization: string;
667
744
  }, opts?: Oazapfts.RequestOpts) {
668
745
  return oazapfts.ok(oazapfts.fetchJson<{
669
746
  status: 204;
@@ -682,20 +759,18 @@ export function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId
682
759
  headers: oazapfts.mergeHeaders(opts?.headers, {
683
760
  "x-account-id": xAccountId,
684
761
  "x-username": xUsername,
685
- Authorization: authorization,
686
- authorization: authorizationHeader
762
+ authorization
687
763
  })
688
764
  }));
689
765
  }
690
766
  /**
691
767
  * Delete Favorite
692
768
  */
693
- export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
769
+ export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization }: {
694
770
  slug: string;
695
771
  xAccountId?: string | null;
696
772
  xUsername?: string | null;
697
- authorization?: string | null;
698
- authorizationHeader: string;
773
+ authorization: string;
699
774
  }, opts?: Oazapfts.RequestOpts) {
700
775
  return oazapfts.ok(oazapfts.fetchJson<{
701
776
  status: 204;
@@ -714,20 +789,18 @@ export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAcco
714
789
  headers: oazapfts.mergeHeaders(opts?.headers, {
715
790
  "x-account-id": xAccountId,
716
791
  "x-username": xUsername,
717
- Authorization: authorization,
718
- authorization: authorizationHeader
792
+ authorization
719
793
  })
720
794
  }));
721
795
  }
722
796
  /**
723
797
  * Publish Ks
724
798
  */
725
- export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, authorizationHeader, body }: {
799
+ export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, body }: {
726
800
  slug: string;
727
801
  xAccountId?: string | null;
728
802
  xUsername?: string | null;
729
- authorization?: string | null;
730
- authorizationHeader: string;
803
+ authorization: string;
731
804
  body?: KnowledgeSourcesPublishRequest | null;
732
805
  }, opts?: Oazapfts.RequestOpts) {
733
806
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -748,19 +821,17 @@ export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, x
748
821
  headers: oazapfts.mergeHeaders(opts?.headers, {
749
822
  "x-account-id": xAccountId,
750
823
  "x-username": xUsername,
751
- Authorization: authorization,
752
- authorization: authorizationHeader
824
+ authorization
753
825
  })
754
826
  })));
755
827
  }
756
828
  /**
757
829
  * Publish Ks Batch
758
830
  */
759
- export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcePublishBatchRequest }: {
831
+ export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization, knowledgeSourcePublishBatchRequest }: {
760
832
  xAccountId?: string | null;
761
833
  xUsername?: string | null;
762
- authorization?: string | null;
763
- authorizationHeader: string;
834
+ authorization: string;
764
835
  knowledgeSourcePublishBatchRequest: KnowledgeSourcePublishBatchRequest;
765
836
  }, opts?: Oazapfts.RequestOpts) {
766
837
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -780,20 +851,18 @@ export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, x
780
851
  headers: oazapfts.mergeHeaders(opts?.headers, {
781
852
  "x-account-id": xAccountId,
782
853
  "x-username": xUsername,
783
- Authorization: authorization,
784
- authorization: authorizationHeader
854
+ authorization
785
855
  })
786
856
  })));
787
857
  }
788
858
  /**
789
859
  * Fork Ks
790
860
  */
791
- export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization, authorizationHeader, forkKnowledgeSourceRequest }: {
861
+ export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization, forkKnowledgeSourceRequest }: {
792
862
  slug: string;
793
863
  xAccountId?: string | null;
794
864
  xUsername?: string | null;
795
- authorization?: string | null;
796
- authorizationHeader: string;
865
+ authorization: string;
797
866
  forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
798
867
  }, opts?: Oazapfts.RequestOpts) {
799
868
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -814,22 +883,20 @@ export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUserna
814
883
  headers: oazapfts.mergeHeaders(opts?.headers, {
815
884
  "x-account-id": xAccountId,
816
885
  "x-username": xUsername,
817
- Authorization: authorization,
818
- authorization: authorizationHeader
886
+ authorization
819
887
  })
820
888
  })));
821
889
  }
822
890
  /**
823
891
  * List Kos
824
892
  */
825
- export function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, xAccountId, xUsername, authorization, authorizationHeader, body }: {
893
+ export function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, filePath, xAccountId, xUsername, authorization }: {
826
894
  ksSlug: string;
827
895
  standalone?: boolean | null;
896
+ filePath?: string[];
828
897
  xAccountId?: string | null;
829
898
  xUsername?: string | null;
830
- authorization?: string | null;
831
- authorizationHeader: string;
832
- body?: string[] | null;
899
+ authorization: string;
833
900
  }, opts?: Oazapfts.RequestOpts) {
834
901
  return oazapfts.ok(oazapfts.fetchJson<{
835
902
  status: 200;
@@ -841,28 +908,26 @@ export function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone,
841
908
  status: 422;
842
909
  data: HttpValidationError;
843
910
  }>(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/objects${QS.query(QS.explode({
844
- standalone
845
- }))}`, oazapfts.json({
911
+ standalone,
912
+ file_path: filePath
913
+ }))}`, {
846
914
  ...opts,
847
- body,
848
915
  headers: oazapfts.mergeHeaders(opts?.headers, {
849
916
  "x-account-id": xAccountId,
850
917
  "x-username": xUsername,
851
- Authorization: authorization,
852
- authorization: authorizationHeader
918
+ authorization
853
919
  })
854
- })));
920
+ }));
855
921
  }
856
922
  /**
857
923
  * Reset Kos
858
924
  */
859
- export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization, authorizationHeader }: {
925
+ export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization }: {
860
926
  ksSlug: string;
861
927
  standalone?: boolean | null;
862
928
  xAccountId?: string | null;
863
929
  xUsername?: string | null;
864
- authorization?: string | null;
865
- authorizationHeader: string;
930
+ authorization: string;
866
931
  }, opts?: Oazapfts.RequestOpts) {
867
932
  return oazapfts.ok(oazapfts.fetchJson<{
868
933
  status: 204;
@@ -883,8 +948,7 @@ export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalo
883
948
  headers: oazapfts.mergeHeaders(opts?.headers, {
884
949
  "x-account-id": xAccountId,
885
950
  "x-username": xUsername,
886
- Authorization: authorization,
887
- authorization: authorizationHeader
951
+ authorization
888
952
  })
889
953
  }));
890
954
  }
@@ -919,13 +983,12 @@ export function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost(opts?: Oazapft
919
983
  /**
920
984
  * Find Ko By Id
921
985
  */
922
- export function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization, authorizationHeader }: {
986
+ export function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization }: {
923
987
  ksSlug: string;
924
988
  koId: string;
925
989
  xAccountId?: string | null;
926
990
  xUsername?: string | null;
927
- authorization?: string | null;
928
- authorizationHeader: string;
991
+ authorization: string;
929
992
  }, opts?: Oazapfts.RequestOpts) {
930
993
  return oazapfts.ok(oazapfts.fetchJson<{
931
994
  status: 200;
@@ -941,21 +1004,19 @@ export function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId,
941
1004
  headers: oazapfts.mergeHeaders(opts?.headers, {
942
1005
  "x-account-id": xAccountId,
943
1006
  "x-username": xUsername,
944
- Authorization: authorization,
945
- authorization: authorizationHeader
1007
+ authorization
946
1008
  })
947
1009
  }));
948
1010
  }
949
1011
  /**
950
1012
  * Delete Ko By Id
951
1013
  */
952
- export function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization, authorizationHeader }: {
1014
+ export function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization }: {
953
1015
  ksSlug: string;
954
1016
  koId: string;
955
1017
  xAccountId?: string | null;
956
1018
  xUsername?: string | null;
957
- authorization?: string | null;
958
- authorizationHeader: string;
1019
+ authorization: string;
959
1020
  }, opts?: Oazapfts.RequestOpts) {
960
1021
  return oazapfts.ok(oazapfts.fetchJson<{
961
1022
  status: 204;
@@ -974,20 +1035,18 @@ export function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug,
974
1035
  headers: oazapfts.mergeHeaders(opts?.headers, {
975
1036
  "x-account-id": xAccountId,
976
1037
  "x-username": xUsername,
977
- Authorization: authorization,
978
- authorization: authorizationHeader
1038
+ authorization
979
1039
  })
980
1040
  }));
981
1041
  }
982
1042
  /**
983
1043
  * Get Last Message
984
1044
  */
985
- export function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader }: {
1045
+ export function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization }: {
986
1046
  ksSlug: string;
987
1047
  xAccountId: string;
988
1048
  xUsername?: string | null;
989
- authorization?: string | null;
990
- authorizationHeader: string;
1049
+ authorization: string;
991
1050
  }, opts?: Oazapfts.RequestOpts) {
992
1051
  return oazapfts.ok(oazapfts.fetchJson<{
993
1052
  status: 200;
@@ -1003,20 +1062,18 @@ export function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, x
1003
1062
  headers: oazapfts.mergeHeaders(opts?.headers, {
1004
1063
  "x-account-id": xAccountId,
1005
1064
  "x-username": xUsername,
1006
- Authorization: authorization,
1007
- authorization: authorizationHeader
1065
+ authorization
1008
1066
  })
1009
1067
  }));
1010
1068
  }
1011
1069
  /**
1012
1070
  * Get Indexed Files
1013
1071
  */
1014
- export function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader }: {
1072
+ export function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization }: {
1015
1073
  ksSlug: string;
1016
1074
  xAccountId?: string | null;
1017
1075
  xUsername?: string | null;
1018
- authorization?: string | null;
1019
- authorizationHeader: string;
1076
+ authorization: string;
1020
1077
  }, opts?: Oazapfts.RequestOpts) {
1021
1078
  return oazapfts.ok(oazapfts.fetchJson<{
1022
1079
  status: 200;
@@ -1032,20 +1089,18 @@ export function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccou
1032
1089
  headers: oazapfts.mergeHeaders(opts?.headers, {
1033
1090
  "x-account-id": xAccountId,
1034
1091
  "x-username": xUsername,
1035
- Authorization: authorization,
1036
- authorization: authorizationHeader
1092
+ authorization
1037
1093
  })
1038
1094
  }));
1039
1095
  }
1040
1096
  /**
1041
1097
  * Delete Indexed Files
1042
1098
  */
1043
- export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader, deleteIndexedFilesRequest }: {
1099
+ export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization, deleteIndexedFilesRequest }: {
1044
1100
  ksSlug: string;
1045
1101
  xAccountId?: string | null;
1046
1102
  xUsername?: string | null;
1047
- authorization?: string | null;
1048
- authorizationHeader: string;
1103
+ authorization: string;
1049
1104
  deleteIndexedFilesRequest: DeleteIndexedFilesRequest;
1050
1105
  }, opts?: Oazapfts.RequestOpts) {
1051
1106
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1066,168 +1121,160 @@ export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug,
1066
1121
  headers: oazapfts.mergeHeaders(opts?.headers, {
1067
1122
  "x-account-id": xAccountId,
1068
1123
  "x-username": xUsername,
1069
- Authorization: authorization,
1070
- authorization: authorizationHeader
1124
+ authorization
1071
1125
  })
1072
1126
  })));
1073
1127
  }
1074
1128
  /**
1075
- * Workspace Fork
1129
+ * Get Upload Form
1076
1130
  */
1077
- export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceForkRequest }: {
1131
+ export function getUploadFormV1FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }: {
1078
1132
  xAccountId?: string | null;
1079
1133
  xUsername?: string | null;
1080
- authorization?: string | null;
1081
- authorizationHeader: string;
1082
- knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
1134
+ authorization: string;
1135
+ newFileUploadRequest: NewFileUploadRequest;
1083
1136
  }, opts?: Oazapfts.RequestOpts) {
1084
1137
  return oazapfts.ok(oazapfts.fetchJson<{
1085
- status: 200;
1086
- data: KnowledgeSourcesWorkspaceForkResponse;
1138
+ status: 201;
1139
+ data: NewFileUploadFormResponse;
1087
1140
  } | {
1088
1141
  status: 404;
1089
1142
  } | {
1090
1143
  status: 422;
1091
1144
  data: HttpValidationError;
1092
- }>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
1145
+ }>("/v1/file-upload/form", oazapfts.json({
1093
1146
  ...opts,
1094
1147
  method: "POST",
1095
- body: knowledgeSourcesWorkspaceForkRequest,
1148
+ body: newFileUploadRequest,
1096
1149
  headers: oazapfts.mergeHeaders(opts?.headers, {
1097
1150
  "x-account-id": xAccountId,
1098
1151
  "x-username": xUsername,
1099
- Authorization: authorization,
1100
- authorization: authorizationHeader
1152
+ authorization
1101
1153
  })
1102
1154
  })));
1103
1155
  }
1104
1156
  /**
1105
- * Workspace Delete Fork
1157
+ * Get File Upload Status
1106
1158
  */
1107
- export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceDeleteRequest }: {
1159
+ export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, xAccountId, xUsername, authorization }: {
1160
+ fileUploadId: string;
1108
1161
  xAccountId?: string | null;
1109
1162
  xUsername?: string | null;
1110
- authorization?: string | null;
1111
- authorizationHeader: string;
1112
- knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
1163
+ authorization: string;
1113
1164
  }, opts?: Oazapfts.RequestOpts) {
1114
1165
  return oazapfts.ok(oazapfts.fetchJson<{
1115
- status: 204;
1166
+ status: 200;
1167
+ data: FileUploadStatusResponse;
1116
1168
  } | {
1117
1169
  status: 404;
1118
1170
  } | {
1119
1171
  status: 422;
1120
1172
  data: HttpValidationError;
1121
- }>("/v1/knowledge-sources/workspace/fork", oazapfts.json({
1173
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
1122
1174
  ...opts,
1123
- method: "DELETE",
1124
- body: knowledgeSourcesWorkspaceDeleteRequest,
1125
1175
  headers: oazapfts.mergeHeaders(opts?.headers, {
1126
1176
  "x-account-id": xAccountId,
1127
1177
  "x-username": xUsername,
1128
- Authorization: authorization,
1129
- authorization: authorizationHeader
1178
+ authorization
1130
1179
  })
1131
- })));
1180
+ }));
1132
1181
  }
1133
1182
  /**
1134
- * Workspace List
1183
+ * Save Chunked Files Deprecated
1135
1184
  */
1136
- export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceListRequest }: {
1185
+ export function saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }: {
1186
+ fileUploadId: string;
1137
1187
  xAccountId?: string | null;
1138
1188
  xUsername?: string | null;
1139
- authorization?: string | null;
1140
- authorizationHeader: string;
1141
- knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
1189
+ authorization: string;
1190
+ fileUploadSaveChunksRequest: FileUploadSaveChunksRequest;
1142
1191
  }, opts?: Oazapfts.RequestOpts) {
1143
1192
  return oazapfts.ok(oazapfts.fetchJson<{
1144
- status: 200;
1145
- data: KnowledgeSourceItemResponse[];
1193
+ status: 202;
1194
+ data: any;
1146
1195
  } | {
1147
1196
  status: 404;
1148
1197
  } | {
1149
1198
  status: 422;
1150
1199
  data: HttpValidationError;
1151
- }>("/v1/knowledge-sources/workspace/list", oazapfts.json({
1200
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
1152
1201
  ...opts,
1153
1202
  method: "POST",
1154
- body: knowledgeSourcesWorkspaceListRequest,
1203
+ body: fileUploadSaveChunksRequest,
1155
1204
  headers: oazapfts.mergeHeaders(opts?.headers, {
1156
1205
  "x-account-id": xAccountId,
1157
1206
  "x-username": xUsername,
1158
- Authorization: authorization,
1159
- authorization: authorizationHeader
1207
+ authorization
1160
1208
  })
1161
1209
  })));
1162
1210
  }
1163
1211
  /**
1164
- * Get Upload Form
1212
+ * Internal Patch File Upload Status
1165
1213
  */
1166
- export function getUploadFormV1FileUploadFormPost({ xAccountId, xUsername, authorization, authorizationHeader, newFileUploadRequest }: {
1167
- xAccountId?: string | null;
1214
+ export function internalPatchFileUploadStatusV1FileUploadFileUploadIdPatch({ fileUploadId, xAccountId, xUsername, authorization, fileUploadUpdateRequest }: {
1215
+ fileUploadId: string;
1216
+ xAccountId: string;
1168
1217
  xUsername?: string | null;
1169
- authorization?: string | null;
1170
- authorizationHeader: string;
1171
- newFileUploadRequest: NewFileUploadRequest;
1218
+ authorization: string;
1219
+ fileUploadUpdateRequest: FileUploadUpdateRequest;
1172
1220
  }, opts?: Oazapfts.RequestOpts) {
1173
1221
  return oazapfts.ok(oazapfts.fetchJson<{
1174
- status: 201;
1175
- data: NewFileUploadFormResponse;
1222
+ status: 200;
1223
+ data: FileUploadStatusResponse;
1176
1224
  } | {
1177
1225
  status: 404;
1178
1226
  } | {
1179
1227
  status: 422;
1180
1228
  data: HttpValidationError;
1181
- }>("/v1/file-upload/form", oazapfts.json({
1229
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
1182
1230
  ...opts,
1183
- method: "POST",
1184
- body: newFileUploadRequest,
1231
+ method: "PATCH",
1232
+ body: fileUploadUpdateRequest,
1185
1233
  headers: oazapfts.mergeHeaders(opts?.headers, {
1186
1234
  "x-account-id": xAccountId,
1187
1235
  "x-username": xUsername,
1188
- Authorization: authorization,
1189
- authorization: authorizationHeader
1236
+ authorization
1190
1237
  })
1191
1238
  })));
1192
1239
  }
1193
1240
  /**
1194
- * Get File Upload Status
1241
+ * Save Chunked Files
1195
1242
  */
1196
- export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader }: {
1243
+ export function saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }: {
1197
1244
  fileUploadId: string;
1198
1245
  xAccountId?: string | null;
1199
1246
  xUsername?: string | null;
1200
- authorization?: string | null;
1201
- authorizationHeader: string;
1247
+ authorization: string;
1248
+ fileUploadSaveChunksRequest: FileUploadSaveChunksRequest;
1202
1249
  }, opts?: Oazapfts.RequestOpts) {
1203
1250
  return oazapfts.ok(oazapfts.fetchJson<{
1204
- status: 200;
1205
- data: FileUploadStatusResponse;
1251
+ status: 202;
1252
+ data: any;
1206
1253
  } | {
1207
1254
  status: 404;
1208
1255
  } | {
1209
1256
  status: 422;
1210
1257
  data: HttpValidationError;
1211
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
1258
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/knowledge-objects`, oazapfts.json({
1212
1259
  ...opts,
1260
+ method: "POST",
1261
+ body: fileUploadSaveChunksRequest,
1213
1262
  headers: oazapfts.mergeHeaders(opts?.headers, {
1214
1263
  "x-account-id": xAccountId,
1215
1264
  "x-username": xUsername,
1216
- Authorization: authorization,
1217
- authorization: authorizationHeader
1265
+ authorization
1218
1266
  })
1219
- }));
1267
+ })));
1220
1268
  }
1221
1269
  /**
1222
- * Save Chunked Files
1270
+ * Split Uploaded File
1223
1271
  */
1224
- export function saveChunkedFilesV1FileUploadFileUploadIdPost({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileUploadSaveChunksRequest }: {
1272
+ export function splitUploadedFileV1FileUploadFileUploadIdSplitPost({ fileUploadId, xAccountId, xUsername, authorization, fileSplitRequest }: {
1225
1273
  fileUploadId: string;
1226
1274
  xAccountId?: string | null;
1227
1275
  xUsername?: string | null;
1228
- authorization?: string | null;
1229
- authorizationHeader: string;
1230
- fileUploadSaveChunksRequest: FileUploadSaveChunksRequest;
1276
+ authorization: string;
1277
+ fileSplitRequest: FileSplitRequest;
1231
1278
  }, opts?: Oazapfts.RequestOpts) {
1232
1279
  return oazapfts.ok(oazapfts.fetchJson<{
1233
1280
  status: 202;
@@ -1237,172 +1284,158 @@ export function saveChunkedFilesV1FileUploadFileUploadIdPost({ fileUploadId, xAc
1237
1284
  } | {
1238
1285
  status: 422;
1239
1286
  data: HttpValidationError;
1240
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
1287
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split`, oazapfts.json({
1241
1288
  ...opts,
1242
1289
  method: "POST",
1243
- body: fileUploadSaveChunksRequest,
1290
+ body: fileSplitRequest,
1244
1291
  headers: oazapfts.mergeHeaders(opts?.headers, {
1245
1292
  "x-account-id": xAccountId,
1246
1293
  "x-username": xUsername,
1247
- Authorization: authorization,
1248
- authorization: authorizationHeader
1294
+ authorization
1249
1295
  })
1250
1296
  })));
1251
1297
  }
1252
1298
  /**
1253
- * Internal Patch File Upload Status
1299
+ * Split Uploaded File Preview
1254
1300
  */
1255
- export function internalPatchFileUploadStatusV1FileUploadFileUploadIdPatch({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileUploadUpdateRequest }: {
1301
+ export function splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet({ fileUploadId, splitStrategy, xAccountId, xUsername, authorization }: {
1256
1302
  fileUploadId: string;
1257
- xAccountId: string;
1303
+ splitStrategy: FileSplitStrategy;
1304
+ xAccountId?: string | null;
1258
1305
  xUsername?: string | null;
1259
- authorization?: string | null;
1260
- authorizationHeader: string;
1261
- fileUploadUpdateRequest: FileUploadUpdateRequest;
1306
+ authorization: string;
1262
1307
  }, opts?: Oazapfts.RequestOpts) {
1263
1308
  return oazapfts.ok(oazapfts.fetchJson<{
1264
1309
  status: 200;
1265
- data: FileUploadStatusResponse;
1310
+ data: any;
1266
1311
  } | {
1267
1312
  status: 404;
1268
1313
  } | {
1269
1314
  status: 422;
1270
1315
  data: HttpValidationError;
1271
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
1316
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split/preview/${encodeURIComponent(splitStrategy)}`, {
1272
1317
  ...opts,
1273
- method: "PATCH",
1274
- body: fileUploadUpdateRequest,
1275
1318
  headers: oazapfts.mergeHeaders(opts?.headers, {
1276
1319
  "x-account-id": xAccountId,
1277
1320
  "x-username": xUsername,
1278
- Authorization: authorization,
1279
- authorization: authorizationHeader
1321
+ authorization
1280
1322
  })
1281
- })));
1323
+ }));
1282
1324
  }
1283
1325
  /**
1284
- * Split Uploaded File
1326
+ * Internal Get File Upload Metadata
1285
1327
  */
1286
- export function splitUploadedFileV1FileUploadFileUploadIdSplitPost({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileSplitRequest }: {
1328
+ export function internalGetFileUploadMetadataV1FileUploadFileUploadIdMetadataGet({ fileUploadId, xAccountId, xUsername, authorization }: {
1287
1329
  fileUploadId: string;
1288
- xAccountId?: string | null;
1330
+ xAccountId: string;
1289
1331
  xUsername?: string | null;
1290
- authorization?: string | null;
1291
- authorizationHeader: string;
1292
- fileSplitRequest: FileSplitRequest;
1332
+ authorization: string;
1293
1333
  }, opts?: Oazapfts.RequestOpts) {
1294
1334
  return oazapfts.ok(oazapfts.fetchJson<{
1295
- status: 202;
1296
- data: any;
1335
+ status: 200;
1336
+ data: FileMetadataResponse;
1297
1337
  } | {
1298
1338
  status: 404;
1299
1339
  } | {
1300
1340
  status: 422;
1301
1341
  data: HttpValidationError;
1302
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split`, oazapfts.json({
1342
+ }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/metadata`, {
1303
1343
  ...opts,
1304
- method: "POST",
1305
- body: fileSplitRequest,
1306
1344
  headers: oazapfts.mergeHeaders(opts?.headers, {
1307
1345
  "x-account-id": xAccountId,
1308
1346
  "x-username": xUsername,
1309
- Authorization: authorization,
1310
- authorization: authorizationHeader
1347
+ authorization
1311
1348
  })
1312
- })));
1349
+ }));
1313
1350
  }
1314
1351
  /**
1315
- * Split Uploaded File Preview
1352
+ * Get Presigned Download Url
1316
1353
  */
1317
- export function splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet({ fileUploadId, splitStrategy, xAccountId, xUsername, authorization, authorizationHeader }: {
1318
- fileUploadId: string;
1319
- splitStrategy: FileSplitStrategy;
1354
+ export function getPresignedDownloadUrlV1FileUploadPresignedUrlGet({ id, expiration, xAccountId, xUsername, authorization }: {
1355
+ id?: string[];
1356
+ expiration?: number;
1320
1357
  xAccountId?: string | null;
1321
1358
  xUsername?: string | null;
1322
- authorization?: string | null;
1323
- authorizationHeader: string;
1359
+ authorization: string;
1324
1360
  }, opts?: Oazapfts.RequestOpts) {
1325
1361
  return oazapfts.ok(oazapfts.fetchJson<{
1326
1362
  status: 200;
1327
- data: any;
1363
+ data: PresignedUrlsDto;
1328
1364
  } | {
1329
1365
  status: 404;
1330
1366
  } | {
1331
1367
  status: 422;
1332
1368
  data: HttpValidationError;
1333
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split/preview/${encodeURIComponent(splitStrategy)}`, {
1369
+ }>(`/v1/file-upload/presigned/url${QS.query(QS.explode({
1370
+ id,
1371
+ expiration
1372
+ }))}`, {
1334
1373
  ...opts,
1335
1374
  headers: oazapfts.mergeHeaders(opts?.headers, {
1336
1375
  "x-account-id": xAccountId,
1337
1376
  "x-username": xUsername,
1338
- Authorization: authorization,
1339
- authorization: authorizationHeader
1377
+ authorization
1340
1378
  })
1341
1379
  }));
1342
1380
  }
1343
1381
  /**
1344
- * Internal Get File Upload Metadata
1382
+ * Delete Bucket Object
1345
1383
  */
1346
- export function internalGetFileUploadMetadataV1FileUploadFileUploadIdMetadataGet({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader }: {
1347
- fileUploadId: string;
1348
- xAccountId: string;
1384
+ export function deleteBucketObjectV1FileUploadUploadIdDelete({ uploadId, xAccountId, xUsername, authorization }: {
1385
+ uploadId: string;
1386
+ xAccountId?: string | null;
1349
1387
  xUsername?: string | null;
1350
- authorization?: string | null;
1351
- authorizationHeader: string;
1388
+ authorization: string;
1352
1389
  }, opts?: Oazapfts.RequestOpts) {
1353
1390
  return oazapfts.ok(oazapfts.fetchJson<{
1354
- status: 200;
1355
- data: FileMetadataResponse;
1391
+ status: 204;
1356
1392
  } | {
1357
1393
  status: 404;
1358
1394
  } | {
1359
1395
  status: 422;
1360
1396
  data: HttpValidationError;
1361
- }>(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/metadata`, {
1397
+ }>(`/v1/file-upload/${encodeURIComponent(uploadId)}`, {
1362
1398
  ...opts,
1399
+ method: "DELETE",
1363
1400
  headers: oazapfts.mergeHeaders(opts?.headers, {
1364
1401
  "x-account-id": xAccountId,
1365
1402
  "x-username": xUsername,
1366
- Authorization: authorization,
1367
- authorization: authorizationHeader
1403
+ authorization
1368
1404
  })
1369
1405
  }));
1370
1406
  }
1371
1407
  /**
1372
- * Has Limit
1408
+ * Internal Get Current Embedding Usage
1373
1409
  */
1374
- export function hasLimitV1TokenUsageHasLimitGet({ xAccountId, xUsername, authorization, authorizationHeader }: {
1375
- xAccountId?: string | null;
1410
+ export function internalGetCurrentEmbeddingUsageV1TokenUsageEmbeddingGet({ xAccountId, xUsername, authorization }: {
1411
+ xAccountId: string;
1376
1412
  xUsername?: string | null;
1377
- authorization?: string | null;
1378
- authorizationHeader: string;
1413
+ authorization: string;
1379
1414
  }, opts?: Oazapfts.RequestOpts) {
1380
1415
  return oazapfts.ok(oazapfts.fetchJson<{
1381
1416
  status: 200;
1382
- data: any;
1417
+ data: AccountEmbeddingTokenUsage;
1383
1418
  } | {
1384
1419
  status: 404;
1385
1420
  } | {
1386
1421
  status: 422;
1387
1422
  data: HttpValidationError;
1388
- }>("/v1/token-usage/has-limit", {
1423
+ }>("/v1/token-usage/embedding", {
1389
1424
  ...opts,
1390
1425
  headers: oazapfts.mergeHeaders(opts?.headers, {
1391
1426
  "x-account-id": xAccountId,
1392
1427
  "x-username": xUsername,
1393
- Authorization: authorization,
1394
- authorization: authorizationHeader
1428
+ authorization
1395
1429
  })
1396
1430
  }));
1397
1431
  }
1398
1432
  /**
1399
1433
  * Internal Consume Token Usage
1400
1434
  */
1401
- export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization, authorizationHeader, consumeTokenRequest }: {
1435
+ export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization, consumeTokenRequest }: {
1402
1436
  xAccountId: string;
1403
1437
  xUsername: string;
1404
- authorization?: string | null;
1405
- authorizationHeader: string;
1438
+ authorization: string;
1406
1439
  consumeTokenRequest: ConsumeTokenRequest;
1407
1440
  }, opts?: Oazapfts.RequestOpts) {
1408
1441
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1419,19 +1452,17 @@ export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, x
1419
1452
  headers: oazapfts.mergeHeaders(opts?.headers, {
1420
1453
  "x-account-id": xAccountId,
1421
1454
  "x-username": xUsername,
1422
- Authorization: authorization,
1423
- authorization: authorizationHeader
1455
+ authorization
1424
1456
  })
1425
1457
  })));
1426
1458
  }
1427
1459
  /**
1428
1460
  * Get Upload Form V2
1429
1461
  */
1430
- export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization, authorizationHeader, newFileUploadRequest }: {
1462
+ export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }: {
1431
1463
  xAccountId?: string | null;
1432
1464
  xUsername?: string | null;
1433
- authorization?: string | null;
1434
- authorizationHeader: string;
1465
+ authorization: string;
1435
1466
  newFileUploadRequest: NewFileUploadRequest;
1436
1467
  }, opts?: Oazapfts.RequestOpts) {
1437
1468
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1449,19 +1480,17 @@ export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, aut
1449
1480
  headers: oazapfts.mergeHeaders(opts?.headers, {
1450
1481
  "x-account-id": xAccountId,
1451
1482
  "x-username": xUsername,
1452
- Authorization: authorization,
1453
- authorization: authorizationHeader
1483
+ authorization
1454
1484
  })
1455
1485
  })));
1456
1486
  }
1457
1487
  /**
1458
1488
  * Internal Get Llm Config
1459
1489
  */
1460
- export function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization, authorizationHeader }: {
1490
+ export function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization }: {
1461
1491
  xAccountId: string;
1462
1492
  xUsername?: string | null;
1463
- authorization?: string | null;
1464
- authorizationHeader: string;
1493
+ authorization: string;
1465
1494
  }, opts?: Oazapfts.RequestOpts) {
1466
1495
  return oazapfts.ok(oazapfts.fetchJson<{
1467
1496
  status: 200;
@@ -1476,19 +1505,17 @@ export function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUserna
1476
1505
  headers: oazapfts.mergeHeaders(opts?.headers, {
1477
1506
  "x-account-id": xAccountId,
1478
1507
  "x-username": xUsername,
1479
- Authorization: authorization,
1480
- authorization: authorizationHeader
1508
+ authorization
1481
1509
  })
1482
1510
  }));
1483
1511
  }
1484
1512
  /**
1485
1513
  * Internal Get Or Create Knowledge Group
1486
1514
  */
1487
- export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization, authorizationHeader, getOrCreateKnowledgeGroupRequest }: {
1515
+ export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization, getOrCreateKnowledgeGroupRequest }: {
1488
1516
  xAccountId: string;
1489
1517
  xUsername?: string | null;
1490
- authorization?: string | null;
1491
- authorizationHeader: string;
1518
+ authorization: string;
1492
1519
  getOrCreateKnowledgeGroupRequest: GetOrCreateKnowledgeGroupRequest;
1493
1520
  }, opts?: Oazapfts.RequestOpts) {
1494
1521
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1506,20 +1533,18 @@ export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut
1506
1533
  headers: oazapfts.mergeHeaders(opts?.headers, {
1507
1534
  "x-account-id": xAccountId,
1508
1535
  "x-username": xUsername,
1509
- Authorization: authorization,
1510
- authorization: authorizationHeader
1536
+ authorization
1511
1537
  })
1512
1538
  })));
1513
1539
  }
1514
1540
  /**
1515
1541
  * Internal Delete By Not Checksums
1516
1542
  */
1517
- export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization, authorizationHeader, deleteGroupObjectsRequests }: {
1543
+ export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization, deleteGroupObjectsRequests }: {
1518
1544
  groupId: string;
1519
1545
  xAccountId: string;
1520
1546
  xUsername?: string | null;
1521
- authorization?: string | null;
1522
- authorizationHeader: string;
1547
+ authorization: string;
1523
1548
  deleteGroupObjectsRequests: DeleteGroupObjectsRequests;
1524
1549
  }, opts?: Oazapfts.RequestOpts) {
1525
1550
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1537,20 +1562,18 @@ export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelet
1537
1562
  headers: oazapfts.mergeHeaders(opts?.headers, {
1538
1563
  "x-account-id": xAccountId,
1539
1564
  "x-username": xUsername,
1540
- Authorization: authorization,
1541
- authorization: authorizationHeader
1565
+ authorization
1542
1566
  })
1543
1567
  })));
1544
1568
  }
1545
1569
  /**
1546
1570
  * Internal Update Knowledge Group
1547
1571
  */
1548
- export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization, authorizationHeader, updateKnowledgeGroupRequest }: {
1572
+ export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization, updateKnowledgeGroupRequest }: {
1549
1573
  groupId: string;
1550
1574
  xAccountId: string;
1551
1575
  xUsername?: string | null;
1552
- authorization?: string | null;
1553
- authorizationHeader: string;
1576
+ authorization: string;
1554
1577
  updateKnowledgeGroupRequest: UpdateKnowledgeGroupRequest;
1555
1578
  }, opts?: Oazapfts.RequestOpts) {
1556
1579
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1568,19 +1591,17 @@ export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ grou
1568
1591
  headers: oazapfts.mergeHeaders(opts?.headers, {
1569
1592
  "x-account-id": xAccountId,
1570
1593
  "x-username": xUsername,
1571
- Authorization: authorization,
1572
- authorization: authorizationHeader
1594
+ authorization
1573
1595
  })
1574
1596
  })));
1575
1597
  }
1576
1598
  /**
1577
1599
  * Internal Create Knowledge Objects Batch
1578
1600
  */
1579
- export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization, authorizationHeader, body }: {
1601
+ export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization, body }: {
1580
1602
  xAccountId: string;
1581
1603
  xUsername?: string | null;
1582
- authorization?: string | null;
1583
- authorizationHeader: string;
1604
+ authorization: string;
1584
1605
  body: CreateKnowledgeObjectsBatchRequest[];
1585
1606
  }, opts?: Oazapfts.RequestOpts) {
1586
1607
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1598,8 +1619,7 @@ export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({
1598
1619
  headers: oazapfts.mergeHeaders(opts?.headers, {
1599
1620
  "x-account-id": xAccountId,
1600
1621
  "x-username": xUsername,
1601
- Authorization: authorization,
1602
- authorization: authorizationHeader
1622
+ authorization
1603
1623
  })
1604
1624
  })));
1605
1625
  }