@airweave/sdk 0.1.27 → 0.1.28

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.
Files changed (72) hide show
  1. package/api/resources/connections/client/Client.js +12 -12
  2. package/api/resources/dag/client/Client.js +4 -4
  3. package/api/resources/destinations/client/Client.js +2 -2
  4. package/api/resources/embeddingModels/client/Client.js +2 -2
  5. package/api/resources/entities/client/Client.d.ts +14 -0
  6. package/api/resources/entities/client/Client.js +78 -7
  7. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  8. package/api/resources/entities/client/requests/index.d.ts +1 -0
  9. package/api/resources/sources/client/Client.js +2 -2
  10. package/api/resources/sync/client/Client.d.ts +26 -5
  11. package/api/resources/sync/client/Client.js +100 -21
  12. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  13. package/api/resources/sync/client/requests/index.d.ts +1 -1
  14. package/api/resources/transformers/client/Client.js +3 -3
  15. package/api/resources/users/client/Client.js +1 -1
  16. package/api/resources/whiteLabels/client/Client.js +8 -8
  17. package/api/types/EntityDefinition.d.ts +1 -3
  18. package/api/types/SyncJob.d.ts +2 -0
  19. package/dist/api/resources/connections/client/Client.js +12 -12
  20. package/dist/api/resources/dag/client/Client.js +4 -4
  21. package/dist/api/resources/destinations/client/Client.js +2 -2
  22. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  23. package/dist/api/resources/entities/client/Client.d.ts +14 -0
  24. package/dist/api/resources/entities/client/Client.js +78 -7
  25. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  26. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +5 -0
  27. package/dist/api/resources/entities/client/requests/index.d.ts +1 -0
  28. package/dist/api/resources/sources/client/Client.js +2 -2
  29. package/dist/api/resources/sync/client/Client.d.ts +26 -5
  30. package/dist/api/resources/sync/client/Client.js +100 -21
  31. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  32. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js +5 -0
  33. package/dist/api/resources/sync/client/requests/index.d.ts +1 -1
  34. package/dist/api/resources/transformers/client/Client.js +3 -3
  35. package/dist/api/resources/users/client/Client.js +1 -1
  36. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  37. package/dist/api/types/EntityDefinition.d.ts +1 -3
  38. package/dist/api/types/SyncJob.d.ts +2 -0
  39. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  40. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  41. package/dist/serialization/resources/entities/client/index.d.ts +1 -0
  42. package/dist/serialization/resources/entities/client/index.js +2 -1
  43. package/dist/serialization/resources/sync/client/index.d.ts +1 -0
  44. package/dist/serialization/resources/sync/client/index.js +2 -1
  45. package/dist/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  46. package/dist/serialization/resources/sync/client/listAllJobs.js +42 -0
  47. package/dist/serialization/types/EntityDefinition.d.ts +1 -3
  48. package/dist/serialization/types/EntityDefinition.js +1 -3
  49. package/dist/serialization/types/SyncJob.d.ts +1 -0
  50. package/dist/serialization/types/SyncJob.js +1 -0
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/package.json +1 -1
  54. package/reference.md +143 -6
  55. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  56. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  57. package/serialization/resources/entities/client/index.d.ts +1 -0
  58. package/serialization/resources/entities/client/index.js +2 -1
  59. package/serialization/resources/sync/client/index.d.ts +1 -0
  60. package/serialization/resources/sync/client/index.js +2 -1
  61. package/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  62. package/serialization/resources/sync/client/listAllJobs.js +42 -0
  63. package/serialization/types/EntityDefinition.d.ts +1 -3
  64. package/serialization/types/EntityDefinition.js +1 -3
  65. package/serialization/types/SyncJob.d.ts +1 -0
  66. package/serialization/types/SyncJob.js +1 -0
  67. package/version.d.ts +1 -1
  68. package/version.js +1 -1
  69. package/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
  70. package/dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
  71. /package/api/resources/{sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
  72. /package/{dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
429
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
503
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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";
@@ -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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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("job_id", {
217
- * syncId: "sync_id"
218
- * })
239
+ * await client.sync.getSyncJob("sync_id", "job_id")
219
240
  */
220
- getSyncJob(jobId: string, request: AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob>;
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
  *
@@ -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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
185
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
428
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
506
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
583
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
658
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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("job_id", {
641
- * syncId: "sync_id"
642
- * })
725
+ * await client.sync.getSyncJob("sync_id", "job_id")
643
726
  */
644
- getSyncJob(jobId, request, requestOptions) {
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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
735
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
809
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
869
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ListAllJobsSyncJobsGetRequest {
9
+ skip?: number;
10
+ limit?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "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,