polytomic 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/api/resources/bulkSync/client/Client.js +10 -10
  2. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  3. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  4. package/api/resources/connections/client/Client.js +8 -8
  5. package/api/resources/events/client/Client.js +2 -2
  6. package/api/resources/identity/client/Client.js +1 -1
  7. package/api/resources/jobs/client/Client.js +1 -1
  8. package/api/resources/modelSync/client/Client.js +13 -13
  9. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -0
  10. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -0
  11. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  12. package/api/resources/models/client/Client.d.ts +15 -4
  13. package/api/resources/models/client/Client.js +93 -11
  14. package/api/resources/models/client/requests/ModelsGetRequest.d.ts +10 -0
  15. package/api/resources/models/client/requests/ModelsGetRequest.js +5 -0
  16. package/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +10 -0
  17. package/api/resources/models/client/requests/ModelsRemoveRequest.js +5 -0
  18. package/api/resources/models/client/requests/ModelsSampleRequest.d.ts +10 -0
  19. package/api/resources/models/client/requests/ModelsSampleRequest.js +5 -0
  20. package/api/resources/models/client/requests/index.d.ts +3 -0
  21. package/api/resources/organization/client/Client.js +5 -5
  22. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  23. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  24. package/api/resources/schemas/client/Client.js +4 -4
  25. package/api/resources/users/client/Client.js +6 -6
  26. package/api/resources/webhooks/client/Client.js +5 -5
  27. package/api/types/Filter.d.ts +9 -3
  28. package/api/types/FilterFieldReferenceType.d.ts +8 -0
  29. package/api/types/FilterFieldReferenceType.js +10 -0
  30. package/api/types/FilterFunction.d.ts +31 -0
  31. package/api/types/FilterFunction.js +33 -0
  32. package/api/types/Identity.d.ts +1 -1
  33. package/api/types/ModelField.d.ts +1 -0
  34. package/api/types/ModelSample.d.ts +8 -0
  35. package/api/types/ModelSample.js +5 -0
  36. package/api/types/ModelSampleResponseEnvelope.d.ts +8 -0
  37. package/api/types/ModelSampleResponseEnvelope.js +5 -0
  38. package/api/types/Override.d.ts +7 -1
  39. package/api/types/Schedule.d.ts +1 -1
  40. package/api/types/SchemaIdentityFunction.d.ts +9 -0
  41. package/api/types/SchemaIdentityFunction.js +11 -0
  42. package/api/types/V2SampleRecord.d.ts +7 -0
  43. package/api/types/V2SampleRecord.js +5 -0
  44. package/api/types/index.d.ts +6 -0
  45. package/api/types/index.js +6 -0
  46. package/dist/api/resources/bulkSync/client/Client.js +10 -10
  47. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  48. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  49. package/dist/api/resources/connections/client/Client.js +8 -8
  50. package/dist/api/resources/events/client/Client.js +2 -2
  51. package/dist/api/resources/identity/client/Client.js +1 -1
  52. package/dist/api/resources/jobs/client/Client.js +1 -1
  53. package/dist/api/resources/modelSync/client/Client.js +13 -13
  54. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -0
  55. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -0
  56. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  57. package/dist/api/resources/models/client/Client.d.ts +15 -4
  58. package/dist/api/resources/models/client/Client.js +93 -11
  59. package/dist/api/resources/models/client/requests/ModelsGetRequest.d.ts +10 -0
  60. package/dist/api/resources/models/client/requests/ModelsGetRequest.js +5 -0
  61. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +10 -0
  62. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.js +5 -0
  63. package/dist/api/resources/models/client/requests/ModelsSampleRequest.d.ts +10 -0
  64. package/dist/api/resources/models/client/requests/ModelsSampleRequest.js +5 -0
  65. package/dist/api/resources/models/client/requests/index.d.ts +3 -0
  66. package/dist/api/resources/organization/client/Client.js +5 -5
  67. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  68. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  69. package/dist/api/resources/schemas/client/Client.js +4 -4
  70. package/dist/api/resources/users/client/Client.js +6 -6
  71. package/dist/api/resources/webhooks/client/Client.js +5 -5
  72. package/dist/api/types/Filter.d.ts +9 -3
  73. package/dist/api/types/FilterFieldReferenceType.d.ts +8 -0
  74. package/dist/api/types/FilterFieldReferenceType.js +10 -0
  75. package/dist/api/types/FilterFunction.d.ts +31 -0
  76. package/dist/api/types/FilterFunction.js +33 -0
  77. package/dist/api/types/Identity.d.ts +1 -1
  78. package/dist/api/types/ModelField.d.ts +1 -0
  79. package/dist/api/types/ModelSample.d.ts +8 -0
  80. package/dist/api/types/ModelSample.js +5 -0
  81. package/dist/api/types/ModelSampleResponseEnvelope.d.ts +8 -0
  82. package/dist/api/types/ModelSampleResponseEnvelope.js +5 -0
  83. package/dist/api/types/Override.d.ts +7 -1
  84. package/dist/api/types/Schedule.d.ts +1 -1
  85. package/dist/api/types/SchemaIdentityFunction.d.ts +9 -0
  86. package/dist/api/types/SchemaIdentityFunction.js +11 -0
  87. package/dist/api/types/V2SampleRecord.d.ts +7 -0
  88. package/dist/api/types/V2SampleRecord.js +5 -0
  89. package/dist/api/types/index.d.ts +6 -0
  90. package/dist/api/types/index.js +6 -0
  91. package/package.json +1 -1
@@ -68,7 +68,7 @@ class BulkSync {
68
68
  "X-Polytomic-Version": "2024-02-08",
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "polytomic",
71
- "X-Fern-SDK-Version": "1.2.0",
71
+ "X-Fern-SDK-Version": "1.3.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -134,7 +134,7 @@ class BulkSync {
134
134
  "X-Polytomic-Version": "2024-02-08",
135
135
  "X-Fern-Language": "JavaScript",
136
136
  "X-Fern-SDK-Name": "polytomic",
137
- "X-Fern-SDK-Version": "1.2.0",
137
+ "X-Fern-SDK-Version": "1.3.0",
138
138
  "X-Fern-Runtime": core.RUNTIME.type,
139
139
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
140
  },
@@ -203,7 +203,7 @@ class BulkSync {
203
203
  "X-Polytomic-Version": "2024-02-08",
204
204
  "X-Fern-Language": "JavaScript",
205
205
  "X-Fern-SDK-Name": "polytomic",
206
- "X-Fern-SDK-Version": "1.2.0",
206
+ "X-Fern-SDK-Version": "1.3.0",
207
207
  "X-Fern-Runtime": core.RUNTIME.type,
208
208
  "X-Fern-Runtime-Version": core.RUNTIME.version,
209
209
  },
@@ -274,7 +274,7 @@ class BulkSync {
274
274
  "X-Polytomic-Version": "2024-02-08",
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "polytomic",
277
- "X-Fern-SDK-Version": "1.2.0",
277
+ "X-Fern-SDK-Version": "1.3.0",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -347,7 +347,7 @@ class BulkSync {
347
347
  "X-Polytomic-Version": "2024-02-08",
348
348
  "X-Fern-Language": "JavaScript",
349
349
  "X-Fern-SDK-Name": "polytomic",
350
- "X-Fern-SDK-Version": "1.2.0",
350
+ "X-Fern-SDK-Version": "1.3.0",
351
351
  "X-Fern-Runtime": core.RUNTIME.type,
352
352
  "X-Fern-Runtime-Version": core.RUNTIME.version,
353
353
  },
@@ -413,7 +413,7 @@ class BulkSync {
413
413
  "X-Polytomic-Version": "2024-02-08",
414
414
  "X-Fern-Language": "JavaScript",
415
415
  "X-Fern-SDK-Name": "polytomic",
416
- "X-Fern-SDK-Version": "1.2.0",
416
+ "X-Fern-SDK-Version": "1.3.0",
417
417
  "X-Fern-Runtime": core.RUNTIME.type,
418
418
  "X-Fern-Runtime-Version": core.RUNTIME.version,
419
419
  },
@@ -475,7 +475,7 @@ class BulkSync {
475
475
  "X-Polytomic-Version": "2024-02-08",
476
476
  "X-Fern-Language": "JavaScript",
477
477
  "X-Fern-SDK-Name": "polytomic",
478
- "X-Fern-SDK-Version": "1.2.0",
478
+ "X-Fern-SDK-Version": "1.3.0",
479
479
  "X-Fern-Runtime": core.RUNTIME.type,
480
480
  "X-Fern-Runtime-Version": core.RUNTIME.version,
481
481
  },
@@ -534,7 +534,7 @@ class BulkSync {
534
534
  "X-Polytomic-Version": "2024-02-08",
535
535
  "X-Fern-Language": "JavaScript",
536
536
  "X-Fern-SDK-Name": "polytomic",
537
- "X-Fern-SDK-Version": "1.2.0",
537
+ "X-Fern-SDK-Version": "1.3.0",
538
538
  "X-Fern-Runtime": core.RUNTIME.type,
539
539
  "X-Fern-Runtime-Version": core.RUNTIME.version,
540
540
  },
@@ -602,7 +602,7 @@ class BulkSync {
602
602
  "X-Polytomic-Version": "2024-02-08",
603
603
  "X-Fern-Language": "JavaScript",
604
604
  "X-Fern-SDK-Name": "polytomic",
605
- "X-Fern-SDK-Version": "1.2.0",
605
+ "X-Fern-SDK-Version": "1.3.0",
606
606
  "X-Fern-Runtime": core.RUNTIME.type,
607
607
  "X-Fern-Runtime-Version": core.RUNTIME.version,
608
608
  },
@@ -666,7 +666,7 @@ class BulkSync {
666
666
  "X-Polytomic-Version": "2024-02-08",
667
667
  "X-Fern-Language": "JavaScript",
668
668
  "X-Fern-SDK-Name": "polytomic",
669
- "X-Fern-SDK-Version": "1.2.0",
669
+ "X-Fern-SDK-Version": "1.3.0",
670
670
  "X-Fern-Runtime": core.RUNTIME.type,
671
671
  "X-Fern-Runtime-Version": core.RUNTIME.version,
672
672
  },
@@ -66,7 +66,7 @@ class Executions {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "1.2.0",
69
+ "X-Fern-SDK-Version": "1.3.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -123,7 +123,7 @@ class Executions {
123
123
  "X-Polytomic-Version": "2024-02-08",
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "polytomic",
126
- "X-Fern-SDK-Version": "1.2.0",
126
+ "X-Fern-SDK-Version": "1.3.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -71,7 +71,7 @@ class Schemas {
71
71
  "X-Polytomic-Version": "2024-02-08",
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "polytomic",
74
- "X-Fern-SDK-Version": "1.2.0",
74
+ "X-Fern-SDK-Version": "1.3.0",
75
75
  "X-Fern-Runtime": core.RUNTIME.type,
76
76
  "X-Fern-Runtime-Version": core.RUNTIME.version,
77
77
  },
@@ -131,7 +131,7 @@ class Schemas {
131
131
  "X-Polytomic-Version": "2024-02-08",
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "polytomic",
134
- "X-Fern-SDK-Version": "1.2.0",
134
+ "X-Fern-SDK-Version": "1.3.0",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -193,7 +193,7 @@ class Schemas {
193
193
  "X-Polytomic-Version": "2024-02-08",
194
194
  "X-Fern-Language": "JavaScript",
195
195
  "X-Fern-SDK-Name": "polytomic",
196
- "X-Fern-SDK-Version": "1.2.0",
196
+ "X-Fern-SDK-Version": "1.3.0",
197
197
  "X-Fern-Runtime": core.RUNTIME.type,
198
198
  "X-Fern-Runtime-Version": core.RUNTIME.version,
199
199
  },
@@ -252,7 +252,7 @@ class Schemas {
252
252
  "X-Polytomic-Version": "2024-02-08",
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "polytomic",
255
- "X-Fern-SDK-Version": "1.2.0",
255
+ "X-Fern-SDK-Version": "1.3.0",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -66,7 +66,7 @@ class Connections {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "1.2.0",
69
+ "X-Fern-SDK-Version": "1.3.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -123,7 +123,7 @@ class Connections {
123
123
  "X-Polytomic-Version": "2024-02-08",
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "polytomic",
126
- "X-Fern-SDK-Version": "1.2.0",
126
+ "X-Fern-SDK-Version": "1.3.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -186,7 +186,7 @@ class Connections {
186
186
  "X-Polytomic-Version": "2024-02-08",
187
187
  "X-Fern-Language": "JavaScript",
188
188
  "X-Fern-SDK-Name": "polytomic",
189
- "X-Fern-SDK-Version": "1.2.0",
189
+ "X-Fern-SDK-Version": "1.3.0",
190
190
  "X-Fern-Runtime": core.RUNTIME.type,
191
191
  "X-Fern-Runtime-Version": core.RUNTIME.version,
192
192
  },
@@ -255,7 +255,7 @@ class Connections {
255
255
  "X-Polytomic-Version": "2024-02-08",
256
256
  "X-Fern-Language": "JavaScript",
257
257
  "X-Fern-SDK-Name": "polytomic",
258
- "X-Fern-SDK-Version": "1.2.0",
258
+ "X-Fern-SDK-Version": "1.3.0",
259
259
  "X-Fern-Runtime": core.RUNTIME.type,
260
260
  "X-Fern-Runtime-Version": core.RUNTIME.version,
261
261
  },
@@ -318,7 +318,7 @@ class Connections {
318
318
  "X-Polytomic-Version": "2024-02-08",
319
319
  "X-Fern-Language": "JavaScript",
320
320
  "X-Fern-SDK-Name": "polytomic",
321
- "X-Fern-SDK-Version": "1.2.0",
321
+ "X-Fern-SDK-Version": "1.3.0",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -383,7 +383,7 @@ class Connections {
383
383
  "X-Polytomic-Version": "2024-02-08",
384
384
  "X-Fern-Language": "JavaScript",
385
385
  "X-Fern-SDK-Name": "polytomic",
386
- "X-Fern-SDK-Version": "1.2.0",
386
+ "X-Fern-SDK-Version": "1.3.0",
387
387
  "X-Fern-Runtime": core.RUNTIME.type,
388
388
  "X-Fern-Runtime-Version": core.RUNTIME.version,
389
389
  },
@@ -459,7 +459,7 @@ class Connections {
459
459
  "X-Polytomic-Version": "2024-02-08",
460
460
  "X-Fern-Language": "JavaScript",
461
461
  "X-Fern-SDK-Name": "polytomic",
462
- "X-Fern-SDK-Version": "1.2.0",
462
+ "X-Fern-SDK-Version": "1.3.0",
463
463
  "X-Fern-Runtime": core.RUNTIME.type,
464
464
  "X-Fern-Runtime-Version": core.RUNTIME.version,
465
465
  },
@@ -524,7 +524,7 @@ class Connections {
524
524
  "X-Polytomic-Version": "2024-02-08",
525
525
  "X-Fern-Language": "JavaScript",
526
526
  "X-Fern-SDK-Name": "polytomic",
527
- "X-Fern-SDK-Version": "1.2.0",
527
+ "X-Fern-SDK-Version": "1.3.0",
528
528
  "X-Fern-Runtime": core.RUNTIME.type,
529
529
  "X-Fern-Runtime-Version": core.RUNTIME.version,
530
530
  },
@@ -88,7 +88,7 @@ class Events {
88
88
  "X-Polytomic-Version": "2024-02-08",
89
89
  "X-Fern-Language": "JavaScript",
90
90
  "X-Fern-SDK-Name": "polytomic",
91
- "X-Fern-SDK-Version": "1.2.0",
91
+ "X-Fern-SDK-Version": "1.3.0",
92
92
  "X-Fern-Runtime": core.RUNTIME.type,
93
93
  "X-Fern-Runtime-Version": core.RUNTIME.version,
94
94
  },
@@ -147,7 +147,7 @@ class Events {
147
147
  "X-Polytomic-Version": "2024-02-08",
148
148
  "X-Fern-Language": "JavaScript",
149
149
  "X-Fern-SDK-Name": "polytomic",
150
- "X-Fern-SDK-Version": "1.2.0",
150
+ "X-Fern-SDK-Version": "1.3.0",
151
151
  "X-Fern-Runtime": core.RUNTIME.type,
152
152
  "X-Fern-Runtime-Version": core.RUNTIME.version,
153
153
  },
@@ -66,7 +66,7 @@ class Identity {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "1.2.0",
69
+ "X-Fern-SDK-Version": "1.3.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -68,7 +68,7 @@ class Jobs {
68
68
  "X-Polytomic-Version": "2024-02-08",
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "polytomic",
71
- "X-Fern-SDK-Version": "1.2.0",
71
+ "X-Fern-SDK-Version": "1.3.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -75,7 +75,7 @@ class ModelSync {
75
75
  "X-Polytomic-Version": "2024-02-08",
76
76
  "X-Fern-Language": "JavaScript",
77
77
  "X-Fern-SDK-Name": "polytomic",
78
- "X-Fern-SDK-Version": "1.2.0",
78
+ "X-Fern-SDK-Version": "1.3.0",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -142,7 +142,7 @@ class ModelSync {
142
142
  "X-Polytomic-Version": "2024-02-08",
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "polytomic",
145
- "X-Fern-SDK-Version": "1.2.0",
145
+ "X-Fern-SDK-Version": "1.3.0",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -216,7 +216,7 @@ class ModelSync {
216
216
  "X-Polytomic-Version": "2024-02-08",
217
217
  "X-Fern-Language": "JavaScript",
218
218
  "X-Fern-SDK-Name": "polytomic",
219
- "X-Fern-SDK-Version": "1.2.0",
219
+ "X-Fern-SDK-Version": "1.3.0",
220
220
  "X-Fern-Runtime": core.RUNTIME.type,
221
221
  "X-Fern-Runtime-Version": core.RUNTIME.version,
222
222
  },
@@ -291,7 +291,7 @@ class ModelSync {
291
291
  "X-Polytomic-Version": "2024-02-08",
292
292
  "X-Fern-Language": "JavaScript",
293
293
  "X-Fern-SDK-Name": "polytomic",
294
- "X-Fern-SDK-Version": "1.2.0",
294
+ "X-Fern-SDK-Version": "1.3.0",
295
295
  "X-Fern-Runtime": core.RUNTIME.type,
296
296
  "X-Fern-Runtime-Version": core.RUNTIME.version,
297
297
  },
@@ -354,7 +354,7 @@ class ModelSync {
354
354
  "X-Polytomic-Version": "2024-02-08",
355
355
  "X-Fern-Language": "JavaScript",
356
356
  "X-Fern-SDK-Name": "polytomic",
357
- "X-Fern-SDK-Version": "1.2.0",
357
+ "X-Fern-SDK-Version": "1.3.0",
358
358
  "X-Fern-Runtime": core.RUNTIME.type,
359
359
  "X-Fern-Runtime-Version": core.RUNTIME.version,
360
360
  },
@@ -424,7 +424,7 @@ class ModelSync {
424
424
  "X-Polytomic-Version": "2024-02-08",
425
425
  "X-Fern-Language": "JavaScript",
426
426
  "X-Fern-SDK-Name": "polytomic",
427
- "X-Fern-SDK-Version": "1.2.0",
427
+ "X-Fern-SDK-Version": "1.3.0",
428
428
  "X-Fern-Runtime": core.RUNTIME.type,
429
429
  "X-Fern-Runtime-Version": core.RUNTIME.version,
430
430
  },
@@ -488,7 +488,7 @@ class ModelSync {
488
488
  "X-Polytomic-Version": "2024-02-08",
489
489
  "X-Fern-Language": "JavaScript",
490
490
  "X-Fern-SDK-Name": "polytomic",
491
- "X-Fern-SDK-Version": "1.2.0",
491
+ "X-Fern-SDK-Version": "1.3.0",
492
492
  "X-Fern-Runtime": core.RUNTIME.type,
493
493
  "X-Fern-Runtime-Version": core.RUNTIME.version,
494
494
  },
@@ -546,7 +546,7 @@ class ModelSync {
546
546
  "X-Polytomic-Version": "2024-02-08",
547
547
  "X-Fern-Language": "JavaScript",
548
548
  "X-Fern-SDK-Name": "polytomic",
549
- "X-Fern-SDK-Version": "1.2.0",
549
+ "X-Fern-SDK-Version": "1.3.0",
550
550
  "X-Fern-Runtime": core.RUNTIME.type,
551
551
  "X-Fern-Runtime-Version": core.RUNTIME.version,
552
552
  },
@@ -617,7 +617,7 @@ class ModelSync {
617
617
  "X-Polytomic-Version": "2024-02-08",
618
618
  "X-Fern-Language": "JavaScript",
619
619
  "X-Fern-SDK-Name": "polytomic",
620
- "X-Fern-SDK-Version": "1.2.0",
620
+ "X-Fern-SDK-Version": "1.3.0",
621
621
  "X-Fern-Runtime": core.RUNTIME.type,
622
622
  "X-Fern-Runtime-Version": core.RUNTIME.version,
623
623
  },
@@ -685,7 +685,7 @@ class ModelSync {
685
685
  "X-Polytomic-Version": "2024-02-08",
686
686
  "X-Fern-Language": "JavaScript",
687
687
  "X-Fern-SDK-Name": "polytomic",
688
- "X-Fern-SDK-Version": "1.2.0",
688
+ "X-Fern-SDK-Version": "1.3.0",
689
689
  "X-Fern-Runtime": core.RUNTIME.type,
690
690
  "X-Fern-Runtime-Version": core.RUNTIME.version,
691
691
  },
@@ -750,7 +750,7 @@ class ModelSync {
750
750
  "X-Polytomic-Version": "2024-02-08",
751
751
  "X-Fern-Language": "JavaScript",
752
752
  "X-Fern-SDK-Name": "polytomic",
753
- "X-Fern-SDK-Version": "1.2.0",
753
+ "X-Fern-SDK-Version": "1.3.0",
754
754
  "X-Fern-Runtime": core.RUNTIME.type,
755
755
  "X-Fern-Runtime-Version": core.RUNTIME.version,
756
756
  },
@@ -818,7 +818,7 @@ class ModelSync {
818
818
  "X-Polytomic-Version": "2024-02-08",
819
819
  "X-Fern-Language": "JavaScript",
820
820
  "X-Fern-SDK-Name": "polytomic",
821
- "X-Fern-SDK-Version": "1.2.0",
821
+ "X-Fern-SDK-Version": "1.3.0",
822
822
  "X-Fern-Runtime": core.RUNTIME.type,
823
823
  "X-Fern-Runtime-Version": core.RUNTIME.version,
824
824
  },
@@ -883,7 +883,7 @@ class ModelSync {
883
883
  "X-Polytomic-Version": "2024-02-08",
884
884
  "X-Fern-Language": "JavaScript",
885
885
  "X-Fern-SDK-Name": "polytomic",
886
- "X-Fern-SDK-Version": "1.2.0",
886
+ "X-Fern-SDK-Version": "1.3.0",
887
887
  "X-Fern-Runtime": core.RUNTIME.type,
888
888
  "X-Fern-Runtime-Version": core.RUNTIME.version,
889
889
  },
@@ -24,7 +24,9 @@ export interface CreateModelSyncRequest {
24
24
  mode: string;
25
25
  name: string;
26
26
  organization_id?: string;
27
+ /** Values to set as sync target fields. */
27
28
  override_fields?: Polytomic.ModelSyncField[];
29
+ /** Conditional value replacement for field mappings. */
28
30
  overrides?: Polytomic.Override[];
29
31
  policies?: string[];
30
32
  schedule: Polytomic.Schedule;
@@ -24,7 +24,9 @@ export interface UpdateModelSyncRequest {
24
24
  mode: string;
25
25
  name: string;
26
26
  organization_id?: string;
27
+ /** Values to set as sync target fields. */
27
28
  override_fields?: Polytomic.ModelSyncField[];
29
+ /** Conditional value replacement for field mappings. */
28
30
  overrides?: Polytomic.Override[];
29
31
  policies?: string[];
30
32
  schedule: Polytomic.Schedule;
@@ -66,7 +66,7 @@ class Executions {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "1.2.0",
69
+ "X-Fern-SDK-Version": "1.3.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -124,7 +124,7 @@ class Executions {
124
124
  "X-Polytomic-Version": "2024-02-08",
125
125
  "X-Fern-Language": "JavaScript",
126
126
  "X-Fern-SDK-Name": "polytomic",
127
- "X-Fern-SDK-Version": "1.2.0",
127
+ "X-Fern-SDK-Version": "1.3.0",
128
128
  "X-Fern-Runtime": core.RUNTIME.type,
129
129
  "X-Fern-Runtime-Version": core.RUNTIME.version,
130
130
  },
@@ -185,7 +185,7 @@ class Executions {
185
185
  "X-Polytomic-Version": "2024-02-08",
186
186
  "X-Fern-Language": "JavaScript",
187
187
  "X-Fern-SDK-Name": "polytomic",
188
- "X-Fern-SDK-Version": "1.2.0",
188
+ "X-Fern-SDK-Version": "1.3.0",
189
189
  "X-Fern-Runtime": core.RUNTIME.type,
190
190
  "X-Fern-Runtime-Version": core.RUNTIME.version,
191
191
  },
@@ -248,7 +248,7 @@ class Executions {
248
248
  "X-Polytomic-Version": "2024-02-08",
249
249
  "X-Fern-Language": "JavaScript",
250
250
  "X-Fern-SDK-Name": "polytomic",
251
- "X-Fern-SDK-Version": "1.2.0",
251
+ "X-Fern-SDK-Version": "1.3.0",
252
252
  "X-Fern-Runtime": core.RUNTIME.type,
253
253
  "X-Fern-Runtime-Version": core.RUNTIME.version,
254
254
  },
@@ -72,9 +72,9 @@ export declare class Models {
72
72
  * @throws {@link Polytomic.InternalServerError}
73
73
  *
74
74
  * @example
75
- * await polytomic.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
75
+ * await polytomic.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {})
76
76
  */
77
- get(id: string, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
77
+ get(id: string, request?: Polytomic.ModelsGetRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
78
78
  /**
79
79
  * @throws {@link Polytomic.BadRequestError}
80
80
  * @throws {@link Polytomic.UnauthorizedError}
@@ -96,8 +96,19 @@ export declare class Models {
96
96
  * @throws {@link Polytomic.InternalServerError}
97
97
  *
98
98
  * @example
99
- * await polytomic.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
99
+ * await polytomic.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {})
100
100
  */
101
- remove(id: string, requestOptions?: Models.RequestOptions): Promise<void>;
101
+ remove(id: string, request?: Polytomic.ModelsRemoveRequest, requestOptions?: Models.RequestOptions): Promise<void>;
102
+ /**
103
+ * Returns sample records from the model. The first ten records that the source provides will be returned after being enriched (if applicable). Synchronous requests must complete within 10s. If either querying or enrichment exceeds 10s, please use the async option.
104
+ * @throws {@link Polytomic.BadRequestError}
105
+ * @throws {@link Polytomic.UnauthorizedError}
106
+ * @throws {@link Polytomic.NotFoundError}
107
+ * @throws {@link Polytomic.InternalServerError}
108
+ *
109
+ * @example
110
+ * await polytomic.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {})
111
+ */
112
+ sample(id: string, request?: Polytomic.ModelsSampleRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelSampleResponseEnvelope>;
102
113
  protected _getAuthorizationHeader(): Promise<string>;
103
114
  }
@@ -80,7 +80,7 @@ class Models {
80
80
  "X-Polytomic-Version": "2024-02-08",
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "polytomic",
83
- "X-Fern-SDK-Version": "1.2.0",
83
+ "X-Fern-SDK-Version": "1.3.0",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -154,7 +154,7 @@ class Models {
154
154
  "X-Polytomic-Version": "2024-02-08",
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "polytomic",
157
- "X-Fern-SDK-Version": "1.2.0",
157
+ "X-Fern-SDK-Version": "1.3.0",
158
158
  "X-Fern-Runtime": core.RUNTIME.type,
159
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
160
160
  },
@@ -217,7 +217,7 @@ class Models {
217
217
  "X-Polytomic-Version": "2024-02-08",
218
218
  "X-Fern-Language": "JavaScript",
219
219
  "X-Fern-SDK-Name": "polytomic",
220
- "X-Fern-SDK-Version": "1.2.0",
220
+ "X-Fern-SDK-Version": "1.3.0",
221
221
  "X-Fern-Runtime": core.RUNTIME.type,
222
222
  "X-Fern-Runtime-Version": core.RUNTIME.version,
223
223
  },
@@ -286,7 +286,7 @@ class Models {
286
286
  "X-Polytomic-Version": "2024-02-08",
287
287
  "X-Fern-Language": "JavaScript",
288
288
  "X-Fern-SDK-Name": "polytomic",
289
- "X-Fern-SDK-Version": "1.2.0",
289
+ "X-Fern-SDK-Version": "1.3.0",
290
290
  "X-Fern-Runtime": core.RUNTIME.type,
291
291
  "X-Fern-Runtime-Version": core.RUNTIME.version,
292
292
  },
@@ -337,11 +337,16 @@ class Models {
337
337
  * @throws {@link Polytomic.InternalServerError}
338
338
  *
339
339
  * @example
340
- * await polytomic.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
340
+ * await polytomic.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {})
341
341
  */
342
- get(id, requestOptions) {
342
+ get(id, request = {}, requestOptions) {
343
343
  var _a;
344
344
  return __awaiter(this, void 0, void 0, function* () {
345
+ const { async } = request;
346
+ const _queryParams = {};
347
+ if (async != null) {
348
+ _queryParams["async"] = async.toString();
349
+ }
345
350
  const _response = yield core.fetcher({
346
351
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}`),
347
352
  method: "GET",
@@ -350,11 +355,12 @@ class Models {
350
355
  "X-Polytomic-Version": "2024-02-08",
351
356
  "X-Fern-Language": "JavaScript",
352
357
  "X-Fern-SDK-Name": "polytomic",
353
- "X-Fern-SDK-Version": "1.2.0",
358
+ "X-Fern-SDK-Version": "1.3.0",
354
359
  "X-Fern-Runtime": core.RUNTIME.type,
355
360
  "X-Fern-Runtime-Version": core.RUNTIME.version,
356
361
  },
357
362
  contentType: "application/json",
363
+ queryParameters: _queryParams,
358
364
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
359
365
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
360
366
  });
@@ -420,7 +426,7 @@ class Models {
420
426
  "X-Polytomic-Version": "2024-02-08",
421
427
  "X-Fern-Language": "JavaScript",
422
428
  "X-Fern-SDK-Name": "polytomic",
423
- "X-Fern-SDK-Version": "1.2.0",
429
+ "X-Fern-SDK-Version": "1.3.0",
424
430
  "X-Fern-Runtime": core.RUNTIME.type,
425
431
  "X-Fern-Runtime-Version": core.RUNTIME.version,
426
432
  },
@@ -472,11 +478,16 @@ class Models {
472
478
  * @throws {@link Polytomic.InternalServerError}
473
479
  *
474
480
  * @example
475
- * await polytomic.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
481
+ * await polytomic.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {})
476
482
  */
477
- remove(id, requestOptions) {
483
+ remove(id, request = {}, requestOptions) {
478
484
  var _a;
479
485
  return __awaiter(this, void 0, void 0, function* () {
486
+ const { async } = request;
487
+ const _queryParams = {};
488
+ if (async != null) {
489
+ _queryParams["async"] = async.toString();
490
+ }
480
491
  const _response = yield core.fetcher({
481
492
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}`),
482
493
  method: "DELETE",
@@ -485,11 +496,12 @@ class Models {
485
496
  "X-Polytomic-Version": "2024-02-08",
486
497
  "X-Fern-Language": "JavaScript",
487
498
  "X-Fern-SDK-Name": "polytomic",
488
- "X-Fern-SDK-Version": "1.2.0",
499
+ "X-Fern-SDK-Version": "1.3.0",
489
500
  "X-Fern-Runtime": core.RUNTIME.type,
490
501
  "X-Fern-Runtime-Version": core.RUNTIME.version,
491
502
  },
492
503
  contentType: "application/json",
504
+ queryParameters: _queryParams,
493
505
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
494
506
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
495
507
  });
@@ -528,6 +540,76 @@ class Models {
528
540
  }
529
541
  });
530
542
  }
543
+ /**
544
+ * Returns sample records from the model. The first ten records that the source provides will be returned after being enriched (if applicable). Synchronous requests must complete within 10s. If either querying or enrichment exceeds 10s, please use the async option.
545
+ * @throws {@link Polytomic.BadRequestError}
546
+ * @throws {@link Polytomic.UnauthorizedError}
547
+ * @throws {@link Polytomic.NotFoundError}
548
+ * @throws {@link Polytomic.InternalServerError}
549
+ *
550
+ * @example
551
+ * await polytomic.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {})
552
+ */
553
+ sample(id, request = {}, requestOptions) {
554
+ var _a;
555
+ return __awaiter(this, void 0, void 0, function* () {
556
+ const { async } = request;
557
+ const _queryParams = {};
558
+ if (async != null) {
559
+ _queryParams["async"] = async.toString();
560
+ }
561
+ const _response = yield core.fetcher({
562
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}/sample`),
563
+ method: "GET",
564
+ headers: {
565
+ Authorization: yield this._getAuthorizationHeader(),
566
+ "X-Polytomic-Version": "2024-02-08",
567
+ "X-Fern-Language": "JavaScript",
568
+ "X-Fern-SDK-Name": "polytomic",
569
+ "X-Fern-SDK-Version": "1.3.0",
570
+ "X-Fern-Runtime": core.RUNTIME.type,
571
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
572
+ },
573
+ contentType: "application/json",
574
+ queryParameters: _queryParams,
575
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
576
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
577
+ });
578
+ if (_response.ok) {
579
+ return _response.body;
580
+ }
581
+ if (_response.error.reason === "status-code") {
582
+ switch (_response.error.statusCode) {
583
+ case 400:
584
+ throw new Polytomic.BadRequestError(_response.error.body);
585
+ case 401:
586
+ throw new Polytomic.UnauthorizedError(_response.error.body);
587
+ case 404:
588
+ throw new Polytomic.NotFoundError(_response.error.body);
589
+ case 500:
590
+ throw new Polytomic.InternalServerError(_response.error.body);
591
+ default:
592
+ throw new errors.PolytomicError({
593
+ statusCode: _response.error.statusCode,
594
+ body: _response.error.body,
595
+ });
596
+ }
597
+ }
598
+ switch (_response.error.reason) {
599
+ case "non-json":
600
+ throw new errors.PolytomicError({
601
+ statusCode: _response.error.statusCode,
602
+ body: _response.error.rawBody,
603
+ });
604
+ case "timeout":
605
+ throw new errors.PolytomicTimeoutError();
606
+ case "unknown":
607
+ throw new errors.PolytomicError({
608
+ message: _response.error.errorMessage,
609
+ });
610
+ }
611
+ });
612
+ }
531
613
  _getAuthorizationHeader() {
532
614
  return __awaiter(this, void 0, void 0, function* () {
533
615
  return `Bearer ${yield core.Supplier.get(this._options.token)}`;