polytomic 25.9.13 → 25.9.14

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 (35) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +11 -0
  3. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +10 -0
  4. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -1
  5. package/api/resources/bulkSync/resources/schemas/client/requests/index.js +3 -0
  6. package/api/resources/models/client/Client.d.ts +81 -2
  7. package/api/resources/models/client/Client.js +81 -2
  8. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +2 -0
  9. package/api/resources/queryRunner/client/Client.d.ts +5 -0
  10. package/api/resources/queryRunner/client/Client.js +5 -0
  11. package/api/types/BulkSchema.d.ts +11 -0
  12. package/api/types/BulkSchema.js +10 -0
  13. package/api/types/BulkSchemaListItem.d.ts +11 -0
  14. package/api/types/BulkSchemaListItem.js +10 -0
  15. package/api/types/BulkSyncSourceStatus.d.ts +5 -0
  16. package/api/types/ConnectionType.d.ts +2 -0
  17. package/api/types/CreateModelRequest.d.ts +2 -0
  18. package/api/types/GetIdentityResponseSchema.d.ts +2 -0
  19. package/api/types/IdentityCredentialSchema.d.ts +2 -0
  20. package/api/types/IdentityCredentialSupportAccessSchema.d.ts +6 -0
  21. package/api/types/IdentityCredentialSupportAccessSchema.js +3 -0
  22. package/api/types/ModelModelFieldOverride.d.ts +17 -0
  23. package/api/types/ModelModelFieldOverride.js +17 -0
  24. package/api/types/SchemaConfiguration.d.ts +9 -0
  25. package/api/types/SchemaConfiguration.js +10 -0
  26. package/api/types/SchemaField.d.ts +4 -0
  27. package/api/types/SchemaSchemaError.d.ts +4 -0
  28. package/api/types/SchemaSchemaError.js +3 -0
  29. package/api/types/SyncDestinationProperties.d.ts +2 -0
  30. package/api/types/index.d.ts +3 -0
  31. package/api/types/index.js +3 -0
  32. package/package.json +1 -1
  33. package/reference.md +86 -2
  34. package/version.d.ts +1 -1
  35. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "polytomic",
47
- "X-Fern-SDK-Version": "25.9.13",
48
- "User-Agent": "polytomic/25.9.13",
47
+ "X-Fern-SDK-Version": "25.9.14",
48
+ "User-Agent": "polytomic/25.9.14",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Polytomic-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-09-18",
@@ -6,6 +6,8 @@ import type * as Polytomic from "../../../../../../index";
6
6
  export interface UpdateBulkSchema {
7
7
  /** Per-schema cutoff. Records older than this timestamp are excluded from sync runs. */
8
8
  data_cutoff_timestamp?: string;
9
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
10
+ delete_propagation?: UpdateBulkSchema.DeletePropagation;
9
11
  /** When true, the sync ignores any configured data_cutoff_timestamp for this schema. */
10
12
  disable_data_cutoff?: boolean;
11
13
  /** Whether this schema is included in sync runs */
@@ -25,3 +27,12 @@ export interface UpdateBulkSchema {
25
27
  /** User-specified override for the destination object name */
26
28
  user_output_name?: string;
27
29
  }
30
+ export declare namespace UpdateBulkSchema {
31
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
32
+ const DeletePropagation: {
33
+ readonly Inherit: "inherit";
34
+ readonly Soft: "soft";
35
+ readonly Hard: "hard";
36
+ };
37
+ type DeletePropagation = (typeof DeletePropagation)[keyof typeof DeletePropagation];
38
+ }
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UpdateBulkSchema = void 0;
5
+ var UpdateBulkSchema;
6
+ (function (UpdateBulkSchema) {
7
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
8
+ UpdateBulkSchema.DeletePropagation = {
9
+ Inherit: "inherit",
10
+ Soft: "soft",
11
+ Hard: "hard",
12
+ };
13
+ })(UpdateBulkSchema || (exports.UpdateBulkSchema = UpdateBulkSchema = {}));
@@ -1,3 +1,3 @@
1
1
  export type { SchemasListRequest } from "./SchemasListRequest";
2
- export type { UpdateBulkSchema } from "./UpdateBulkSchema";
2
+ export { UpdateBulkSchema } from "./UpdateBulkSchema";
3
3
  export type { UpdateBulkSyncSchemasRequest } from "./UpdateBulkSyncSchemasRequest";
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateBulkSchema = void 0;
4
+ var UpdateBulkSchema_1 = require("./UpdateBulkSchema");
5
+ Object.defineProperty(exports, "UpdateBulkSchema", { enumerable: true, get: function () { return UpdateBulkSchema_1.UpdateBulkSchema; } });
@@ -79,6 +79,32 @@ export declare class ModelsClient {
79
79
  * endpoint to validate a query or configuration before calling
80
80
  * [`POST /api/models`](../../api-reference/models/create) to save it.
81
81
  *
82
+ * ## Field type overrides
83
+ *
84
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
85
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
86
+ * Keep `additional_fields` for user-defined fields.
87
+ *
88
+ * For example, include this fragment in a complete model request to treat `amount`
89
+ * as a number:
90
+ *
91
+ * ```json
92
+ * {
93
+ * "field_overrides": {
94
+ * "amount": { "type": "number" }
95
+ * }
96
+ * }
97
+ * ```
98
+ *
99
+ * Use `fields` separately to choose which fields to publish. The response's
100
+ * `fields[].type` contains each published field's effective type.
101
+ *
102
+ * On update, only supplied override entries change types. Omitted entries, an
103
+ * empty map, or `null` preserve current types, including types chosen in the UI.
104
+ * Removing an entry does not restore its inferred type; supply another concrete
105
+ * type to change it. There is no separate inferred-type or override-state map in
106
+ * the response.
107
+ *
82
108
  * @param {Polytomic.ModelsPreviewRequest} request
83
109
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
84
110
  *
@@ -130,6 +156,32 @@ export declare class ModelsClient {
130
156
  * [`GET /api/connection_types/{id}`](../../api-reference/connections/get-connection-type-schema) to check
131
157
  * whether a connection type supports use as a source.
132
158
  *
159
+ * ## Field type overrides
160
+ *
161
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
162
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
163
+ * Keep `additional_fields` for user-defined fields.
164
+ *
165
+ * For example, include this fragment in a complete model request to treat `amount`
166
+ * as a number:
167
+ *
168
+ * ```json
169
+ * {
170
+ * "field_overrides": {
171
+ * "amount": { "type": "number" }
172
+ * }
173
+ * }
174
+ * ```
175
+ *
176
+ * Use `fields` separately to choose which fields to publish. The response's
177
+ * `fields[].type` contains each published field's effective type.
178
+ *
179
+ * On update, only supplied override entries change types. Omitted entries, an
180
+ * empty map, or `null` preserve current types, including types chosen in the UI.
181
+ * Removing an entry does not restore its inferred type; supply another concrete
182
+ * type to change it. There is no separate inferred-type or override-state map in
183
+ * the response.
184
+ *
133
185
  * @param {Polytomic.ModelsCreateRequest} request
134
186
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
135
187
  *
@@ -181,8 +233,9 @@ export declare class ModelsClient {
181
233
  *
182
234
  * Updating a model is a **full replacement** of its configuration. Every field in
183
235
  * the request body is written to the model; any field you omit is cleared or reset
184
- * to its default value. An empty or omitted `policies` list leaves the model's
185
- * current policies unchanged.
236
+ * to its default value, with two exceptions: an empty or omitted `policies` list
237
+ * leaves policies unchanged, and omitted `field_overrides` entries retain their
238
+ * current types.
186
239
  *
187
240
  * To make a partial change, fetch the current model with
188
241
  * [`GET /api/models/{id}`](../../../api-reference/models/get), modify the fields you want to change, and send
@@ -191,6 +244,32 @@ export declare class ModelsClient {
191
244
  * Changes to source fields, filters, or the identity column take effect on the
192
245
  * next sync execution that uses this model.
193
246
  *
247
+ * ## Field type overrides
248
+ *
249
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
250
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
251
+ * Keep `additional_fields` for user-defined fields.
252
+ *
253
+ * For example, include this fragment in a complete model request to treat `amount`
254
+ * as a number:
255
+ *
256
+ * ```json
257
+ * {
258
+ * "field_overrides": {
259
+ * "amount": { "type": "number" }
260
+ * }
261
+ * }
262
+ * ```
263
+ *
264
+ * Use `fields` separately to choose which fields to publish. The response's
265
+ * `fields[].type` contains each published field's effective type.
266
+ *
267
+ * On update, only supplied override entries change types. Omitted entries, an
268
+ * empty map, or `null` preserve current types, including types chosen in the UI.
269
+ * Removing an entry does not restore its inferred type; supply another concrete
270
+ * type to change it. There is no separate inferred-type or override-state map in
271
+ * the response.
272
+ *
194
273
  * @param {string} id - Model ID
195
274
  * @param {Polytomic.UpdateModelRequest} request
196
275
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
@@ -236,6 +236,32 @@ class ModelsClient {
236
236
  * endpoint to validate a query or configuration before calling
237
237
  * [`POST /api/models`](../../api-reference/models/create) to save it.
238
238
  *
239
+ * ## Field type overrides
240
+ *
241
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
242
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
243
+ * Keep `additional_fields` for user-defined fields.
244
+ *
245
+ * For example, include this fragment in a complete model request to treat `amount`
246
+ * as a number:
247
+ *
248
+ * ```json
249
+ * {
250
+ * "field_overrides": {
251
+ * "amount": { "type": "number" }
252
+ * }
253
+ * }
254
+ * ```
255
+ *
256
+ * Use `fields` separately to choose which fields to publish. The response's
257
+ * `fields[].type` contains each published field's effective type.
258
+ *
259
+ * On update, only supplied override entries change types. Omitted entries, an
260
+ * empty map, or `null` preserve current types, including types chosen in the UI.
261
+ * Removing an entry does not restore its inferred type; supply another concrete
262
+ * type to change it. There is no separate inferred-type or override-state map in
263
+ * the response.
264
+ *
239
265
  * @param {Polytomic.ModelsPreviewRequest} request
240
266
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
241
267
  *
@@ -377,6 +403,32 @@ class ModelsClient {
377
403
  * [`GET /api/connection_types/{id}`](../../api-reference/connections/get-connection-type-schema) to check
378
404
  * whether a connection type supports use as a source.
379
405
  *
406
+ * ## Field type overrides
407
+ *
408
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
409
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
410
+ * Keep `additional_fields` for user-defined fields.
411
+ *
412
+ * For example, include this fragment in a complete model request to treat `amount`
413
+ * as a number:
414
+ *
415
+ * ```json
416
+ * {
417
+ * "field_overrides": {
418
+ * "amount": { "type": "number" }
419
+ * }
420
+ * }
421
+ * ```
422
+ *
423
+ * Use `fields` separately to choose which fields to publish. The response's
424
+ * `fields[].type` contains each published field's effective type.
425
+ *
426
+ * On update, only supplied override entries change types. Omitted entries, an
427
+ * empty map, or `null` preserve current types, including types chosen in the UI.
428
+ * Removing an entry does not restore its inferred type; supply another concrete
429
+ * type to change it. There is no separate inferred-type or override-state map in
430
+ * the response.
431
+ *
380
432
  * @param {Polytomic.ModelsCreateRequest} request
381
433
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
382
434
  *
@@ -528,8 +580,9 @@ class ModelsClient {
528
580
  *
529
581
  * Updating a model is a **full replacement** of its configuration. Every field in
530
582
  * the request body is written to the model; any field you omit is cleared or reset
531
- * to its default value. An empty or omitted `policies` list leaves the model's
532
- * current policies unchanged.
583
+ * to its default value, with two exceptions: an empty or omitted `policies` list
584
+ * leaves policies unchanged, and omitted `field_overrides` entries retain their
585
+ * current types.
533
586
  *
534
587
  * To make a partial change, fetch the current model with
535
588
  * [`GET /api/models/{id}`](../../../api-reference/models/get), modify the fields you want to change, and send
@@ -538,6 +591,32 @@ class ModelsClient {
538
591
  * Changes to source fields, filters, or the identity column take effect on the
539
592
  * next sync execution that uses this model.
540
593
  *
594
+ * ## Field type overrides
595
+ *
596
+ * Use `field_overrides` to choose types for detected source fields on CSV file,
597
+ * HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
598
+ * Keep `additional_fields` for user-defined fields.
599
+ *
600
+ * For example, include this fragment in a complete model request to treat `amount`
601
+ * as a number:
602
+ *
603
+ * ```json
604
+ * {
605
+ * "field_overrides": {
606
+ * "amount": { "type": "number" }
607
+ * }
608
+ * }
609
+ * ```
610
+ *
611
+ * Use `fields` separately to choose which fields to publish. The response's
612
+ * `fields[].type` contains each published field's effective type.
613
+ *
614
+ * On update, only supplied override entries change types. Omitted entries, an
615
+ * empty map, or `null` preserve current types, including types chosen in the UI.
616
+ * Removing an entry does not restore its inferred type; supply another concrete
617
+ * type to change it. There is no separate inferred-type or override-state map in
618
+ * the response.
619
+ *
541
620
  * @param {string} id - Model ID
542
621
  * @param {Polytomic.UpdateModelRequest} request
543
622
  * @param {ModelsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
@@ -21,6 +21,8 @@ export interface UpdateModelRequest {
21
21
  connection_id: string;
22
22
  /** Enrichment to apply to the model */
23
23
  enricher?: Polytomic.Enrichment;
24
+ /** Type updates keyed by exact source field name, for models that support type selection. Applies only to detected source fields and does not publish them. Omitted entries retain their current types; an empty or omitted map leaves all types unchanged. */
25
+ field_overrides?: Record<string, Polytomic.ModelModelFieldOverride | undefined>;
24
26
  /** Technical/source field names to publish in the model. Use source names, not model-field UUIDs or display labels. For example, use dealname rather than Deal Name. Omit or pass an empty array to publish all standard source fields. */
25
27
  fields?: string[];
26
28
  /** Source field name of the model's unique identifier */
@@ -56,6 +56,11 @@ export declare class QueryRunnerClient {
56
56
  * opaque `links.next` and `links.previous` URLs exactly as returned. Do not try to
57
57
  * construct the `page` token yourself.
58
58
  *
59
+ * Non-finite numeric results use JSON strings: `"NaN"`, `"Infinity"`, and
60
+ * `"-Infinity"`. Finite numbers remain JSON numbers, and SQL NULL remains `null`.
61
+ * This also applies inside lists, structs, and maps. These strings are
62
+ * indistinguishable from literal text with the same spelling.
63
+ *
59
64
  * If the query is still running, the response may include only status metadata.
60
65
  * The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
61
66
  * means execution started, but its durable terminal result was lost or expired.
@@ -172,6 +172,11 @@ class QueryRunnerClient {
172
172
  * opaque `links.next` and `links.previous` URLs exactly as returned. Do not try to
173
173
  * construct the `page` token yourself.
174
174
  *
175
+ * Non-finite numeric results use JSON strings: `"NaN"`, `"Infinity"`, and
176
+ * `"-Infinity"`. Finite numbers remain JSON numbers, and SQL NULL remains `null`.
177
+ * This also applies inside lists, structs, and maps. These strings are
178
+ * indistinguishable from literal text with the same spelling.
179
+ *
175
180
  * If the query is still running, the response may include only status metadata.
176
181
  * The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
177
182
  * means execution started, but its durable terminal result was lost or expired.
@@ -2,6 +2,8 @@ import type * as Polytomic from "../index";
2
2
  export interface BulkSchema {
3
3
  /** Records older than this timestamp are excluded from sync runs. */
4
4
  data_cutoff_timestamp?: string | undefined;
5
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Always present in responses; when patching, omit it to keep the current value or send inherit to reset it. */
6
+ delete_propagation?: BulkSchema.DeletePropagation | undefined;
5
7
  /** Name of the companion history table. Present only when history is enabled on a destination that supports it. This value is computed and ignored on input. */
6
8
  destination_history_output_name?: string | undefined;
7
9
  /** When true, the sync ignores any configured data_cutoff_timestamp for this schema. */
@@ -27,3 +29,12 @@ export interface BulkSchema {
27
29
  /** User-specified override for the destination object name */
28
30
  user_output_name?: string | undefined;
29
31
  }
32
+ export declare namespace BulkSchema {
33
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Always present in responses; when patching, omit it to keep the current value or send inherit to reset it. */
34
+ const DeletePropagation: {
35
+ readonly Inherit: "inherit";
36
+ readonly Soft: "soft";
37
+ readonly Hard: "hard";
38
+ };
39
+ type DeletePropagation = (typeof DeletePropagation)[keyof typeof DeletePropagation];
40
+ }
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BulkSchema = void 0;
5
+ var BulkSchema;
6
+ (function (BulkSchema) {
7
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Always present in responses; when patching, omit it to keep the current value or send inherit to reset it. */
8
+ BulkSchema.DeletePropagation = {
9
+ Inherit: "inherit",
10
+ Soft: "soft",
11
+ Hard: "hard",
12
+ };
13
+ })(BulkSchema || (exports.BulkSchema = BulkSchema = {}));
@@ -1,6 +1,8 @@
1
1
  export interface BulkSchemaListItem {
2
2
  /** Per-schema cutoff. Records older than this timestamp are excluded from sync runs. */
3
3
  data_cutoff_timestamp?: string | undefined;
4
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them */
5
+ delete_propagation?: BulkSchemaListItem.DeletePropagation | undefined;
4
6
  /** Name of the companion history table. Present only when history is enabled on a destination that supports it. */
5
7
  destination_history_output_name?: string | undefined;
6
8
  /** When true, the sync ignores any configured data_cutoff_timestamp and syncs the full history of this schema. */
@@ -20,3 +22,12 @@ export interface BulkSchemaListItem {
20
22
  /** User-specified override for the destination object name. When empty, output_name is used. */
21
23
  user_output_name?: string | undefined;
22
24
  }
25
+ export declare namespace BulkSchemaListItem {
26
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them */
27
+ const DeletePropagation: {
28
+ readonly Inherit: "inherit";
29
+ readonly Soft: "soft";
30
+ readonly Hard: "hard";
31
+ };
32
+ type DeletePropagation = (typeof DeletePropagation)[keyof typeof DeletePropagation];
33
+ }
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BulkSchemaListItem = void 0;
5
+ var BulkSchemaListItem;
6
+ (function (BulkSchemaListItem) {
7
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them */
8
+ BulkSchemaListItem.DeletePropagation = {
9
+ Inherit: "inherit",
10
+ Soft: "soft",
11
+ Hard: "hard",
12
+ };
13
+ })(BulkSchemaListItem || (exports.BulkSchemaListItem = BulkSchemaListItem = {}));
@@ -1,8 +1,13 @@
1
+ import type * as Polytomic from "../index";
1
2
  export interface BulkSyncSourceStatus {
2
3
  /** State of the connection schema cache: uninitialized, initializing, cached, refreshing or errors */
3
4
  cache_status?: string | undefined;
5
+ /** Connection-wide errors from the most recently completed schema refresh, retained while a new refresh is in progress. Omitted when empty. */
6
+ errors?: string[] | undefined;
4
7
  /** When the most recent schema refresh finished */
5
8
  last_refresh_finished?: string | undefined;
6
9
  /** When the most recent schema refresh started */
7
10
  last_refresh_started?: string | undefined;
11
+ /** Errors for individual schemas from the most recently completed schema refresh, identified by schema_id and retained while a new refresh is in progress. Omitted when empty. */
12
+ schema_errors?: Polytomic.SchemaSchemaError[] | undefined;
8
13
  }
@@ -1,5 +1,7 @@
1
1
  import type * as Polytomic from "../index";
2
2
  export interface ConnectionType {
3
+ /** Alternate names or search terms used to find this connection type */
4
+ aliases?: string[] | undefined;
3
5
  capabilities: Polytomic.BackendConnectionCapabilities;
4
6
  configurationForm?: Polytomic.ConnectionForm | undefined;
5
7
  envConfig?: Record<string, unknown> | undefined;
@@ -8,6 +8,8 @@ export interface CreateModelRequest {
8
8
  connection_id: string;
9
9
  /** Enrichment to apply to the model */
10
10
  enricher?: Polytomic.Enrichment | undefined;
11
+ /** Type updates keyed by exact source field name, for models that support type selection. Applies only to detected source fields and does not publish them. Omitted entries retain their current types; an empty or omitted map leaves all types unchanged. */
12
+ field_overrides?: Record<string, Polytomic.ModelModelFieldOverride | undefined> | undefined;
11
13
  /** Technical/source field names to publish in the model. Use source names, not model-field UUIDs or display labels. For example, use dealname rather than Deal Name. Omit or pass an empty array to publish all standard source fields. */
12
14
  fields?: string[] | undefined;
13
15
  /** Source field name of the model's unique identifier */
@@ -10,6 +10,8 @@ export interface GetIdentityResponseSchema {
10
10
  is_organization?: boolean | undefined;
11
11
  /** Whether the caller is using a partner key */
12
12
  is_partner?: boolean | undefined;
13
+ /** Whether the caller holds temporary support access to this customer */
14
+ is_support?: boolean | undefined;
13
15
  /** Whether the caller is a system actor */
14
16
  is_system?: boolean | undefined;
15
17
  /** Whether the caller is a user */
@@ -14,4 +14,6 @@ export interface IdentityCredentialSchema {
14
14
  oauth_client_id?: string | undefined;
15
15
  /** Protected resource URL this OAuth-issued credential is bound to */
16
16
  oauth_resource?: string | undefined;
17
+ /** Authoritative request and support principal for temporary support access */
18
+ support_access?: Polytomic.IdentityCredentialSupportAccessSchema | undefined;
17
19
  }
@@ -0,0 +1,6 @@
1
+ export interface IdentityCredentialSupportAccessSchema {
2
+ /** Approved support access request ID */
3
+ request_id?: string | undefined;
4
+ /** Active support user backing this grant */
5
+ support_user_id?: string | undefined;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface ModelModelFieldOverride {
2
+ /** Effective field type */
3
+ type: ModelModelFieldOverride.Type;
4
+ }
5
+ export declare namespace ModelModelFieldOverride {
6
+ /** Effective field type */
7
+ const Type: {
8
+ readonly String: "string";
9
+ readonly Number: "number";
10
+ readonly Boolean: "boolean";
11
+ readonly Datetime: "datetime";
12
+ readonly Array: "array";
13
+ readonly Object: "object";
14
+ readonly Binary: "binary";
15
+ };
16
+ type Type = (typeof Type)[keyof typeof Type];
17
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ModelModelFieldOverride = void 0;
5
+ var ModelModelFieldOverride;
6
+ (function (ModelModelFieldOverride) {
7
+ /** Effective field type */
8
+ ModelModelFieldOverride.Type = {
9
+ String: "string",
10
+ Number: "number",
11
+ Boolean: "boolean",
12
+ Datetime: "datetime",
13
+ Array: "array",
14
+ Object: "object",
15
+ Binary: "binary",
16
+ };
17
+ })(ModelModelFieldOverride || (exports.ModelModelFieldOverride = ModelModelFieldOverride = {}));
@@ -2,6 +2,8 @@ import type * as Polytomic from "../index";
2
2
  export interface SchemaConfiguration {
3
3
  /** Per-schema cutoff; source records older than this are excluded */
4
4
  data_cutoff_timestamp?: string | undefined;
5
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
6
+ delete_propagation?: SchemaConfiguration.DeletePropagation | undefined;
5
7
  /** Whether data cutoff is disabled for this schema */
6
8
  disable_data_cutoff?: boolean | undefined;
7
9
  /** Whether the schema is enabled for syncing */
@@ -24,6 +26,13 @@ export interface SchemaConfiguration {
24
26
  user_output_name?: string | undefined;
25
27
  }
26
28
  export declare namespace SchemaConfiguration {
29
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
30
+ const DeletePropagation: {
31
+ readonly Inherit: "inherit";
32
+ readonly Soft: "soft";
33
+ readonly Hard: "hard";
34
+ };
35
+ type DeletePropagation = (typeof DeletePropagation)[keyof typeof DeletePropagation];
27
36
  type Fields = Fields.Item[];
28
37
  namespace Fields {
29
38
  type Item = string | Polytomic.FieldConfiguration;
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SchemaConfiguration = void 0;
5
+ var SchemaConfiguration;
6
+ (function (SchemaConfiguration) {
7
+ /** Per-schema delete propagation: inherit uses the destination setting, soft marks deleted rows, and hard removes them. Requires a destination that supports the selected mode. Omit to keep the current value; send inherit to reset it. */
8
+ SchemaConfiguration.DeletePropagation = {
9
+ Inherit: "inherit",
10
+ Soft: "soft",
11
+ Hard: "hard",
12
+ };
13
+ })(SchemaConfiguration || (exports.SchemaConfiguration = SchemaConfiguration = {}));
@@ -2,12 +2,16 @@ import type * as Polytomic from "../index";
2
2
  export interface SchemaField {
3
3
  /** Reference this field holds to records in other schemas */
4
4
  association?: Polytomic.SchemaAssociation | undefined;
5
+ /** Whether including this field can prevent an otherwise incremental bulk read. Available on source schema detail when Polytomic can assess the field. A false value does not guarantee that a specific bulk sync reads incrementally. */
6
+ blocks_incremental_read?: boolean | undefined;
5
7
  /** Schema field ID */
6
8
  id?: string | undefined;
7
9
  /** Whether this field is part of the schema's primary key, including any user override */
8
10
  is_primary_key?: boolean | undefined;
9
11
  /** Display name of the field */
10
12
  name?: string | undefined;
13
+ /** Human-readable explanation when the field blocks incremental reads and the source provides a reason */
14
+ non_incremental_reason?: string | undefined;
11
15
  /** JSONPath used to extract the field from each source record; only meaningful for document-style backends */
12
16
  path?: string | undefined;
13
17
  /** The user-set primary key status for this field, which takes precedence over source_primary_key; omitted when no override is set */
@@ -0,0 +1,4 @@
1
+ export interface SchemaSchemaError {
2
+ error?: string | undefined;
3
+ schema_id?: string | undefined;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,8 @@ export interface SyncDestinationProperties {
11
11
  optional_target_mappings?: boolean | undefined;
12
12
  /** For destinations with multiple metadata dictionaries, identifies which dictionary new custom properties should be added to */
13
13
  primary_metadata_object?: string | undefined;
14
+ /** True if Mirror executions report added and removed membership counts */
15
+ reports_mirror_operation_counts?: boolean | undefined;
14
16
  /** True if the destination requires target-level configuration before a sync can run */
15
17
  requires_configuration?: boolean | undefined;
16
18
  /** True if a sync may create new fields on this target as part of mapping */
@@ -245,6 +245,7 @@ export * from "./IdentityCredentialCapabilitiesSchema";
245
245
  export * from "./IdentityCredentialConnectionCapabilitySchema";
246
246
  export * from "./IdentityCredentialHarborSchema";
247
247
  export * from "./IdentityCredentialSchema";
248
+ export * from "./IdentityCredentialSupportAccessSchema";
248
249
  export * from "./IdentityFunction";
249
250
  export * from "./IngestionStatusLevel";
250
251
  export * from "./JobResponse";
@@ -271,6 +272,7 @@ export * from "./ModelFieldSearchHit";
271
272
  export * from "./ModelFilterCondition";
272
273
  export * from "./ModelFilters";
273
274
  export * from "./ModelListResponseEnvelope";
275
+ export * from "./ModelModelFieldOverride";
274
276
  export * from "./ModelModelFieldRequest";
275
277
  export * from "./ModelRelation";
276
278
  export * from "./ModelRelationTo";
@@ -341,6 +343,7 @@ export * from "./SchemaOperationIdempotency";
341
343
  export * from "./SchemaPrimaryKeyOverrideInput";
342
344
  export * from "./SchemaRecord";
343
345
  export * from "./SchemaRecordsResponseEnvelope";
346
+ export * from "./SchemaSchemaError";
344
347
  export * from "./SearchEnvelope";
345
348
  export * from "./SearchMatch";
346
349
  export * from "./SearchMatchAttribute";
@@ -261,6 +261,7 @@ __exportStar(require("./IdentityCredentialCapabilitiesSchema"), exports);
261
261
  __exportStar(require("./IdentityCredentialConnectionCapabilitySchema"), exports);
262
262
  __exportStar(require("./IdentityCredentialHarborSchema"), exports);
263
263
  __exportStar(require("./IdentityCredentialSchema"), exports);
264
+ __exportStar(require("./IdentityCredentialSupportAccessSchema"), exports);
264
265
  __exportStar(require("./IdentityFunction"), exports);
265
266
  __exportStar(require("./IngestionStatusLevel"), exports);
266
267
  __exportStar(require("./JobResponse"), exports);
@@ -287,6 +288,7 @@ __exportStar(require("./ModelFieldSearchHit"), exports);
287
288
  __exportStar(require("./ModelFilterCondition"), exports);
288
289
  __exportStar(require("./ModelFilters"), exports);
289
290
  __exportStar(require("./ModelListResponseEnvelope"), exports);
291
+ __exportStar(require("./ModelModelFieldOverride"), exports);
290
292
  __exportStar(require("./ModelModelFieldRequest"), exports);
291
293
  __exportStar(require("./ModelRelation"), exports);
292
294
  __exportStar(require("./ModelRelationTo"), exports);
@@ -357,6 +359,7 @@ __exportStar(require("./SchemaOperationIdempotency"), exports);
357
359
  __exportStar(require("./SchemaPrimaryKeyOverrideInput"), exports);
358
360
  __exportStar(require("./SchemaRecord"), exports);
359
361
  __exportStar(require("./SchemaRecordsResponseEnvelope"), exports);
362
+ __exportStar(require("./SchemaSchemaError"), exports);
360
363
  __exportStar(require("./SearchEnvelope"), exports);
361
364
  __exportStar(require("./SearchMatch"), exports);
362
365
  __exportStar(require("./SearchMatchAttribute"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytomic",
3
- "version": "25.9.13",
3
+ "version": "25.9.14",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -2092,6 +2092,11 @@ Results may be paginated across multiple blobs. When that happens, use the
2092
2092
  opaque `links.next` and `links.previous` URLs exactly as returned. Do not try to
2093
2093
  construct the `page` token yourself.
2094
2094
 
2095
+ Non-finite numeric results use JSON strings: `"NaN"`, `"Infinity"`, and
2096
+ `"-Infinity"`. Finite numbers remain JSON numbers, and SQL NULL remains `null`.
2097
+ This also applies inside lists, structs, and maps. These strings are
2098
+ indistinguishable from literal text with the same spelling.
2099
+
2095
2100
  If the query is still running, the response may include only status metadata.
2096
2101
  The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
2097
2102
  means execution started, but its durable terminal result was lost or expired.
@@ -3086,6 +3091,32 @@ completes to retrieve the field list.
3086
3091
  The model is not saved, and `policies` and `labels` are ignored. Use this
3087
3092
  endpoint to validate a query or configuration before calling
3088
3093
  [`POST /api/models`](../../api-reference/models/create) to save it.
3094
+
3095
+ ## Field type overrides
3096
+
3097
+ Use `field_overrides` to choose types for detected source fields on CSV file,
3098
+ HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
3099
+ Keep `additional_fields` for user-defined fields.
3100
+
3101
+ For example, include this fragment in a complete model request to treat `amount`
3102
+ as a number:
3103
+
3104
+ ```json
3105
+ {
3106
+ "field_overrides": {
3107
+ "amount": { "type": "number" }
3108
+ }
3109
+ }
3110
+ ```
3111
+
3112
+ Use `fields` separately to choose which fields to publish. The response's
3113
+ `fields[].type` contains each published field's effective type.
3114
+
3115
+ On update, only supplied override entries change types. Omitted entries, an
3116
+ empty map, or `null` preserve current types, including types chosen in the UI.
3117
+ Removing an entry does not restore its inferred type; supply another concrete
3118
+ type to change it. There is no separate inferred-type or override-state map in
3119
+ the response.
3089
3120
  </dd>
3090
3121
  </dl>
3091
3122
  </dd>
@@ -3224,6 +3255,32 @@ creating model syncs.
3224
3255
  The connection referenced by `connection_id` must have source capabilities. Use
3225
3256
  [`GET /api/connection_types/{id}`](../../api-reference/connections/get-connection-type-schema) to check
3226
3257
  whether a connection type supports use as a source.
3258
+
3259
+ ## Field type overrides
3260
+
3261
+ Use `field_overrides` to choose types for detected source fields on CSV file,
3262
+ HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
3263
+ Keep `additional_fields` for user-defined fields.
3264
+
3265
+ For example, include this fragment in a complete model request to treat `amount`
3266
+ as a number:
3267
+
3268
+ ```json
3269
+ {
3270
+ "field_overrides": {
3271
+ "amount": { "type": "number" }
3272
+ }
3273
+ }
3274
+ ```
3275
+
3276
+ Use `fields` separately to choose which fields to publish. The response's
3277
+ `fields[].type` contains each published field's effective type.
3278
+
3279
+ On update, only supplied override entries change types. Omitted entries, an
3280
+ empty map, or `null` preserve current types, including types chosen in the UI.
3281
+ Removing an entry does not restore its inferred type; supply another concrete
3282
+ type to change it. There is no separate inferred-type or override-state map in
3283
+ the response.
3227
3284
  </dd>
3228
3285
  </dl>
3229
3286
  </dd>
@@ -3376,8 +3433,9 @@ Updates a model's configuration.
3376
3433
 
3377
3434
  Updating a model is a **full replacement** of its configuration. Every field in
3378
3435
  the request body is written to the model; any field you omit is cleared or reset
3379
- to its default value. An empty or omitted `policies` list leaves the model's
3380
- current policies unchanged.
3436
+ to its default value, with two exceptions: an empty or omitted `policies` list
3437
+ leaves policies unchanged, and omitted `field_overrides` entries retain their
3438
+ current types.
3381
3439
 
3382
3440
  To make a partial change, fetch the current model with
3383
3441
  [`GET /api/models/{id}`](../../../api-reference/models/get), modify the fields you want to change, and send
@@ -3385,6 +3443,32 @@ the complete object back in the update request.
3385
3443
 
3386
3444
  Changes to source fields, filters, or the identity column take effect on the
3387
3445
  next sync execution that uses this model.
3446
+
3447
+ ## Field type overrides
3448
+
3449
+ Use `field_overrides` to choose types for detected source fields on CSV file,
3450
+ HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
3451
+ Keep `additional_fields` for user-defined fields.
3452
+
3453
+ For example, include this fragment in a complete model request to treat `amount`
3454
+ as a number:
3455
+
3456
+ ```json
3457
+ {
3458
+ "field_overrides": {
3459
+ "amount": { "type": "number" }
3460
+ }
3461
+ }
3462
+ ```
3463
+
3464
+ Use `fields` separately to choose which fields to publish. The response's
3465
+ `fields[].type` contains each published field's effective type.
3466
+
3467
+ On update, only supplied override entries change types. Omitted entries, an
3468
+ empty map, or `null` preserve current types, including types chosen in the UI.
3469
+ Removing an entry does not restore its inferred type; supply another concrete
3470
+ type to change it. There is no separate inferred-type or override-state map in
3471
+ the response.
3388
3472
  </dd>
3389
3473
  </dl>
3390
3474
  </dd>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "25.9.13";
1
+ export declare const SDK_VERSION = "25.9.14";
package/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 = "25.9.13";
4
+ exports.SDK_VERSION = "25.9.14";