@airweave/sdk 0.1.27 → 0.2.0
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/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/connections/client/Client.d.ts +1 -43
- package/api/resources/connections/client/Client.js +11 -163
- package/api/resources/connections/client/requests/index.d.ts +0 -1
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/entities/client/Client.d.ts +14 -0
- package/api/resources/entities/client/Client.js +78 -7
- package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
- package/api/resources/entities/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/search/client/Client.d.ts +55 -0
- package/api/resources/search/client/Client.js +147 -0
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
- package/api/resources/search/client/requests/index.d.ts +1 -0
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.d.ts +26 -5
- package/api/resources/sync/client/Client.js +100 -21
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
- package/api/resources/sync/client/requests/index.d.ts +1 -1
- package/api/resources/transformers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +7 -0
- package/api/types/EntityDefinition.d.ts +1 -3
- package/api/types/SyncDagCreate.d.ts +14 -0
- package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.d.ts +3 -7
- package/api/types/SyncJob.d.ts +2 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/connections/client/Client.d.ts +1 -43
- package/dist/api/resources/connections/client/Client.js +11 -163
- package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/entities/client/Client.d.ts +14 -0
- package/dist/api/resources/entities/client/Client.js +78 -7
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
- package/dist/api/resources/entities/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/search/client/Client.d.ts +55 -0
- package/dist/api/resources/search/client/Client.js +147 -0
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
- package/dist/api/resources/search/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.d.ts +26 -5
- package/dist/api/resources/sync/client/Client.js +100 -21
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
- package/dist/api/resources/sync/client/requests/index.d.ts +1 -1
- package/dist/api/resources/transformers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +7 -0
- package/dist/api/types/EntityDefinition.d.ts +1 -3
- package/dist/api/types/SyncDagCreate.d.ts +14 -0
- package/dist/api/types/SyncDagCreate.js +5 -0
- package/{api/resources/dag/client/requests → dist/api/types}/SyncDagUpdate.d.ts +3 -7
- package/dist/api/types/SyncDagUpdate.js +5 -0
- package/dist/api/types/SyncJob.d.ts +2 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/connections/client/index.d.ts +0 -1
- package/dist/serialization/resources/connections/client/index.js +1 -2
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
- package/dist/serialization/resources/entities/client/index.d.ts +1 -0
- package/dist/serialization/resources/entities/client/index.js +2 -1
- package/dist/serialization/resources/index.d.ts +1 -2
- package/dist/serialization/resources/index.js +2 -3
- package/dist/serialization/resources/search/client/index.d.ts +1 -0
- package/dist/serialization/resources/search/client/index.js +37 -0
- package/dist/serialization/resources/{connections/client/getOauth2AuthUrl.d.ts → search/client/search.d.ts} +2 -2
- package/dist/serialization/resources/search/client/search.js +41 -0
- package/dist/serialization/resources/sync/client/index.d.ts +1 -0
- package/dist/serialization/resources/sync/client/index.js +2 -1
- package/dist/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
- package/dist/serialization/resources/{connections/client/getOauth2AuthUrl.js → sync/client/listAllJobs.js} +2 -1
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
- package/dist/serialization/types/EntityDefinition.d.ts +1 -3
- package/dist/serialization/types/EntityDefinition.js +1 -3
- package/dist/serialization/types/SyncDagCreate.d.ts +18 -0
- package/{serialization/resources/dag/client/requests → dist/serialization/types}/SyncDagCreate.js +4 -4
- package/dist/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/dist/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/dist/serialization/types/SyncJob.d.ts +1 -0
- package/dist/serialization/types/SyncJob.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +200 -418
- package/serialization/resources/connections/client/index.d.ts +0 -1
- package/serialization/resources/connections/client/index.js +1 -2
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
- package/serialization/resources/entities/client/index.d.ts +1 -0
- package/serialization/resources/entities/client/index.js +2 -1
- package/serialization/resources/index.d.ts +1 -2
- package/serialization/resources/index.js +2 -3
- package/serialization/resources/search/client/index.d.ts +1 -0
- package/serialization/resources/search/client/index.js +37 -0
- package/serialization/resources/{connections/client/getOauth2AuthUrl.d.ts → search/client/search.d.ts} +2 -2
- package/serialization/resources/search/client/search.js +41 -0
- package/serialization/resources/sync/client/index.d.ts +1 -0
- package/serialization/resources/sync/client/index.js +2 -1
- package/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
- package/serialization/resources/{connections/client/getOauth2AuthUrl.js → sync/client/listAllJobs.js} +2 -1
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
- package/serialization/types/EntityDefinition.d.ts +1 -3
- package/serialization/types/EntityDefinition.js +1 -3
- package/serialization/types/SyncDagCreate.d.ts +18 -0
- package/{dist/serialization/resources/dag/client/requests → serialization/types}/SyncDagCreate.js +4 -4
- package/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/serialization/types/SyncJob.d.ts +1 -0
- package/serialization/types/SyncJob.js +1 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.d.ts +0 -12
- package/api/resources/dag/client/Client.d.ts +0 -95
- package/api/resources/dag/client/Client.js +0 -347
- package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +0 -12
- package/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/api/resources/dag/client/requests/index.d.ts +0 -3
- package/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.d.ts +0 -12
- package/dist/api/resources/dag/client/Client.d.ts +0 -95
- package/dist/api/resources/dag/client/Client.js +0 -347
- package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +0 -12
- package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/dist/api/resources/dag/client/requests/index.d.ts +0 -3
- package/dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
- package/dist/serialization/resources/dag/client/index.d.ts +0 -1
- package/dist/serialization/resources/dag/client/index.js +0 -17
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/dag/client/requests/index.js +0 -7
- package/serialization/resources/dag/client/index.d.ts +0 -1
- package/serialization/resources/dag/client/index.js +0 -17
- package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/serialization/resources/dag/client/requests/index.js +0 -7
- /package/api/resources/{connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.js → entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
- /package/api/resources/{dag → search}/client/index.d.ts +0 -0
- /package/api/resources/{dag → search}/client/index.js +0 -0
- /package/api/resources/{dag/client/requests/InitializeDagDagInitGetRequest.js → search/client/requests/SearchSearchGetRequest.js} +0 -0
- /package/api/resources/{dag → search}/client/requests/index.js +0 -0
- /package/api/resources/{dag → search}/index.d.ts +0 -0
- /package/api/resources/{dag → search}/index.js +0 -0
- /package/api/resources/{dag/client/requests/SyncDagCreate.js → sync/client/requests/ListAllJobsSyncJobsGetRequest.js} +0 -0
- /package/api/{resources/dag/client/requests/SyncDagUpdate.js → types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js} +0 -0
- /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagCreate.js +0 -0
- /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.js +0 -0
- /package/{api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
- /package/dist/api/resources/{dag → search}/client/index.d.ts +0 -0
- /package/dist/api/resources/{dag → search}/client/index.js +0 -0
- /package/dist/api/resources/{connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.js → search/client/requests/SearchSearchGetRequest.js} +0 -0
- /package/dist/api/resources/{dag → search}/client/requests/index.js +0 -0
- /package/dist/api/resources/{dag → search}/index.d.ts +0 -0
- /package/dist/api/resources/{dag → search}/index.js +0 -0
- /package/dist/api/resources/{dag/client/requests/InitializeDagDagInitGetRequest.js → sync/client/requests/ListAllJobsSyncJobsGetRequest.js} +0 -0
- /package/dist/api/{resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js} +0 -0
- /package/dist/serialization/resources/{dag → search}/index.d.ts +0 -0
- /package/dist/serialization/resources/{dag → search}/index.js +0 -0
- /package/serialization/resources/{dag → search}/index.d.ts +0 -0
- /package/serialization/resources/{dag → search}/index.js +0 -0
|
@@ -138,4 +138,18 @@ export declare class Entities {
|
|
|
138
138
|
* await client.entities.getEntityDefinitionsByIds(["string"])
|
|
139
139
|
*/
|
|
140
140
|
getEntityDefinitionsByIds(request: string[], requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
|
|
141
|
+
/**
|
|
142
|
+
* Get all entity definitions for a given source.
|
|
143
|
+
*
|
|
144
|
+
* @param {AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest} request
|
|
145
|
+
* @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* await client.entities.getEntityDefinitionsBySourceShortName({
|
|
151
|
+
* sourceShortName: "source_short_name"
|
|
152
|
+
* })
|
|
153
|
+
*/
|
|
154
|
+
getEntityDefinitionsBySourceShortName(request: AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest, requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
|
|
141
155
|
}
|
|
@@ -77,7 +77,7 @@ class Entities {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
79
|
? yield core.Supplier.get(this._options.apiKey)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -148,7 +148,7 @@ class Entities {
|
|
|
148
148
|
method: "POST",
|
|
149
149
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
150
150
|
? yield core.Supplier.get(this._options.apiKey)
|
|
151
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
151
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
152
152
|
contentType: "application/json",
|
|
153
153
|
requestType: "json",
|
|
154
154
|
body: serializers.EntityDefinitionCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class Entities {
|
|
|
221
221
|
method: "PUT",
|
|
222
222
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
223
223
|
? yield core.Supplier.get(this._options.apiKey)
|
|
224
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
224
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
requestType: "json",
|
|
227
227
|
body: serializers.EntityDefinitionUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -286,7 +286,7 @@ class Entities {
|
|
|
286
286
|
method: "GET",
|
|
287
287
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
288
288
|
? yield core.Supplier.get(this._options.apiKey)
|
|
289
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
289
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
290
290
|
contentType: "application/json",
|
|
291
291
|
requestType: "json",
|
|
292
292
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,7 +355,7 @@ class Entities {
|
|
|
355
355
|
method: "POST",
|
|
356
356
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
357
357
|
? yield core.Supplier.get(this._options.apiKey)
|
|
358
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
358
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
359
359
|
contentType: "application/json",
|
|
360
360
|
requestType: "json",
|
|
361
361
|
body: serializers.EntityRelationCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -426,7 +426,7 @@ class Entities {
|
|
|
426
426
|
method: "PUT",
|
|
427
427
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
428
428
|
? yield core.Supplier.get(this._options.apiKey)
|
|
429
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
429
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
430
430
|
contentType: "application/json",
|
|
431
431
|
requestType: "json",
|
|
432
432
|
body: serializers.EntityRelationUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -500,7 +500,7 @@ class Entities {
|
|
|
500
500
|
method: "POST",
|
|
501
501
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
502
502
|
? yield core.Supplier.get(this._options.apiKey)
|
|
503
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
503
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
504
504
|
contentType: "application/json",
|
|
505
505
|
requestType: "json",
|
|
506
506
|
body: serializers.entities.getEntityDefinitionsByIds.Request.jsonOrThrow(request, {
|
|
@@ -549,5 +549,76 @@ class Entities {
|
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Get all entity definitions for a given source.
|
|
554
|
+
*
|
|
555
|
+
* @param {AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest} request
|
|
556
|
+
* @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
|
|
557
|
+
*
|
|
558
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* await client.entities.getEntityDefinitionsBySourceShortName({
|
|
562
|
+
* sourceShortName: "source_short_name"
|
|
563
|
+
* })
|
|
564
|
+
*/
|
|
565
|
+
getEntityDefinitionsBySourceShortName(request, requestOptions) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
var _a;
|
|
568
|
+
const { sourceShortName } = request;
|
|
569
|
+
const _queryParams = {};
|
|
570
|
+
_queryParams["source_short_name"] = sourceShortName;
|
|
571
|
+
const _response = yield core.fetcher({
|
|
572
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "entities/definitions/by-source/"),
|
|
573
|
+
method: "GET",
|
|
574
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
575
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
576
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
577
|
+
contentType: "application/json",
|
|
578
|
+
queryParameters: _queryParams,
|
|
579
|
+
requestType: "json",
|
|
580
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
581
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
582
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
583
|
+
});
|
|
584
|
+
if (_response.ok) {
|
|
585
|
+
return serializers.entities.getEntityDefinitionsBySourceShortName.Response.parseOrThrow(_response.body, {
|
|
586
|
+
unrecognizedObjectKeys: "passthrough",
|
|
587
|
+
allowUnrecognizedUnionMembers: true,
|
|
588
|
+
allowUnrecognizedEnumValues: true,
|
|
589
|
+
breadcrumbsPrefix: ["response"],
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
if (_response.error.reason === "status-code") {
|
|
593
|
+
switch (_response.error.statusCode) {
|
|
594
|
+
case 422:
|
|
595
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
596
|
+
unrecognizedObjectKeys: "passthrough",
|
|
597
|
+
allowUnrecognizedUnionMembers: true,
|
|
598
|
+
allowUnrecognizedEnumValues: true,
|
|
599
|
+
breadcrumbsPrefix: ["response"],
|
|
600
|
+
}));
|
|
601
|
+
default:
|
|
602
|
+
throw new errors.AirweaveSDKError({
|
|
603
|
+
statusCode: _response.error.statusCode,
|
|
604
|
+
body: _response.error.body,
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
switch (_response.error.reason) {
|
|
609
|
+
case "non-json":
|
|
610
|
+
throw new errors.AirweaveSDKError({
|
|
611
|
+
statusCode: _response.error.statusCode,
|
|
612
|
+
body: _response.error.rawBody,
|
|
613
|
+
});
|
|
614
|
+
case "timeout":
|
|
615
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /entities/definitions/by-source/.");
|
|
616
|
+
case "unknown":
|
|
617
|
+
throw new errors.AirweaveSDKError({
|
|
618
|
+
message: _response.error.errorMessage,
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
}
|
|
552
623
|
}
|
|
553
624
|
exports.Entities = Entities;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* sourceShortName: "source_short_name"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest {
|
|
11
|
+
sourceShortName: string;
|
|
12
|
+
}
|
|
@@ -2,3 +2,4 @@ export { type EntityDefinitionCreate } from "./EntityDefinitionCreate";
|
|
|
2
2
|
export { type EntityDefinitionUpdate } from "./EntityDefinitionUpdate";
|
|
3
3
|
export { type EntityRelationCreate } from "./EntityRelationCreate";
|
|
4
4
|
export { type EntityRelationUpdate } from "./EntityRelationUpdate";
|
|
5
|
+
export { type GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest } from "./GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest";
|
|
@@ -7,12 +7,12 @@ export * as sources from "./sources";
|
|
|
7
7
|
export * as destinations from "./destinations";
|
|
8
8
|
export * as embeddingModels from "./embeddingModels";
|
|
9
9
|
export * as connections from "./connections";
|
|
10
|
+
export * as search from "./search";
|
|
10
11
|
export * as whiteLabels from "./whiteLabels";
|
|
11
|
-
export * as dag from "./dag";
|
|
12
12
|
export * as transformers from "./transformers";
|
|
13
13
|
export * from "./connections/client/requests";
|
|
14
14
|
export * from "./sync/client/requests";
|
|
15
|
+
export * from "./search/client/requests";
|
|
15
16
|
export * from "./whiteLabels/client/requests";
|
|
16
|
-
export * from "./dag/client/requests";
|
|
17
17
|
export * from "./entities/client/requests";
|
|
18
18
|
export * from "./transformers/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transformers = exports.
|
|
39
|
+
exports.transformers = exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.entities = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
42
|
exports.entities = __importStar(require("./entities"));
|
|
@@ -46,12 +46,12 @@ exports.sources = __importStar(require("./sources"));
|
|
|
46
46
|
exports.destinations = __importStar(require("./destinations"));
|
|
47
47
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
48
48
|
exports.connections = __importStar(require("./connections"));
|
|
49
|
+
exports.search = __importStar(require("./search"));
|
|
49
50
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
50
|
-
exports.dag = __importStar(require("./dag"));
|
|
51
51
|
exports.transformers = __importStar(require("./transformers"));
|
|
52
52
|
__exportStar(require("./connections/client/requests"), exports);
|
|
53
53
|
__exportStar(require("./sync/client/requests"), exports);
|
|
54
|
+
__exportStar(require("./search/client/requests"), exports);
|
|
54
55
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
55
|
-
__exportStar(require("./dag/client/requests"), exports);
|
|
56
56
|
__exportStar(require("./entities/client/requests"), exports);
|
|
57
57
|
__exportStar(require("./transformers/client/requests"), exports);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as AirweaveSDK from "../../../index";
|
|
7
|
+
export declare namespace Search {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
/** Override the x-api-key header */
|
|
11
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
|
+
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
+
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the x-api-key header */
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Search {
|
|
27
|
+
protected readonly _options: Search.Options;
|
|
28
|
+
constructor(_options?: Search.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Search for documents within a specific sync.
|
|
31
|
+
*
|
|
32
|
+
* Args:
|
|
33
|
+
* -----
|
|
34
|
+
* db: The database session
|
|
35
|
+
* sync_id: The ID of the sync to search within
|
|
36
|
+
* query: The search query text
|
|
37
|
+
* user: The current user
|
|
38
|
+
*
|
|
39
|
+
* Returns:
|
|
40
|
+
* --------
|
|
41
|
+
* list[dict]: A list of search results
|
|
42
|
+
*
|
|
43
|
+
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
44
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.search.search({
|
|
50
|
+
* syncId: "sync_id",
|
|
51
|
+
* query: "query"
|
|
52
|
+
* })
|
|
53
|
+
*/
|
|
54
|
+
search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>[]>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Search = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const AirweaveSDK = __importStar(require("../../../index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Search {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Search for documents within a specific sync.
|
|
64
|
+
*
|
|
65
|
+
* Args:
|
|
66
|
+
* -----
|
|
67
|
+
* db: The database session
|
|
68
|
+
* sync_id: The ID of the sync to search within
|
|
69
|
+
* query: The search query text
|
|
70
|
+
* user: The current user
|
|
71
|
+
*
|
|
72
|
+
* Returns:
|
|
73
|
+
* --------
|
|
74
|
+
* list[dict]: A list of search results
|
|
75
|
+
*
|
|
76
|
+
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
77
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.search.search({
|
|
83
|
+
* syncId: "sync_id",
|
|
84
|
+
* query: "query"
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
search(request, requestOptions) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
var _a;
|
|
90
|
+
const { syncId, query } = request;
|
|
91
|
+
const _queryParams = {};
|
|
92
|
+
_queryParams["sync_id"] = syncId;
|
|
93
|
+
_queryParams["query"] = query;
|
|
94
|
+
const _response = yield core.fetcher({
|
|
95
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/"),
|
|
96
|
+
method: "GET",
|
|
97
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
98
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
99
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
|
+
contentType: "application/json",
|
|
101
|
+
queryParameters: _queryParams,
|
|
102
|
+
requestType: "json",
|
|
103
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
104
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
105
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
|
+
});
|
|
107
|
+
if (_response.ok) {
|
|
108
|
+
return serializers.search.search.Response.parseOrThrow(_response.body, {
|
|
109
|
+
unrecognizedObjectKeys: "passthrough",
|
|
110
|
+
allowUnrecognizedUnionMembers: true,
|
|
111
|
+
allowUnrecognizedEnumValues: true,
|
|
112
|
+
breadcrumbsPrefix: ["response"],
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
if (_response.error.reason === "status-code") {
|
|
116
|
+
switch (_response.error.statusCode) {
|
|
117
|
+
case 422:
|
|
118
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
119
|
+
unrecognizedObjectKeys: "passthrough",
|
|
120
|
+
allowUnrecognizedUnionMembers: true,
|
|
121
|
+
allowUnrecognizedEnumValues: true,
|
|
122
|
+
breadcrumbsPrefix: ["response"],
|
|
123
|
+
}));
|
|
124
|
+
default:
|
|
125
|
+
throw new errors.AirweaveSDKError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.body,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
switch (_response.error.reason) {
|
|
132
|
+
case "non-json":
|
|
133
|
+
throw new errors.AirweaveSDKError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.rawBody,
|
|
136
|
+
});
|
|
137
|
+
case "timeout":
|
|
138
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/.");
|
|
139
|
+
case "unknown":
|
|
140
|
+
throw new errors.AirweaveSDKError({
|
|
141
|
+
message: _response.error.errorMessage,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.Search = Search;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* syncId: "sync_id",
|
|
8
|
+
* query: "query"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SearchSearchGetRequest {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the sync to search within
|
|
14
|
+
*/
|
|
15
|
+
syncId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Search query text
|
|
18
|
+
*/
|
|
19
|
+
query: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type SearchSearchGetRequest } from "./SearchSearchGetRequest";
|
|
@@ -88,7 +88,7 @@ class Sources {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +161,7 @@ class Sources {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.0", "User-Agent": "@airweave/sdk/0.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,6 +77,29 @@ export declare class Sync {
|
|
|
77
77
|
* })
|
|
78
78
|
*/
|
|
79
79
|
createSync(request: AirweaveSDK.SyncCreate, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.Sync>;
|
|
80
|
+
/**
|
|
81
|
+
* List all sync jobs across all syncs.
|
|
82
|
+
*
|
|
83
|
+
* Args:
|
|
84
|
+
* -----
|
|
85
|
+
* db: The database session
|
|
86
|
+
* skip: The number of jobs to skip
|
|
87
|
+
* limit: The number of jobs to return
|
|
88
|
+
* user: The current user
|
|
89
|
+
*
|
|
90
|
+
* Returns:
|
|
91
|
+
* --------
|
|
92
|
+
* list[schemas.SyncJob]: A list of all sync jobs
|
|
93
|
+
*
|
|
94
|
+
* @param {AirweaveSDK.ListAllJobsSyncJobsGetRequest} request
|
|
95
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.sync.listAllJobs()
|
|
101
|
+
*/
|
|
102
|
+
listAllJobs(request?: AirweaveSDK.ListAllJobsSyncJobsGetRequest, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob[]>;
|
|
80
103
|
/**
|
|
81
104
|
* Get a specific sync by ID.
|
|
82
105
|
*
|
|
@@ -206,18 +229,16 @@ export declare class Sync {
|
|
|
206
229
|
* --------
|
|
207
230
|
* sync_job (schemas.SyncJob): The sync job
|
|
208
231
|
*
|
|
232
|
+
* @param {string} syncId
|
|
209
233
|
* @param {string} jobId
|
|
210
|
-
* @param {AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest} request
|
|
211
234
|
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
235
|
*
|
|
213
236
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
214
237
|
*
|
|
215
238
|
* @example
|
|
216
|
-
* await client.sync.getSyncJob("
|
|
217
|
-
* syncId: "sync_id"
|
|
218
|
-
* })
|
|
239
|
+
* await client.sync.getSyncJob("sync_id", "job_id")
|
|
219
240
|
*/
|
|
220
|
-
getSyncJob(
|
|
241
|
+
getSyncJob(syncId: string, jobId: string, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob>;
|
|
221
242
|
/**
|
|
222
243
|
* Server-Sent Events (SSE) endpoint to subscribe to a sync job's progress.
|
|
223
244
|
*
|