@airweave/sdk 0.1.10 → 0.1.12
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/Client.d.ts +3 -2
- package/Client.js +1 -1
- package/README.md +1 -1
- package/api/resources/apiKeys/client/Client.d.ts +3 -2
- package/api/resources/apiKeys/client/Client.js +14 -9
- package/api/resources/chat/client/Client.d.ts +3 -2
- package/api/resources/chat/client/Client.js +26 -17
- package/api/resources/connections/client/Client.d.ts +3 -2
- package/api/resources/connections/client/Client.js +38 -25
- package/api/resources/destinations/client/Client.d.ts +3 -2
- package/api/resources/destinations/client/Client.js +8 -5
- package/api/resources/embeddingModels/client/Client.d.ts +3 -2
- package/api/resources/embeddingModels/client/Client.js +8 -5
- package/api/resources/health/client/Client.d.ts +3 -2
- package/api/resources/health/client/Client.js +5 -3
- package/api/resources/sources/client/Client.d.ts +3 -2
- package/api/resources/sources/client/Client.js +8 -5
- package/api/resources/sync/client/Client.d.ts +3 -2
- package/api/resources/sync/client/Client.js +26 -17
- package/api/resources/users/client/Client.d.ts +3 -2
- package/api/resources/users/client/Client.js +5 -3
- package/api/resources/whiteLabels/client/Client.d.ts +4 -3
- package/api/resources/whiteLabels/client/Client.js +27 -18
- package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -2
- package/api/types/WhiteLabel.d.ts +1 -1
- package/dist/Client.d.ts +3 -2
- package/dist/Client.js +1 -1
- package/dist/api/resources/apiKeys/client/Client.d.ts +3 -2
- package/dist/api/resources/apiKeys/client/Client.js +14 -9
- package/dist/api/resources/chat/client/Client.d.ts +3 -2
- package/dist/api/resources/chat/client/Client.js +26 -17
- package/dist/api/resources/connections/client/Client.d.ts +3 -2
- package/dist/api/resources/connections/client/Client.js +38 -25
- package/dist/api/resources/destinations/client/Client.d.ts +3 -2
- package/dist/api/resources/destinations/client/Client.js +8 -5
- package/dist/api/resources/embeddingModels/client/Client.d.ts +3 -2
- package/dist/api/resources/embeddingModels/client/Client.js +8 -5
- package/dist/api/resources/health/client/Client.d.ts +3 -2
- package/dist/api/resources/health/client/Client.js +5 -3
- package/dist/api/resources/sources/client/Client.d.ts +3 -2
- package/dist/api/resources/sources/client/Client.js +8 -5
- package/dist/api/resources/sync/client/Client.d.ts +3 -2
- package/dist/api/resources/sync/client/Client.js +26 -17
- package/dist/api/resources/users/client/Client.d.ts +3 -2
- package/dist/api/resources/users/client/Client.js +5 -3
- package/dist/api/resources/whiteLabels/client/Client.d.ts +4 -3
- package/dist/api/resources/whiteLabels/client/Client.js +27 -18
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -2
- package/dist/api/types/WhiteLabel.d.ts +1 -1
- package/dist/environments.d.ts +8 -0
- package/dist/environments.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +1 -1
- package/dist/serialization/types/WhiteLabel.d.ts +1 -1
- package/dist/serialization/types/WhiteLabel.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +8 -0
- package/environments.js +10 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
- package/reference.md +1 -1
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +1 -1
- package/serialization/types/WhiteLabel.d.ts +1 -1
- package/serialization/types/WhiteLabel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -49,13 +49,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.Sync = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
52
53
|
const core = __importStar(require("../../../../core"));
|
|
53
54
|
const AirweaveSDK = __importStar(require("../../../index"));
|
|
54
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
55
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
58
|
class Sync {
|
|
58
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
59
60
|
this._options = _options;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
@@ -71,6 +72,7 @@ class Sync {
|
|
|
71
72
|
*/
|
|
72
73
|
listSyncs() {
|
|
73
74
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
75
|
+
var _a;
|
|
74
76
|
const { skip, limit, withSourceConnection } = request;
|
|
75
77
|
const _queryParams = {};
|
|
76
78
|
if (skip != null) {
|
|
@@ -83,11 +85,11 @@ class Sync {
|
|
|
83
85
|
_queryParams["with_source_connection"] = withSourceConnection.toString();
|
|
84
86
|
}
|
|
85
87
|
const _response = yield core.fetcher({
|
|
86
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sync/"),
|
|
88
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/"),
|
|
87
89
|
method: "GET",
|
|
88
90
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
89
91
|
? yield core.Supplier.get(this._options.apiKey)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
93
|
contentType: "application/json",
|
|
92
94
|
queryParameters: _queryParams,
|
|
93
95
|
requestType: "json",
|
|
@@ -150,12 +152,13 @@ class Sync {
|
|
|
150
152
|
*/
|
|
151
153
|
createSync(request, requestOptions) {
|
|
152
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
var _a;
|
|
153
156
|
const _response = yield core.fetcher({
|
|
154
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sync/"),
|
|
157
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/"),
|
|
155
158
|
method: "POST",
|
|
156
159
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
157
160
|
? yield core.Supplier.get(this._options.apiKey)
|
|
158
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
159
162
|
contentType: "application/json",
|
|
160
163
|
requestType: "json",
|
|
161
164
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,12 +218,13 @@ class Sync {
|
|
|
215
218
|
*/
|
|
216
219
|
getSync(syncId, requestOptions) {
|
|
217
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
var _a;
|
|
218
222
|
const _response = yield core.fetcher({
|
|
219
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/${encodeURIComponent(syncId)}`),
|
|
223
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}`),
|
|
220
224
|
method: "GET",
|
|
221
225
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
222
226
|
? yield core.Supplier.get(this._options.apiKey)
|
|
223
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
227
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
224
228
|
contentType: "application/json",
|
|
225
229
|
requestType: "json",
|
|
226
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -280,17 +284,18 @@ class Sync {
|
|
|
280
284
|
*/
|
|
281
285
|
deleteSync(syncId_1) {
|
|
282
286
|
return __awaiter(this, arguments, void 0, function* (syncId, request = {}, requestOptions) {
|
|
287
|
+
var _a;
|
|
283
288
|
const { deleteData } = request;
|
|
284
289
|
const _queryParams = {};
|
|
285
290
|
if (deleteData != null) {
|
|
286
291
|
_queryParams["delete_data"] = deleteData.toString();
|
|
287
292
|
}
|
|
288
293
|
const _response = yield core.fetcher({
|
|
289
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/${encodeURIComponent(syncId)}`),
|
|
294
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}`),
|
|
290
295
|
method: "DELETE",
|
|
291
296
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
292
297
|
? yield core.Supplier.get(this._options.apiKey)
|
|
293
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
298
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
294
299
|
contentType: "application/json",
|
|
295
300
|
queryParameters: _queryParams,
|
|
296
301
|
requestType: "json",
|
|
@@ -350,12 +355,13 @@ class Sync {
|
|
|
350
355
|
*/
|
|
351
356
|
runSync(syncId, requestOptions) {
|
|
352
357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
var _a;
|
|
353
359
|
const _response = yield core.fetcher({
|
|
354
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/${encodeURIComponent(syncId)}/run`),
|
|
360
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}/run`),
|
|
355
361
|
method: "POST",
|
|
356
362
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
357
363
|
? yield core.Supplier.get(this._options.apiKey)
|
|
358
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
364
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
359
365
|
contentType: "application/json",
|
|
360
366
|
requestType: "json",
|
|
361
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -414,12 +420,13 @@ class Sync {
|
|
|
414
420
|
*/
|
|
415
421
|
listSyncJobs(syncId, requestOptions) {
|
|
416
422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
var _a;
|
|
417
424
|
const _response = yield core.fetcher({
|
|
418
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/${encodeURIComponent(syncId)}/jobs`),
|
|
425
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}/jobs`),
|
|
419
426
|
method: "GET",
|
|
420
427
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
421
428
|
? yield core.Supplier.get(this._options.apiKey)
|
|
422
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
429
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
423
430
|
contentType: "application/json",
|
|
424
431
|
requestType: "json",
|
|
425
432
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -481,15 +488,16 @@ class Sync {
|
|
|
481
488
|
*/
|
|
482
489
|
getSyncJob(jobId, request, requestOptions) {
|
|
483
490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
var _a;
|
|
484
492
|
const { syncId } = request;
|
|
485
493
|
const _queryParams = {};
|
|
486
494
|
_queryParams["sync_id"] = syncId;
|
|
487
495
|
const _response = yield core.fetcher({
|
|
488
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/job/${encodeURIComponent(jobId)}`),
|
|
496
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/job/${encodeURIComponent(jobId)}`),
|
|
489
497
|
method: "GET",
|
|
490
498
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
491
499
|
? yield core.Supplier.get(this._options.apiKey)
|
|
492
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
500
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
493
501
|
contentType: "application/json",
|
|
494
502
|
queryParameters: _queryParams,
|
|
495
503
|
requestType: "json",
|
|
@@ -549,12 +557,13 @@ class Sync {
|
|
|
549
557
|
*/
|
|
550
558
|
subscribeSyncJob(jobId, requestOptions) {
|
|
551
559
|
return __awaiter(this, void 0, void 0, function* () {
|
|
560
|
+
var _a;
|
|
552
561
|
const _response = yield core.fetcher({
|
|
553
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `sync/job/${encodeURIComponent(jobId)}/subscribe`),
|
|
562
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/job/${encodeURIComponent(jobId)}/subscribe`),
|
|
554
563
|
method: "GET",
|
|
555
564
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
556
565
|
? yield core.Supplier.get(this._options.apiKey)
|
|
557
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
566
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
558
567
|
contentType: "application/json",
|
|
559
568
|
requestType: "json",
|
|
560
569
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
4
5
|
import * as core from "../../../../core";
|
|
5
6
|
import * as AirweaveSDK from "../../../index";
|
|
6
7
|
export declare namespace Users {
|
|
7
8
|
interface Options {
|
|
8
|
-
environment
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
9
10
|
/** Override the x-api-key header */
|
|
10
11
|
apiKey?: core.Supplier<string | undefined>;
|
|
11
12
|
}
|
|
@@ -24,7 +25,7 @@ export declare namespace Users {
|
|
|
24
25
|
}
|
|
25
26
|
export declare class Users {
|
|
26
27
|
protected readonly _options: Users.Options;
|
|
27
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Users.Options);
|
|
28
29
|
/**
|
|
29
30
|
* Get current user.
|
|
30
31
|
*
|
|
@@ -49,13 +49,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.Users = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
52
53
|
const core = __importStar(require("../../../../core"));
|
|
53
54
|
const AirweaveSDK = __importStar(require("../../../index"));
|
|
54
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
55
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
58
|
class Users {
|
|
58
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
59
60
|
this._options = _options;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
@@ -78,12 +79,13 @@ class Users {
|
|
|
78
79
|
*/
|
|
79
80
|
readUser(requestOptions) {
|
|
80
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a;
|
|
81
83
|
const _response = yield core.fetcher({
|
|
82
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "users/"),
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "users/"),
|
|
83
85
|
method: "GET",
|
|
84
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
85
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
89
|
contentType: "application/json",
|
|
88
90
|
requestType: "json",
|
|
89
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
4
5
|
import * as core from "../../../../core";
|
|
5
6
|
import * as AirweaveSDK from "../../../index";
|
|
6
7
|
export declare namespace WhiteLabels {
|
|
7
8
|
interface Options {
|
|
8
|
-
environment
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
9
10
|
/** Override the x-api-key header */
|
|
10
11
|
apiKey?: core.Supplier<string | undefined>;
|
|
11
12
|
}
|
|
@@ -24,7 +25,7 @@ export declare namespace WhiteLabels {
|
|
|
24
25
|
}
|
|
25
26
|
export declare class WhiteLabels {
|
|
26
27
|
protected readonly _options: WhiteLabels.Options;
|
|
27
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: WhiteLabels.Options);
|
|
28
29
|
/**
|
|
29
30
|
* List all white labels for the current user's organization.
|
|
30
31
|
*
|
|
@@ -47,7 +48,7 @@ export declare class WhiteLabels {
|
|
|
47
48
|
* @example
|
|
48
49
|
* await client.whiteLabels.createWhiteLabel({
|
|
49
50
|
* name: "name",
|
|
50
|
-
*
|
|
51
|
+
* sourceShortName: "source_short_name",
|
|
51
52
|
* redirectUrl: "redirect_url",
|
|
52
53
|
* clientId: "client_id",
|
|
53
54
|
* clientSecret: "client_secret"
|
|
@@ -49,13 +49,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.WhiteLabels = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
52
53
|
const core = __importStar(require("../../../../core"));
|
|
53
54
|
const AirweaveSDK = __importStar(require("../../../index"));
|
|
54
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
55
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
58
|
class WhiteLabels {
|
|
58
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
59
60
|
this._options = _options;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
@@ -70,12 +71,13 @@ class WhiteLabels {
|
|
|
70
71
|
*/
|
|
71
72
|
listWhiteLabels(requestOptions) {
|
|
72
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a;
|
|
73
75
|
const _response = yield core.fetcher({
|
|
74
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "white_labels/list"),
|
|
76
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "white_labels/list"),
|
|
75
77
|
method: "GET",
|
|
76
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
77
79
|
? yield core.Supplier.get(this._options.apiKey)
|
|
78
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
81
|
contentType: "application/json",
|
|
80
82
|
requestType: "json",
|
|
81
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -132,7 +134,7 @@ class WhiteLabels {
|
|
|
132
134
|
* @example
|
|
133
135
|
* await client.whiteLabels.createWhiteLabel({
|
|
134
136
|
* name: "name",
|
|
135
|
-
*
|
|
137
|
+
* sourceShortName: "source_short_name",
|
|
136
138
|
* redirectUrl: "redirect_url",
|
|
137
139
|
* clientId: "client_id",
|
|
138
140
|
* clientSecret: "client_secret"
|
|
@@ -140,12 +142,13 @@ class WhiteLabels {
|
|
|
140
142
|
*/
|
|
141
143
|
createWhiteLabel(request, requestOptions) {
|
|
142
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
var _a;
|
|
143
146
|
const _response = yield core.fetcher({
|
|
144
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "white_labels/"),
|
|
147
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "white_labels/"),
|
|
145
148
|
method: "POST",
|
|
146
149
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
147
150
|
? yield core.Supplier.get(this._options.apiKey)
|
|
148
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
151
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
152
|
contentType: "application/json",
|
|
150
153
|
requestType: "json",
|
|
151
154
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -205,12 +208,13 @@ class WhiteLabels {
|
|
|
205
208
|
*/
|
|
206
209
|
getWhiteLabel(whiteLabelId, requestOptions) {
|
|
207
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
var _a;
|
|
208
212
|
const _response = yield core.fetcher({
|
|
209
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
213
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
210
214
|
method: "GET",
|
|
211
215
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
212
216
|
? yield core.Supplier.get(this._options.apiKey)
|
|
213
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
217
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
214
218
|
contentType: "application/json",
|
|
215
219
|
requestType: "json",
|
|
216
220
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -270,12 +274,13 @@ class WhiteLabels {
|
|
|
270
274
|
*/
|
|
271
275
|
updateWhiteLabel(whiteLabelId_1) {
|
|
272
276
|
return __awaiter(this, arguments, void 0, function* (whiteLabelId, request = {}, requestOptions) {
|
|
277
|
+
var _a;
|
|
273
278
|
const _response = yield core.fetcher({
|
|
274
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
279
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
275
280
|
method: "PUT",
|
|
276
281
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
277
282
|
? yield core.Supplier.get(this._options.apiKey)
|
|
278
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
283
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
284
|
contentType: "application/json",
|
|
280
285
|
requestType: "json",
|
|
281
286
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -335,12 +340,13 @@ class WhiteLabels {
|
|
|
335
340
|
*/
|
|
336
341
|
deleteWhiteLabel(whiteLabelId, requestOptions) {
|
|
337
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
var _a;
|
|
338
344
|
const _response = yield core.fetcher({
|
|
339
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
345
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
340
346
|
method: "DELETE",
|
|
341
347
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
342
348
|
? yield core.Supplier.get(this._options.apiKey)
|
|
343
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
344
350
|
contentType: "application/json",
|
|
345
351
|
requestType: "json",
|
|
346
352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -399,12 +405,13 @@ class WhiteLabels {
|
|
|
399
405
|
*/
|
|
400
406
|
getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
401
407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
var _a;
|
|
402
409
|
const _response = yield core.fetcher({
|
|
403
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/auth_url`),
|
|
410
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/auth_url`),
|
|
404
411
|
method: "GET",
|
|
405
412
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
406
413
|
? yield core.Supplier.get(this._options.apiKey)
|
|
407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
414
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
408
415
|
contentType: "application/json",
|
|
409
416
|
requestType: "json",
|
|
410
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -464,12 +471,13 @@ class WhiteLabels {
|
|
|
464
471
|
*/
|
|
465
472
|
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
466
473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
var _a;
|
|
467
475
|
const _response = yield core.fetcher({
|
|
468
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/code`),
|
|
476
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/code`),
|
|
469
477
|
method: "POST",
|
|
470
478
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
471
479
|
? yield core.Supplier.get(this._options.apiKey)
|
|
472
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
480
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
473
481
|
contentType: "application/json",
|
|
474
482
|
requestType: "json",
|
|
475
483
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -531,12 +539,13 @@ class WhiteLabels {
|
|
|
531
539
|
*/
|
|
532
540
|
listWhiteLabelSyncs(whiteLabelId, requestOptions) {
|
|
533
541
|
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
var _a;
|
|
534
543
|
const _response = yield core.fetcher({
|
|
535
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `white_labels/${encodeURIComponent(whiteLabelId)}/syncs`),
|
|
544
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/syncs`),
|
|
536
545
|
method: "GET",
|
|
537
546
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
538
547
|
? yield core.Supplier.get(this._options.apiKey)
|
|
539
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
548
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
540
549
|
contentType: "application/json",
|
|
541
550
|
requestType: "json",
|
|
542
551
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* name: "name",
|
|
8
|
-
*
|
|
8
|
+
* sourceShortName: "source_short_name",
|
|
9
9
|
* redirectUrl: "redirect_url",
|
|
10
10
|
* clientId: "client_id",
|
|
11
11
|
* clientSecret: "client_secret"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export interface WhiteLabelCreate {
|
|
15
15
|
name: string;
|
|
16
|
-
|
|
16
|
+
sourceShortName: string;
|
|
17
17
|
redirectUrl: string;
|
|
18
18
|
clientId: string;
|
|
19
19
|
clientSecret: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AirweaveSDKEnvironment: {
|
|
5
|
+
readonly Production: "https://api.airweave.ai";
|
|
6
|
+
readonly Local: "http://localhost:8001";
|
|
7
|
+
};
|
|
8
|
+
export type AirweaveSDKEnvironment = typeof AirweaveSDKEnvironment.Production | typeof AirweaveSDKEnvironment.Local;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AirweaveSDKEnvironment = void 0;
|
|
7
|
+
exports.AirweaveSDKEnvironment = {
|
|
8
|
+
Production: "https://api.airweave.ai",
|
|
9
|
+
Local: "http://localhost:8001",
|
|
10
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.AirweaveSDKTimeoutError = exports.AirweaveSDKError = exports.AirweaveSDKClient = exports.AirweaveSDK = void 0;
|
|
36
|
+
exports.AirweaveSDKTimeoutError = exports.AirweaveSDKError = exports.AirweaveSDKEnvironment = exports.AirweaveSDKClient = exports.AirweaveSDK = void 0;
|
|
37
37
|
exports.AirweaveSDK = __importStar(require("./api"));
|
|
38
38
|
var Client_1 = require("./Client");
|
|
39
39
|
Object.defineProperty(exports, "AirweaveSDKClient", { enumerable: true, get: function () { return Client_1.AirweaveSDKClient; } });
|
|
40
|
+
var environments_1 = require("./environments");
|
|
41
|
+
Object.defineProperty(exports, "AirweaveSDKEnvironment", { enumerable: true, get: function () { return environments_1.AirweaveSDKEnvironment; } });
|
|
40
42
|
var errors_1 = require("./errors");
|
|
41
43
|
Object.defineProperty(exports, "AirweaveSDKError", { enumerable: true, get: function () { return errors_1.AirweaveSDKError; } });
|
|
42
44
|
Object.defineProperty(exports, "AirweaveSDKTimeoutError", { enumerable: true, get: function () { return errors_1.AirweaveSDKTimeoutError; } });
|
|
@@ -8,7 +8,7 @@ export declare const WhiteLabelCreate: core.serialization.Schema<serializers.Whi
|
|
|
8
8
|
export declare namespace WhiteLabelCreate {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
source_short_name: string;
|
|
12
12
|
redirect_url: string;
|
|
13
13
|
client_id: string;
|
|
14
14
|
client_secret: string;
|
|
@@ -40,7 +40,7 @@ exports.WhiteLabelCreate = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
exports.WhiteLabelCreate = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
|
-
|
|
43
|
+
sourceShortName: core.serialization.property("source_short_name", core.serialization.string()),
|
|
44
44
|
redirectUrl: core.serialization.property("redirect_url", core.serialization.string()),
|
|
45
45
|
clientId: core.serialization.property("client_id", core.serialization.string()),
|
|
46
46
|
clientSecret: core.serialization.property("client_secret", core.serialization.string()),
|
|
@@ -8,7 +8,7 @@ export declare const WhiteLabel: core.serialization.ObjectSchema<serializers.Whi
|
|
|
8
8
|
export declare namespace WhiteLabel {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
source_short_name: string;
|
|
12
12
|
redirect_url: string;
|
|
13
13
|
client_id: string;
|
|
14
14
|
client_secret: string;
|
|
@@ -40,7 +40,7 @@ exports.WhiteLabel = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.WhiteLabel = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
|
-
|
|
43
|
+
sourceShortName: core.serialization.property("source_short_name", core.serialization.string()),
|
|
44
44
|
redirectUrl: core.serialization.property("redirect_url", core.serialization.string()),
|
|
45
45
|
clientId: core.serialization.property("client_id", core.serialization.string()),
|
|
46
46
|
clientSecret: core.serialization.property("client_secret", core.serialization.string()),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.12";
|
package/dist/version.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AirweaveSDKEnvironment: {
|
|
5
|
+
readonly Production: "https://api.airweave.ai";
|
|
6
|
+
readonly Local: "http://localhost:8001";
|
|
7
|
+
};
|
|
8
|
+
export type AirweaveSDKEnvironment = typeof AirweaveSDKEnvironment.Production | typeof AirweaveSDKEnvironment.Local;
|
package/environments.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AirweaveSDKEnvironment = void 0;
|
|
7
|
+
exports.AirweaveSDKEnvironment = {
|
|
8
|
+
Production: "https://api.airweave.ai",
|
|
9
|
+
Local: "http://localhost:8001",
|
|
10
|
+
};
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.AirweaveSDKTimeoutError = exports.AirweaveSDKError = exports.AirweaveSDKClient = exports.AirweaveSDK = void 0;
|
|
36
|
+
exports.AirweaveSDKTimeoutError = exports.AirweaveSDKError = exports.AirweaveSDKEnvironment = exports.AirweaveSDKClient = exports.AirweaveSDK = void 0;
|
|
37
37
|
exports.AirweaveSDK = __importStar(require("./api"));
|
|
38
38
|
var Client_1 = require("./Client");
|
|
39
39
|
Object.defineProperty(exports, "AirweaveSDKClient", { enumerable: true, get: function () { return Client_1.AirweaveSDKClient; } });
|
|
40
|
+
var environments_1 = require("./environments");
|
|
41
|
+
Object.defineProperty(exports, "AirweaveSDKEnvironment", { enumerable: true, get: function () { return environments_1.AirweaveSDKEnvironment; } });
|
|
40
42
|
var errors_1 = require("./errors");
|
|
41
43
|
Object.defineProperty(exports, "AirweaveSDKError", { enumerable: true, get: function () { return errors_1.AirweaveSDKError; } });
|
|
42
44
|
Object.defineProperty(exports, "AirweaveSDKTimeoutError", { enumerable: true, get: function () { return errors_1.AirweaveSDKTimeoutError; } });
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2279,7 +2279,7 @@ Create new white label integration.
|
|
|
2279
2279
|
```typescript
|
|
2280
2280
|
await client.whiteLabels.createWhiteLabel({
|
|
2281
2281
|
name: "name",
|
|
2282
|
-
|
|
2282
|
+
sourceShortName: "source_short_name",
|
|
2283
2283
|
redirectUrl: "redirect_url",
|
|
2284
2284
|
clientId: "client_id",
|
|
2285
2285
|
clientSecret: "client_secret",
|
|
@@ -8,7 +8,7 @@ export declare const WhiteLabelCreate: core.serialization.Schema<serializers.Whi
|
|
|
8
8
|
export declare namespace WhiteLabelCreate {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
source_short_name: string;
|
|
12
12
|
redirect_url: string;
|
|
13
13
|
client_id: string;
|
|
14
14
|
client_secret: string;
|