polytomic 1.8.4 → 1.9.1

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 (147) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +9 -9
  3. package/api/errors/index.d.ts +1 -1
  4. package/api/errors/index.js +1 -1
  5. package/api/resources/bulkSync/client/Client.d.ts +6 -4
  6. package/api/resources/bulkSync/client/Client.js +24 -14
  7. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
  8. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
  9. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
  10. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
  11. package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
  12. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
  13. package/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
  14. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
  15. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
  16. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  17. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
  18. package/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
  19. package/api/resources/connections/client/Client.js +8 -8
  20. package/api/resources/events/client/Client.js +2 -2
  21. package/api/resources/identity/client/Client.js +1 -1
  22. package/api/resources/index.d.ts +2 -2
  23. package/api/resources/index.js +3 -3
  24. package/api/resources/jobs/client/Client.js +1 -1
  25. package/api/resources/modelSync/client/Client.d.ts +21 -2
  26. package/api/resources/modelSync/client/Client.js +106 -15
  27. package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
  28. package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
  29. package/api/resources/modelSync/client/requests/index.d.ts +1 -0
  30. package/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
  31. package/api/resources/modelSync/resources/executions/client/Client.js +8 -8
  32. package/api/resources/models/client/Client.d.ts +15 -0
  33. package/api/resources/models/client/Client.js +87 -8
  34. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
  35. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
  36. package/api/resources/models/client/requests/index.d.ts +1 -0
  37. package/api/resources/organization/client/Client.js +5 -5
  38. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  39. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  40. package/api/resources/queryRunner/client/Client.js +2 -2
  41. package/api/resources/schemas/client/Client.js +4 -4
  42. package/api/resources/users/client/Client.js +6 -6
  43. package/api/resources/webhooks/client/Client.js +5 -5
  44. package/api/types/BulkSyncDest.d.ts +1 -1
  45. package/api/types/BulkSyncResponse.d.ts +4 -0
  46. package/api/types/BulkSyncSchemaExecution.d.ts +1 -0
  47. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
  48. package/api/types/SchemaField.d.ts +3 -1
  49. package/api/types/SupportedBulkMode.d.ts +12 -0
  50. package/api/types/SupportedBulkMode.js +5 -0
  51. package/api/types/SupportedMode.d.ts +6 -5
  52. package/api/types/SyncMode.d.ts +17 -0
  53. package/api/types/SyncMode.js +16 -0
  54. package/api/types/TargetObject.d.ts +10 -0
  55. package/api/types/TargetObject.js +5 -0
  56. package/api/types/TypesType.d.ts +4 -0
  57. package/api/types/TypesType.js +5 -0
  58. package/api/types/UtilFieldType.d.ts +13 -0
  59. package/api/types/UtilFieldType.js +15 -0
  60. package/api/types/V2ExecutionLogType.d.ts +12 -0
  61. package/api/types/V2ExecutionLogType.js +14 -0
  62. package/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
  63. package/api/types/V4BulkSyncExecutionLogs.js +5 -0
  64. package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
  65. package/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
  66. package/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
  67. package/api/types/V4ExportSyncLogsEnvelope.js +5 -0
  68. package/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
  69. package/api/types/V4ExportSyncLogsResponse.js +5 -0
  70. package/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
  71. package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
  72. package/api/types/index.d.ts +12 -1
  73. package/api/types/index.js +12 -1
  74. package/dist/Client.d.ts +3 -3
  75. package/dist/Client.js +9 -9
  76. package/dist/api/errors/index.d.ts +1 -1
  77. package/dist/api/errors/index.js +1 -1
  78. package/dist/api/resources/bulkSync/client/Client.d.ts +6 -4
  79. package/dist/api/resources/bulkSync/client/Client.js +24 -14
  80. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
  81. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
  82. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
  83. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
  84. package/dist/api/resources/bulkSync/client/requests/index.d.ts +1 -0
  85. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
  86. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
  87. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
  88. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
  89. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  90. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
  91. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
  92. package/dist/api/resources/connections/client/Client.js +8 -8
  93. package/dist/api/resources/events/client/Client.js +2 -2
  94. package/dist/api/resources/identity/client/Client.js +1 -1
  95. package/dist/api/resources/index.d.ts +2 -2
  96. package/dist/api/resources/index.js +3 -3
  97. package/dist/api/resources/jobs/client/Client.js +1 -1
  98. package/dist/api/resources/modelSync/client/Client.d.ts +21 -2
  99. package/dist/api/resources/modelSync/client/Client.js +106 -15
  100. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
  101. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
  102. package/dist/api/resources/modelSync/client/requests/index.d.ts +1 -0
  103. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
  104. package/dist/api/resources/modelSync/resources/executions/client/Client.js +8 -8
  105. package/dist/api/resources/models/client/Client.d.ts +15 -0
  106. package/dist/api/resources/models/client/Client.js +87 -8
  107. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
  108. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
  109. package/dist/api/resources/models/client/requests/index.d.ts +1 -0
  110. package/dist/api/resources/organization/client/Client.js +5 -5
  111. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  112. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  113. package/dist/api/resources/queryRunner/client/Client.js +2 -2
  114. package/dist/api/resources/schemas/client/Client.js +4 -4
  115. package/dist/api/resources/users/client/Client.js +6 -6
  116. package/dist/api/resources/webhooks/client/Client.js +5 -5
  117. package/dist/api/types/BulkSyncDest.d.ts +1 -1
  118. package/dist/api/types/BulkSyncResponse.d.ts +4 -0
  119. package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -0
  120. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
  121. package/dist/api/types/SchemaField.d.ts +3 -1
  122. package/dist/api/types/SupportedBulkMode.d.ts +12 -0
  123. package/dist/api/types/SupportedBulkMode.js +5 -0
  124. package/dist/api/types/SupportedMode.d.ts +6 -5
  125. package/dist/api/types/SyncMode.d.ts +17 -0
  126. package/dist/api/types/SyncMode.js +16 -0
  127. package/dist/api/types/TargetObject.d.ts +10 -0
  128. package/dist/api/types/TargetObject.js +5 -0
  129. package/dist/api/types/TypesType.d.ts +4 -0
  130. package/dist/api/types/TypesType.js +5 -0
  131. package/dist/api/types/UtilFieldType.d.ts +13 -0
  132. package/dist/api/types/UtilFieldType.js +15 -0
  133. package/dist/api/types/V2ExecutionLogType.d.ts +12 -0
  134. package/dist/api/types/V2ExecutionLogType.js +14 -0
  135. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
  136. package/dist/api/types/V4BulkSyncExecutionLogs.js +5 -0
  137. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
  138. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
  139. package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
  140. package/dist/api/types/V4ExportSyncLogsEnvelope.js +5 -0
  141. package/dist/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
  142. package/dist/api/types/V4ExportSyncLogsResponse.js +5 -0
  143. package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
  144. package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
  145. package/dist/api/types/index.d.ts +12 -1
  146. package/dist/api/types/index.js +12 -1
  147. package/package.json +1 -1
@@ -90,7 +90,7 @@ class Executions {
90
90
  : undefined,
91
91
  "X-Fern-Language": "JavaScript",
92
92
  "X-Fern-SDK-Name": "polytomic",
93
- "X-Fern-SDK-Version": "1.8.4",
93
+ "X-Fern-SDK-Version": "1.9.1",
94
94
  "X-Fern-Runtime": core.RUNTIME.type,
95
95
  "X-Fern-Runtime-Version": core.RUNTIME.version,
96
96
  },
@@ -154,7 +154,7 @@ class Executions {
154
154
  : undefined,
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "polytomic",
157
- "X-Fern-SDK-Version": "1.8.4",
157
+ "X-Fern-SDK-Version": "1.9.1",
158
158
  "X-Fern-Runtime": core.RUNTIME.type,
159
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
160
160
  },
@@ -218,7 +218,7 @@ class Executions {
218
218
  : undefined,
219
219
  "X-Fern-Language": "JavaScript",
220
220
  "X-Fern-SDK-Name": "polytomic",
221
- "X-Fern-SDK-Version": "1.8.4",
221
+ "X-Fern-SDK-Version": "1.9.1",
222
222
  "X-Fern-Runtime": core.RUNTIME.type,
223
223
  "X-Fern-Runtime-Version": core.RUNTIME.version,
224
224
  },
@@ -258,6 +258,147 @@ class Executions {
258
258
  }
259
259
  });
260
260
  }
261
+ /**
262
+ * @param {string} syncId
263
+ * @param {string} executionId
264
+ * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
265
+ *
266
+ * @throws {@link Polytomic.UnauthorizedError}
267
+ * @throws {@link Polytomic.NotFoundError}
268
+ *
269
+ * @example
270
+ * await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
271
+ */
272
+ getLogs(syncId, executionId, requestOptions) {
273
+ var _a;
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ const _response = yield core.fetcher({
276
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs`),
277
+ method: "GET",
278
+ headers: {
279
+ Authorization: yield this._getAuthorizationHeader(),
280
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
281
+ ? yield core.Supplier.get(this._options.version)
282
+ : undefined,
283
+ "X-Fern-Language": "JavaScript",
284
+ "X-Fern-SDK-Name": "polytomic",
285
+ "X-Fern-SDK-Version": "1.9.1",
286
+ "X-Fern-Runtime": core.RUNTIME.type,
287
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
288
+ },
289
+ contentType: "application/json",
290
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
291
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
292
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
293
+ });
294
+ if (_response.ok) {
295
+ return _response.body;
296
+ }
297
+ if (_response.error.reason === "status-code") {
298
+ switch (_response.error.statusCode) {
299
+ case 401:
300
+ throw new Polytomic.UnauthorizedError(_response.error.body);
301
+ case 404:
302
+ throw new Polytomic.NotFoundError(_response.error.body);
303
+ default:
304
+ throw new errors.PolytomicError({
305
+ statusCode: _response.error.statusCode,
306
+ body: _response.error.body,
307
+ });
308
+ }
309
+ }
310
+ switch (_response.error.reason) {
311
+ case "non-json":
312
+ throw new errors.PolytomicError({
313
+ statusCode: _response.error.statusCode,
314
+ body: _response.error.rawBody,
315
+ });
316
+ case "timeout":
317
+ throw new errors.PolytomicTimeoutError();
318
+ case "unknown":
319
+ throw new errors.PolytomicError({
320
+ message: _response.error.errorMessage,
321
+ });
322
+ }
323
+ });
324
+ }
325
+ /**
326
+ * @param {string} syncId
327
+ * @param {string} executionId
328
+ * @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
329
+ * @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
330
+ *
331
+ * @throws {@link Polytomic.BadRequestError}
332
+ * @throws {@link Polytomic.UnauthorizedError}
333
+ * @throws {@link Polytomic.NotFoundError}
334
+ * @throws {@link Polytomic.InternalServerError}
335
+ *
336
+ * @example
337
+ * await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
338
+ */
339
+ exportLogs(syncId, executionId, request = {}, requestOptions) {
340
+ var _a;
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ const { notify } = request;
343
+ const _queryParams = {};
344
+ if (notify != null) {
345
+ _queryParams["notify"] = notify.toString();
346
+ }
347
+ const _response = yield core.fetcher({
348
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs/export`),
349
+ method: "POST",
350
+ headers: {
351
+ Authorization: yield this._getAuthorizationHeader(),
352
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
353
+ ? yield core.Supplier.get(this._options.version)
354
+ : undefined,
355
+ "X-Fern-Language": "JavaScript",
356
+ "X-Fern-SDK-Name": "polytomic",
357
+ "X-Fern-SDK-Version": "1.9.1",
358
+ "X-Fern-Runtime": core.RUNTIME.type,
359
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
360
+ },
361
+ contentType: "application/json",
362
+ queryParameters: _queryParams,
363
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
364
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
365
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
366
+ });
367
+ if (_response.ok) {
368
+ return _response.body;
369
+ }
370
+ if (_response.error.reason === "status-code") {
371
+ switch (_response.error.statusCode) {
372
+ case 400:
373
+ throw new Polytomic.BadRequestError(_response.error.body);
374
+ case 401:
375
+ throw new Polytomic.UnauthorizedError(_response.error.body);
376
+ case 404:
377
+ throw new Polytomic.NotFoundError(_response.error.body);
378
+ case 500:
379
+ throw new Polytomic.InternalServerError(_response.error.body);
380
+ default:
381
+ throw new errors.PolytomicError({
382
+ statusCode: _response.error.statusCode,
383
+ body: _response.error.body,
384
+ });
385
+ }
386
+ }
387
+ switch (_response.error.reason) {
388
+ case "non-json":
389
+ throw new errors.PolytomicError({
390
+ statusCode: _response.error.statusCode,
391
+ body: _response.error.rawBody,
392
+ });
393
+ case "timeout":
394
+ throw new errors.PolytomicTimeoutError();
395
+ case "unknown":
396
+ throw new errors.PolytomicError({
397
+ message: _response.error.errorMessage,
398
+ });
399
+ }
400
+ });
401
+ }
261
402
  _getAuthorizationHeader() {
262
403
  return __awaiter(this, void 0, void 0, function* () {
263
404
  return `Bearer ${yield core.Supplier.get(this._options.token)}`;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ExecutionsExportLogsRequest {
9
+ /**
10
+ * Send a notification to the user when the logs are ready for download.
11
+ */
12
+ notify?: boolean;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { type ExecutionsListStatusRequest } from "./ExecutionsListStatusRequest";
2
+ export { type ExecutionsExportLogsRequest } from "./ExecutionsExportLogsRequest";
@@ -41,6 +41,7 @@ export declare class Schemas {
41
41
  * @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
42
42
  * @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
43
43
  *
44
+ * @throws {@link Polytomic.BadRequestError}
44
45
  * @throws {@link Polytomic.UnauthorizedError}
45
46
  * @throws {@link Polytomic.ForbiddenError}
46
47
  * @throws {@link Polytomic.NotFoundError}
@@ -77,7 +77,7 @@ class Schemas {
77
77
  : undefined,
78
78
  "X-Fern-Language": "JavaScript",
79
79
  "X-Fern-SDK-Name": "polytomic",
80
- "X-Fern-SDK-Version": "1.8.4",
80
+ "X-Fern-SDK-Version": "1.9.1",
81
81
  "X-Fern-Runtime": core.RUNTIME.type,
82
82
  "X-Fern-Runtime-Version": core.RUNTIME.version,
83
83
  },
@@ -123,6 +123,7 @@ class Schemas {
123
123
  * @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
124
124
  * @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
125
125
  *
126
+ * @throws {@link Polytomic.BadRequestError}
126
127
  * @throws {@link Polytomic.UnauthorizedError}
127
128
  * @throws {@link Polytomic.ForbiddenError}
128
129
  * @throws {@link Polytomic.NotFoundError}
@@ -144,7 +145,7 @@ class Schemas {
144
145
  : undefined,
145
146
  "X-Fern-Language": "JavaScript",
146
147
  "X-Fern-SDK-Name": "polytomic",
147
- "X-Fern-SDK-Version": "1.8.4",
148
+ "X-Fern-SDK-Version": "1.9.1",
148
149
  "X-Fern-Runtime": core.RUNTIME.type,
149
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
150
151
  },
@@ -159,6 +160,8 @@ class Schemas {
159
160
  }
160
161
  if (_response.error.reason === "status-code") {
161
162
  switch (_response.error.statusCode) {
163
+ case 400:
164
+ throw new Polytomic.BadRequestError(_response.error.body);
162
165
  case 401:
163
166
  throw new Polytomic.UnauthorizedError(_response.error.body);
164
167
  case 403:
@@ -213,7 +216,7 @@ class Schemas {
213
216
  : undefined,
214
217
  "X-Fern-Language": "JavaScript",
215
218
  "X-Fern-SDK-Name": "polytomic",
216
- "X-Fern-SDK-Version": "1.8.4",
219
+ "X-Fern-SDK-Version": "1.9.1",
217
220
  "X-Fern-Runtime": core.RUNTIME.type,
218
221
  "X-Fern-Runtime-Version": core.RUNTIME.version,
219
222
  },
@@ -280,7 +283,7 @@ class Schemas {
280
283
  : undefined,
281
284
  "X-Fern-Language": "JavaScript",
282
285
  "X-Fern-SDK-Name": "polytomic",
283
- "X-Fern-SDK-Version": "1.8.4",
286
+ "X-Fern-SDK-Version": "1.9.1",
284
287
  "X-Fern-Runtime": core.RUNTIME.type,
285
288
  "X-Fern-Runtime-Version": core.RUNTIME.version,
286
289
  },
@@ -70,7 +70,7 @@ class Connections {
70
70
  : undefined,
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "polytomic",
73
- "X-Fern-SDK-Version": "1.8.4",
73
+ "X-Fern-SDK-Version": "1.9.1",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -132,7 +132,7 @@ class Connections {
132
132
  : undefined,
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "polytomic",
135
- "X-Fern-SDK-Version": "1.8.4",
135
+ "X-Fern-SDK-Version": "1.9.1",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -208,7 +208,7 @@ class Connections {
208
208
  : undefined,
209
209
  "X-Fern-Language": "JavaScript",
210
210
  "X-Fern-SDK-Name": "polytomic",
211
- "X-Fern-SDK-Version": "1.8.4",
211
+ "X-Fern-SDK-Version": "1.9.1",
212
212
  "X-Fern-Runtime": core.RUNTIME.type,
213
213
  "X-Fern-Runtime-Version": core.RUNTIME.version,
214
214
  },
@@ -283,7 +283,7 @@ class Connections {
283
283
  : undefined,
284
284
  "X-Fern-Language": "JavaScript",
285
285
  "X-Fern-SDK-Name": "polytomic",
286
- "X-Fern-SDK-Version": "1.8.4",
286
+ "X-Fern-SDK-Version": "1.9.1",
287
287
  "X-Fern-Runtime": core.RUNTIME.type,
288
288
  "X-Fern-Runtime-Version": core.RUNTIME.version,
289
289
  },
@@ -352,7 +352,7 @@ class Connections {
352
352
  : undefined,
353
353
  "X-Fern-Language": "JavaScript",
354
354
  "X-Fern-SDK-Name": "polytomic",
355
- "X-Fern-SDK-Version": "1.8.4",
355
+ "X-Fern-SDK-Version": "1.9.1",
356
356
  "X-Fern-Runtime": core.RUNTIME.type,
357
357
  "X-Fern-Runtime-Version": core.RUNTIME.version,
358
358
  },
@@ -431,7 +431,7 @@ class Connections {
431
431
  : undefined,
432
432
  "X-Fern-Language": "JavaScript",
433
433
  "X-Fern-SDK-Name": "polytomic",
434
- "X-Fern-SDK-Version": "1.8.4",
434
+ "X-Fern-SDK-Version": "1.9.1",
435
435
  "X-Fern-Runtime": core.RUNTIME.type,
436
436
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
437
  },
@@ -514,7 +514,7 @@ class Connections {
514
514
  : undefined,
515
515
  "X-Fern-Language": "JavaScript",
516
516
  "X-Fern-SDK-Name": "polytomic",
517
- "X-Fern-SDK-Version": "1.8.4",
517
+ "X-Fern-SDK-Version": "1.9.1",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -585,7 +585,7 @@ class Connections {
585
585
  : undefined,
586
586
  "X-Fern-Language": "JavaScript",
587
587
  "X-Fern-SDK-Name": "polytomic",
588
- "X-Fern-SDK-Version": "1.8.4",
588
+ "X-Fern-SDK-Version": "1.9.1",
589
589
  "X-Fern-Runtime": core.RUNTIME.type,
590
590
  "X-Fern-Runtime-Version": core.RUNTIME.version,
591
591
  },
@@ -93,7 +93,7 @@ class Events {
93
93
  : undefined,
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "polytomic",
96
- "X-Fern-SDK-Version": "1.8.4",
96
+ "X-Fern-SDK-Version": "1.9.1",
97
97
  "X-Fern-Runtime": core.RUNTIME.type,
98
98
  "X-Fern-Runtime-Version": core.RUNTIME.version,
99
99
  },
@@ -157,7 +157,7 @@ class Events {
157
157
  : undefined,
158
158
  "X-Fern-Language": "JavaScript",
159
159
  "X-Fern-SDK-Name": "polytomic",
160
- "X-Fern-SDK-Version": "1.8.4",
160
+ "X-Fern-SDK-Version": "1.9.1",
161
161
  "X-Fern-Runtime": core.RUNTIME.type,
162
162
  "X-Fern-Runtime-Version": core.RUNTIME.version,
163
163
  },
@@ -70,7 +70,7 @@ class Identity {
70
70
  : undefined,
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "polytomic",
73
- "X-Fern-SDK-Version": "1.8.4",
73
+ "X-Fern-SDK-Version": "1.9.1",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -2,9 +2,9 @@ export * as bulkSync from "./bulkSync";
2
2
  export * from "./bulkSync/types";
3
3
  export * as connections from "./connections";
4
4
  export * as queryRunner from "./queryRunner";
5
+ export * as models from "./models";
5
6
  export * as modelSync from "./modelSync";
6
7
  export * as schemas from "./schemas";
7
- export * as models from "./models";
8
8
  export * as events from "./events";
9
9
  export * as jobs from "./jobs";
10
10
  export * as identity from "./identity";
@@ -15,8 +15,8 @@ export * as webhooks from "./webhooks";
15
15
  export * from "./bulkSync/client/requests";
16
16
  export * from "./connections/client/requests";
17
17
  export * from "./queryRunner/client/requests";
18
- export * from "./modelSync/client/requests";
19
18
  export * from "./models/client/requests";
19
+ export * from "./modelSync/client/requests";
20
20
  export * from "./events/client/requests";
21
21
  export * from "./organization/client/requests";
22
22
  export * from "./users/client/requests";
@@ -26,14 +26,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.models = exports.schemas = exports.modelSync = exports.queryRunner = exports.connections = exports.bulkSync = void 0;
29
+ exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.schemas = exports.modelSync = exports.models = exports.queryRunner = exports.connections = exports.bulkSync = void 0;
30
30
  exports.bulkSync = __importStar(require("./bulkSync"));
31
31
  __exportStar(require("./bulkSync/types"), exports);
32
32
  exports.connections = __importStar(require("./connections"));
33
33
  exports.queryRunner = __importStar(require("./queryRunner"));
34
+ exports.models = __importStar(require("./models"));
34
35
  exports.modelSync = __importStar(require("./modelSync"));
35
36
  exports.schemas = __importStar(require("./schemas"));
36
- exports.models = __importStar(require("./models"));
37
37
  exports.events = __importStar(require("./events"));
38
38
  exports.jobs = __importStar(require("./jobs"));
39
39
  exports.identity = __importStar(require("./identity"));
@@ -44,8 +44,8 @@ exports.webhooks = __importStar(require("./webhooks"));
44
44
  __exportStar(require("./bulkSync/client/requests"), exports);
45
45
  __exportStar(require("./connections/client/requests"), exports);
46
46
  __exportStar(require("./queryRunner/client/requests"), exports);
47
- __exportStar(require("./modelSync/client/requests"), exports);
48
47
  __exportStar(require("./models/client/requests"), exports);
48
+ __exportStar(require("./modelSync/client/requests"), exports);
49
49
  __exportStar(require("./events/client/requests"), exports);
50
50
  __exportStar(require("./organization/client/requests"), exports);
51
51
  __exportStar(require("./users/client/requests"), exports);
@@ -74,7 +74,7 @@ class Jobs {
74
74
  : undefined,
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "polytomic",
77
- "X-Fern-SDK-Version": "1.8.4",
77
+ "X-Fern-SDK-Version": "1.9.1",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -87,16 +87,35 @@ export declare class ModelSync {
87
87
  */
88
88
  getTargetFields(id: string, request: Polytomic.ModelSyncGetTargetFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
89
89
  /**
90
+ * @param {string} id
91
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Polytomic.BadRequestError}
94
+ * @throws {@link Polytomic.UnauthorizedError}
95
+ * @throws {@link Polytomic.ForbiddenError}
96
+ * @throws {@link Polytomic.NotFoundError}
97
+ * @throws {@link Polytomic.InternalServerError}
98
+ *
99
+ * @example
100
+ * await client.modelSync.getTargetObjects("248df4b7-aa70-47b8-a036-33ac447e668d")
101
+ */
102
+ getTargetObjects(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.V4TargetObjectsResponseEnvelope>;
103
+ /**
104
+ * @param {Polytomic.ModelSyncListRequest} request
90
105
  * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
91
106
  *
107
+ * @throws {@link Polytomic.BadRequestError}
92
108
  * @throws {@link Polytomic.UnauthorizedError}
93
109
  * @throws {@link Polytomic.NotFoundError}
94
110
  * @throws {@link Polytomic.InternalServerError}
95
111
  *
96
112
  * @example
97
- * await client.modelSync.list()
113
+ * await client.modelSync.list({
114
+ * active: true,
115
+ * target_connection_id: "0b155265-c537-44c9-9359-a3ceb468a4da"
116
+ * })
98
117
  */
99
- list(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
118
+ list(request?: Polytomic.ModelSyncListRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
100
119
  /**
101
120
  * @param {Polytomic.CreateModelSyncRequest} request
102
121
  * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.