@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
|
@@ -101,7 +101,7 @@ class Sync {
|
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
103
103
|
? yield core.Supplier.get(this._options.apiKey)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
104
|
+
: 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),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -182,7 +182,7 @@ class Sync {
|
|
|
182
182
|
method: "POST",
|
|
183
183
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
184
184
|
? yield core.Supplier.get(this._options.apiKey)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
185
|
+
: 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),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,6 +229,91 @@ class Sync {
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* List all sync jobs across all syncs.
|
|
234
|
+
*
|
|
235
|
+
* Args:
|
|
236
|
+
* -----
|
|
237
|
+
* db: The database session
|
|
238
|
+
* skip: The number of jobs to skip
|
|
239
|
+
* limit: The number of jobs to return
|
|
240
|
+
* user: The current user
|
|
241
|
+
*
|
|
242
|
+
* Returns:
|
|
243
|
+
* --------
|
|
244
|
+
* list[schemas.SyncJob]: A list of all sync jobs
|
|
245
|
+
*
|
|
246
|
+
* @param {AirweaveSDK.ListAllJobsSyncJobsGetRequest} request
|
|
247
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* await client.sync.listAllJobs()
|
|
253
|
+
*/
|
|
254
|
+
listAllJobs() {
|
|
255
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
256
|
+
var _a;
|
|
257
|
+
const { skip, limit } = request;
|
|
258
|
+
const _queryParams = {};
|
|
259
|
+
if (skip != null) {
|
|
260
|
+
_queryParams["skip"] = skip.toString();
|
|
261
|
+
}
|
|
262
|
+
if (limit != null) {
|
|
263
|
+
_queryParams["limit"] = limit.toString();
|
|
264
|
+
}
|
|
265
|
+
const _response = yield core.fetcher({
|
|
266
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/jobs"),
|
|
267
|
+
method: "GET",
|
|
268
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
269
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
270
|
+
: 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),
|
|
271
|
+
contentType: "application/json",
|
|
272
|
+
queryParameters: _queryParams,
|
|
273
|
+
requestType: "json",
|
|
274
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
275
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
276
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
277
|
+
});
|
|
278
|
+
if (_response.ok) {
|
|
279
|
+
return serializers.sync.listAllJobs.Response.parseOrThrow(_response.body, {
|
|
280
|
+
unrecognizedObjectKeys: "passthrough",
|
|
281
|
+
allowUnrecognizedUnionMembers: true,
|
|
282
|
+
allowUnrecognizedEnumValues: true,
|
|
283
|
+
breadcrumbsPrefix: ["response"],
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
if (_response.error.reason === "status-code") {
|
|
287
|
+
switch (_response.error.statusCode) {
|
|
288
|
+
case 422:
|
|
289
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
290
|
+
unrecognizedObjectKeys: "passthrough",
|
|
291
|
+
allowUnrecognizedUnionMembers: true,
|
|
292
|
+
allowUnrecognizedEnumValues: true,
|
|
293
|
+
breadcrumbsPrefix: ["response"],
|
|
294
|
+
}));
|
|
295
|
+
default:
|
|
296
|
+
throw new errors.AirweaveSDKError({
|
|
297
|
+
statusCode: _response.error.statusCode,
|
|
298
|
+
body: _response.error.body,
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
switch (_response.error.reason) {
|
|
303
|
+
case "non-json":
|
|
304
|
+
throw new errors.AirweaveSDKError({
|
|
305
|
+
statusCode: _response.error.statusCode,
|
|
306
|
+
body: _response.error.rawBody,
|
|
307
|
+
});
|
|
308
|
+
case "timeout":
|
|
309
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/jobs.");
|
|
310
|
+
case "unknown":
|
|
311
|
+
throw new errors.AirweaveSDKError({
|
|
312
|
+
message: _response.error.errorMessage,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
232
317
|
/**
|
|
233
318
|
* Get a specific sync by ID.
|
|
234
319
|
*
|
|
@@ -258,7 +343,7 @@ class Sync {
|
|
|
258
343
|
method: "GET",
|
|
259
344
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
260
345
|
? yield core.Supplier.get(this._options.apiKey)
|
|
261
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
346
|
+
: 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),
|
|
262
347
|
contentType: "application/json",
|
|
263
348
|
requestType: "json",
|
|
264
349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -340,7 +425,7 @@ class Sync {
|
|
|
340
425
|
method: "DELETE",
|
|
341
426
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
342
427
|
? yield core.Supplier.get(this._options.apiKey)
|
|
343
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
428
|
+
: 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),
|
|
344
429
|
contentType: "application/json",
|
|
345
430
|
queryParameters: _queryParams,
|
|
346
431
|
requestType: "json",
|
|
@@ -418,7 +503,7 @@ class Sync {
|
|
|
418
503
|
method: "PATCH",
|
|
419
504
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
420
505
|
? yield core.Supplier.get(this._options.apiKey)
|
|
421
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
506
|
+
: 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),
|
|
422
507
|
contentType: "application/json",
|
|
423
508
|
requestType: "json",
|
|
424
509
|
body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -495,7 +580,7 @@ class Sync {
|
|
|
495
580
|
method: "POST",
|
|
496
581
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
497
582
|
? yield core.Supplier.get(this._options.apiKey)
|
|
498
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
583
|
+
: 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),
|
|
499
584
|
contentType: "application/json",
|
|
500
585
|
requestType: "json",
|
|
501
586
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -570,7 +655,7 @@ class Sync {
|
|
|
570
655
|
method: "GET",
|
|
571
656
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
572
657
|
? yield core.Supplier.get(this._options.apiKey)
|
|
573
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
658
|
+
: 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),
|
|
574
659
|
contentType: "application/json",
|
|
575
660
|
requestType: "json",
|
|
576
661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -630,31 +715,25 @@ class Sync {
|
|
|
630
715
|
* --------
|
|
631
716
|
* sync_job (schemas.SyncJob): The sync job
|
|
632
717
|
*
|
|
718
|
+
* @param {string} syncId
|
|
633
719
|
* @param {string} jobId
|
|
634
|
-
* @param {AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest} request
|
|
635
720
|
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
636
721
|
*
|
|
637
722
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
638
723
|
*
|
|
639
724
|
* @example
|
|
640
|
-
* await client.sync.getSyncJob("
|
|
641
|
-
* syncId: "sync_id"
|
|
642
|
-
* })
|
|
725
|
+
* await client.sync.getSyncJob("sync_id", "job_id")
|
|
643
726
|
*/
|
|
644
|
-
getSyncJob(
|
|
727
|
+
getSyncJob(syncId, jobId, requestOptions) {
|
|
645
728
|
return __awaiter(this, void 0, void 0, function* () {
|
|
646
729
|
var _a;
|
|
647
|
-
const { syncId } = request;
|
|
648
|
-
const _queryParams = {};
|
|
649
|
-
_queryParams["sync_id"] = syncId;
|
|
650
730
|
const _response = yield core.fetcher({
|
|
651
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/job/${encodeURIComponent(jobId)}`),
|
|
731
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}/job/${encodeURIComponent(jobId)}`),
|
|
652
732
|
method: "GET",
|
|
653
733
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
654
734
|
? yield core.Supplier.get(this._options.apiKey)
|
|
655
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
735
|
+
: 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),
|
|
656
736
|
contentType: "application/json",
|
|
657
|
-
queryParameters: _queryParams,
|
|
658
737
|
requestType: "json",
|
|
659
738
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
660
739
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -691,7 +770,7 @@ class Sync {
|
|
|
691
770
|
body: _response.error.rawBody,
|
|
692
771
|
});
|
|
693
772
|
case "timeout":
|
|
694
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/job/{job_id}.");
|
|
773
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/{sync_id}/job/{job_id}.");
|
|
695
774
|
case "unknown":
|
|
696
775
|
throw new errors.AirweaveSDKError({
|
|
697
776
|
message: _response.error.errorMessage,
|
|
@@ -727,7 +806,7 @@ class Sync {
|
|
|
727
806
|
method: "GET",
|
|
728
807
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
729
808
|
? yield core.Supplier.get(this._options.apiKey)
|
|
730
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
809
|
+
: 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),
|
|
731
810
|
contentType: "application/json",
|
|
732
811
|
requestType: "json",
|
|
733
812
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -787,7 +866,7 @@ class Sync {
|
|
|
787
866
|
method: "GET",
|
|
788
867
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
789
868
|
? yield core.Supplier.get(this._options.apiKey)
|
|
790
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
869
|
+
: 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),
|
|
791
870
|
contentType: "application/json",
|
|
792
871
|
requestType: "json",
|
|
793
872
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { type ListSyncsSyncGetRequest } from "./ListSyncsSyncGetRequest";
|
|
2
2
|
export { type SyncCreate } from "./SyncCreate";
|
|
3
|
+
export { type ListAllJobsSyncJobsGetRequest } from "./ListAllJobsSyncJobsGetRequest";
|
|
3
4
|
export { type DeleteSyncSyncSyncIdDeleteRequest } from "./DeleteSyncSyncSyncIdDeleteRequest";
|
|
4
5
|
export { type SyncUpdate } from "./SyncUpdate";
|
|
5
|
-
export { type GetSyncJobSyncJobJobIdGetRequest } from "./GetSyncJobSyncJobJobIdGetRequest";
|
|
@@ -77,7 +77,7 @@ class Transformers {
|
|
|
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 Transformers {
|
|
|
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.TransformerCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class Transformers {
|
|
|
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.TransformerUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
88
|
+
: 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),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class WhiteLabels {
|
|
|
86
86
|
method: "GET",
|
|
87
87
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
88
88
|
? yield core.Supplier.get(this._options.apiKey)
|
|
89
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
89
|
+
: 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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +167,7 @@ class WhiteLabels {
|
|
|
167
167
|
method: "POST",
|
|
168
168
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
169
169
|
? yield core.Supplier.get(this._options.apiKey)
|
|
170
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
170
|
+
: 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),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +243,7 @@ class WhiteLabels {
|
|
|
243
243
|
method: "GET",
|
|
244
244
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
245
245
|
? yield core.Supplier.get(this._options.apiKey)
|
|
246
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
246
|
+
: 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),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -320,7 +320,7 @@ class WhiteLabels {
|
|
|
320
320
|
method: "PUT",
|
|
321
321
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
322
322
|
? yield core.Supplier.get(this._options.apiKey)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
323
|
+
: 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),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -396,7 +396,7 @@ class WhiteLabels {
|
|
|
396
396
|
method: "DELETE",
|
|
397
397
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.apiKey)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
399
|
+
: 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),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -471,7 +471,7 @@ class WhiteLabels {
|
|
|
471
471
|
method: "GET",
|
|
472
472
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
473
473
|
? yield core.Supplier.get(this._options.apiKey)
|
|
474
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
474
|
+
: 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),
|
|
475
475
|
contentType: "application/json",
|
|
476
476
|
requestType: "json",
|
|
477
477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -548,7 +548,7 @@ class WhiteLabels {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.apiKey)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
551
|
+
: 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),
|
|
552
552
|
contentType: "application/json",
|
|
553
553
|
requestType: "json",
|
|
554
554
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -626,7 +626,7 @@ class WhiteLabels {
|
|
|
626
626
|
method: "GET",
|
|
627
627
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
628
628
|
? yield core.Supplier.get(this._options.apiKey)
|
|
629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.
|
|
629
|
+
: 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),
|
|
630
630
|
contentType: "application/json",
|
|
631
631
|
requestType: "json",
|
|
632
632
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for creating a sync DAG definition.
|
|
7
|
+
*/
|
|
8
|
+
export interface SyncDagCreate {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
syncId: string;
|
|
12
|
+
nodes: AirweaveSDK.DagNodeCreate[];
|
|
13
|
+
edges: AirweaveSDK.DagEdgeCreate[];
|
|
14
|
+
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AirweaveSDK from "
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* {
|
|
8
|
-
* name: "name",
|
|
9
|
-
* syncDagUpdateSyncId: "sync_id"
|
|
10
|
-
* }
|
|
6
|
+
* Schema for updating a sync DAG definition.
|
|
11
7
|
*/
|
|
12
8
|
export interface SyncDagUpdate {
|
|
13
9
|
name: string;
|
|
14
10
|
description?: string;
|
|
15
|
-
|
|
11
|
+
syncId: string;
|
|
16
12
|
nodes?: AirweaveSDK.DagNodeCreate[];
|
|
17
13
|
edges?: AirweaveSDK.DagEdgeCreate[];
|
|
18
14
|
}
|
|
@@ -2,6 +2,7 @@ export * from "./ApiKey";
|
|
|
2
2
|
export * from "./ApiKeyCreate";
|
|
3
3
|
export * from "./ApiKeyWithPlainKey";
|
|
4
4
|
export * from "./AuthType";
|
|
5
|
+
export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost";
|
|
5
6
|
export * from "./Chat";
|
|
6
7
|
export * from "./ChatCreate";
|
|
7
8
|
export * from "./ChatMessage";
|
|
@@ -30,6 +31,8 @@ export * from "./Source";
|
|
|
30
31
|
export * from "./SourceWithConfigFields";
|
|
31
32
|
export * from "./Sync";
|
|
32
33
|
export * from "./SyncDag";
|
|
34
|
+
export * from "./SyncDagCreate";
|
|
35
|
+
export * from "./SyncDagUpdate";
|
|
33
36
|
export * from "./SyncJob";
|
|
34
37
|
export * from "./SyncJobStatus";
|
|
35
38
|
export * from "./SyncStatus";
|
package/dist/api/types/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __exportStar(require("./ApiKey"), exports);
|
|
|
18
18
|
__exportStar(require("./ApiKeyCreate"), exports);
|
|
19
19
|
__exportStar(require("./ApiKeyWithPlainKey"), exports);
|
|
20
20
|
__exportStar(require("./AuthType"), exports);
|
|
21
|
+
__exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost"), exports);
|
|
21
22
|
__exportStar(require("./Chat"), exports);
|
|
22
23
|
__exportStar(require("./ChatCreate"), exports);
|
|
23
24
|
__exportStar(require("./ChatMessage"), exports);
|
|
@@ -46,6 +47,8 @@ __exportStar(require("./Source"), exports);
|
|
|
46
47
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
47
48
|
__exportStar(require("./Sync"), exports);
|
|
48
49
|
__exportStar(require("./SyncDag"), exports);
|
|
50
|
+
__exportStar(require("./SyncDagCreate"), exports);
|
|
51
|
+
__exportStar(require("./SyncDagUpdate"), exports);
|
|
49
52
|
__exportStar(require("./SyncJob"), exports);
|
|
50
53
|
__exportStar(require("./SyncJobStatus"), exports);
|
|
51
54
|
__exportStar(require("./SyncStatus"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * as listAllConnectedIntegrations from "./listAllConnectedIntegrations";
|
|
2
2
|
export * as listConnectedIntegrations from "./listConnectedIntegrations";
|
|
3
3
|
export * as getConnectionCredentials from "./getConnectionCredentials";
|
|
4
|
-
export * as getOauth2AuthUrl from "./getOauth2AuthUrl";
|
|
5
4
|
export * as sendOauth2WhiteLabelCode from "./sendOauth2WhiteLabelCode";
|
|
6
5
|
export * as getOauth2WhiteLabelAuthUrl from "./getOauth2WhiteLabelAuthUrl";
|
|
7
6
|
export * from "./requests";
|
|
@@ -36,11 +36,10 @@ 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.getOauth2WhiteLabelAuthUrl = exports.sendOauth2WhiteLabelCode = exports.
|
|
39
|
+
exports.getOauth2WhiteLabelAuthUrl = exports.sendOauth2WhiteLabelCode = exports.getConnectionCredentials = exports.listConnectedIntegrations = exports.listAllConnectedIntegrations = void 0;
|
|
40
40
|
exports.listAllConnectedIntegrations = __importStar(require("./listAllConnectedIntegrations"));
|
|
41
41
|
exports.listConnectedIntegrations = __importStar(require("./listConnectedIntegrations"));
|
|
42
42
|
exports.getConnectionCredentials = __importStar(require("./getConnectionCredentials"));
|
|
43
|
-
exports.getOauth2AuthUrl = __importStar(require("./getOauth2AuthUrl"));
|
|
44
43
|
exports.sendOauth2WhiteLabelCode = __importStar(require("./sendOauth2WhiteLabelCode"));
|
|
45
44
|
exports.getOauth2WhiteLabelAuthUrl = __importStar(require("./getOauth2WhiteLabelAuthUrl"));
|
|
46
45
|
__exportStar(require("./requests"), exports);
|
package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as AirweaveSDK from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { EntityDefinition } from "../../../types/EntityDefinition";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.entities.getEntityDefinitionsBySourceShortName.Response.Raw, AirweaveSDK.EntityDefinition[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = EntityDefinition.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const EntityDefinition_1 = require("../../../types/EntityDefinition");
|
|
42
|
+
exports.Response = core.serialization.list(EntityDefinition_1.EntityDefinition);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as listEntityDefinitions from "./listEntityDefinitions";
|
|
2
2
|
export * as listEntityRelations from "./listEntityRelations";
|
|
3
3
|
export * as getEntityDefinitionsByIds from "./getEntityDefinitionsByIds";
|
|
4
|
+
export * as getEntityDefinitionsBySourceShortName from "./getEntityDefinitionsBySourceShortName";
|
|
4
5
|
export * from "./requests";
|
|
@@ -36,8 +36,9 @@ 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.getEntityDefinitionsByIds = exports.listEntityRelations = exports.listEntityDefinitions = void 0;
|
|
39
|
+
exports.getEntityDefinitionsBySourceShortName = exports.getEntityDefinitionsByIds = exports.listEntityRelations = exports.listEntityDefinitions = void 0;
|
|
40
40
|
exports.listEntityDefinitions = __importStar(require("./listEntityDefinitions"));
|
|
41
41
|
exports.listEntityRelations = __importStar(require("./listEntityRelations"));
|
|
42
42
|
exports.getEntityDefinitionsByIds = __importStar(require("./getEntityDefinitionsByIds"));
|
|
43
|
+
exports.getEntityDefinitionsBySourceShortName = __importStar(require("./getEntityDefinitionsBySourceShortName"));
|
|
43
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -6,12 +6,11 @@ export * as sources from "./sources";
|
|
|
6
6
|
export * as destinations from "./destinations";
|
|
7
7
|
export * as embeddingModels from "./embeddingModels";
|
|
8
8
|
export * as connections from "./connections";
|
|
9
|
+
export * as search from "./search";
|
|
9
10
|
export * as whiteLabels from "./whiteLabels";
|
|
10
11
|
export * as transformers from "./transformers";
|
|
11
12
|
export * from "./connections/client/requests";
|
|
12
13
|
export * from "./sync/client/requests";
|
|
13
14
|
export * from "./whiteLabels/client/requests";
|
|
14
|
-
export * as dag from "./dag";
|
|
15
|
-
export * from "./dag/client/requests";
|
|
16
15
|
export * from "./entities/client/requests";
|
|
17
16
|
export * from "./transformers/client/requests";
|