@airweave/sdk 0.1.26 → 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 (102) 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 +28 -6
  11. package/api/resources/sync/client/Client.js +102 -22
  12. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  13. package/api/resources/sync/client/requests/SyncCreate.d.ts +4 -3
  14. package/api/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
  15. package/api/resources/sync/client/requests/index.d.ts +1 -1
  16. package/api/resources/transformers/client/Client.js +3 -3
  17. package/api/resources/users/client/Client.js +1 -1
  18. package/api/resources/whiteLabels/client/Client.js +8 -8
  19. package/api/types/Connection.d.ts +3 -3
  20. package/api/types/EntityDefinition.d.ts +1 -3
  21. package/api/types/Sync.d.ts +2 -2
  22. package/api/types/SyncJob.d.ts +2 -0
  23. package/api/types/SyncWithSourceConnection.d.ts +2 -2
  24. package/dist/api/resources/connections/client/Client.js +12 -12
  25. package/dist/api/resources/dag/client/Client.js +4 -4
  26. package/dist/api/resources/destinations/client/Client.js +2 -2
  27. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  28. package/dist/api/resources/entities/client/Client.d.ts +14 -0
  29. package/dist/api/resources/entities/client/Client.js +78 -7
  30. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  31. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +5 -0
  32. package/dist/api/resources/entities/client/requests/index.d.ts +1 -0
  33. package/dist/api/resources/sources/client/Client.js +2 -2
  34. package/dist/api/resources/sync/client/Client.d.ts +28 -6
  35. package/dist/api/resources/sync/client/Client.js +102 -22
  36. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  37. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js +5 -0
  38. package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +4 -3
  39. package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
  40. package/dist/api/resources/sync/client/requests/index.d.ts +1 -1
  41. package/dist/api/resources/transformers/client/Client.js +3 -3
  42. package/dist/api/resources/users/client/Client.js +1 -1
  43. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  44. package/dist/api/types/Connection.d.ts +3 -3
  45. package/dist/api/types/EntityDefinition.d.ts +1 -3
  46. package/dist/api/types/Sync.d.ts +2 -2
  47. package/dist/api/types/SyncJob.d.ts +2 -0
  48. package/dist/api/types/SyncWithSourceConnection.d.ts +2 -2
  49. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  50. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  51. package/dist/serialization/resources/entities/client/index.d.ts +1 -0
  52. package/dist/serialization/resources/entities/client/index.js +2 -1
  53. package/dist/serialization/resources/sync/client/index.d.ts +1 -0
  54. package/dist/serialization/resources/sync/client/index.js +2 -1
  55. package/dist/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  56. package/dist/serialization/resources/sync/client/listAllJobs.js +42 -0
  57. package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +2 -2
  58. package/dist/serialization/resources/sync/client/requests/SyncCreate.js +2 -2
  59. package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
  60. package/dist/serialization/resources/sync/client/requests/SyncUpdate.js +0 -4
  61. package/dist/serialization/types/Connection.d.ts +3 -3
  62. package/dist/serialization/types/Connection.js +3 -3
  63. package/dist/serialization/types/EntityDefinition.d.ts +1 -3
  64. package/dist/serialization/types/EntityDefinition.js +1 -3
  65. package/dist/serialization/types/Sync.d.ts +2 -2
  66. package/dist/serialization/types/Sync.js +2 -2
  67. package/dist/serialization/types/SyncJob.d.ts +1 -0
  68. package/dist/serialization/types/SyncJob.js +1 -0
  69. package/dist/serialization/types/SyncWithSourceConnection.d.ts +2 -2
  70. package/dist/serialization/types/SyncWithSourceConnection.js +2 -2
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +144 -6
  75. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  76. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  77. package/serialization/resources/entities/client/index.d.ts +1 -0
  78. package/serialization/resources/entities/client/index.js +2 -1
  79. package/serialization/resources/sync/client/index.d.ts +1 -0
  80. package/serialization/resources/sync/client/index.js +2 -1
  81. package/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  82. package/serialization/resources/sync/client/listAllJobs.js +42 -0
  83. package/serialization/resources/sync/client/requests/SyncCreate.d.ts +2 -2
  84. package/serialization/resources/sync/client/requests/SyncCreate.js +2 -2
  85. package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
  86. package/serialization/resources/sync/client/requests/SyncUpdate.js +0 -4
  87. package/serialization/types/Connection.d.ts +3 -3
  88. package/serialization/types/Connection.js +3 -3
  89. package/serialization/types/EntityDefinition.d.ts +1 -3
  90. package/serialization/types/EntityDefinition.js +1 -3
  91. package/serialization/types/Sync.d.ts +2 -2
  92. package/serialization/types/Sync.js +2 -2
  93. package/serialization/types/SyncJob.d.ts +1 -0
  94. package/serialization/types/SyncJob.js +1 -0
  95. package/serialization/types/SyncWithSourceConnection.d.ts +2 -2
  96. package/serialization/types/SyncWithSourceConnection.js +2 -2
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
  100. package/dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +0 -12
  101. /package/api/resources/{sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
  102. /package/{dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js} +0 -0
@@ -6,15 +6,16 @@ import * as AirweaveSDK from "../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * name: "name",
9
- * sourceConnectionId: "source_connection_id"
9
+ * sourceConnectionId: "source_connection_id",
10
+ * destinationConnectionIds: ["destination_connection_ids"]
10
11
  * }
11
12
  */
12
13
  export interface SyncCreate {
13
14
  name: string;
14
- description?: string;
15
15
  sourceConnectionId: string;
16
- destinationConnectionId?: string;
17
16
  embeddingModelConnectionId?: string;
17
+ destinationConnectionIds: string[];
18
+ description?: string;
18
19
  cronSchedule?: string;
19
20
  nextScheduledRun?: Date;
20
21
  whiteLabelId?: string;
@@ -8,10 +8,6 @@ import * as AirweaveSDK from "../../../../index";
8
8
  */
9
9
  export interface SyncUpdate {
10
10
  name?: string;
11
- schedule?: string;
12
- sourceConnectionId?: string;
13
- destinationConnectionId?: string;
14
- embeddingModelConnectionId?: string;
15
11
  cronSchedule?: string;
16
12
  nextScheduledRun?: Date;
17
13
  whiteLabelId?: string;
@@ -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.26", "User-Agent": "@airweave/sdk/0.1.26", "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.26", "User-Agent": "@airweave/sdk/0.1.26", "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.26", "User-Agent": "@airweave/sdk/0.1.26", "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.26", "User-Agent": "@airweave/sdk/0.1.26", "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,
@@ -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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
+ : 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),
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.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
629
+ : 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),
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,
@@ -12,7 +12,7 @@ export interface Connection {
12
12
  status: AirweaveSDK.ConnectionStatus;
13
13
  shortName: string;
14
14
  id: string;
15
- organizationId: string;
16
- createdByEmail: string;
17
- modifiedByEmail: string;
15
+ organizationId?: string;
16
+ createdByEmail?: string;
17
+ modifiedByEmail?: string;
18
18
  }
@@ -14,7 +14,5 @@ export interface EntityDefinition {
14
14
  moduleName: string;
15
15
  className: string;
16
16
  id: string;
17
- organizationId: string;
18
- createdByEmail: string;
19
- modifiedByEmail: string;
17
+ organizationId?: string;
20
18
  }
@@ -7,10 +7,10 @@ import * as AirweaveSDK from "../index";
7
7
  */
8
8
  export interface Sync {
9
9
  name: string;
10
- description?: string;
11
10
  sourceConnectionId: string;
12
- destinationConnectionId?: string;
13
11
  embeddingModelConnectionId?: string;
12
+ destinationConnectionIds: string[];
13
+ description?: string;
14
14
  cronSchedule?: string;
15
15
  nextScheduledRun?: Date;
16
16
  whiteLabelId?: string;
@@ -22,4 +22,6 @@ export interface SyncJob {
22
22
  startedAt?: Date;
23
23
  completedAt?: Date;
24
24
  failedAt?: Date;
25
+ /** Name of the sync, populated from join query */
26
+ syncName?: string;
25
27
  }
@@ -7,10 +7,10 @@ import * as AirweaveSDK from "../index";
7
7
  */
8
8
  export interface SyncWithSourceConnection {
9
9
  name: string;
10
- description?: string;
11
10
  sourceConnectionId: string;
12
- destinationConnectionId?: string;
13
11
  embeddingModelConnectionId?: string;
12
+ destinationConnectionIds: string[];
13
+ description?: string;
14
14
  cronSchedule?: string;
15
15
  nextScheduledRun?: Date;
16
16
  whiteLabelId?: string;
@@ -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);
@@ -1,2 +1,3 @@
1
+ export * as listAllJobs from "./listAllJobs";
1
2
  export * as listSyncJobs from "./listSyncJobs";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listSyncJobs = void 0;
39
+ exports.listSyncJobs = exports.listAllJobs = void 0;
40
+ exports.listAllJobs = __importStar(require("./listAllJobs"));
40
41
  exports.listSyncJobs = __importStar(require("./listSyncJobs"));
41
42
  __exportStar(require("./requests"), exports);
@@ -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 { SyncJob } from "../../../types/SyncJob";
8
+ export declare const Response: core.serialization.Schema<serializers.sync.listAllJobs.Response.Raw, AirweaveSDK.SyncJob[]>;
9
+ export declare namespace Response {
10
+ type Raw = SyncJob.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 SyncJob_1 = require("../../../types/SyncJob");
42
+ exports.Response = core.serialization.list(SyncJob_1.SyncJob);
@@ -9,10 +9,10 @@ export declare const SyncCreate: core.serialization.Schema<serializers.SyncCreat
9
9
  export declare namespace SyncCreate {
10
10
  interface Raw {
11
11
  name: string;
12
- description?: string | null;
13
12
  source_connection_id: string;
14
- destination_connection_id?: string | null;
15
13
  embedding_model_connection_id?: string | null;
14
+ destination_connection_ids: string[];
15
+ description?: string | null;
16
16
  cron_schedule?: string | null;
17
17
  next_scheduled_run?: string | null;
18
18
  white_label_id?: string | null;
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../../core"));
41
41
  const SyncStatus_1 = require("../../../../types/SyncStatus");
42
42
  exports.SyncCreate = core.serialization.object({
43
43
  name: core.serialization.string(),
44
- description: core.serialization.string().optional(),
45
44
  sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
46
- destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
47
45
  embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
46
+ destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
47
+ description: core.serialization.string().optional(),
48
48
  cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
49
49
  nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
50
50
  whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
@@ -9,10 +9,6 @@ export declare const SyncUpdate: core.serialization.Schema<serializers.SyncUpdat
9
9
  export declare namespace SyncUpdate {
10
10
  interface Raw {
11
11
  name?: string | null;
12
- schedule?: string | null;
13
- source_connection_id?: string | null;
14
- destination_connection_id?: string | null;
15
- embedding_model_connection_id?: string | null;
16
12
  cron_schedule?: string | null;
17
13
  next_scheduled_run?: string | null;
18
14
  white_label_id?: string | null;
@@ -41,10 +41,6 @@ const core = __importStar(require("../../../../../core"));
41
41
  const SyncStatus_1 = require("../../../../types/SyncStatus");
42
42
  exports.SyncUpdate = core.serialization.object({
43
43
  name: core.serialization.string().optional(),
44
- schedule: core.serialization.string().optional(),
45
- sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string().optional()),
46
- destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
47
- embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
48
44
  cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
49
45
  nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
50
46
  whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
@@ -15,8 +15,8 @@ export declare namespace Connection {
15
15
  status: ConnectionStatus.Raw;
16
16
  short_name: string;
17
17
  id: string;
18
- organization_id: string;
19
- created_by_email: string;
20
- modified_by_email: string;
18
+ organization_id?: string | null;
19
+ created_by_email?: string | null;
20
+ modified_by_email?: string | null;
21
21
  }
22
22
  }
@@ -47,7 +47,7 @@ exports.Connection = core.serialization.object({
47
47
  status: ConnectionStatus_1.ConnectionStatus,
48
48
  shortName: core.serialization.property("short_name", core.serialization.string()),
49
49
  id: core.serialization.string(),
50
- organizationId: core.serialization.property("organization_id", core.serialization.string()),
51
- createdByEmail: core.serialization.property("created_by_email", core.serialization.string()),
52
- modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string()),
50
+ organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
51
+ createdByEmail: core.serialization.property("created_by_email", core.serialization.string().optional()),
52
+ modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string().optional()),
53
53
  });
@@ -17,8 +17,6 @@ export declare namespace EntityDefinition {
17
17
  module_name: string;
18
18
  class_name: string;
19
19
  id: string;
20
- organization_id: string;
21
- created_by_email: string;
22
- modified_by_email: string;
20
+ organization_id?: string | null;
23
21
  }
24
22
  }
@@ -49,7 +49,5 @@ exports.EntityDefinition = core.serialization.object({
49
49
  moduleName: core.serialization.property("module_name", core.serialization.string()),
50
50
  className: core.serialization.property("class_name", core.serialization.string()),
51
51
  id: core.serialization.string(),
52
- organizationId: core.serialization.property("organization_id", core.serialization.string()),
53
- createdByEmail: core.serialization.property("created_by_email", core.serialization.string()),
54
- modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string()),
52
+ organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
55
53
  });
@@ -9,10 +9,10 @@ export declare const Sync: core.serialization.ObjectSchema<serializers.Sync.Raw,
9
9
  export declare namespace Sync {
10
10
  interface Raw {
11
11
  name: string;
12
- description?: string | null;
13
12
  source_connection_id: string;
14
- destination_connection_id?: string | null;
15
13
  embedding_model_connection_id?: string | null;
14
+ destination_connection_ids: string[];
15
+ description?: string | null;
16
16
  cron_schedule?: string | null;
17
17
  next_scheduled_run?: string | null;
18
18
  white_label_id?: string | null;
@@ -41,10 +41,10 @@ const core = __importStar(require("../../core"));
41
41
  const SyncStatus_1 = require("./SyncStatus");
42
42
  exports.Sync = core.serialization.object({
43
43
  name: core.serialization.string(),
44
- description: core.serialization.string().optional(),
45
44
  sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
46
- destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
47
45
  embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
46
+ destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
47
+ description: core.serialization.string().optional(),
48
48
  cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
49
49
  nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
50
50
  whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
@@ -24,5 +24,6 @@ export declare namespace SyncJob {
24
24
  started_at?: string | null;
25
25
  completed_at?: string | null;
26
26
  failed_at?: string | null;
27
+ sync_name?: string | null;
27
28
  }
28
29
  }
@@ -56,4 +56,5 @@ exports.SyncJob = core.serialization.object({
56
56
  startedAt: core.serialization.property("started_at", core.serialization.date().optional()),
57
57
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
58
58
  failedAt: core.serialization.property("failed_at", core.serialization.date().optional()),
59
+ syncName: core.serialization.property("sync_name", core.serialization.string().optional()),
59
60
  });
@@ -10,10 +10,10 @@ export declare const SyncWithSourceConnection: core.serialization.ObjectSchema<s
10
10
  export declare namespace SyncWithSourceConnection {
11
11
  interface Raw {
12
12
  name: string;
13
- description?: string | null;
14
13
  source_connection_id: string;
15
- destination_connection_id?: string | null;
16
14
  embedding_model_connection_id?: string | null;
15
+ destination_connection_ids: string[];
16
+ description?: string | null;
17
17
  cron_schedule?: string | null;
18
18
  next_scheduled_run?: string | null;
19
19
  white_label_id?: string | null;
@@ -42,10 +42,10 @@ const SyncStatus_1 = require("./SyncStatus");
42
42
  const Connection_1 = require("./Connection");
43
43
  exports.SyncWithSourceConnection = core.serialization.object({
44
44
  name: core.serialization.string(),
45
- description: core.serialization.string().optional(),
46
45
  sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
47
- destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
48
46
  embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
47
+ destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
48
+ description: core.serialization.string().optional(),
49
49
  cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
50
50
  nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
51
51
  whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.26";
1
+ export declare const SDK_VERSION = "0.1.28";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.26";
4
+ exports.SDK_VERSION = "0.1.28";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airweave-ai/typescript-sdk",
6
6
  "main": "./index.js",