@airweave/sdk 0.3.44 → 0.3.45
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 +7 -7
- package/dist/cjs/api/resources/whiteLabels/client/Client.js +9 -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/whiteLabels/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/whiteLabels/client/Client.mjs +9 -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 +5 -5
- /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.45",
|
|
54
|
+
"User-Agent": "@airweave/sdk/v0.3.45",
|
|
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) });
|
|
@@ -147,10 +147,10 @@ export declare class WhiteLabels {
|
|
|
147
147
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
|
-
* await client.whiteLabels.
|
|
150
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
|
|
151
151
|
*/
|
|
152
|
-
|
|
153
|
-
private
|
|
152
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
153
|
+
private __getWhiteLabelOauth2AuthUrl;
|
|
154
154
|
/**
|
|
155
155
|
* List all source connections created through a specific white label integration.
|
|
156
156
|
*
|
|
@@ -178,16 +178,16 @@ export declare class WhiteLabels {
|
|
|
178
178
|
* tracking and branding purposes.
|
|
179
179
|
*
|
|
180
180
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
181
|
-
* @param {AirweaveSDK.
|
|
181
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
182
182
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
183
|
*
|
|
184
184
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
185
185
|
*
|
|
186
186
|
* @example
|
|
187
|
-
* await client.whiteLabels.
|
|
187
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
188
188
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
189
189
|
* })
|
|
190
190
|
*/
|
|
191
|
-
|
|
192
|
-
private
|
|
191
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
192
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
193
193
|
}
|
|
@@ -409,12 +409,12 @@ class WhiteLabels {
|
|
|
409
409
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
410
410
|
*
|
|
411
411
|
* @example
|
|
412
|
-
* await client.whiteLabels.
|
|
412
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
|
|
413
413
|
*/
|
|
414
|
-
|
|
415
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
414
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
415
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions));
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
418
418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
419
419
|
var _a, _b, _c;
|
|
420
420
|
const _response = yield core.fetcher({
|
|
@@ -537,20 +537,20 @@ class WhiteLabels {
|
|
|
537
537
|
* tracking and branding purposes.
|
|
538
538
|
*
|
|
539
539
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
540
|
-
* @param {AirweaveSDK.
|
|
540
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
541
541
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
542
542
|
*
|
|
543
543
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
544
544
|
*
|
|
545
545
|
* @example
|
|
546
|
-
* await client.whiteLabels.
|
|
546
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
547
547
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
548
548
|
* })
|
|
549
549
|
*/
|
|
550
|
-
|
|
551
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
550
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
551
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
552
552
|
}
|
|
553
|
-
|
|
553
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
554
554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
555
555
|
var _a, _b, _c;
|
|
556
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.45";
|
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.45",
|
|
18
|
+
"User-Agent": "@airweave/sdk/v0.3.45",
|
|
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) });
|
|
@@ -147,10 +147,10 @@ export declare class WhiteLabels {
|
|
|
147
147
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
|
-
* await client.whiteLabels.
|
|
150
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
|
|
151
151
|
*/
|
|
152
|
-
|
|
153
|
-
private
|
|
152
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
153
|
+
private __getWhiteLabelOauth2AuthUrl;
|
|
154
154
|
/**
|
|
155
155
|
* List all source connections created through a specific white label integration.
|
|
156
156
|
*
|
|
@@ -178,16 +178,16 @@ export declare class WhiteLabels {
|
|
|
178
178
|
* tracking and branding purposes.
|
|
179
179
|
*
|
|
180
180
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
181
|
-
* @param {AirweaveSDK.
|
|
181
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
182
182
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
183
|
*
|
|
184
184
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
185
185
|
*
|
|
186
186
|
* @example
|
|
187
|
-
* await client.whiteLabels.
|
|
187
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
188
188
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
189
189
|
* })
|
|
190
190
|
*/
|
|
191
|
-
|
|
192
|
-
private
|
|
191
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
192
|
+
private __exchangeWhiteLabelOauth2Code;
|
|
193
193
|
}
|
|
@@ -373,12 +373,12 @@ export class WhiteLabels {
|
|
|
373
373
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
374
374
|
*
|
|
375
375
|
* @example
|
|
376
|
-
* await client.whiteLabels.
|
|
376
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
|
|
377
377
|
*/
|
|
378
|
-
|
|
379
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
378
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
379
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions));
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
382
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
383
|
var _a, _b, _c;
|
|
384
384
|
const _response = yield core.fetcher({
|
|
@@ -501,20 +501,20 @@ export class WhiteLabels {
|
|
|
501
501
|
* tracking and branding purposes.
|
|
502
502
|
*
|
|
503
503
|
* @param {string} whiteLabelId - The unique identifier of the white label integration
|
|
504
|
-
* @param {AirweaveSDK.
|
|
504
|
+
* @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
|
|
505
505
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
506
506
|
*
|
|
507
507
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
508
508
|
*
|
|
509
509
|
* @example
|
|
510
|
-
* await client.whiteLabels.
|
|
510
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
511
511
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
512
512
|
* })
|
|
513
513
|
*/
|
|
514
|
-
|
|
515
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
514
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
515
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
|
|
516
516
|
}
|
|
517
|
-
|
|
517
|
+
__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
518
518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
519
519
|
var _a, _b, _c;
|
|
520
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.45";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.3.
|
|
1
|
+
export const SDK_VERSION = "v0.3.45";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1720,7 +1720,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
|
|
|
1720
1720
|
</dl>
|
|
1721
1721
|
</details>
|
|
1722
1722
|
|
|
1723
|
-
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">
|
|
1723
|
+
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrl</a>(whiteLabelId) -> string</code></summary>
|
|
1724
1724
|
<dl>
|
|
1725
1725
|
<dd>
|
|
1726
1726
|
|
|
@@ -1753,7 +1753,7 @@ branding instead of Airweave.
|
|
|
1753
1753
|
<dd>
|
|
1754
1754
|
|
|
1755
1755
|
```typescript
|
|
1756
|
-
await client.whiteLabels.
|
|
1756
|
+
await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
|
|
1757
1757
|
```
|
|
1758
1758
|
|
|
1759
1759
|
</dd>
|
|
@@ -1854,7 +1854,7 @@ await client.whiteLabels.listWhiteLabelSourceConnections("white_label_id");
|
|
|
1854
1854
|
</dl>
|
|
1855
1855
|
</details>
|
|
1856
1856
|
|
|
1857
|
-
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">
|
|
1857
|
+
<details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">exchangeWhiteLabelOauth2Code</a>(whiteLabelId, { ...params }) -> AirweaveSDK.SourceConnection</code></summary>
|
|
1858
1858
|
<dl>
|
|
1859
1859
|
<dd>
|
|
1860
1860
|
|
|
@@ -1889,7 +1889,7 @@ tracking and branding purposes.
|
|
|
1889
1889
|
<dd>
|
|
1890
1890
|
|
|
1891
1891
|
```typescript
|
|
1892
|
-
await client.whiteLabels.
|
|
1892
|
+
await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
1893
1893
|
code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7",
|
|
1894
1894
|
});
|
|
1895
1895
|
```
|
|
@@ -1915,7 +1915,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOaut
|
|
|
1915
1915
|
<dl>
|
|
1916
1916
|
<dd>
|
|
1917
1917
|
|
|
1918
|
-
**request:** `AirweaveSDK.
|
|
1918
|
+
**request:** `AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost`
|
|
1919
1919
|
|
|
1920
1920
|
</dd>
|
|
1921
1921
|
</dl>
|
|
File without changes
|