@airweave/sdk 0.3.41 → 0.3.42
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.js +2 -2
- package/dist/cjs/api/resources/collections/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/collections/client/Client.js +3 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +3 -0
- package/dist/cjs/api/resources/sources/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/sources/client/Client.js +3 -0
- package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +10 -7
- package/dist/cjs/api/resources/whiteLabels/client/Client.js +12 -9
- package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts} +1 -1
- package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/collections/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +3 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +3 -0
- package/dist/esm/api/resources/sources/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/sources/client/Client.mjs +3 -0
- package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +10 -7
- package/dist/esm/api/resources/whiteLabels/client/Client.mjs +12 -9
- package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.mts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.mts} +1 -1
- package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +9 -9
- /package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +0 -0
- /package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -50,8 +50,8 @@ class AirweaveSDKClient {
|
|
|
50
50
|
"X-Organization-ID": _options === null || _options === void 0 ? void 0 : _options.organizationId,
|
|
51
51
|
"X-Fern-Language": "JavaScript",
|
|
52
52
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
53
|
-
"X-Fern-SDK-Version": "v0.3.
|
|
54
|
-
"User-Agent": "@airweave/sdk/v0.3.
|
|
53
|
+
"X-Fern-SDK-Version": "v0.3.42",
|
|
54
|
+
"User-Agent": "@airweave/sdk/v0.3.42",
|
|
55
55
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
56
56
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
57
57
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,6 +31,9 @@ export declare namespace Collections {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
|
|
36
|
+
*/
|
|
34
37
|
export declare class Collections {
|
|
35
38
|
protected readonly _options: Collections.Options;
|
|
36
39
|
constructor(_options?: Collections.Options);
|
|
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
51
51
|
const AirweaveSDK = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
/**
|
|
55
|
+
* API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
|
|
56
|
+
*/
|
|
54
57
|
class Collections {
|
|
55
58
|
constructor(_options = {}) {
|
|
56
59
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace SourceConnections {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
|
|
36
|
+
*/
|
|
34
37
|
export declare class SourceConnections {
|
|
35
38
|
protected readonly _options: SourceConnections.Options;
|
|
36
39
|
constructor(_options?: SourceConnections.Options);
|
|
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
51
51
|
const AirweaveSDK = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
/**
|
|
55
|
+
* API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
|
|
56
|
+
*/
|
|
54
57
|
class SourceConnections {
|
|
55
58
|
constructor(_options = {}) {
|
|
56
59
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace Sources {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for discovering available data source connectors and their configuration requirements
|
|
36
|
+
*/
|
|
34
37
|
export declare class Sources {
|
|
35
38
|
protected readonly _options: Sources.Options;
|
|
36
39
|
constructor(_options?: Sources.Options);
|
|
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
51
51
|
const AirweaveSDK = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
/**
|
|
55
|
+
* API endpoints for discovering available data source connectors and their configuration requirements
|
|
56
|
+
*/
|
|
54
57
|
class Sources {
|
|
55
58
|
constructor(_options = {}) {
|
|
56
59
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace WhiteLabels {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing custom OAuth2 integrations with your own branding and credentials
|
|
36
|
+
*/
|
|
34
37
|
export declare class WhiteLabels {
|
|
35
38
|
protected readonly _options: WhiteLabels.Options;
|
|
36
39
|
constructor(_options?: WhiteLabels.Options);
|
|
@@ -144,10 +147,10 @@ export declare class WhiteLabels {
|
|
|
144
147
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
145
148
|
*
|
|
146
149
|
* @example
|
|
147
|
-
* await client.whiteLabels.
|
|
150
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
148
151
|
*/
|
|
149
|
-
|
|
150
|
-
private
|
|
152
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
153
|
+
private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
|
|
151
154
|
/**
|
|
152
155
|
* List all source connections created through a specific white label integration.
|
|
153
156
|
*
|
|
@@ -175,16 +178,16 @@ export declare class WhiteLabels {
|
|
|
175
178
|
* tracking and branding purposes.
|
|
176
179
|
*
|
|
177
180
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
178
|
-
* @param {AirweaveSDK.
|
|
181
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
179
182
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
183
|
*
|
|
181
184
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
182
185
|
*
|
|
183
186
|
* @example
|
|
184
|
-
* await client.whiteLabels.
|
|
187
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
185
188
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
186
189
|
* })
|
|
187
190
|
*/
|
|
188
|
-
|
|
189
|
-
private
|
|
191
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
192
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
190
193
|
}
|
|
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
51
51
|
const AirweaveSDK = __importStar(require("../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
/**
|
|
55
|
+
* API endpoints for managing custom OAuth2 integrations with your own branding and credentials
|
|
56
|
+
*/
|
|
54
57
|
class WhiteLabels {
|
|
55
58
|
constructor(_options = {}) {
|
|
56
59
|
this._options = _options;
|
|
@@ -406,12 +409,12 @@ class WhiteLabels {
|
|
|
406
409
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
407
410
|
*
|
|
408
411
|
* @example
|
|
409
|
-
* await client.whiteLabels.
|
|
412
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
410
413
|
*/
|
|
411
|
-
|
|
412
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
414
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
415
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
|
|
413
416
|
}
|
|
414
|
-
|
|
417
|
+
__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
415
418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
416
419
|
var _a, _b, _c;
|
|
417
420
|
const _response = yield core.fetcher({
|
|
@@ -534,20 +537,20 @@ class WhiteLabels {
|
|
|
534
537
|
* tracking and branding purposes.
|
|
535
538
|
*
|
|
536
539
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
537
|
-
* @param {AirweaveSDK.
|
|
540
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
538
541
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
539
542
|
*
|
|
540
543
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
541
544
|
*
|
|
542
545
|
* @example
|
|
543
|
-
* await client.whiteLabels.
|
|
546
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
544
547
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
545
548
|
* })
|
|
546
549
|
*/
|
|
547
|
-
|
|
548
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
550
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
551
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
549
552
|
}
|
|
550
|
-
|
|
553
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
551
554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
552
555
|
var _a, _b, _c;
|
|
553
556
|
const _response = yield core.fetcher({
|
|
@@ -8,7 +8,7 @@ import * as AirweaveSDK from "../../../../index.js";
|
|
|
8
8
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost {
|
|
12
12
|
/** The OAuth2 authorization code received from the OAuth callback after customer authentication */
|
|
13
13
|
code: string;
|
|
14
14
|
/** Optional configuration for the source connection. If not provided, a source connection will be created automatically with default settings. The white label integration is automatically linked to the source connection. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type WhiteLabelCreate } from "./WhiteLabelCreate.js";
|
|
2
2
|
export { type WhiteLabelUpdate } from "./WhiteLabelUpdate.js";
|
|
3
|
-
export { type
|
|
3
|
+
export { type BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js";
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.3.
|
|
1
|
+
export declare const SDK_VERSION = "v0.3.42";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -14,8 +14,8 @@ export class AirweaveSDKClient {
|
|
|
14
14
|
"X-Organization-ID": _options === null || _options === void 0 ? void 0 : _options.organizationId,
|
|
15
15
|
"X-Fern-Language": "JavaScript",
|
|
16
16
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
17
|
-
"X-Fern-SDK-Version": "v0.3.
|
|
18
|
-
"User-Agent": "@airweave/sdk/v0.3.
|
|
17
|
+
"X-Fern-SDK-Version": "v0.3.42",
|
|
18
|
+
"User-Agent": "@airweave/sdk/v0.3.42",
|
|
19
19
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
20
20
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
21
21
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,6 +31,9 @@ export declare namespace Collections {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
|
|
36
|
+
*/
|
|
34
37
|
export declare class Collections {
|
|
35
38
|
protected readonly _options: Collections.Options;
|
|
36
39
|
constructor(_options?: Collections.Options);
|
|
@@ -15,6 +15,9 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as AirweaveSDK from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
/**
|
|
19
|
+
* API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
|
|
20
|
+
*/
|
|
18
21
|
export class Collections {
|
|
19
22
|
constructor(_options = {}) {
|
|
20
23
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace SourceConnections {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
|
|
36
|
+
*/
|
|
34
37
|
export declare class SourceConnections {
|
|
35
38
|
protected readonly _options: SourceConnections.Options;
|
|
36
39
|
constructor(_options?: SourceConnections.Options);
|
|
@@ -15,6 +15,9 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as AirweaveSDK from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
/**
|
|
19
|
+
* API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
|
|
20
|
+
*/
|
|
18
21
|
export class SourceConnections {
|
|
19
22
|
constructor(_options = {}) {
|
|
20
23
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace Sources {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for discovering available data source connectors and their configuration requirements
|
|
36
|
+
*/
|
|
34
37
|
export declare class Sources {
|
|
35
38
|
protected readonly _options: Sources.Options;
|
|
36
39
|
constructor(_options?: Sources.Options);
|
|
@@ -15,6 +15,9 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as AirweaveSDK from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
/**
|
|
19
|
+
* API endpoints for discovering available data source connectors and their configuration requirements
|
|
20
|
+
*/
|
|
18
21
|
export class Sources {
|
|
19
22
|
constructor(_options = {}) {
|
|
20
23
|
this._options = _options;
|
|
@@ -31,6 +31,9 @@ export declare namespace WhiteLabels {
|
|
|
31
31
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* API endpoints for managing custom OAuth2 integrations with your own branding and credentials
|
|
36
|
+
*/
|
|
34
37
|
export declare class WhiteLabels {
|
|
35
38
|
protected readonly _options: WhiteLabels.Options;
|
|
36
39
|
constructor(_options?: WhiteLabels.Options);
|
|
@@ -144,10 +147,10 @@ export declare class WhiteLabels {
|
|
|
144
147
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
145
148
|
*
|
|
146
149
|
* @example
|
|
147
|
-
* await client.whiteLabels.
|
|
150
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
148
151
|
*/
|
|
149
|
-
|
|
150
|
-
private
|
|
152
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
153
|
+
private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
|
|
151
154
|
/**
|
|
152
155
|
* List all source connections created through a specific white label integration.
|
|
153
156
|
*
|
|
@@ -175,16 +178,16 @@ export declare class WhiteLabels {
|
|
|
175
178
|
* tracking and branding purposes.
|
|
176
179
|
*
|
|
177
180
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
178
|
-
* @param {AirweaveSDK.
|
|
181
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
179
182
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
183
|
*
|
|
181
184
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
182
185
|
*
|
|
183
186
|
* @example
|
|
184
|
-
* await client.whiteLabels.
|
|
187
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
185
188
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
186
189
|
* })
|
|
187
190
|
*/
|
|
188
|
-
|
|
189
|
-
private
|
|
191
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
192
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
190
193
|
}
|
|
@@ -15,6 +15,9 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as AirweaveSDK from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
/**
|
|
19
|
+
* API endpoints for managing custom OAuth2 integrations with your own branding and credentials
|
|
20
|
+
*/
|
|
18
21
|
export class WhiteLabels {
|
|
19
22
|
constructor(_options = {}) {
|
|
20
23
|
this._options = _options;
|
|
@@ -370,12 +373,12 @@ export class WhiteLabels {
|
|
|
370
373
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
371
374
|
*
|
|
372
375
|
* @example
|
|
373
|
-
* await client.whiteLabels.
|
|
376
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
374
377
|
*/
|
|
375
|
-
|
|
376
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
378
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
379
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
|
|
377
380
|
}
|
|
378
|
-
|
|
381
|
+
__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
379
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
380
383
|
var _a, _b, _c;
|
|
381
384
|
const _response = yield core.fetcher({
|
|
@@ -498,20 +501,20 @@ export class WhiteLabels {
|
|
|
498
501
|
* tracking and branding purposes.
|
|
499
502
|
*
|
|
500
503
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
501
|
-
* @param {AirweaveSDK.
|
|
504
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
502
505
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
503
506
|
*
|
|
504
507
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
505
508
|
*
|
|
506
509
|
* @example
|
|
507
|
-
* await client.whiteLabels.
|
|
510
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
508
511
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
509
512
|
* })
|
|
510
513
|
*/
|
|
511
|
-
|
|
512
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
514
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
515
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
513
516
|
}
|
|
514
|
-
|
|
517
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
515
518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
516
519
|
var _a, _b, _c;
|
|
517
520
|
const _response = yield core.fetcher({
|
|
@@ -8,7 +8,7 @@ import * as AirweaveSDK from "../../../../index.mjs";
|
|
|
8
8
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost {
|
|
12
12
|
/** The OAuth2 authorization code received from the OAuth callback after customer authentication */
|
|
13
13
|
code: string;
|
|
14
14
|
/** Optional configuration for the source connection. If not provided, a source connection will be created automatically with default settings. The white label integration is automatically linked to the source connection. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type WhiteLabelCreate } from "./WhiteLabelCreate.mjs";
|
|
2
2
|
export { type WhiteLabelUpdate } from "./WhiteLabelUpdate.mjs";
|
|
3
|
-
export { type
|
|
3
|
+
export { type BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.3.
|
|
1
|
+
export declare const SDK_VERSION = "v0.3.42";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.3.
|
|
1
|
+
export const SDK_VERSION = "v0.3.42";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## sources
|
|
4
4
|
|
|
5
5
|
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSource</a>(shortName) -> AirweaveSDK.Source</code></summary>
|
|
6
6
|
<dl>
|
|
@@ -123,7 +123,7 @@ await client.sources.readSources();
|
|
|
123
123
|
</dl>
|
|
124
124
|
</details>
|
|
125
125
|
|
|
126
|
-
##
|
|
126
|
+
## collections
|
|
127
127
|
|
|
128
128
|
<details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">listCollections</a>({ ...params }) -> AirweaveSDK.Collection[]</code></summary>
|
|
129
129
|
<dl>
|
|
@@ -617,7 +617,7 @@ await client.collections.refreshAllSourceConnections("readable_id");
|
|
|
617
617
|
</dl>
|
|
618
618
|
</details>
|
|
619
619
|
|
|
620
|
-
##
|
|
620
|
+
## source-connections
|
|
621
621
|
|
|
622
622
|
<details><summary><code>client.sourceConnections.<a href="/src/api/resources/sourceConnections/client/Client.ts">listSourceConnections</a>({ ...params }) -> AirweaveSDK.SourceConnectionListItem[]</code></summary>
|
|
623
623
|
<dl>
|
|
@@ -1282,7 +1282,7 @@ await client.sourceConnections.cancelSourceConnectionJob("source_connection_id",
|
|
|
1282
1282
|
</dl>
|
|
1283
1283
|
</details>
|
|
1284
1284
|
|
|
1285
|
-
##
|
|
1285
|
+
## white-labels
|
|
1286
1286
|
|
|
1287
1287
|
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">listWhiteLabels</a>() -> AirweaveSDK.WhiteLabel[]</code></summary>
|
|
1288
1288
|
<dl>
|
|
@@ -1630,7 +1630,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
|
|
|
1630
1630
|
</dl>
|
|
1631
1631
|
</details>
|
|
1632
1632
|
|
|
1633
|
-
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">
|
|
1633
|
+
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions</a>(whiteLabelId) -> string</code></summary>
|
|
1634
1634
|
<dl>
|
|
1635
1635
|
<dd>
|
|
1636
1636
|
|
|
@@ -1663,7 +1663,7 @@ branding instead of Airweave.
|
|
|
1663
1663
|
<dd>
|
|
1664
1664
|
|
|
1665
1665
|
```typescript
|
|
1666
|
-
await client.whiteLabels.
|
|
1666
|
+
await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id");
|
|
1667
1667
|
```
|
|
1668
1668
|
|
|
1669
1669
|
</dd>
|
|
@@ -1764,7 +1764,7 @@ await client.whiteLabels.listWhiteLabelSourceConnections("white_label_id");
|
|
|
1764
1764
|
</dl>
|
|
1765
1765
|
</details>
|
|
1766
1766
|
|
|
1767
|
-
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">
|
|
1767
|
+
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">exchangeWhiteLabelOauth2Code</a>(whiteLabelId, { ...params }) -> AirweaveSDK.SourceConnection</code></summary>
|
|
1768
1768
|
<dl>
|
|
1769
1769
|
<dd>
|
|
1770
1770
|
|
|
@@ -1799,7 +1799,7 @@ tracking and branding purposes.
|
|
|
1799
1799
|
<dd>
|
|
1800
1800
|
|
|
1801
1801
|
```typescript
|
|
1802
|
-
await client.whiteLabels.
|
|
1802
|
+
await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
1803
1803
|
code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7",
|
|
1804
1804
|
});
|
|
1805
1805
|
```
|
|
@@ -1825,7 +1825,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOaut
|
|
|
1825
1825
|
<dl>
|
|
1826
1826
|
<dd>
|
|
1827
1827
|
|
|
1828
|
-
**request:** `AirweaveSDK.
|
|
1828
|
+
**request:** `AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost`
|
|
1829
1829
|
|
|
1830
1830
|
</dd>
|
|
1831
1831
|
</dl>
|
|
File without changes
|