@gooddata/api-client-tiger 11.32.0-alpha.0 → 11.32.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,11 +204,13 @@ export async function ConversationsAiAxiosParamCreator_GetConversationApiV1AiWor
204
204
  * @summary Get Conversations
205
205
  * @param {string} workspaceId
206
206
  * @param {boolean} [isPreview]
207
+ * @param {number} [page]
208
+ * @param {number} [size]
207
209
  * @param {*} [options] Override http request option.
208
210
  * @param {Configuration} [configuration] Optional configuration.
209
211
  * @throws {RequiredError}
210
212
  */
211
- export async function ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(workspaceId, isPreview, options = {}, configuration) {
213
+ export async function ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(workspaceId, isPreview, page, size, options = {}, configuration) {
212
214
  // verify required parameter 'workspaceId' is not null or undefined
213
215
  assertParamExists('getConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet', 'workspaceId', workspaceId);
214
216
  const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations`
@@ -225,6 +227,12 @@ export async function ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWo
225
227
  if (isPreview !== undefined) {
226
228
  localVarQueryParameter['isPreview'] = isPreview;
227
229
  }
230
+ if (page !== undefined) {
231
+ localVarQueryParameter['page'] = page;
232
+ }
233
+ if (size !== undefined) {
234
+ localVarQueryParameter['size'] = size;
235
+ }
228
236
  setSearchParams(localVarUrlObj, localVarQueryParameter);
229
237
  const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
230
238
  localVarRequestOptions.headers = {
@@ -318,7 +326,7 @@ export async function ConversationsAi_GetConversationApiV1AiWorkspacesWorkspaceI
318
326
  * @throws {RequiredError}
319
327
  */
320
328
  export async function ConversationsAi_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(axios, basePath, requestParameters, options, configuration) {
321
- const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(requestParameters.workspaceId, requestParameters.isPreview, options || {}, configuration);
329
+ const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(requestParameters.workspaceId, requestParameters.isPreview, requestParameters.page, requestParameters.size, options || {}, configuration);
322
330
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
323
331
  }
324
332
  // ConversationsAi Api FP
@@ -514,6 +522,54 @@ export async function KnowledgeAiAxiosParamCreator_CreateDocument(workspaceId, f
514
522
  };
515
523
  }
516
524
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
525
+ /**
526
+ * Upload a new org-scoped knowledge document.
527
+ * @summary Upload Document Org
528
+ * @param {File} file
529
+ * @param {string} [title]
530
+ * @param {Array<string>} [scopes]
531
+ * @param {*} [options] Override http request option.
532
+ * @param {Configuration} [configuration] Optional configuration.
533
+ * @throws {RequiredError}
534
+ */
535
+ export async function KnowledgeAiAxiosParamCreator_CreateOrgDocument(file, title, scopes, options = {}, configuration) {
536
+ // verify required parameter 'file' is not null or undefined
537
+ assertParamExists('createOrgDocument', 'file', file);
538
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
+ let baseOptions;
542
+ if (configuration) {
543
+ baseOptions = configuration.baseOptions;
544
+ }
545
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
546
+ const localVarHeaderParameter = {};
547
+ const localVarQueryParameter = {};
548
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
549
+ if (file !== undefined) {
550
+ localVarFormParams.append('file', file);
551
+ }
552
+ if (title !== undefined) {
553
+ localVarFormParams.append('title', title);
554
+ }
555
+ if (scopes) {
556
+ localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
557
+ }
558
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
559
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
560
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
561
+ localVarRequestOptions.headers = {
562
+ ...localVarHeaderParameter,
563
+ ...headersFromBaseOptions,
564
+ ...options.headers,
565
+ };
566
+ localVarRequestOptions.data = localVarFormParams;
567
+ return {
568
+ url: toPathString(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ };
571
+ }
572
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
517
573
  /**
518
574
  * Delete a knowledge document and all its chunks.
519
575
  * @summary Delete Document
@@ -553,6 +609,41 @@ export async function KnowledgeAiAxiosParamCreator_DeleteDocument(workspaceId, d
553
609
  };
554
610
  }
555
611
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
612
+ /**
613
+ * Delete an org-scoped knowledge document and all its chunks.
614
+ * @summary Delete Document Org
615
+ * @param {string} documentId
616
+ * @param {*} [options] Override http request option.
617
+ * @param {Configuration} [configuration] Optional configuration.
618
+ * @throws {RequiredError}
619
+ */
620
+ export async function KnowledgeAiAxiosParamCreator_DeleteOrgDocument(documentId, options = {}, configuration) {
621
+ // verify required parameter 'documentId' is not null or undefined
622
+ assertParamExists('deleteOrgDocument', 'documentId', documentId);
623
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
624
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
625
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
626
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
627
+ let baseOptions;
628
+ if (configuration) {
629
+ baseOptions = configuration.baseOptions;
630
+ }
631
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
632
+ const localVarHeaderParameter = {};
633
+ const localVarQueryParameter = {};
634
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
635
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
636
+ localVarRequestOptions.headers = {
637
+ ...localVarHeaderParameter,
638
+ ...headersFromBaseOptions,
639
+ ...options.headers,
640
+ };
641
+ return {
642
+ url: toPathString(localVarUrlObj),
643
+ options: localVarRequestOptions,
644
+ };
645
+ }
646
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
556
647
  /**
557
648
  * Download a knowledge document\'s raw file.
558
649
  * @summary Download Document
@@ -592,6 +683,41 @@ export async function KnowledgeAiAxiosParamCreator_DownloadDocument(workspaceId,
592
683
  };
593
684
  }
594
685
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
686
+ /**
687
+ * Download an org-scoped knowledge document\'s raw file.
688
+ * @summary Download Document Org
689
+ * @param {string} documentId
690
+ * @param {*} [options] Override http request option.
691
+ * @param {Configuration} [configuration] Optional configuration.
692
+ * @throws {RequiredError}
693
+ */
694
+ export async function KnowledgeAiAxiosParamCreator_DownloadOrgDocument(documentId, options = {}, configuration) {
695
+ // verify required parameter 'documentId' is not null or undefined
696
+ assertParamExists('downloadOrgDocument', 'documentId', documentId);
697
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}/download`
698
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
701
+ let baseOptions;
702
+ if (configuration) {
703
+ baseOptions = configuration.baseOptions;
704
+ }
705
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
706
+ const localVarHeaderParameter = {};
707
+ const localVarQueryParameter = {};
708
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
709
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
710
+ localVarRequestOptions.headers = {
711
+ ...localVarHeaderParameter,
712
+ ...headersFromBaseOptions,
713
+ ...options.headers,
714
+ };
715
+ return {
716
+ url: toPathString(localVarUrlObj),
717
+ options: localVarRequestOptions,
718
+ };
719
+ }
720
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
595
721
  /**
596
722
  * Get a single knowledge document\'s metadata.
597
723
  * @summary Get Document
@@ -631,6 +757,41 @@ export async function KnowledgeAiAxiosParamCreator_GetDocument(workspaceId, docu
631
757
  };
632
758
  }
633
759
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
760
+ /**
761
+ * Get a single org-scoped knowledge document\'s metadata.
762
+ * @summary Get Document Org
763
+ * @param {string} documentId
764
+ * @param {*} [options] Override http request option.
765
+ * @param {Configuration} [configuration] Optional configuration.
766
+ * @throws {RequiredError}
767
+ */
768
+ export async function KnowledgeAiAxiosParamCreator_GetOrgDocument(documentId, options = {}, configuration) {
769
+ // verify required parameter 'documentId' is not null or undefined
770
+ assertParamExists('getOrgDocument', 'documentId', documentId);
771
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
772
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
775
+ let baseOptions;
776
+ if (configuration) {
777
+ baseOptions = configuration.baseOptions;
778
+ }
779
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
780
+ const localVarHeaderParameter = {};
781
+ const localVarQueryParameter = {};
782
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
783
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
784
+ localVarRequestOptions.headers = {
785
+ ...localVarHeaderParameter,
786
+ ...headersFromBaseOptions,
787
+ ...options.headers,
788
+ };
789
+ return {
790
+ url: toPathString(localVarUrlObj),
791
+ options: localVarRequestOptions,
792
+ };
793
+ }
794
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
634
795
  /**
635
796
  * List knowledge documents accessible from the workspace.
636
797
  * @summary List Documents
@@ -690,6 +851,61 @@ export async function KnowledgeAiAxiosParamCreator_ListDocuments(workspaceId, sc
690
851
  };
691
852
  }
692
853
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
854
+ /**
855
+ * List org-scoped knowledge documents.
856
+ * @summary List Documents Org
857
+ * @param {Array<string>} [scopes]
858
+ * @param {number} [size]
859
+ * @param {string} [pageToken]
860
+ * @param {string} [metaInclude]
861
+ * @param {'enabled' | 'disabled'} [state]
862
+ * @param {string} [query]
863
+ * @param {*} [options] Override http request option.
864
+ * @param {Configuration} [configuration] Optional configuration.
865
+ * @throws {RequiredError}
866
+ */
867
+ export async function KnowledgeAiAxiosParamCreator_ListOrgDocuments(scopes, size, pageToken, metaInclude, state, query, options = {}, configuration) {
868
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
876
+ const localVarHeaderParameter = {};
877
+ const localVarQueryParameter = {};
878
+ if (scopes) {
879
+ localVarQueryParameter['scopes'] = scopes;
880
+ }
881
+ if (size !== undefined) {
882
+ localVarQueryParameter['size'] = size;
883
+ }
884
+ if (pageToken !== undefined) {
885
+ localVarQueryParameter['pageToken'] = pageToken;
886
+ }
887
+ if (metaInclude !== undefined) {
888
+ localVarQueryParameter['metaInclude'] = metaInclude;
889
+ }
890
+ if (state !== undefined) {
891
+ localVarQueryParameter['state'] = state;
892
+ }
893
+ if (query !== undefined) {
894
+ localVarQueryParameter['query'] = query;
895
+ }
896
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
897
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
898
+ localVarRequestOptions.headers = {
899
+ ...localVarHeaderParameter,
900
+ ...headersFromBaseOptions,
901
+ ...options.headers,
902
+ };
903
+ return {
904
+ url: toPathString(localVarUrlObj),
905
+ options: localVarRequestOptions,
906
+ };
907
+ }
908
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
693
909
  /**
694
910
  * Patch a knowledge document\'s metadata without re-uploading content.
695
911
  * @summary Patch Document
@@ -744,6 +960,56 @@ export async function KnowledgeAiAxiosParamCreator_PatchDocument(workspaceId, do
744
960
  };
745
961
  }
746
962
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
963
+ /**
964
+ * Patch an org-scoped knowledge document\'s metadata.
965
+ * @summary Patch Document Org
966
+ * @param {string} documentId
967
+ * @param {AiPatchDocumentRequest} aiPatchDocumentRequest
968
+ * @param {*} [options] Override http request option.
969
+ * @param {Configuration} [configuration] Optional configuration.
970
+ * @throws {RequiredError}
971
+ */
972
+ export async function KnowledgeAiAxiosParamCreator_PatchOrgDocument(documentId, aiPatchDocumentRequest, options = {}, configuration) {
973
+ // verify required parameter 'documentId' is not null or undefined
974
+ assertParamExists('patchOrgDocument', 'documentId', documentId);
975
+ // verify required parameter 'aiPatchDocumentRequest' is not null or undefined
976
+ assertParamExists('patchOrgDocument', 'aiPatchDocumentRequest', aiPatchDocumentRequest);
977
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
978
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
980
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
981
+ let baseOptions;
982
+ if (configuration) {
983
+ baseOptions = configuration.baseOptions;
984
+ }
985
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
986
+ const localVarHeaderParameter = {};
987
+ const localVarQueryParameter = {};
988
+ const consumes = [
989
+ 'application/json'
990
+ ];
991
+ // use application/json if present, otherwise fallback to the first one
992
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
993
+ ? 'application/json'
994
+ : consumes[0];
995
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
996
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
997
+ localVarRequestOptions.headers = {
998
+ ...localVarHeaderParameter,
999
+ ...headersFromBaseOptions,
1000
+ ...options.headers,
1001
+ };
1002
+ const needsSerialization = typeof aiPatchDocumentRequest !== "string" ||
1003
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
1004
+ localVarRequestOptions.data = needsSerialization
1005
+ ? JSON.stringify(aiPatchDocumentRequest !== undefined ? aiPatchDocumentRequest : {})
1006
+ : aiPatchDocumentRequest || "";
1007
+ return {
1008
+ url: toPathString(localVarUrlObj),
1009
+ options: localVarRequestOptions,
1010
+ };
1011
+ }
1012
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
747
1013
  /**
748
1014
  * Search the knowledge base using semantic similarity.
749
1015
  * @summary Search Documents
@@ -797,6 +1063,55 @@ export async function KnowledgeAiAxiosParamCreator_SearchKnowledge(workspaceId,
797
1063
  };
798
1064
  }
799
1065
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
1066
+ /**
1067
+ * Search org-scoped knowledge documents using semantic similarity.
1068
+ * @summary Search Documents Org
1069
+ * @param {string} query
1070
+ * @param {number} [limit]
1071
+ * @param {number} [minScore]
1072
+ * @param {Array<string>} [scopes]
1073
+ * @param {*} [options] Override http request option.
1074
+ * @param {Configuration} [configuration] Optional configuration.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ export async function KnowledgeAiAxiosParamCreator_SearchOrgKnowledge(query, limit, minScore, scopes, options = {}, configuration) {
1078
+ // verify required parameter 'query' is not null or undefined
1079
+ assertParamExists('searchOrgKnowledge', 'query', query);
1080
+ const localVarPath = `/api/v1/ai/organization/knowledge/search`;
1081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1082
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1083
+ let baseOptions;
1084
+ if (configuration) {
1085
+ baseOptions = configuration.baseOptions;
1086
+ }
1087
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1088
+ const localVarHeaderParameter = {};
1089
+ const localVarQueryParameter = {};
1090
+ if (query !== undefined) {
1091
+ localVarQueryParameter['query'] = query;
1092
+ }
1093
+ if (limit !== undefined) {
1094
+ localVarQueryParameter['limit'] = limit;
1095
+ }
1096
+ if (minScore !== undefined) {
1097
+ localVarQueryParameter['minScore'] = minScore;
1098
+ }
1099
+ if (scopes) {
1100
+ localVarQueryParameter['scopes'] = scopes;
1101
+ }
1102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1103
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
1104
+ localVarRequestOptions.headers = {
1105
+ ...localVarHeaderParameter,
1106
+ ...headersFromBaseOptions,
1107
+ ...options.headers,
1108
+ };
1109
+ return {
1110
+ url: toPathString(localVarUrlObj),
1111
+ options: localVarRequestOptions,
1112
+ };
1113
+ }
1114
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
800
1115
  /**
801
1116
  * Upload or replace a knowledge document.
802
1117
  * @summary Upsert Document
@@ -848,6 +1163,54 @@ export async function KnowledgeAiAxiosParamCreator_UpsertDocument(workspaceId, f
848
1163
  options: localVarRequestOptions,
849
1164
  };
850
1165
  }
1166
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
1167
+ /**
1168
+ * Upload or replace an org-scoped knowledge document.
1169
+ * @summary Upsert Document Org
1170
+ * @param {File} file
1171
+ * @param {string} [title]
1172
+ * @param {Array<string>} [scopes]
1173
+ * @param {*} [options] Override http request option.
1174
+ * @param {Configuration} [configuration] Optional configuration.
1175
+ * @throws {RequiredError}
1176
+ */
1177
+ export async function KnowledgeAiAxiosParamCreator_UpsertOrgDocument(file, title, scopes, options = {}, configuration) {
1178
+ // verify required parameter 'file' is not null or undefined
1179
+ assertParamExists('upsertOrgDocument', 'file', file);
1180
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
1181
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1182
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1183
+ let baseOptions;
1184
+ if (configuration) {
1185
+ baseOptions = configuration.baseOptions;
1186
+ }
1187
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1188
+ const localVarHeaderParameter = {};
1189
+ const localVarQueryParameter = {};
1190
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1191
+ if (file !== undefined) {
1192
+ localVarFormParams.append('file', file);
1193
+ }
1194
+ if (title !== undefined) {
1195
+ localVarFormParams.append('title', title);
1196
+ }
1197
+ if (scopes) {
1198
+ localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
1199
+ }
1200
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1202
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
1203
+ localVarRequestOptions.headers = {
1204
+ ...localVarHeaderParameter,
1205
+ ...headersFromBaseOptions,
1206
+ ...options.headers,
1207
+ };
1208
+ localVarRequestOptions.data = localVarFormParams;
1209
+ return {
1210
+ url: toPathString(localVarUrlObj),
1211
+ options: localVarRequestOptions,
1212
+ };
1213
+ }
851
1214
  // KnowledgeAi Api FP
852
1215
  /**
853
1216
  * Upload a new knowledge document. Returns 409 if filename already exists.
@@ -864,6 +1227,21 @@ export async function KnowledgeAi_CreateDocument(axios, basePath, requestParamet
864
1227
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
865
1228
  }
866
1229
  // KnowledgeAi Api FP
1230
+ /**
1231
+ * Upload a new org-scoped knowledge document.
1232
+ * @summary Upload Document Org
1233
+ * @param {AxiosInstance} axios Axios instance.
1234
+ * @param {string} basePath Base path.
1235
+ * @param {KnowledgeAiCreateOrgDocumentRequest} requestParameters Request parameters.
1236
+ * @param {*} [options] Override http request option.
1237
+ * @param {Configuration} [configuration] Optional configuration.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ export async function KnowledgeAi_CreateOrgDocument(axios, basePath, requestParameters, options, configuration) {
1241
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_CreateOrgDocument(requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
1242
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1243
+ }
1244
+ // KnowledgeAi Api FP
867
1245
  /**
868
1246
  * Delete a knowledge document and all its chunks.
869
1247
  * @summary Delete Document
@@ -879,6 +1257,21 @@ export async function KnowledgeAi_DeleteDocument(axios, basePath, requestParamet
879
1257
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
880
1258
  }
881
1259
  // KnowledgeAi Api FP
1260
+ /**
1261
+ * Delete an org-scoped knowledge document and all its chunks.
1262
+ * @summary Delete Document Org
1263
+ * @param {AxiosInstance} axios Axios instance.
1264
+ * @param {string} basePath Base path.
1265
+ * @param {KnowledgeAiDeleteOrgDocumentRequest} requestParameters Request parameters.
1266
+ * @param {*} [options] Override http request option.
1267
+ * @param {Configuration} [configuration] Optional configuration.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ export async function KnowledgeAi_DeleteOrgDocument(axios, basePath, requestParameters, options, configuration) {
1271
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_DeleteOrgDocument(requestParameters.documentId, options || {}, configuration);
1272
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1273
+ }
1274
+ // KnowledgeAi Api FP
882
1275
  /**
883
1276
  * Download a knowledge document\'s raw file.
884
1277
  * @summary Download Document
@@ -894,6 +1287,21 @@ export async function KnowledgeAi_DownloadDocument(axios, basePath, requestParam
894
1287
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
895
1288
  }
896
1289
  // KnowledgeAi Api FP
1290
+ /**
1291
+ * Download an org-scoped knowledge document\'s raw file.
1292
+ * @summary Download Document Org
1293
+ * @param {AxiosInstance} axios Axios instance.
1294
+ * @param {string} basePath Base path.
1295
+ * @param {KnowledgeAiDownloadOrgDocumentRequest} requestParameters Request parameters.
1296
+ * @param {*} [options] Override http request option.
1297
+ * @param {Configuration} [configuration] Optional configuration.
1298
+ * @throws {RequiredError}
1299
+ */
1300
+ export async function KnowledgeAi_DownloadOrgDocument(axios, basePath, requestParameters, options, configuration) {
1301
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_DownloadOrgDocument(requestParameters.documentId, options || {}, configuration);
1302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1303
+ }
1304
+ // KnowledgeAi Api FP
897
1305
  /**
898
1306
  * Get a single knowledge document\'s metadata.
899
1307
  * @summary Get Document
@@ -909,6 +1317,21 @@ export async function KnowledgeAi_GetDocument(axios, basePath, requestParameters
909
1317
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
910
1318
  }
911
1319
  // KnowledgeAi Api FP
1320
+ /**
1321
+ * Get a single org-scoped knowledge document\'s metadata.
1322
+ * @summary Get Document Org
1323
+ * @param {AxiosInstance} axios Axios instance.
1324
+ * @param {string} basePath Base path.
1325
+ * @param {KnowledgeAiGetOrgDocumentRequest} requestParameters Request parameters.
1326
+ * @param {*} [options] Override http request option.
1327
+ * @param {Configuration} [configuration] Optional configuration.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ export async function KnowledgeAi_GetOrgDocument(axios, basePath, requestParameters, options, configuration) {
1331
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_GetOrgDocument(requestParameters.documentId, options || {}, configuration);
1332
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1333
+ }
1334
+ // KnowledgeAi Api FP
912
1335
  /**
913
1336
  * List knowledge documents accessible from the workspace.
914
1337
  * @summary List Documents
@@ -924,6 +1347,21 @@ export async function KnowledgeAi_ListDocuments(axios, basePath, requestParamete
924
1347
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
925
1348
  }
926
1349
  // KnowledgeAi Api FP
1350
+ /**
1351
+ * List org-scoped knowledge documents.
1352
+ * @summary List Documents Org
1353
+ * @param {AxiosInstance} axios Axios instance.
1354
+ * @param {string} basePath Base path.
1355
+ * @param {KnowledgeAiListOrgDocumentsRequest} requestParameters Request parameters.
1356
+ * @param {*} [options] Override http request option.
1357
+ * @param {Configuration} [configuration] Optional configuration.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ export async function KnowledgeAi_ListOrgDocuments(axios, basePath, requestParameters, options, configuration) {
1361
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_ListOrgDocuments(requestParameters.scopes, requestParameters.size, requestParameters.pageToken, requestParameters.metaInclude, requestParameters.state, requestParameters.query, options || {}, configuration);
1362
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1363
+ }
1364
+ // KnowledgeAi Api FP
927
1365
  /**
928
1366
  * Patch a knowledge document\'s metadata without re-uploading content.
929
1367
  * @summary Patch Document
@@ -939,6 +1377,21 @@ export async function KnowledgeAi_PatchDocument(axios, basePath, requestParamete
939
1377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
940
1378
  }
941
1379
  // KnowledgeAi Api FP
1380
+ /**
1381
+ * Patch an org-scoped knowledge document\'s metadata.
1382
+ * @summary Patch Document Org
1383
+ * @param {AxiosInstance} axios Axios instance.
1384
+ * @param {string} basePath Base path.
1385
+ * @param {KnowledgeAiPatchOrgDocumentRequest} requestParameters Request parameters.
1386
+ * @param {*} [options] Override http request option.
1387
+ * @param {Configuration} [configuration] Optional configuration.
1388
+ * @throws {RequiredError}
1389
+ */
1390
+ export async function KnowledgeAi_PatchOrgDocument(axios, basePath, requestParameters, options, configuration) {
1391
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_PatchOrgDocument(requestParameters.documentId, requestParameters.aiPatchDocumentRequest, options || {}, configuration);
1392
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1393
+ }
1394
+ // KnowledgeAi Api FP
942
1395
  /**
943
1396
  * Search the knowledge base using semantic similarity.
944
1397
  * @summary Search Documents
@@ -954,6 +1407,21 @@ export async function KnowledgeAi_SearchKnowledge(axios, basePath, requestParame
954
1407
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
955
1408
  }
956
1409
  // KnowledgeAi Api FP
1410
+ /**
1411
+ * Search org-scoped knowledge documents using semantic similarity.
1412
+ * @summary Search Documents Org
1413
+ * @param {AxiosInstance} axios Axios instance.
1414
+ * @param {string} basePath Base path.
1415
+ * @param {KnowledgeAiSearchOrgKnowledgeRequest} requestParameters Request parameters.
1416
+ * @param {*} [options] Override http request option.
1417
+ * @param {Configuration} [configuration] Optional configuration.
1418
+ * @throws {RequiredError}
1419
+ */
1420
+ export async function KnowledgeAi_SearchOrgKnowledge(axios, basePath, requestParameters, options, configuration) {
1421
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_SearchOrgKnowledge(requestParameters.query, requestParameters.limit, requestParameters.minScore, requestParameters.scopes, options || {}, configuration);
1422
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1423
+ }
1424
+ // KnowledgeAi Api FP
957
1425
  /**
958
1426
  * Upload or replace a knowledge document.
959
1427
  * @summary Upsert Document
@@ -968,6 +1436,21 @@ export async function KnowledgeAi_UpsertDocument(axios, basePath, requestParamet
968
1436
  const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UpsertDocument(requestParameters.workspaceId, requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
969
1437
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
970
1438
  }
1439
+ // KnowledgeAi Api FP
1440
+ /**
1441
+ * Upload or replace an org-scoped knowledge document.
1442
+ * @summary Upsert Document Org
1443
+ * @param {AxiosInstance} axios Axios instance.
1444
+ * @param {string} basePath Base path.
1445
+ * @param {KnowledgeAiUpsertOrgDocumentRequest} requestParameters Request parameters.
1446
+ * @param {*} [options] Override http request option.
1447
+ * @param {Configuration} [configuration] Optional configuration.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ export async function KnowledgeAi_UpsertOrgDocument(axios, basePath, requestParameters, options, configuration) {
1451
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UpsertOrgDocument(requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
1452
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1453
+ }
971
1454
  /**
972
1455
  * KnowledgeAi - object-oriented interface
973
1456
  * @export
@@ -986,6 +1469,17 @@ export class KnowledgeAi extends BaseAPI {
986
1469
  createDocument(requestParameters, options) {
987
1470
  return KnowledgeAi_CreateDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
988
1471
  }
1472
+ /**
1473
+ * Upload a new org-scoped knowledge document.
1474
+ * @summary Upload Document Org
1475
+ * @param {KnowledgeAiCreateOrgDocumentRequest} requestParameters Request parameters.
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ * @memberof KnowledgeAi
1479
+ */
1480
+ createOrgDocument(requestParameters, options) {
1481
+ return KnowledgeAi_CreateOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1482
+ }
989
1483
  /**
990
1484
  * Delete a knowledge document and all its chunks.
991
1485
  * @summary Delete Document
@@ -997,6 +1491,17 @@ export class KnowledgeAi extends BaseAPI {
997
1491
  deleteDocument(requestParameters, options) {
998
1492
  return KnowledgeAi_DeleteDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
999
1493
  }
1494
+ /**
1495
+ * Delete an org-scoped knowledge document and all its chunks.
1496
+ * @summary Delete Document Org
1497
+ * @param {KnowledgeAiDeleteOrgDocumentRequest} requestParameters Request parameters.
1498
+ * @param {*} [options] Override http request option.
1499
+ * @throws {RequiredError}
1500
+ * @memberof KnowledgeAi
1501
+ */
1502
+ deleteOrgDocument(requestParameters, options) {
1503
+ return KnowledgeAi_DeleteOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1504
+ }
1000
1505
  /**
1001
1506
  * Download a knowledge document\'s raw file.
1002
1507
  * @summary Download Document
@@ -1008,6 +1513,17 @@ export class KnowledgeAi extends BaseAPI {
1008
1513
  downloadDocument(requestParameters, options) {
1009
1514
  return KnowledgeAi_DownloadDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1010
1515
  }
1516
+ /**
1517
+ * Download an org-scoped knowledge document\'s raw file.
1518
+ * @summary Download Document Org
1519
+ * @param {KnowledgeAiDownloadOrgDocumentRequest} requestParameters Request parameters.
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ * @memberof KnowledgeAi
1523
+ */
1524
+ downloadOrgDocument(requestParameters, options) {
1525
+ return KnowledgeAi_DownloadOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1526
+ }
1011
1527
  /**
1012
1528
  * Get a single knowledge document\'s metadata.
1013
1529
  * @summary Get Document
@@ -1019,6 +1535,17 @@ export class KnowledgeAi extends BaseAPI {
1019
1535
  getDocument(requestParameters, options) {
1020
1536
  return KnowledgeAi_GetDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1021
1537
  }
1538
+ /**
1539
+ * Get a single org-scoped knowledge document\'s metadata.
1540
+ * @summary Get Document Org
1541
+ * @param {KnowledgeAiGetOrgDocumentRequest} requestParameters Request parameters.
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ * @memberof KnowledgeAi
1545
+ */
1546
+ getOrgDocument(requestParameters, options) {
1547
+ return KnowledgeAi_GetOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1548
+ }
1022
1549
  /**
1023
1550
  * List knowledge documents accessible from the workspace.
1024
1551
  * @summary List Documents
@@ -1030,6 +1557,17 @@ export class KnowledgeAi extends BaseAPI {
1030
1557
  listDocuments(requestParameters, options) {
1031
1558
  return KnowledgeAi_ListDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
1032
1559
  }
1560
+ /**
1561
+ * List org-scoped knowledge documents.
1562
+ * @summary List Documents Org
1563
+ * @param {KnowledgeAiListOrgDocumentsRequest} requestParameters Request parameters.
1564
+ * @param {*} [options] Override http request option.
1565
+ * @throws {RequiredError}
1566
+ * @memberof KnowledgeAi
1567
+ */
1568
+ listOrgDocuments(requestParameters = {}, options) {
1569
+ return KnowledgeAi_ListOrgDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
1570
+ }
1033
1571
  /**
1034
1572
  * Patch a knowledge document\'s metadata without re-uploading content.
1035
1573
  * @summary Patch Document
@@ -1041,6 +1579,17 @@ export class KnowledgeAi extends BaseAPI {
1041
1579
  patchDocument(requestParameters, options) {
1042
1580
  return KnowledgeAi_PatchDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1043
1581
  }
1582
+ /**
1583
+ * Patch an org-scoped knowledge document\'s metadata.
1584
+ * @summary Patch Document Org
1585
+ * @param {KnowledgeAiPatchOrgDocumentRequest} requestParameters Request parameters.
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ * @memberof KnowledgeAi
1589
+ */
1590
+ patchOrgDocument(requestParameters, options) {
1591
+ return KnowledgeAi_PatchOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1592
+ }
1044
1593
  /**
1045
1594
  * Search the knowledge base using semantic similarity.
1046
1595
  * @summary Search Documents
@@ -1052,6 +1601,17 @@ export class KnowledgeAi extends BaseAPI {
1052
1601
  searchKnowledge(requestParameters, options) {
1053
1602
  return KnowledgeAi_SearchKnowledge(this.axios, this.basePath, requestParameters, options, this.configuration);
1054
1603
  }
1604
+ /**
1605
+ * Search org-scoped knowledge documents using semantic similarity.
1606
+ * @summary Search Documents Org
1607
+ * @param {KnowledgeAiSearchOrgKnowledgeRequest} requestParameters Request parameters.
1608
+ * @param {*} [options] Override http request option.
1609
+ * @throws {RequiredError}
1610
+ * @memberof KnowledgeAi
1611
+ */
1612
+ searchOrgKnowledge(requestParameters, options) {
1613
+ return KnowledgeAi_SearchOrgKnowledge(this.axios, this.basePath, requestParameters, options, this.configuration);
1614
+ }
1055
1615
  /**
1056
1616
  * Upload or replace a knowledge document.
1057
1617
  * @summary Upsert Document
@@ -1063,6 +1623,17 @@ export class KnowledgeAi extends BaseAPI {
1063
1623
  upsertDocument(requestParameters, options) {
1064
1624
  return KnowledgeAi_UpsertDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1065
1625
  }
1626
+ /**
1627
+ * Upload or replace an org-scoped knowledge document.
1628
+ * @summary Upsert Document Org
1629
+ * @param {KnowledgeAiUpsertOrgDocumentRequest} requestParameters Request parameters.
1630
+ * @param {*} [options] Override http request option.
1631
+ * @throws {RequiredError}
1632
+ * @memberof KnowledgeAi
1633
+ */
1634
+ upsertOrgDocument(requestParameters, options) {
1635
+ return KnowledgeAi_UpsertOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1636
+ }
1066
1637
  }
1067
1638
  // MessagesAi FP - MessagesAiAxiosParamCreator
1068
1639
  /**