@airweave/sdk 0.1.50 → 0.1.51
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 +0 -18
- package/dist/cjs/api/resources/collections/client/Client.js +0 -18
- 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/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.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 +0 -18
- package/dist/esm/api/resources/collections/client/Client.mjs +0 -18
- 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/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.mts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.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 -29
- /package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js} +0 -0
- /package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
|
|
|
48
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
51
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
52
|
-
"User-Agent": "@airweave/sdk/v0.1.
|
|
51
|
+
"X-Fern-SDK-Version": "v0.1.51",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.1.51",
|
|
53
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
54
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
55
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -144,24 +144,6 @@ export declare class Collections {
|
|
|
144
144
|
* - Pagination with offset and limit
|
|
145
145
|
* - Score threshold filtering
|
|
146
146
|
* - Query expansion strategies
|
|
147
|
-
* - Result summarization
|
|
148
|
-
* - Control over included metadata and vectors
|
|
149
|
-
*
|
|
150
|
-
* Example request body:
|
|
151
|
-
* ```json
|
|
152
|
-
* {
|
|
153
|
-
* "query": "customer payment issues",
|
|
154
|
-
* "filter": {
|
|
155
|
-
* "must": [
|
|
156
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
157
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
158
|
-
* ]
|
|
159
|
-
* },
|
|
160
|
-
* "limit": 50,
|
|
161
|
-
* "score_threshold": 0.7,
|
|
162
|
-
* "response_type": "completion"
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
147
|
*
|
|
166
148
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
167
149
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -476,24 +476,6 @@ class Collections {
|
|
|
476
476
|
* - Pagination with offset and limit
|
|
477
477
|
* - Score threshold filtering
|
|
478
478
|
* - Query expansion strategies
|
|
479
|
-
* - Result summarization
|
|
480
|
-
* - Control over included metadata and vectors
|
|
481
|
-
*
|
|
482
|
-
* Example request body:
|
|
483
|
-
* ```json
|
|
484
|
-
* {
|
|
485
|
-
* "query": "customer payment issues",
|
|
486
|
-
* "filter": {
|
|
487
|
-
* "must": [
|
|
488
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
489
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
490
|
-
* ]
|
|
491
|
-
* },
|
|
492
|
-
* "limit": 50,
|
|
493
|
-
* "score_threshold": 0.7,
|
|
494
|
-
* "response_type": "completion"
|
|
495
|
-
* }
|
|
496
|
-
* ```
|
|
497
479
|
*
|
|
498
480
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
499
481
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -140,10 +140,10 @@ export declare class WhiteLabels {
|
|
|
140
140
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
|
-
* await client.whiteLabels.
|
|
143
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
144
144
|
*/
|
|
145
|
-
|
|
146
|
-
private
|
|
145
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
146
|
+
private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
|
|
147
147
|
/**
|
|
148
148
|
* List all source connections created through a specific white label integration.
|
|
149
149
|
*
|
|
@@ -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.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} 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.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
|
|
181
181
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
182
182
|
* })
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
private
|
|
184
|
+
exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
185
|
+
private __exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions;
|
|
186
186
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
187
187
|
"x-api-key": string;
|
|
188
188
|
}>;
|
|
@@ -394,12 +394,12 @@ class WhiteLabels {
|
|
|
394
394
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
395
395
|
*
|
|
396
396
|
* @example
|
|
397
|
-
* await client.whiteLabels.
|
|
397
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
398
398
|
*/
|
|
399
|
-
|
|
400
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
399
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
400
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
|
|
401
401
|
}
|
|
402
|
-
|
|
402
|
+
__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
403
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
404
|
var _a, _b, _c;
|
|
405
405
|
const _response = yield core.fetcher({
|
|
@@ -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.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} 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.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
|
|
526
526
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
527
527
|
* })
|
|
528
528
|
*/
|
|
529
|
-
|
|
530
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
529
|
+
exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions) {
|
|
530
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions));
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
__exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(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 BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions {
|
|
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 BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js";
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.1.
|
|
1
|
+
export declare const SDK_VERSION = "v0.1.51";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
15
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.1.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.1.51",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.1.51",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -144,24 +144,6 @@ export declare class Collections {
|
|
|
144
144
|
* - Pagination with offset and limit
|
|
145
145
|
* - Score threshold filtering
|
|
146
146
|
* - Query expansion strategies
|
|
147
|
-
* - Result summarization
|
|
148
|
-
* - Control over included metadata and vectors
|
|
149
|
-
*
|
|
150
|
-
* Example request body:
|
|
151
|
-
* ```json
|
|
152
|
-
* {
|
|
153
|
-
* "query": "customer payment issues",
|
|
154
|
-
* "filter": {
|
|
155
|
-
* "must": [
|
|
156
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
157
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
158
|
-
* ]
|
|
159
|
-
* },
|
|
160
|
-
* "limit": 50,
|
|
161
|
-
* "score_threshold": 0.7,
|
|
162
|
-
* "response_type": "completion"
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
147
|
*
|
|
166
148
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
167
149
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -440,24 +440,6 @@ export class Collections {
|
|
|
440
440
|
* - Pagination with offset and limit
|
|
441
441
|
* - Score threshold filtering
|
|
442
442
|
* - Query expansion strategies
|
|
443
|
-
* - Result summarization
|
|
444
|
-
* - Control over included metadata and vectors
|
|
445
|
-
*
|
|
446
|
-
* Example request body:
|
|
447
|
-
* ```json
|
|
448
|
-
* {
|
|
449
|
-
* "query": "customer payment issues",
|
|
450
|
-
* "filter": {
|
|
451
|
-
* "must": [
|
|
452
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
453
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
454
|
-
* ]
|
|
455
|
-
* },
|
|
456
|
-
* "limit": 50,
|
|
457
|
-
* "score_threshold": 0.7,
|
|
458
|
-
* "response_type": "completion"
|
|
459
|
-
* }
|
|
460
|
-
* ```
|
|
461
443
|
*
|
|
462
444
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
463
445
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -140,10 +140,10 @@ export declare class WhiteLabels {
|
|
|
140
140
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
|
-
* await client.whiteLabels.
|
|
143
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
144
144
|
*/
|
|
145
|
-
|
|
146
|
-
private
|
|
145
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
|
|
146
|
+
private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
|
|
147
147
|
/**
|
|
148
148
|
* List all source connections created through a specific white label integration.
|
|
149
149
|
*
|
|
@@ -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.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} 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.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
|
|
181
181
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
182
182
|
* })
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
private
|
|
184
|
+
exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
185
|
+
private __exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions;
|
|
186
186
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
187
187
|
"x-api-key": string;
|
|
188
188
|
}>;
|
|
@@ -358,12 +358,12 @@ export class WhiteLabels {
|
|
|
358
358
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
359
359
|
*
|
|
360
360
|
* @example
|
|
361
|
-
* await client.whiteLabels.
|
|
361
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
|
|
362
362
|
*/
|
|
363
|
-
|
|
364
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
363
|
+
getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
364
|
+
return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
|
|
367
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
368
368
|
var _a, _b, _c;
|
|
369
369
|
const _response = yield core.fetcher({
|
|
@@ -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.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} 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.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
|
|
490
490
|
* code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
|
|
491
491
|
* })
|
|
492
492
|
*/
|
|
493
|
-
|
|
494
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
493
|
+
exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions));
|
|
495
495
|
}
|
|
496
|
-
|
|
496
|
+
__exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(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 BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions {
|
|
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 BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.1.
|
|
1
|
+
export declare const SDK_VERSION = "v0.1.51";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.1.
|
|
1
|
+
export const SDK_VERSION = "v0.1.51";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -572,30 +572,10 @@ This endpoint supports:
|
|
|
572
572
|
- Pagination with offset and limit
|
|
573
573
|
- Score threshold filtering
|
|
574
574
|
- Query expansion strategies
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
```json
|
|
581
|
-
{
|
|
582
|
-
"query": "customer payment issues",
|
|
583
|
-
"filter": {
|
|
584
|
-
"must": [
|
|
585
|
-
{ "key": "source", "match": { "value": "stripe" } },
|
|
586
|
-
{ "key": "created_at", "range": { "gte": "2024-01-01T00:00:00Z" } }
|
|
587
|
-
]
|
|
588
|
-
},
|
|
589
|
-
"limit": 50,
|
|
590
|
-
"score_threshold": 0.7,
|
|
591
|
-
"response_type": "completion"
|
|
592
|
-
}
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
</dd>
|
|
596
|
-
</dl>
|
|
597
|
-
</dd>
|
|
598
|
-
</dl>
|
|
575
|
+
</dd>
|
|
576
|
+
</dl>
|
|
577
|
+
</dd>
|
|
578
|
+
</dl>
|
|
599
579
|
|
|
600
580
|
#### 🔌 Usage
|
|
601
581
|
|
|
@@ -1740,7 +1720,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
|
|
|
1740
1720
|
</dl>
|
|
1741
1721
|
</details>
|
|
1742
1722
|
|
|
1743
|
-
<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">getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions</a>(whiteLabelId) -> string</code></summary>
|
|
1744
1724
|
<dl>
|
|
1745
1725
|
<dd>
|
|
1746
1726
|
|
|
@@ -1773,7 +1753,7 @@ branding instead of Airweave.
|
|
|
1773
1753
|
<dd>
|
|
1774
1754
|
|
|
1775
1755
|
```typescript
|
|
1776
|
-
await client.whiteLabels.
|
|
1756
|
+
await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id");
|
|
1777
1757
|
```
|
|
1778
1758
|
|
|
1779
1759
|
</dd>
|
|
@@ -1874,7 +1854,7 @@ await client.whiteLabels.listWhiteLabelSourceConnections("white_label_id");
|
|
|
1874
1854
|
</dl>
|
|
1875
1855
|
</details>
|
|
1876
1856
|
|
|
1877
|
-
<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">exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions</a>(whiteLabelId, { ...params }) -> AirweaveSDK.SourceConnection</code></summary>
|
|
1878
1858
|
<dl>
|
|
1879
1859
|
<dd>
|
|
1880
1860
|
|
|
@@ -1909,7 +1889,7 @@ tracking and branding purposes.
|
|
|
1909
1889
|
<dd>
|
|
1910
1890
|
|
|
1911
1891
|
```typescript
|
|
1912
|
-
await client.whiteLabels.
|
|
1892
|
+
await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
|
|
1913
1893
|
code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7",
|
|
1914
1894
|
});
|
|
1915
1895
|
```
|
|
@@ -1935,7 +1915,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
|
1935
1915
|
<dl>
|
|
1936
1916
|
<dd>
|
|
1937
1917
|
|
|
1938
|
-
**request:** `AirweaveSDK.
|
|
1918
|
+
**request:** `AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions`
|
|
1939
1919
|
|
|
1940
1920
|
</dd>
|
|
1941
1921
|
</dl>
|
|
File without changes
|