@credal/sdk 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +0 -3
- package/dist/cjs/Client.js +6 -11
- package/dist/cjs/api/resources/{permissionsService/types/Group.d.ts → common/types/CustomMetadataValue.d.ts} +1 -4
- package/dist/cjs/api/resources/common/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/common/types/index.js +1 -0
- package/dist/cjs/api/resources/copilots/client/Client.js +36 -27
- package/dist/cjs/api/resources/documentCatalog/client/Client.js +12 -9
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +5 -2
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/client/Client.js +28 -21
- package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.ts +1 -3
- package/dist/cjs/api/resources/index.d.ts +0 -3
- package/dist/cjs/api/resources/index.js +1 -4
- package/dist/cjs/api/resources/search/client/Client.js +4 -3
- package/dist/cjs/api/resources/users/client/Client.js +4 -3
- package/dist/cjs/api/resources/users/types/UserMetadataPatch.d.ts +1 -1
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/{api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.js → core/auth/AuthRequest.js} +0 -3
- package/dist/cjs/core/auth/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/Fetcher.js +2 -2
- package/dist/cjs/core/fetcher/index.d.ts +5 -5
- package/dist/cjs/core/fetcher/index.js +5 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +2 -7
- package/dist/esm/api/resources/{permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.mjs → common/types/CustomMetadataValue.d.mts} +1 -1
- package/dist/esm/api/resources/common/types/index.d.mts +1 -0
- package/dist/esm/api/resources/common/types/index.mjs +1 -0
- package/dist/esm/api/resources/copilots/client/Client.mjs +36 -27
- package/dist/esm/api/resources/documentCatalog/client/Client.mjs +12 -9
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +5 -2
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/client/Client.mjs +28 -21
- package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.mts +1 -3
- package/dist/esm/api/resources/index.d.mts +0 -3
- package/dist/esm/api/resources/index.mjs +0 -3
- package/dist/esm/api/resources/search/client/Client.mjs +4 -3
- package/dist/esm/api/resources/users/client/Client.mjs +4 -3
- package/dist/esm/api/resources/users/types/UserMetadataPatch.d.mts +1 -1
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/index.d.mts +2 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
- package/dist/esm/core/fetcher/index.d.mts +5 -5
- package/dist/esm/core/fetcher/index.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +0 -213
- package/dist/cjs/api/resources/permissionsService/client/Client.d.ts +0 -86
- package/dist/cjs/api/resources/permissionsService/client/Client.js +0 -257
- package/dist/cjs/api/resources/permissionsService/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/permissionsService/client/index.js +0 -17
- package/dist/cjs/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +0 -26
- package/dist/cjs/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +0 -23
- package/dist/cjs/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.ts +0 -20
- package/dist/cjs/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.js +0 -5
- package/dist/cjs/api/resources/permissionsService/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/permissionsService/index.d.ts +0 -2
- package/dist/cjs/api/resources/permissionsService/index.js +0 -18
- package/dist/cjs/api/resources/permissionsService/types/Action.d.ts +0 -7
- package/dist/cjs/api/resources/permissionsService/types/Action.js +0 -9
- package/dist/cjs/api/resources/permissionsService/types/AuthorizedResource.d.ts +0 -8
- package/dist/cjs/api/resources/permissionsService/types/AuthorizedResource.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/AuthorizedResourceListPage.d.ts +0 -5
- package/dist/cjs/api/resources/permissionsService/types/AuthorizedResourceListPage.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.ts +0 -5
- package/dist/cjs/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.d.ts +0 -6
- package/dist/cjs/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/Group.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/Principal.d.ts +0 -13
- package/dist/cjs/api/resources/permissionsService/types/Principal.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/PrincipalListPage.d.ts +0 -8
- package/dist/cjs/api/resources/permissionsService/types/PrincipalListPage.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/ResourceAuthorizationResult.d.ts +0 -9
- package/dist/cjs/api/resources/permissionsService/types/ResourceAuthorizationResult.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/User.d.ts +0 -8
- package/dist/cjs/api/resources/permissionsService/types/User.js +0 -5
- package/dist/cjs/api/resources/permissionsService/types/index.d.ts +0 -10
- package/dist/cjs/api/resources/permissionsService/types/index.js +0 -26
- package/dist/esm/api/resources/permissionsService/client/Client.d.mts +0 -86
- package/dist/esm/api/resources/permissionsService/client/Client.mjs +0 -220
- package/dist/esm/api/resources/permissionsService/client/index.d.mts +0 -2
- package/dist/esm/api/resources/permissionsService/client/index.mjs +0 -1
- package/dist/esm/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.mts +0 -26
- package/dist/esm/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.mts +0 -23
- package/dist/esm/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.mts +0 -20
- package/dist/esm/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/permissionsService/index.d.mts +0 -2
- package/dist/esm/api/resources/permissionsService/index.mjs +0 -2
- package/dist/esm/api/resources/permissionsService/types/Action.d.mts +0 -7
- package/dist/esm/api/resources/permissionsService/types/Action.mjs +0 -6
- package/dist/esm/api/resources/permissionsService/types/AuthorizedResource.d.mts +0 -8
- package/dist/esm/api/resources/permissionsService/types/AuthorizedResource.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/AuthorizedResourceListPage.d.mts +0 -5
- package/dist/esm/api/resources/permissionsService/types/AuthorizedResourceListPage.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.mts +0 -5
- package/dist/esm/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.d.mts +0 -6
- package/dist/esm/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/Group.d.mts +0 -7
- package/dist/esm/api/resources/permissionsService/types/Group.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/Principal.d.mts +0 -13
- package/dist/esm/api/resources/permissionsService/types/Principal.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/PrincipalListPage.d.mts +0 -8
- package/dist/esm/api/resources/permissionsService/types/PrincipalListPage.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/ResourceAuthorizationResult.d.mts +0 -9
- package/dist/esm/api/resources/permissionsService/types/ResourceAuthorizationResult.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/User.d.mts +0 -8
- package/dist/esm/api/resources/permissionsService/types/User.mjs +0 -4
- package/dist/esm/api/resources/permissionsService/types/index.d.mts +0 -10
- package/dist/esm/api/resources/permissionsService/types/index.mjs +0 -10
- /package/dist/cjs/api/resources/{permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.js → common/types/CustomMetadataValue.js} +0 -0
- /package/dist/cjs/{api/resources/permissionsService/client/requests/index.js → core/auth/AuthProvider.js} +0 -0
- /package/dist/esm/api/resources/{permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.mjs → common/types/CustomMetadataValue.mjs} +0 -0
- /package/dist/esm/{api/resources/permissionsService/client/requests/index.mjs → core/auth/AuthProvider.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { APIResponse } from "./APIResponse.js";
|
|
2
|
-
export {
|
|
2
|
+
export type { BinaryResponse } from "./BinaryResponse.js";
|
|
3
3
|
export type { Fetcher, FetchFunction } from "./Fetcher.js";
|
|
4
|
+
export { fetcher } from "./Fetcher.js";
|
|
4
5
|
export { getHeader } from "./getHeader.js";
|
|
5
|
-
export { Supplier } from "./Supplier.js";
|
|
6
|
-
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.js";
|
|
7
|
-
export type { RawResponse, WithRawResponse } from "./RawResponse.js";
|
|
8
6
|
export { HttpResponsePromise } from "./HttpResponsePromise.js";
|
|
9
|
-
export type {
|
|
7
|
+
export type { RawResponse, WithRawResponse } from "./RawResponse.js";
|
|
8
|
+
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.js";
|
|
9
|
+
export { Supplier } from "./Supplier.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = void 0;
|
|
4
4
|
var Fetcher_js_1 = require("./Fetcher.js");
|
|
5
5
|
Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return Fetcher_js_1.fetcher; } });
|
|
6
6
|
var getHeader_js_1 = require("./getHeader.js");
|
|
7
7
|
Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_js_1.getHeader; } });
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
8
|
+
var HttpResponsePromise_js_1 = require("./HttpResponsePromise.js");
|
|
9
|
+
Object.defineProperty(exports, "HttpResponsePromise", { enumerable: true, get: function () { return HttpResponsePromise_js_1.HttpResponsePromise; } });
|
|
10
10
|
var RawResponse_js_1 = require("./RawResponse.js");
|
|
11
11
|
Object.defineProperty(exports, "abortRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.abortRawResponse; } });
|
|
12
12
|
Object.defineProperty(exports, "toRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.toRawResponse; } });
|
|
13
13
|
Object.defineProperty(exports, "unknownRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.unknownRawResponse; } });
|
|
14
|
-
var
|
|
15
|
-
Object.defineProperty(exports, "
|
|
14
|
+
var Supplier_js_1 = require("./Supplier.js");
|
|
15
|
+
Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_js_1.Supplier; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.5";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -6,7 +6,6 @@ import * as core from "./core/index.mjs";
|
|
|
6
6
|
import { Copilots } from "./api/resources/copilots/client/Client.mjs";
|
|
7
7
|
import { DocumentCatalog } from "./api/resources/documentCatalog/client/Client.mjs";
|
|
8
8
|
import { DocumentCollections } from "./api/resources/documentCollections/client/Client.mjs";
|
|
9
|
-
import { PermissionsService } from "./api/resources/permissionsService/client/Client.mjs";
|
|
10
9
|
import { Search } from "./api/resources/search/client/Client.mjs";
|
|
11
10
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
12
11
|
export declare namespace CredalClient {
|
|
@@ -37,14 +36,12 @@ export declare class CredalClient {
|
|
|
37
36
|
protected _copilots: Copilots | undefined;
|
|
38
37
|
protected _documentCatalog: DocumentCatalog | undefined;
|
|
39
38
|
protected _documentCollections: DocumentCollections | undefined;
|
|
40
|
-
protected _permissionsService: PermissionsService | undefined;
|
|
41
39
|
protected _search: Search | undefined;
|
|
42
40
|
protected _users: Users | undefined;
|
|
43
41
|
constructor(_options?: CredalClient.Options);
|
|
44
42
|
get copilots(): Copilots;
|
|
45
43
|
get documentCatalog(): DocumentCatalog;
|
|
46
44
|
get documentCollections(): DocumentCollections;
|
|
47
|
-
get permissionsService(): PermissionsService;
|
|
48
45
|
get search(): Search;
|
|
49
46
|
get users(): Users;
|
|
50
47
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import { mergeHeaders } from "./core/headers.mjs";
|
|
|
6
6
|
import { Copilots } from "./api/resources/copilots/client/Client.mjs";
|
|
7
7
|
import { DocumentCatalog } from "./api/resources/documentCatalog/client/Client.mjs";
|
|
8
8
|
import { DocumentCollections } from "./api/resources/documentCollections/client/Client.mjs";
|
|
9
|
-
import { PermissionsService } from "./api/resources/permissionsService/client/Client.mjs";
|
|
10
9
|
import { Search } from "./api/resources/search/client/Client.mjs";
|
|
11
10
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
12
11
|
export class CredalClient {
|
|
@@ -14,8 +13,8 @@ export class CredalClient {
|
|
|
14
13
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
15
14
|
"X-Fern-Language": "JavaScript",
|
|
16
15
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
17
|
-
"X-Fern-SDK-Version": "0.1.
|
|
18
|
-
"User-Agent": "@credal/sdk/0.1.
|
|
16
|
+
"X-Fern-SDK-Version": "0.1.5",
|
|
17
|
+
"User-Agent": "@credal/sdk/0.1.5",
|
|
19
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
20
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
21
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -32,10 +31,6 @@ export class CredalClient {
|
|
|
32
31
|
var _a;
|
|
33
32
|
return ((_a = this._documentCollections) !== null && _a !== void 0 ? _a : (this._documentCollections = new DocumentCollections(this._options)));
|
|
34
33
|
}
|
|
35
|
-
get permissionsService() {
|
|
36
|
-
var _a;
|
|
37
|
-
return ((_a = this._permissionsService) !== null && _a !== void 0 ? _a : (this._permissionsService = new PermissionsService(this._options)));
|
|
38
|
-
}
|
|
39
34
|
get search() {
|
|
40
35
|
var _a;
|
|
41
36
|
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Search(this._options)));
|
|
@@ -40,10 +40,11 @@ export class Copilots {
|
|
|
40
40
|
__createCopilot(request, requestOptions) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
var _a, _b, _c, _d;
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
45
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/createCopilot"),
|
|
45
46
|
method: "POST",
|
|
46
|
-
headers:
|
|
47
|
+
headers: _headers,
|
|
47
48
|
contentType: "application/json",
|
|
48
49
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
49
50
|
requestType: "json",
|
|
@@ -97,10 +98,11 @@ export class Copilots {
|
|
|
97
98
|
__createConversation(request, requestOptions) {
|
|
98
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
100
|
var _a, _b, _c, _d;
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
102
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
103
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/createConversation"),
|
|
102
104
|
method: "POST",
|
|
103
|
-
headers:
|
|
105
|
+
headers: _headers,
|
|
104
106
|
contentType: "application/json",
|
|
105
107
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
106
108
|
requestType: "json",
|
|
@@ -158,10 +160,11 @@ export class Copilots {
|
|
|
158
160
|
__provideMessageFeedback(request, requestOptions) {
|
|
159
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
162
|
var _a, _b, _c, _d;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
164
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
165
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/provideMessageFeedback"),
|
|
163
166
|
method: "POST",
|
|
164
|
-
headers:
|
|
167
|
+
headers: _headers,
|
|
165
168
|
contentType: "application/json",
|
|
166
169
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
167
170
|
requestType: "json",
|
|
@@ -221,10 +224,11 @@ export class Copilots {
|
|
|
221
224
|
__sendMessage(request, requestOptions) {
|
|
222
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
226
|
var _a, _b, _c, _d;
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/sendMessage"),
|
|
226
230
|
method: "POST",
|
|
227
|
-
headers:
|
|
231
|
+
headers: _headers,
|
|
228
232
|
contentType: "application/json",
|
|
229
233
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
230
234
|
requestType: "json",
|
|
@@ -269,10 +273,11 @@ export class Copilots {
|
|
|
269
273
|
__streamMessage(request, requestOptions) {
|
|
270
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
275
|
var _a, _b, _c, _d;
|
|
272
|
-
|
|
273
|
-
|
|
276
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
277
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
278
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/streamMessage"),
|
|
274
279
|
method: "POST",
|
|
275
|
-
headers:
|
|
280
|
+
headers: _headers,
|
|
276
281
|
contentType: "application/json",
|
|
277
282
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
278
283
|
requestType: "json",
|
|
@@ -338,10 +343,11 @@ export class Copilots {
|
|
|
338
343
|
__addCollectionToCopilot(request, requestOptions) {
|
|
339
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
340
345
|
var _a, _b, _c, _d;
|
|
341
|
-
|
|
342
|
-
|
|
346
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
347
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
348
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/addCollectionToCopilot"),
|
|
343
349
|
method: "POST",
|
|
344
|
-
headers:
|
|
350
|
+
headers: _headers,
|
|
345
351
|
contentType: "application/json",
|
|
346
352
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
347
353
|
requestType: "json",
|
|
@@ -395,10 +401,11 @@ export class Copilots {
|
|
|
395
401
|
__removeCollectionFromCopilot(request, requestOptions) {
|
|
396
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
397
403
|
var _a, _b, _c, _d;
|
|
398
|
-
|
|
399
|
-
|
|
404
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
405
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
406
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/removeCollectionFromCopilot"),
|
|
400
407
|
method: "POST",
|
|
401
|
-
headers:
|
|
408
|
+
headers: _headers,
|
|
402
409
|
contentType: "application/json",
|
|
403
410
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
404
411
|
requestType: "json",
|
|
@@ -460,10 +467,11 @@ export class Copilots {
|
|
|
460
467
|
__updateConfiguration(request, requestOptions) {
|
|
461
468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
462
469
|
var _a, _b, _c, _d;
|
|
463
|
-
|
|
464
|
-
|
|
470
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
471
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
472
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/updateConfiguration"),
|
|
465
473
|
method: "POST",
|
|
466
|
-
headers:
|
|
474
|
+
headers: _headers,
|
|
467
475
|
contentType: "application/json",
|
|
468
476
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
469
477
|
requestType: "json",
|
|
@@ -514,10 +522,11 @@ export class Copilots {
|
|
|
514
522
|
__deleteCopilot(request, requestOptions) {
|
|
515
523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
516
524
|
var _a, _b, _c, _d;
|
|
517
|
-
|
|
518
|
-
|
|
525
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
526
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
527
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/deleteCopilot"),
|
|
519
528
|
method: "DELETE",
|
|
520
|
-
headers:
|
|
529
|
+
headers: _headers,
|
|
521
530
|
contentType: "application/json",
|
|
522
531
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
523
532
|
requestType: "json",
|
|
@@ -37,10 +37,11 @@ export class DocumentCatalog {
|
|
|
37
37
|
__uploadDocumentContents(request, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/uploadDocumentContents"),
|
|
42
43
|
method: "POST",
|
|
43
|
-
headers:
|
|
44
|
+
headers: _headers,
|
|
44
45
|
contentType: "application/json",
|
|
45
46
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
46
47
|
requestType: "json",
|
|
@@ -94,10 +95,11 @@ export class DocumentCatalog {
|
|
|
94
95
|
__syncSourceByUrl(request, requestOptions) {
|
|
95
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
97
|
var _a, _b, _c, _d;
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
99
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/syncSourceByUrl"),
|
|
99
101
|
method: "POST",
|
|
100
|
-
headers:
|
|
102
|
+
headers: _headers,
|
|
101
103
|
contentType: "application/json",
|
|
102
104
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
103
105
|
requestType: "json",
|
|
@@ -171,10 +173,11 @@ export class DocumentCatalog {
|
|
|
171
173
|
__metadata(request, requestOptions) {
|
|
172
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
175
|
var _a, _b, _c, _d;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
177
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
178
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/metadata"),
|
|
176
179
|
method: "PATCH",
|
|
177
|
-
headers:
|
|
180
|
+
headers: _headers,
|
|
178
181
|
contentType: "application/json",
|
|
179
182
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
180
183
|
requestType: "json",
|
package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Credal from "../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -25,11 +26,13 @@ export interface UploadDocumentContentsRequest {
|
|
|
25
26
|
/** The external URL of the document you want to upload. If provided Credal will link to this URL. */
|
|
26
27
|
documentExternalUrl?: string;
|
|
27
28
|
/** Optional JSON representing any custom metadata for this document */
|
|
28
|
-
customMetadata?:
|
|
29
|
-
/** If specified, document will also be added to
|
|
29
|
+
customMetadata?: Record<string, Credal.CustomMetadataValue>;
|
|
30
|
+
/** If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter. */
|
|
30
31
|
collectionId?: string;
|
|
31
32
|
/** If specified, document contents will be re-uploaded and re-embedded even if the document already exists in Credal */
|
|
32
33
|
forceUpdate?: boolean;
|
|
33
34
|
/** If specified, document will be accessible to everyone within the organization of the uploader */
|
|
34
35
|
internalPublic?: boolean;
|
|
36
|
+
/** If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns. */
|
|
37
|
+
awaitVectorStoreSync?: boolean;
|
|
35
38
|
}
|
|
@@ -6,5 +6,5 @@ export interface DocumentMetadataPatch {
|
|
|
6
6
|
/** The identifier for the resource you want to patch */
|
|
7
7
|
resourceIdentifier: Credal.ResourceIdentifier;
|
|
8
8
|
/** Key-value object of metadata for document. Keys will be merged with any existing values but can also be set to `null` to effectively remove */
|
|
9
|
-
metadata
|
|
9
|
+
metadata: Record<string, unknown>;
|
|
10
10
|
}
|
|
@@ -44,10 +44,11 @@ export class DocumentCollections {
|
|
|
44
44
|
__addDocumentsToCollection(request, requestOptions) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
var _a, _b, _c, _d;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
49
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/addDocumentsToCollection"),
|
|
49
50
|
method: "POST",
|
|
50
|
-
headers:
|
|
51
|
+
headers: _headers,
|
|
51
52
|
contentType: "application/json",
|
|
52
53
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
53
54
|
requestType: "json",
|
|
@@ -109,10 +110,11 @@ export class DocumentCollections {
|
|
|
109
110
|
__removeDocumentsFromCollection(request, requestOptions) {
|
|
110
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
112
|
var _a, _b, _c, _d;
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
114
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
115
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/removeDocumentsFromCollection"),
|
|
114
116
|
method: "DELETE",
|
|
115
|
-
headers:
|
|
117
|
+
headers: _headers,
|
|
116
118
|
contentType: "application/json",
|
|
117
119
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
118
120
|
requestType: "json",
|
|
@@ -168,10 +170,11 @@ export class DocumentCollections {
|
|
|
168
170
|
const { collectionId } = request;
|
|
169
171
|
const _queryParams = {};
|
|
170
172
|
_queryParams["collectionId"] = collectionId;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
174
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
175
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/listDocumentsInCollection"),
|
|
173
176
|
method: "GET",
|
|
174
|
-
headers:
|
|
177
|
+
headers: _headers,
|
|
175
178
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
176
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
177
180
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -229,10 +232,11 @@ export class DocumentCollections {
|
|
|
229
232
|
__createCollection(request, requestOptions) {
|
|
230
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
234
|
var _a, _b, _c, _d;
|
|
232
|
-
|
|
233
|
-
|
|
235
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
236
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
237
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/createCollection"),
|
|
234
238
|
method: "POST",
|
|
235
|
-
headers:
|
|
239
|
+
headers: _headers,
|
|
236
240
|
contentType: "application/json",
|
|
237
241
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
238
242
|
requestType: "json",
|
|
@@ -285,10 +289,11 @@ export class DocumentCollections {
|
|
|
285
289
|
__deleteCollection(request, requestOptions) {
|
|
286
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
291
|
var _a, _b, _c, _d;
|
|
288
|
-
|
|
289
|
-
|
|
292
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
293
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
294
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/deleteCollection"),
|
|
290
295
|
method: "DELETE",
|
|
291
|
-
headers:
|
|
296
|
+
headers: _headers,
|
|
292
297
|
contentType: "application/json",
|
|
293
298
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
294
299
|
requestType: "json",
|
|
@@ -357,10 +362,11 @@ export class DocumentCollections {
|
|
|
357
362
|
__createMongoCollectionSync(request, requestOptions) {
|
|
358
363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
359
364
|
var _a, _b, _c, _d;
|
|
360
|
-
|
|
361
|
-
|
|
365
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
366
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
367
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/mongodb/createMongoSync"),
|
|
362
368
|
method: "POST",
|
|
363
|
-
headers:
|
|
369
|
+
headers: _headers,
|
|
364
370
|
contentType: "application/json",
|
|
365
371
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
366
372
|
requestType: "json",
|
|
@@ -429,10 +435,11 @@ export class DocumentCollections {
|
|
|
429
435
|
__updateMongoCollectionSync(request, requestOptions) {
|
|
430
436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
431
437
|
var _a, _b, _c, _d;
|
|
432
|
-
|
|
433
|
-
|
|
438
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
439
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
440
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/mongodb/updateMongoSync"),
|
|
434
441
|
method: "POST",
|
|
435
|
-
headers:
|
|
442
|
+
headers: _headers,
|
|
436
443
|
contentType: "application/json",
|
|
437
444
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
438
445
|
requestType: "json",
|
|
@@ -6,8 +6,6 @@ export * as documentCatalog from "./documentCatalog/index.mjs";
|
|
|
6
6
|
export * from "./documentCatalog/types/index.mjs";
|
|
7
7
|
export * as documentCollections from "./documentCollections/index.mjs";
|
|
8
8
|
export * from "./documentCollections/types/index.mjs";
|
|
9
|
-
export * as permissionsService from "./permissionsService/index.mjs";
|
|
10
|
-
export * from "./permissionsService/types/index.mjs";
|
|
11
9
|
export * as search from "./search/index.mjs";
|
|
12
10
|
export * from "./search/types/index.mjs";
|
|
13
11
|
export * as users from "./users/index.mjs";
|
|
@@ -15,5 +13,4 @@ export * from "./users/types/index.mjs";
|
|
|
15
13
|
export * from "./copilots/client/requests/index.mjs";
|
|
16
14
|
export * from "./documentCatalog/client/requests/index.mjs";
|
|
17
15
|
export * from "./documentCollections/client/requests/index.mjs";
|
|
18
|
-
export * from "./permissionsService/client/requests/index.mjs";
|
|
19
16
|
export * from "./search/client/requests/index.mjs";
|
|
@@ -6,8 +6,6 @@ export * as documentCatalog from "./documentCatalog/index.mjs";
|
|
|
6
6
|
export * from "./documentCatalog/types/index.mjs";
|
|
7
7
|
export * as documentCollections from "./documentCollections/index.mjs";
|
|
8
8
|
export * from "./documentCollections/types/index.mjs";
|
|
9
|
-
export * as permissionsService from "./permissionsService/index.mjs";
|
|
10
|
-
export * from "./permissionsService/types/index.mjs";
|
|
11
9
|
export * as search from "./search/index.mjs";
|
|
12
10
|
export * from "./search/types/index.mjs";
|
|
13
11
|
export * as users from "./users/index.mjs";
|
|
@@ -15,5 +13,4 @@ export * from "./users/types/index.mjs";
|
|
|
15
13
|
export * from "./copilots/client/requests/index.mjs";
|
|
16
14
|
export * from "./documentCatalog/client/requests/index.mjs";
|
|
17
15
|
export * from "./documentCollections/client/requests/index.mjs";
|
|
18
|
-
export * from "./permissionsService/client/requests/index.mjs";
|
|
19
16
|
export * from "./search/client/requests/index.mjs";
|
|
@@ -50,10 +50,11 @@ export class Search {
|
|
|
50
50
|
__searchDocumentCollection(request, requestOptions) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
var _a, _b, _c, _d;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
55
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/search/searchDocumentCollection"),
|
|
55
56
|
method: "POST",
|
|
56
|
-
headers:
|
|
57
|
+
headers: _headers,
|
|
57
58
|
contentType: "application/json",
|
|
58
59
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
59
60
|
requestType: "json",
|
|
@@ -45,10 +45,11 @@ export class Users {
|
|
|
45
45
|
__metadata(request, requestOptions) {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
47
|
var _a, _b, _c, _d;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
50
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/users/metadata"),
|
|
50
51
|
method: "PATCH",
|
|
51
|
-
headers:
|
|
52
|
+
headers: _headers,
|
|
52
53
|
contentType: "application/json",
|
|
53
54
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
54
55
|
requestType: "json",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|