@airweave/sdk 0.4.17 → 0.4.18
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/README.md +8 -8
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/collections/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/collections/client/Client.js +30 -30
- package/dist/cjs/api/resources/collections/client/requests/{ListCollectionsCollectionsGetRequest.d.ts → ListCollectionsGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/collections/client/requests/{SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts → SearchCollectionsReadableIdSearchGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +39 -39
- package/dist/{esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.mts → cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.d.ts} +1 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/{GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts → GetSourceConnectionsSourceConnectionIdGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/{ListSourceConnectionsSourceConnectionsGetRequest.d.ts → ListSourceConnectionsGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/sources/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/sources/client/Client.js +8 -8
- 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 +23 -23
- package/dist/esm/api/resources/collections/client/Client.mjs +30 -30
- package/dist/esm/api/resources/collections/client/requests/{ListCollectionsCollectionsGetRequest.d.mts → ListCollectionsGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/collections/client/requests/{SearchCollectionCollectionsReadableIdSearchGetRequest.d.mts → SearchCollectionsReadableIdSearchGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +39 -39
- package/dist/{cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts → esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.d.mts} +1 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/{GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.mts → GetSourceConnectionsSourceConnectionIdGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/{ListSourceConnectionsSourceConnectionsGetRequest.d.mts → ListSourceConnectionsGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/sources/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/sources/client/Client.mjs +8 -8
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +41 -41
- /package/dist/cjs/api/resources/collections/client/requests/{ListCollectionsCollectionsGetRequest.js → ListCollectionsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/collections/client/requests/{SearchCollectionCollectionsReadableIdSearchGetRequest.js → SearchCollectionsReadableIdSearchGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/sourceConnections/client/requests/{BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js → BodyRunSourceConnectionsSourceConnectionIdRunPost.js} +0 -0
- /package/dist/cjs/api/resources/sourceConnections/client/requests/{GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js → GetSourceConnectionsSourceConnectionIdGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/sourceConnections/client/requests/{ListSourceConnectionsSourceConnectionsGetRequest.js → ListSourceConnectionsGetRequest.js} +0 -0
- /package/dist/esm/api/resources/collections/client/requests/{ListCollectionsCollectionsGetRequest.mjs → ListCollectionsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/collections/client/requests/{SearchCollectionCollectionsReadableIdSearchGetRequest.mjs → SearchCollectionsReadableIdSearchGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/sourceConnections/client/requests/{BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.mjs → BodyRunSourceConnectionsSourceConnectionIdRunPost.mjs} +0 -0
- /package/dist/esm/api/resources/sourceConnections/client/requests/{GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.mjs → GetSourceConnectionsSourceConnectionIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/sourceConnections/client/requests/{ListSourceConnectionsSourceConnectionsGetRequest.mjs → ListSourceConnectionsGetRequest.mjs} +0 -0
|
@@ -66,18 +66,18 @@ class SourceConnections {
|
|
|
66
66
|
* collection. This is useful for getting an overview of all your data sources
|
|
67
67
|
* or managing connections within a particular collection.
|
|
68
68
|
*
|
|
69
|
-
* @param {AirweaveSDK.
|
|
69
|
+
* @param {AirweaveSDK.ListSourceConnectionsGetRequest} request
|
|
70
70
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.sourceConnections.
|
|
75
|
+
* await client.sourceConnections.list()
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
77
|
+
list(request = {}, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
__list() {
|
|
81
81
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
82
82
|
var _a, _b, _c;
|
|
83
83
|
const { collection, skip, limit } = request;
|
|
@@ -157,15 +157,15 @@ class SourceConnections {
|
|
|
157
157
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
158
158
|
*
|
|
159
159
|
* @example
|
|
160
|
-
* await client.sourceConnections.
|
|
160
|
+
* await client.sourceConnections.create({
|
|
161
161
|
* name: "Production Stripe Account",
|
|
162
162
|
* short_name: "stripe"
|
|
163
163
|
* })
|
|
164
164
|
*/
|
|
165
|
-
|
|
166
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
165
|
+
create(request, requestOptions) {
|
|
166
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
__create(request, requestOptions) {
|
|
169
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
170
|
var _a, _b, _c;
|
|
171
171
|
const _response = yield core.fetcher({
|
|
@@ -215,18 +215,18 @@ class SourceConnections {
|
|
|
215
215
|
* Retrieve a specific source connection by its ID.
|
|
216
216
|
*
|
|
217
217
|
* @param {string} sourceConnectionId - The unique identifier of the source connection
|
|
218
|
-
* @param {AirweaveSDK.
|
|
218
|
+
* @param {AirweaveSDK.GetSourceConnectionsSourceConnectionIdGetRequest} request
|
|
219
219
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
220
|
*
|
|
221
221
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
222
222
|
*
|
|
223
223
|
* @example
|
|
224
|
-
* await client.sourceConnections.
|
|
224
|
+
* await client.sourceConnections.get("source_connection_id")
|
|
225
225
|
*/
|
|
226
|
-
|
|
227
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
226
|
+
get(sourceConnectionId, request = {}, requestOptions) {
|
|
227
|
+
return core.HttpResponsePromise.fromPromise(this.__get(sourceConnectionId, request, requestOptions));
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
__get(sourceConnectionId_1) {
|
|
230
230
|
return __awaiter(this, arguments, void 0, function* (sourceConnectionId, request = {}, requestOptions) {
|
|
231
231
|
var _a, _b, _c;
|
|
232
232
|
const { show_auth_fields: showAuthFields } = request;
|
|
@@ -288,12 +288,12 @@ class SourceConnections {
|
|
|
288
288
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
|
-
* await client.sourceConnections.
|
|
291
|
+
* await client.sourceConnections.update("source_connection_id")
|
|
292
292
|
*/
|
|
293
|
-
|
|
294
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
293
|
+
update(sourceConnectionId, request = {}, requestOptions) {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__update(sourceConnectionId, request, requestOptions));
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
__update(sourceConnectionId_1) {
|
|
297
297
|
return __awaiter(this, arguments, void 0, function* (sourceConnectionId, request = {}, requestOptions) {
|
|
298
298
|
var _a, _b, _c;
|
|
299
299
|
const _response = yield core.fetcher({
|
|
@@ -352,12 +352,12 @@ class SourceConnections {
|
|
|
352
352
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
353
353
|
*
|
|
354
354
|
* @example
|
|
355
|
-
* await client.sourceConnections.
|
|
355
|
+
* await client.sourceConnections.delete("source_connection_id")
|
|
356
356
|
*/
|
|
357
|
-
|
|
358
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
357
|
+
delete(sourceConnectionId, requestOptions) {
|
|
358
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(sourceConnectionId, requestOptions));
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
__delete(sourceConnectionId, requestOptions) {
|
|
361
361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
362
362
|
var _a, _b, _c;
|
|
363
363
|
const _response = yield core.fetcher({
|
|
@@ -408,18 +408,18 @@ class SourceConnections {
|
|
|
408
408
|
* The job runs asynchronously and endpoint returns immediately with tracking information.
|
|
409
409
|
*
|
|
410
410
|
* @param {string} sourceConnectionId - The unique identifier of the source connection to sync
|
|
411
|
-
* @param {AirweaveSDK.
|
|
411
|
+
* @param {AirweaveSDK.BodyRunSourceConnectionsSourceConnectionIdRunPost} request
|
|
412
412
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
413
413
|
*
|
|
414
414
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
415
415
|
*
|
|
416
416
|
* @example
|
|
417
|
-
* await client.sourceConnections.
|
|
417
|
+
* await client.sourceConnections.run("source_connection_id")
|
|
418
418
|
*/
|
|
419
|
-
|
|
420
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
419
|
+
run(sourceConnectionId, request = {}, requestOptions) {
|
|
420
|
+
return core.HttpResponsePromise.fromPromise(this.__run(sourceConnectionId, request, requestOptions));
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
__run(sourceConnectionId_1) {
|
|
423
423
|
return __awaiter(this, arguments, void 0, function* (sourceConnectionId, request = {}, requestOptions) {
|
|
424
424
|
var _a, _b, _c;
|
|
425
425
|
const _response = yield core.fetcher({
|
|
@@ -477,12 +477,12 @@ class SourceConnections {
|
|
|
477
477
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
478
478
|
*
|
|
479
479
|
* @example
|
|
480
|
-
* await client.sourceConnections.
|
|
480
|
+
* await client.sourceConnections.listJobs("source_connection_id")
|
|
481
481
|
*/
|
|
482
|
-
|
|
483
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
482
|
+
listJobs(sourceConnectionId, requestOptions) {
|
|
483
|
+
return core.HttpResponsePromise.fromPromise(this.__listJobs(sourceConnectionId, requestOptions));
|
|
484
484
|
}
|
|
485
|
-
|
|
485
|
+
__listJobs(sourceConnectionId, requestOptions) {
|
|
486
486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
487
487
|
var _a, _b, _c;
|
|
488
488
|
const _response = yield core.fetcher({
|
|
@@ -535,12 +535,12 @@ class SourceConnections {
|
|
|
535
535
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
536
536
|
*
|
|
537
537
|
* @example
|
|
538
|
-
* await client.sourceConnections.
|
|
538
|
+
* await client.sourceConnections.getJob("source_connection_id", "job_id")
|
|
539
539
|
*/
|
|
540
|
-
|
|
541
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
540
|
+
getJob(sourceConnectionId, jobId, requestOptions) {
|
|
541
|
+
return core.HttpResponsePromise.fromPromise(this.__getJob(sourceConnectionId, jobId, requestOptions));
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
__getJob(sourceConnectionId, jobId, requestOptions) {
|
|
544
544
|
return __awaiter(this, void 0, void 0, function* () {
|
|
545
545
|
var _a, _b, _c;
|
|
546
546
|
const _response = yield core.fetcher({
|
|
@@ -597,12 +597,12 @@ class SourceConnections {
|
|
|
597
597
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
598
598
|
*
|
|
599
599
|
* @example
|
|
600
|
-
* await client.sourceConnections.
|
|
600
|
+
* await client.sourceConnections.cancelJob("source_connection_id", "job_id")
|
|
601
601
|
*/
|
|
602
|
-
|
|
603
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
602
|
+
cancelJob(sourceConnectionId, jobId, requestOptions) {
|
|
603
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelJob(sourceConnectionId, jobId, requestOptions));
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
__cancelJob(sourceConnectionId, jobId, requestOptions) {
|
|
606
606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
607
|
var _a, _b, _c;
|
|
608
608
|
const _response = yield core.fetcher({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface BodyRunSourceConnectionsSourceConnectionIdRunPost {
|
|
9
9
|
/** This parameter gives you the ability to start a sync job with an access token for an OAuth2.0 source directly instead of using the credentials that Airweave has stored for you. Learn more about direct token injection [here](https://docs.airweave.ai/direct-token-injection). */
|
|
10
10
|
access_token?: string;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ListSourceConnectionsGetRequest } from "./ListSourceConnectionsGetRequest.js";
|
|
2
2
|
export { type SourceConnectionCreate } from "./SourceConnectionCreate.js";
|
|
3
|
-
export { type
|
|
3
|
+
export { type GetSourceConnectionsSourceConnectionIdGetRequest } from "./GetSourceConnectionsSourceConnectionIdGetRequest.js";
|
|
4
4
|
export { type SourceConnectionUpdate } from "./SourceConnectionUpdate.js";
|
|
5
|
-
export { type
|
|
5
|
+
export { type BodyRunSourceConnectionsSourceConnectionIdRunPost } from "./BodyRunSourceConnectionsSourceConnectionIdRunPost.js";
|
|
@@ -39,10 +39,10 @@ export declare class Sources {
|
|
|
39
39
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.sources.
|
|
42
|
+
* await client.sources.read("short_name")
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
44
|
+
read(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
|
|
45
|
+
private __read;
|
|
46
46
|
/**
|
|
47
47
|
* List all available data source connectors.
|
|
48
48
|
*
|
|
@@ -54,10 +54,10 @@ export declare class Sources {
|
|
|
54
54
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.sources.
|
|
57
|
+
* await client.sources.list()
|
|
58
58
|
*/
|
|
59
|
-
|
|
60
|
-
private
|
|
59
|
+
list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
|
|
60
|
+
private __list;
|
|
61
61
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
62
62
|
"x-api-key": string;
|
|
63
63
|
}>;
|
|
@@ -67,12 +67,12 @@ class Sources {
|
|
|
67
67
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.sources.
|
|
70
|
+
* await client.sources.read("short_name")
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
72
|
+
read(shortName, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
__read(shortName, requestOptions) {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
var _a, _b, _c;
|
|
78
78
|
const _response = yield core.fetcher({
|
|
@@ -126,12 +126,12 @@ class Sources {
|
|
|
126
126
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
|
-
* await client.sources.
|
|
129
|
+
* await client.sources.list()
|
|
130
130
|
*/
|
|
131
|
-
|
|
132
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
131
|
+
list(requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
__list(requestOptions) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
var _a, _b, _c;
|
|
137
137
|
const _response = yield core.fetcher({
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.4.
|
|
1
|
+
export declare const SDK_VERSION = "v0.4.18";
|
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.4.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.4.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.4.18",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.4.18",
|
|
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) });
|
|
@@ -33,16 +33,16 @@ export declare class Collections {
|
|
|
33
33
|
/**
|
|
34
34
|
* List all collections that belong to your organization.
|
|
35
35
|
*
|
|
36
|
-
* @param {AirweaveSDK.
|
|
36
|
+
* @param {AirweaveSDK.ListCollectionsGetRequest} request
|
|
37
37
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.collections.
|
|
42
|
+
* await client.collections.list()
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
44
|
+
list(request?: AirweaveSDK.ListCollectionsGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection[]>;
|
|
45
|
+
private __list;
|
|
46
46
|
/**
|
|
47
47
|
* Create a new collection.
|
|
48
48
|
*
|
|
@@ -55,13 +55,13 @@ export declare class Collections {
|
|
|
55
55
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.collections.
|
|
58
|
+
* await client.collections.create({
|
|
59
59
|
* name: "Finance Data",
|
|
60
60
|
* readable_id: "finance-data-reports"
|
|
61
61
|
* })
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
private
|
|
63
|
+
create(request: AirweaveSDK.CollectionCreate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
64
|
+
private __create;
|
|
65
65
|
/**
|
|
66
66
|
* Retrieve a specific collection by its readable ID.
|
|
67
67
|
*
|
|
@@ -71,10 +71,10 @@ export declare class Collections {
|
|
|
71
71
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
|
-
* await client.collections.
|
|
74
|
+
* await client.collections.get("readable_id")
|
|
75
75
|
*/
|
|
76
|
-
|
|
77
|
-
private
|
|
76
|
+
get(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
77
|
+
private __get;
|
|
78
78
|
/**
|
|
79
79
|
* Update a collection's properties.
|
|
80
80
|
*
|
|
@@ -89,12 +89,12 @@ export declare class Collections {
|
|
|
89
89
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.collections.
|
|
92
|
+
* await client.collections.update("readable_id", {
|
|
93
93
|
* name: "Updated Finance Data"
|
|
94
94
|
* })
|
|
95
95
|
*/
|
|
96
|
-
|
|
97
|
-
private
|
|
96
|
+
update(readableId: string, request?: AirweaveSDK.CollectionUpdate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
97
|
+
private __update;
|
|
98
98
|
/**
|
|
99
99
|
* Delete a collection and all associated data.
|
|
100
100
|
*
|
|
@@ -108,10 +108,10 @@ export declare class Collections {
|
|
|
108
108
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
|
-
* await client.collections.
|
|
111
|
+
* await client.collections.delete("readable_id")
|
|
112
112
|
*/
|
|
113
|
-
|
|
114
|
-
private
|
|
113
|
+
delete(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
114
|
+
private __delete;
|
|
115
115
|
/**
|
|
116
116
|
* Search across all data sources within the specified collection.
|
|
117
117
|
*
|
|
@@ -119,18 +119,18 @@ export declare class Collections {
|
|
|
119
119
|
* and options, use the POST /search endpoint.
|
|
120
120
|
*
|
|
121
121
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
122
|
-
* @param {AirweaveSDK.
|
|
122
|
+
* @param {AirweaveSDK.SearchCollectionsReadableIdSearchGetRequest} request
|
|
123
123
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
124
|
*
|
|
125
125
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
126
126
|
*
|
|
127
127
|
* @example
|
|
128
|
-
* await client.collections.
|
|
128
|
+
* await client.collections.search("readable_id", {
|
|
129
129
|
* query: "customer payment issues"
|
|
130
130
|
* })
|
|
131
131
|
*/
|
|
132
|
-
|
|
133
|
-
private
|
|
132
|
+
search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchResponse>;
|
|
133
|
+
private __search;
|
|
134
134
|
/**
|
|
135
135
|
* Advanced search with comprehensive filtering and options.
|
|
136
136
|
*
|
|
@@ -160,7 +160,7 @@ export declare class Collections {
|
|
|
160
160
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
161
161
|
*
|
|
162
162
|
* @example
|
|
163
|
-
* await client.collections.
|
|
163
|
+
* await client.collections.searchAdvanced("readable_id", {
|
|
164
164
|
* query: "customer payment issues",
|
|
165
165
|
* filter: {
|
|
166
166
|
* must: {
|
|
@@ -172,8 +172,8 @@ export declare class Collections {
|
|
|
172
172
|
* response_type: "completion"
|
|
173
173
|
* })
|
|
174
174
|
*/
|
|
175
|
-
|
|
176
|
-
private
|
|
175
|
+
searchAdvanced(readableId: string, request: AirweaveSDK.SearchRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchResponse>;
|
|
176
|
+
private __searchAdvanced;
|
|
177
177
|
/**
|
|
178
178
|
* Trigger data synchronization for all source connections in the collection.
|
|
179
179
|
*
|
|
@@ -25,18 +25,18 @@ export class Collections {
|
|
|
25
25
|
/**
|
|
26
26
|
* List all collections that belong to your organization.
|
|
27
27
|
*
|
|
28
|
-
* @param {AirweaveSDK.
|
|
28
|
+
* @param {AirweaveSDK.ListCollectionsGetRequest} request
|
|
29
29
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.collections.
|
|
34
|
+
* await client.collections.list()
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
36
|
+
list(request = {}, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
__list() {
|
|
40
40
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
41
41
|
var _a, _b, _c;
|
|
42
42
|
const { skip, limit } = request;
|
|
@@ -100,15 +100,15 @@ export class Collections {
|
|
|
100
100
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
|
-
* await client.collections.
|
|
103
|
+
* await client.collections.create({
|
|
104
104
|
* name: "Finance Data",
|
|
105
105
|
* readable_id: "finance-data-reports"
|
|
106
106
|
* })
|
|
107
107
|
*/
|
|
108
|
-
|
|
109
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
108
|
+
create(request, requestOptions) {
|
|
109
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
__create(request, requestOptions) {
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
113
|
var _a, _b, _c;
|
|
114
114
|
const _response = yield core.fetcher({
|
|
@@ -163,12 +163,12 @@ export class Collections {
|
|
|
163
163
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
|
-
* await client.collections.
|
|
166
|
+
* await client.collections.get("readable_id")
|
|
167
167
|
*/
|
|
168
|
-
|
|
169
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
168
|
+
get(readableId, requestOptions) {
|
|
169
|
+
return core.HttpResponsePromise.fromPromise(this.__get(readableId, requestOptions));
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
__get(readableId, requestOptions) {
|
|
172
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
173
|
var _a, _b, _c;
|
|
174
174
|
const _response = yield core.fetcher({
|
|
@@ -225,14 +225,14 @@ export class Collections {
|
|
|
225
225
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.collections.
|
|
228
|
+
* await client.collections.update("readable_id", {
|
|
229
229
|
* name: "Updated Finance Data"
|
|
230
230
|
* })
|
|
231
231
|
*/
|
|
232
|
-
|
|
233
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
232
|
+
update(readableId, request = {}, requestOptions) {
|
|
233
|
+
return core.HttpResponsePromise.fromPromise(this.__update(readableId, request, requestOptions));
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
__update(readableId_1) {
|
|
236
236
|
return __awaiter(this, arguments, void 0, function* (readableId, request = {}, requestOptions) {
|
|
237
237
|
var _a, _b, _c;
|
|
238
238
|
const _response = yield core.fetcher({
|
|
@@ -291,12 +291,12 @@ export class Collections {
|
|
|
291
291
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
292
292
|
*
|
|
293
293
|
* @example
|
|
294
|
-
* await client.collections.
|
|
294
|
+
* await client.collections.delete("readable_id")
|
|
295
295
|
*/
|
|
296
|
-
|
|
297
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
296
|
+
delete(readableId, requestOptions) {
|
|
297
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(readableId, requestOptions));
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
__delete(readableId, requestOptions) {
|
|
300
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
301
|
var _a, _b, _c;
|
|
302
302
|
const _response = yield core.fetcher({
|
|
@@ -346,20 +346,20 @@ export class Collections {
|
|
|
346
346
|
* and options, use the POST /search endpoint.
|
|
347
347
|
*
|
|
348
348
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
349
|
-
* @param {AirweaveSDK.
|
|
349
|
+
* @param {AirweaveSDK.SearchCollectionsReadableIdSearchGetRequest} request
|
|
350
350
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
351
351
|
*
|
|
352
352
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
353
353
|
*
|
|
354
354
|
* @example
|
|
355
|
-
* await client.collections.
|
|
355
|
+
* await client.collections.search("readable_id", {
|
|
356
356
|
* query: "customer payment issues"
|
|
357
357
|
* })
|
|
358
358
|
*/
|
|
359
|
-
|
|
360
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
359
|
+
search(readableId, request, requestOptions) {
|
|
360
|
+
return core.HttpResponsePromise.fromPromise(this.__search(readableId, request, requestOptions));
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
__search(readableId, request, requestOptions) {
|
|
363
363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
364
364
|
var _a, _b, _c;
|
|
365
365
|
const { query, response_type: responseType, limit, offset, recency_bias: recencyBias } = request;
|
|
@@ -447,7 +447,7 @@ export class Collections {
|
|
|
447
447
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
448
448
|
*
|
|
449
449
|
* @example
|
|
450
|
-
* await client.collections.
|
|
450
|
+
* await client.collections.searchAdvanced("readable_id", {
|
|
451
451
|
* query: "customer payment issues",
|
|
452
452
|
* filter: {
|
|
453
453
|
* must: {
|
|
@@ -459,10 +459,10 @@ export class Collections {
|
|
|
459
459
|
* response_type: "completion"
|
|
460
460
|
* })
|
|
461
461
|
*/
|
|
462
|
-
|
|
463
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
462
|
+
searchAdvanced(readableId, request, requestOptions) {
|
|
463
|
+
return core.HttpResponsePromise.fromPromise(this.__searchAdvanced(readableId, request, requestOptions));
|
|
464
464
|
}
|
|
465
|
-
|
|
465
|
+
__searchAdvanced(readableId, request, requestOptions) {
|
|
466
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
467
467
|
var _a, _b, _c;
|
|
468
468
|
const _response = yield core.fetcher({
|
|
@@ -8,7 +8,7 @@ import * as AirweaveSDK from "../../../../index.mjs";
|
|
|
8
8
|
* query: "customer payment issues"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface SearchCollectionsReadableIdSearchGetRequest {
|
|
12
12
|
/**
|
|
13
13
|
* The search query text to find relevant documents and data
|
|
14
14
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ListCollectionsGetRequest } from "./ListCollectionsGetRequest.mjs";
|
|
2
2
|
export { type CollectionCreate } from "./CollectionCreate.mjs";
|
|
3
3
|
export { type CollectionUpdate } from "./CollectionUpdate.mjs";
|
|
4
|
-
export { type
|
|
4
|
+
export { type SearchCollectionsReadableIdSearchGetRequest } from "./SearchCollectionsReadableIdSearchGetRequest.mjs";
|
|
5
5
|
export { type SearchRequest } from "./SearchRequest.mjs";
|