@airweave/sdk 0.5.3 → 0.5.4
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/whiteLabels/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/whiteLabels/client/Client.js +5 -5
- 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/whiteLabels/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/whiteLabels/client/Client.mjs +5 -5
- 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 +3 -3
- /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
|
@@ -49,8 +49,8 @@ class AirweaveSDKClient {
|
|
|
49
49
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
52
|
-
"X-Fern-SDK-Version": "v0.5.
|
|
53
|
-
"User-Agent": "@airweave/sdk/v0.5.
|
|
52
|
+
"X-Fern-SDK-Version": "v0.5.4",
|
|
53
|
+
"User-Agent": "@airweave/sdk/v0.5.4",
|
|
54
54
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
55
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
56
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -171,18 +171,18 @@ export declare class WhiteLabels {
|
|
|
171
171
|
* tracking and branding purposes.
|
|
172
172
|
*
|
|
173
173
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
174
|
-
* @param {AirweaveSDK.
|
|
174
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
175
175
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
176
|
*
|
|
177
177
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
178
178
|
*
|
|
179
179
|
* @example
|
|
180
|
-
* await client.whiteLabels.
|
|
180
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
181
181
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
182
182
|
* })
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
private
|
|
184
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
185
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
186
186
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
187
187
|
"x-api-key": string;
|
|
188
188
|
}>;
|
|
@@ -516,20 +516,20 @@ class WhiteLabels {
|
|
|
516
516
|
* tracking and branding purposes.
|
|
517
517
|
*
|
|
518
518
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
519
|
-
* @param {AirweaveSDK.
|
|
519
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
520
520
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
521
521
|
*
|
|
522
522
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
523
523
|
*
|
|
524
524
|
* @example
|
|
525
|
-
* await client.whiteLabels.
|
|
525
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
526
526
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
527
527
|
* })
|
|
528
528
|
*/
|
|
529
|
-
|
|
530
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
529
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
530
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
533
533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
534
534
|
var _a, _b, _c;
|
|
535
535
|
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.5.
|
|
1
|
+
export declare const SDK_VERSION = "v0.5.4";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -13,8 +13,8 @@ export class AirweaveSDKClient {
|
|
|
13
13
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
14
14
|
"X-Fern-Language": "JavaScript",
|
|
15
15
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
16
|
-
"X-Fern-SDK-Version": "v0.5.
|
|
17
|
-
"User-Agent": "@airweave/sdk/v0.5.
|
|
16
|
+
"X-Fern-SDK-Version": "v0.5.4",
|
|
17
|
+
"User-Agent": "@airweave/sdk/v0.5.4",
|
|
18
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
19
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
20
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -171,18 +171,18 @@ export declare class WhiteLabels {
|
|
|
171
171
|
* tracking and branding purposes.
|
|
172
172
|
*
|
|
173
173
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
174
|
-
* @param {AirweaveSDK.
|
|
174
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
175
175
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
176
|
*
|
|
177
177
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
178
178
|
*
|
|
179
179
|
* @example
|
|
180
|
-
* await client.whiteLabels.
|
|
180
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
181
181
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
182
182
|
* })
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
private
|
|
184
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
185
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
186
186
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
187
187
|
"x-api-key": string;
|
|
188
188
|
}>;
|
|
@@ -480,20 +480,20 @@ export class WhiteLabels {
|
|
|
480
480
|
* tracking and branding purposes.
|
|
481
481
|
*
|
|
482
482
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
483
|
-
* @param {AirweaveSDK.
|
|
483
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
484
484
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
485
485
|
*
|
|
486
486
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
487
487
|
*
|
|
488
488
|
* @example
|
|
489
|
-
* await client.whiteLabels.
|
|
489
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
490
490
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
491
491
|
* })
|
|
492
492
|
*/
|
|
493
|
-
|
|
494
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
493
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
495
495
|
}
|
|
496
|
-
|
|
496
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
497
497
|
return __awaiter(this, void 0, void 0, function* () {
|
|
498
498
|
var _a, _b, _c;
|
|
499
499
|
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.5.
|
|
1
|
+
export declare const SDK_VERSION = "v0.5.4";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.5.
|
|
1
|
+
export const SDK_VERSION = "v0.5.4";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1999,7 +1999,7 @@ await client.whiteLabels.listWhiteLabelSourceConnections("white_label_id");
|
|
|
1999
1999
|
</dl>
|
|
2000
2000
|
</details>
|
|
2001
2001
|
|
|
2002
|
-
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">
|
|
2002
|
+
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">exchangeWhiteLabelOauth2Code</a>(whiteLabelId, { ...params }) -> AirweaveSDK.SourceConnection</code></summary>
|
|
2003
2003
|
<dl>
|
|
2004
2004
|
<dd>
|
|
2005
2005
|
|
|
@@ -2034,7 +2034,7 @@ tracking and branding purposes.
|
|
|
2034
2034
|
<dd>
|
|
2035
2035
|
|
|
2036
2036
|
```typescript
|
|
2037
|
-
await client.whiteLabels.
|
|
2037
|
+
await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
2038
2038
|
code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7",
|
|
2039
2039
|
});
|
|
2040
2040
|
```
|
|
@@ -2060,7 +2060,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOaut
|
|
|
2060
2060
|
<dl>
|
|
2061
2061
|
<dd>
|
|
2062
2062
|
|
|
2063
|
-
**request:** `AirweaveSDK.
|
|
2063
|
+
**request:** `AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost`
|
|
2064
2064
|
|
|
2065
2065
|
</dd>
|
|
2066
2066
|
</dl>
|
|
File without changes
|