polytomic 25.9.10 → 25.9.11

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 (88) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +2 -1
  3. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -1
  4. package/api/resources/entities/client/Client.d.ts +78 -8
  5. package/api/resources/entities/client/Client.js +132 -8
  6. package/api/resources/entities/client/index.d.ts +1 -1
  7. package/api/resources/entities/client/index.js +15 -0
  8. package/api/resources/entities/client/requests/EntitiesSearchRequest.d.ts +13 -0
  9. package/api/resources/entities/client/requests/EntitiesSearchRequest.js +3 -0
  10. package/api/resources/entities/client/requests/index.d.ts +1 -0
  11. package/api/resources/entities/client/requests/index.js +2 -0
  12. package/api/resources/harbors/client/Client.d.ts +248 -0
  13. package/api/resources/harbors/client/Client.js +622 -0
  14. package/api/resources/harbors/client/requests/HarborsListActionConfigurationSchemasRequest.d.ts +16 -0
  15. package/api/resources/harbors/client/requests/HarborsListActionConfigurationSchemasRequest.js +3 -0
  16. package/api/resources/harbors/client/requests/HarborsRemoveActionConfigurationRequest.d.ts +10 -0
  17. package/api/resources/harbors/client/requests/HarborsRemoveActionConfigurationRequest.js +3 -0
  18. package/api/resources/harbors/client/requests/SetHarborActionConfigurationRequest.d.ts +11 -0
  19. package/api/resources/harbors/client/requests/SetHarborActionConfigurationRequest.js +3 -0
  20. package/api/resources/harbors/client/requests/index.d.ts +3 -0
  21. package/api/resources/index.d.ts +1 -0
  22. package/api/resources/index.js +1 -0
  23. package/api/resources/modelSync/client/Client.d.ts +24 -0
  24. package/api/resources/modelSync/client/Client.js +24 -0
  25. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  26. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -0
  27. package/api/types/BulkExecutionStatus.d.ts +1 -0
  28. package/api/types/BulkExecutionStatus.js +1 -0
  29. package/api/types/BulkSyncSearchHit.d.ts +14 -0
  30. package/api/types/BulkSyncSearchHit.js +3 -0
  31. package/api/types/ConnectionSearchHit.d.ts +9 -0
  32. package/api/types/ConnectionSearchHit.js +3 -0
  33. package/api/types/CreateModelRequest.d.ts +1 -0
  34. package/api/types/EntityResponse.d.ts +1 -1
  35. package/api/types/HarborActionConfigurationEnvelope.d.ts +5 -0
  36. package/api/types/HarborActionConfigurationEnvelope.js +3 -0
  37. package/api/types/HarborActionConfigurationFieldResponse.d.ts +20 -0
  38. package/api/types/HarborActionConfigurationFieldResponse.js +3 -0
  39. package/api/types/HarborActionConfigurationIdempotencyResponse.d.ts +6 -0
  40. package/api/types/HarborActionConfigurationIdempotencyResponse.js +3 -0
  41. package/api/types/HarborActionConfigurationOperationResponse.d.ts +28 -0
  42. package/api/types/HarborActionConfigurationOperationResponse.js +12 -0
  43. package/api/types/HarborActionConfigurationOperationsEnvelope.d.ts +4 -0
  44. package/api/types/HarborActionConfigurationOperationsEnvelope.js +3 -0
  45. package/api/types/HarborActionConfigurationResponse.d.ts +13 -0
  46. package/api/types/HarborActionConfigurationResponse.js +3 -0
  47. package/api/types/HarborActionConfigurationSchemasEnvelope.d.ts +5 -0
  48. package/api/types/HarborActionConfigurationSchemasEnvelope.js +3 -0
  49. package/api/types/HarborActionGrantSchema.d.ts +10 -0
  50. package/api/types/HarborActionGrantSchema.js +3 -0
  51. package/api/types/HarborActionSchemaResponse.d.ts +8 -0
  52. package/api/types/HarborActionSchemaResponse.js +3 -0
  53. package/api/types/HarborActionSourceConnectionResponse.d.ts +8 -0
  54. package/api/types/HarborActionSourceConnectionResponse.js +3 -0
  55. package/api/types/HarborActionSourceConnectionsEnvelope.d.ts +4 -0
  56. package/api/types/HarborActionSourceConnectionsEnvelope.js +3 -0
  57. package/api/types/IdentityCredentialSchema.d.ts +2 -0
  58. package/api/types/ModelFieldSearchHit.d.ts +15 -0
  59. package/api/types/ModelFieldSearchHit.js +3 -0
  60. package/api/types/ModelSearchHit.d.ts +11 -0
  61. package/api/types/ModelSearchHit.js +3 -0
  62. package/api/types/ModelSyncSearchHit.d.ts +12 -0
  63. package/api/types/ModelSyncSearchHit.js +3 -0
  64. package/api/types/ModelSyncSourceConnection.d.ts +5 -0
  65. package/api/types/ModelSyncSourceConnection.js +3 -0
  66. package/api/types/SearchEnvelope.d.ts +5 -0
  67. package/api/types/SearchEnvelope.js +3 -0
  68. package/api/types/SearchMatch.d.ts +7 -0
  69. package/api/types/SearchMatch.js +3 -0
  70. package/api/types/SearchMatchAttribute.d.ts +8 -0
  71. package/api/types/SearchMatchAttribute.js +3 -0
  72. package/api/types/SearchMatchMapping.d.ts +19 -0
  73. package/api/types/SearchMatchMapping.js +12 -0
  74. package/api/types/SearchMatchSchema.d.ts +8 -0
  75. package/api/types/SearchMatchSchema.js +3 -0
  76. package/api/types/SearchResultItem.d.ts +19 -0
  77. package/api/types/SearchResultItem.js +3 -0
  78. package/api/types/SearchResultLinks.d.ts +8 -0
  79. package/api/types/SearchResultLinks.js +3 -0
  80. package/api/types/SearchResultMetadata.d.ts +6 -0
  81. package/api/types/SearchResultMetadata.js +3 -0
  82. package/api/types/SyncDestinationProperties.d.ts +2 -0
  83. package/api/types/index.d.ts +25 -0
  84. package/api/types/index.js +25 -0
  85. package/package.json +1 -1
  86. package/reference.md +752 -9
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * expected_revision: "248df4b7-aa70-47b8-a036-33ac447e668d"
5
+ * }
6
+ */
7
+ export interface HarborsRemoveActionConfigurationRequest {
8
+ /** Current revision of the Connection's action grants. */
9
+ expected_revision: string;
10
+ }
@@ -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,11 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface SetHarborActionConfigurationRequest {
7
+ /** Current revision when replacing existing grants. Omit when creating grants for this Connection. */
8
+ expected_revision?: string;
9
+ /** Complete replacement of this Connection's action grants. */
10
+ grants?: Polytomic.HarborActionGrantSchema[];
11
+ }
@@ -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,7 @@ export type { HarborsGetContextDraftRequest } from "./HarborsGetContextDraftRequ
11
11
  export type { HarborsGetContextRequest } from "./HarborsGetContextRequest";
12
12
  export type { HarborsGetContextVersionRequest } from "./HarborsGetContextVersionRequest";
13
13
  export type { HarborsGetSavedQueryRequest } from "./HarborsGetSavedQueryRequest";
14
+ export type { HarborsListActionConfigurationSchemasRequest } from "./HarborsListActionConfigurationSchemasRequest";
14
15
  export type { HarborsListAuthorizedConnectionsRequest } from "./HarborsListAuthorizedConnectionsRequest";
15
16
  export type { HarborsListAuthorizedSchemasRequest } from "./HarborsListAuthorizedSchemasRequest";
16
17
  export type { HarborsListContextDraftsRequest } from "./HarborsListContextDraftsRequest";
@@ -22,6 +23,7 @@ export type { HarborsListSavedQueriesRequest } from "./HarborsListSavedQueriesRe
22
23
  export type { HarborsListSavedQueryDraftsRequest } from "./HarborsListSavedQueryDraftsRequest";
23
24
  export type { HarborsListUsersRequest } from "./HarborsListUsersRequest";
24
25
  export type { HarborsPromoteContextDraftRequest } from "./HarborsPromoteContextDraftRequest";
26
+ export type { HarborsRemoveActionConfigurationRequest } from "./HarborsRemoveActionConfigurationRequest";
25
27
  export type { InviteHarborUserRequest } from "./InviteHarborUserRequest";
26
28
  export type { RegisterHarborSessionRequest } from "./RegisterHarborSessionRequest";
27
29
  export type { ResolveHarborSourceMappingsRequest } from "./ResolveHarborSourceMappingsRequest";
@@ -29,4 +31,5 @@ export type { RunHarborQueryRequest } from "./RunHarborQueryRequest";
29
31
  export type { SaveHarborContextDraftRequest } from "./SaveHarborContextDraftRequest";
30
32
  export type { SaveHarborContextRequest } from "./SaveHarborContextRequest";
31
33
  export type { SaveHarborSavedQueryDraftRequest } from "./SaveHarborSavedQueryDraftRequest";
34
+ export type { SetHarborActionConfigurationRequest } from "./SetHarborActionConfigurationRequest";
32
35
  export type { UpdateHarborRequest } from "./UpdateHarborRequest";
@@ -6,6 +6,7 @@ export * from "./bulkSync/client/requests";
6
6
  export * as connections from "./connections";
7
7
  export * from "./connections/client/requests";
8
8
  export * as entities from "./entities";
9
+ export * from "./entities/client/requests";
9
10
  export * as events from "./events";
10
11
  export * from "./events/client/requests";
11
12
  export * as harbors from "./harbors";
@@ -45,6 +45,7 @@ __exportStar(require("./bulkSync/client/requests"), exports);
45
45
  exports.connections = __importStar(require("./connections"));
46
46
  __exportStar(require("./connections/client/requests"), exports);
47
47
  exports.entities = __importStar(require("./entities"));
48
+ __exportStar(require("./entities/client/requests"), exports);
48
49
  exports.events = __importStar(require("./events"));
49
50
  __exportStar(require("./events/client/requests"), exports);
50
51
  exports.harbors = __importStar(require("./harbors"));
@@ -59,6 +59,30 @@ export declare class ModelSyncClient {
59
59
  * The available source configuration parameters are described by
60
60
  * [`GET /api/connections/{id}/modelsync/source`](../../../../../../api-reference/model-sync/get-source).
61
61
  *
62
+ * ## Query parameter format
63
+ *
64
+ * Send each source setting as a bracketed key with a single string value. For
65
+ * example, a source configured with `stream_id: "deals"` uses
66
+ * `params[stream_id]=deals`.
67
+ *
68
+ * With Polytomic MCP, pass the bracketed key directly in `query`:
69
+ *
70
+ * ```javascript
71
+ * async () => {
72
+ * return polytomic.request({
73
+ * method: "GET",
74
+ * path: "/api/connections/<connection_id>/modelsync/source/fields",
75
+ * query: {"params[stream_id]": "deals"}
76
+ * });
77
+ * }
78
+ * ```
79
+ *
80
+ * > ⚠️ Send one value per setting
81
+ * >
82
+ * > Each setting uses only the first value if you repeat its query key. An empty
83
+ * > array suffix, such as `params[stream_id][]=deals`, is rejected with
84
+ * > `400 Bad Request`. Use `params[stream_id]=deals` instead.
85
+ *
62
86
  * @param {string} id - Unique identifier of the connection.
63
87
  * @param {Polytomic.ModelSyncGetSourceFieldsRequest} request
64
88
  * @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -161,6 +161,30 @@ class ModelSyncClient {
161
161
  * The available source configuration parameters are described by
162
162
  * [`GET /api/connections/{id}/modelsync/source`](../../../../../../api-reference/model-sync/get-source).
163
163
  *
164
+ * ## Query parameter format
165
+ *
166
+ * Send each source setting as a bracketed key with a single string value. For
167
+ * example, a source configured with `stream_id: "deals"` uses
168
+ * `params[stream_id]=deals`.
169
+ *
170
+ * With Polytomic MCP, pass the bracketed key directly in `query`:
171
+ *
172
+ * ```javascript
173
+ * async () => {
174
+ * return polytomic.request({
175
+ * method: "GET",
176
+ * path: "/api/connections/<connection_id>/modelsync/source/fields",
177
+ * query: {"params[stream_id]": "deals"}
178
+ * });
179
+ * }
180
+ * ```
181
+ *
182
+ * > ⚠️ Send one value per setting
183
+ * >
184
+ * > Each setting uses only the first value if you repeat its query key. An empty
185
+ * > array suffix, such as `params[stream_id][]=deals`, is rejected with
186
+ * > `400 Bad Request`. Use `params[stream_id]=deals` instead.
187
+ *
164
188
  * @param {string} id - Unique identifier of the connection.
165
189
  * @param {Polytomic.ModelSyncGetSourceFieldsRequest} request
166
190
  * @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface ModelSyncGetSourceFieldsRequest {
6
6
  /** Source configuration, matching the params used with GET /api/connections/{id}/modelsync/source, that selects the specific source to return fields for. */
7
- params?: Record<string, string[] | undefined>;
7
+ params?: Record<string, string | undefined>;
8
8
  }
@@ -16,6 +16,7 @@ export interface UpdateModelRequest {
16
16
  configuration: Record<string, unknown>;
17
17
  connection_id: string;
18
18
  enricher?: Polytomic.Enrichment;
19
+ /** 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. */
19
20
  fields?: string[];
20
21
  identifier?: string;
21
22
  labels?: string[];
@@ -10,5 +10,6 @@ export declare const BulkExecutionStatus: {
10
10
  readonly Processing: "processing";
11
11
  readonly Errors: "errors";
12
12
  readonly Interrupted: "interrupted";
13
+ readonly CompletedWithCancellations: "completed_with_cancellations";
13
14
  };
14
15
  export type BulkExecutionStatus = (typeof BulkExecutionStatus)[keyof typeof BulkExecutionStatus];
@@ -14,4 +14,5 @@ exports.BulkExecutionStatus = {
14
14
  Processing: "processing",
15
15
  Errors: "errors",
16
16
  Interrupted: "interrupted",
17
+ CompletedWithCancellations: "completed_with_cancellations",
17
18
  };
@@ -0,0 +1,14 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface BulkSyncSearchHit {
3
+ bulk_sync_id: string;
4
+ bulk_sync_name: string;
5
+ links: Polytomic.SearchResultLinks;
6
+ /** Contributing attributes grouped by saved mapping or schema context, with one group for resource metadata. */
7
+ matches?: Polytomic.SearchMatch[] | undefined;
8
+ source_connection_id: string;
9
+ source_connection_name: string;
10
+ source_connection_type: string;
11
+ target_connection_id: string;
12
+ target_connection_name: string;
13
+ target_connection_type: string;
14
+ }
@@ -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,9 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface ConnectionSearchHit {
3
+ connection_id: string;
4
+ connection_name: string;
5
+ connection_type: string;
6
+ links: Polytomic.SearchResultLinks;
7
+ /** Contributing attributes grouped by saved mapping context, with one group for resource metadata. */
8
+ matches?: Polytomic.SearchMatch[] | undefined;
9
+ }
@@ -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 });
@@ -4,6 +4,7 @@ export interface CreateModelRequest {
4
4
  configuration: Record<string, unknown>;
5
5
  connection_id: string;
6
6
  enricher?: Polytomic.Enrichment | undefined;
7
+ /** 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. */
7
8
  fields?: string[] | undefined;
8
9
  identifier?: string | undefined;
9
10
  labels?: string[] | undefined;
@@ -10,6 +10,6 @@ export interface EntityResponse {
10
10
  organization_id?: string | undefined;
11
11
  /** Parent resources needed to address nested resources, keyed by relationship name (e.g. "sync", "bulk_sync", "harbor"). */
12
12
  relationships?: Record<string, Polytomic.EntityRelationship> | undefined;
13
- /** Resolved entity type. One of: organization, user, connection, model, sync, sync_execution, bulk_sync, bulk_sync_execution, harbor, harbor_context. */
13
+ /** Resolved entity type. One of: organization, user, connection, model, model_sync, model_sync_execution, bulk_sync, bulk_sync_execution, harbor, harbor_context. */
14
14
  type?: string | undefined;
15
15
  }
@@ -0,0 +1,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionConfigurationEnvelope {
3
+ /** All configured action Connections after this request. */
4
+ data?: Polytomic.HarborActionConfigurationResponse[] | undefined;
5
+ }
@@ -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,20 @@
1
+ export interface HarborActionConfigurationFieldResponse {
2
+ /** Field description. */
3
+ description?: string | undefined;
4
+ /** Stable configurable field ID. */
5
+ id?: string | undefined;
6
+ /** Maximum input size in bytes, when constrained. */
7
+ max_bytes?: number | undefined;
8
+ /** Field name. */
9
+ name?: string | undefined;
10
+ /** Whether a nonblank value is required. */
11
+ non_blank?: boolean | undefined;
12
+ /** Whether this input field accepts null. */
13
+ nullable?: boolean | undefined;
14
+ /** Validation pattern, when constrained. */
15
+ pattern?: string | undefined;
16
+ /** Whether the operation requires this input field. */
17
+ required?: boolean | undefined;
18
+ /** Scalar field type. */
19
+ type?: string | undefined;
20
+ }
@@ -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,6 @@
1
+ export interface HarborActionConfigurationIdempotencyResponse {
2
+ /** Provider deduplication window in nanoseconds. */
3
+ retention_ns?: number | undefined;
4
+ /** Provider idempotency scope. */
5
+ scope?: 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,28 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionConfigurationOperationResponse {
3
+ /** Operation description. */
4
+ description?: string | undefined;
5
+ /** Whether the operation changes records or only reads them. */
6
+ effect?: HarborActionConfigurationOperationResponse.Effect | undefined;
7
+ idempotency?: Polytomic.HarborActionConfigurationIdempotencyResponse | undefined;
8
+ /** Fields you can grant for a mutating operation. */
9
+ input_fields?: Polytomic.HarborActionConfigurationFieldResponse[] | undefined;
10
+ /** Lookup fields supported by this operation. */
11
+ lookup_fields?: Polytomic.HarborActionConfigurationFieldResponse[] | undefined;
12
+ /** Operation name. */
13
+ name?: string | undefined;
14
+ /** Stable operation ID. */
15
+ operation_id?: string | undefined;
16
+ /** Fields you can grant for a read-only operation. */
17
+ output_fields?: Polytomic.HarborActionConfigurationFieldResponse[] | undefined;
18
+ /** Action schema ID. */
19
+ schema_id?: string | undefined;
20
+ }
21
+ export declare namespace HarborActionConfigurationOperationResponse {
22
+ /** Whether the operation changes records or only reads them. */
23
+ const Effect: {
24
+ readonly Mutating: "mutating";
25
+ readonly ReadOnly: "read_only";
26
+ };
27
+ type Effect = (typeof Effect)[keyof typeof Effect];
28
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HarborActionConfigurationOperationResponse = void 0;
5
+ var HarborActionConfigurationOperationResponse;
6
+ (function (HarborActionConfigurationOperationResponse) {
7
+ /** Whether the operation changes records or only reads them. */
8
+ HarborActionConfigurationOperationResponse.Effect = {
9
+ Mutating: "mutating",
10
+ ReadOnly: "read_only",
11
+ };
12
+ })(HarborActionConfigurationOperationResponse || (exports.HarborActionConfigurationOperationResponse = HarborActionConfigurationOperationResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionConfigurationOperationsEnvelope {
3
+ data?: Polytomic.HarborActionConfigurationOperationResponse[] | 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 });
@@ -0,0 +1,13 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionConfigurationResponse {
3
+ /** Configured source Connection ID, including sources no longer attached to the Harbor. */
4
+ connection_id?: string | undefined;
5
+ /** When these grants were first created. */
6
+ created_at?: string | undefined;
7
+ /** Configured action permissions. */
8
+ grants?: Polytomic.HarborActionGrantSchema[] | undefined;
9
+ /** Revision to supply when replacing or removing these grants. */
10
+ revision?: string | undefined;
11
+ /** When these grants were last replaced. */
12
+ updated_at?: string | undefined;
13
+ }
@@ -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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionConfigurationSchemasEnvelope {
3
+ data?: Polytomic.HarborActionSchemaResponse[] | undefined;
4
+ pagination?: Polytomic.PaginationDetails | undefined;
5
+ }
@@ -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,10 @@
1
+ export interface HarborActionGrantSchema {
2
+ /** Unique input field IDs for a mutating operation, or output field IDs for a read-only operation. */
3
+ field_ids?: string[] | undefined;
4
+ /** Unique lookup field IDs for a read-only operation. Omit for a mutating operation. */
5
+ lookup_field_ids?: string[] | undefined;
6
+ /** Exact operation ID from operation discovery. */
7
+ operation_id: string;
8
+ /** Exact action schema ID. */
9
+ schema_id: string;
10
+ }
@@ -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,8 @@
1
+ export interface HarborActionSchemaResponse {
2
+ /** Stable action schema ID. */
3
+ id?: string | undefined;
4
+ /** Action schema name. */
5
+ name?: string | undefined;
6
+ /** Operation IDs advertised by the schema catalog. Operation discovery supplies the current configurable fields. */
7
+ operations?: string[] | undefined;
8
+ }
@@ -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,8 @@
1
+ export interface HarborActionSourceConnectionResponse {
2
+ /** Connection backend type. */
3
+ connection_type?: string | undefined;
4
+ /** Eligible source Connection ID. */
5
+ id?: string | undefined;
6
+ /** Connection name. */
7
+ name?: string | undefined;
8
+ }
@@ -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,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionSourceConnectionsEnvelope {
3
+ data?: Polytomic.HarborActionSourceConnectionResponse[] | 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 });
@@ -1,6 +1,8 @@
1
1
  import type * as Polytomic from "../index";
2
2
  export interface IdentityCredentialSchema {
3
3
  api_key_profile?: Polytomic.IdentityCredentialApiKeyProfileSchema | undefined;
4
+ /** Provider expiry of a temporary API key. */
5
+ expires_at?: string | undefined;
4
6
  harbor?: Polytomic.IdentityCredentialHarborSchema | undefined;
5
7
  /** Authentication method used for the request. */
6
8
  method?: string | undefined;
@@ -0,0 +1,15 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface ModelFieldSearchHit {
3
+ field_id: string;
4
+ field_label: string;
5
+ /** Source or technical field name. */
6
+ field_name: string;
7
+ links: Polytomic.SearchResultLinks;
8
+ /** Contributing attributes grouped by saved mapping context, with one group for resource metadata. */
9
+ matches?: Polytomic.SearchMatch[] | undefined;
10
+ model_connection_id: string;
11
+ model_connection_name: string;
12
+ model_connection_type: string;
13
+ model_id: string;
14
+ model_name: string;
15
+ }
@@ -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,11 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface ModelSearchHit {
3
+ links: Polytomic.SearchResultLinks;
4
+ /** Contributing attributes grouped by saved mapping context, with one group for resource metadata. */
5
+ matches?: Polytomic.SearchMatch[] | undefined;
6
+ model_connection_id: string;
7
+ model_connection_name: string;
8
+ model_connection_type: string;
9
+ model_id: string;
10
+ model_name: string;
11
+ }
@@ -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,12 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface ModelSyncSearchHit {
3
+ links: Polytomic.SearchResultLinks;
4
+ /** Contributing attributes grouped by saved mapping context, with one group for resource metadata. */
5
+ matches?: Polytomic.SearchMatch[] | undefined;
6
+ source_connections: Polytomic.ModelSyncSourceConnection[];
7
+ sync_id: string;
8
+ sync_name: string;
9
+ target_connection_id: string;
10
+ target_connection_name: string;
11
+ target_connection_type: string;
12
+ }
@@ -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,5 @@
1
+ export interface ModelSyncSourceConnection {
2
+ connection_id: string;
3
+ connection_name: string;
4
+ connection_type: string;
5
+ }
@@ -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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface SearchEnvelope {
3
+ data?: Polytomic.SearchResultItem[] | undefined;
4
+ metadata?: Polytomic.SearchResultMetadata | undefined;
5
+ }
@@ -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,7 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface SearchMatch {
3
+ /** Indexed attributes contributing to this result, with matching query terms. */
4
+ attributes?: Polytomic.SearchMatchAttribute[] | undefined;
5
+ mapping?: Polytomic.SearchMatchMapping | undefined;
6
+ schema?: Polytomic.SearchMatchSchema | undefined;
7
+ }
@@ -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,8 @@
1
+ export interface SearchMatchAttribute {
2
+ /** Indexed attribute that matched a query term. */
3
+ attribute: string;
4
+ /** Unique normalized query terms matching word prefixes in this value. */
5
+ terms?: string[] | undefined;
6
+ /** Original indexed string, before tokenization and case normalization. */
7
+ value: string;
8
+ }
@@ -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,19 @@
1
+ export interface SearchMatchMapping {
2
+ kind: SearchMatchMapping.Kind;
3
+ source_field_id?: string | undefined;
4
+ source_field_label?: string | undefined;
5
+ source_field_name?: string | undefined;
6
+ source_model_id?: string | undefined;
7
+ source_model_name?: string | undefined;
8
+ target_field_id: string;
9
+ /** Target field name from stored schema metadata, when available. */
10
+ target_field_name?: string | undefined;
11
+ }
12
+ export declare namespace SearchMatchMapping {
13
+ const Kind: {
14
+ readonly Field: "field";
15
+ readonly PrimaryIdentity: "primary_identity";
16
+ readonly SecondaryIdentity: "secondary_identity";
17
+ };
18
+ type Kind = (typeof Kind)[keyof typeof Kind];
19
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SearchMatchMapping = void 0;
5
+ var SearchMatchMapping;
6
+ (function (SearchMatchMapping) {
7
+ SearchMatchMapping.Kind = {
8
+ Field: "field",
9
+ PrimaryIdentity: "primary_identity",
10
+ SecondaryIdentity: "secondary_identity",
11
+ };
12
+ })(SearchMatchMapping || (exports.SearchMatchMapping = SearchMatchMapping = {}));
@@ -0,0 +1,8 @@
1
+ export interface SearchMatchSchema {
2
+ /** Configured destination output name, when available. */
3
+ output_name?: string | undefined;
4
+ /** Saved source schema ID. */
5
+ schema_id: string;
6
+ /** Source schema display name from stored metadata, when available. */
7
+ schema_name?: string | undefined;
8
+ }
@@ -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,19 @@
1
+ import type * as Polytomic from "../index";
2
+ export type SearchResultItem = Polytomic.SearchResultItem.Model | Polytomic.SearchResultItem.ModelField | Polytomic.SearchResultItem.ModelSync | Polytomic.SearchResultItem.BulkSync | Polytomic.SearchResultItem.Connection;
3
+ export declare namespace SearchResultItem {
4
+ interface Model extends Polytomic.ModelSearchHit {
5
+ type: "model";
6
+ }
7
+ interface ModelField extends Polytomic.ModelFieldSearchHit {
8
+ type: "model_field";
9
+ }
10
+ interface ModelSync extends Polytomic.ModelSyncSearchHit {
11
+ type: "model_sync";
12
+ }
13
+ interface BulkSync extends Polytomic.BulkSyncSearchHit {
14
+ type: "bulk_sync";
15
+ }
16
+ interface Connection extends Polytomic.ConnectionSearchHit {
17
+ type: "connection";
18
+ }
19
+ }
@@ -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 });