polytomic 25.9.5 → 25.9.7

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 (71) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/bulkSync/client/Client.d.ts +4 -2
  3. package/api/resources/bulkSync/client/Client.js +4 -2
  4. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  5. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
  6. package/api/resources/bulkSync/resources/schemas/client/Client.js +3 -0
  7. package/api/resources/harbors/client/Client.d.ts +424 -0
  8. package/api/resources/harbors/client/Client.js +946 -0
  9. package/api/resources/harbors/client/requests/CreateHarborSavedQueryDraftRequest.d.ts +24 -0
  10. package/api/resources/harbors/client/requests/CreateHarborSavedQueryDraftRequest.js +3 -0
  11. package/api/resources/harbors/client/requests/ExecuteHarborSavedQueryRequest.d.ts +10 -0
  12. package/api/resources/harbors/client/requests/ExecuteHarborSavedQueryRequest.js +3 -0
  13. package/api/resources/harbors/client/requests/HarborsGetSavedQueryRequest.d.ts +8 -0
  14. package/api/resources/harbors/client/requests/HarborsGetSavedQueryRequest.js +3 -0
  15. package/api/resources/harbors/client/requests/HarborsListSavedQueriesRequest.d.ts +15 -0
  16. package/api/resources/harbors/client/requests/HarborsListSavedQueriesRequest.js +3 -0
  17. package/api/resources/harbors/client/requests/HarborsListSavedQueryDraftsRequest.d.ts +13 -0
  18. package/api/resources/harbors/client/requests/HarborsListSavedQueryDraftsRequest.js +3 -0
  19. package/api/resources/harbors/client/requests/SaveHarborSavedQueryDraftRequest.d.ts +24 -0
  20. package/api/resources/harbors/client/requests/SaveHarborSavedQueryDraftRequest.js +3 -0
  21. package/api/resources/harbors/client/requests/index.d.ts +6 -0
  22. package/api/resources/modelSync/client/requests/CreateModelSyncV5Request.d.ts +3 -0
  23. package/api/resources/modelSync/client/requests/UpdateModelSyncV5Request.d.ts +3 -0
  24. package/api/types/DeletedHarborSavedQueryDraftEnvelope.d.ts +9 -0
  25. package/api/types/DeletedHarborSavedQueryDraftEnvelope.js +3 -0
  26. package/api/types/DeletedHarborSavedQueryEnvelope.d.ts +9 -0
  27. package/api/types/DeletedHarborSavedQueryEnvelope.js +3 -0
  28. package/api/types/ExecuteHarborSavedQueryEnvelope.d.ts +27 -0
  29. package/api/types/ExecuteHarborSavedQueryEnvelope.js +3 -0
  30. package/api/types/HarborResponse.d.ts +2 -0
  31. package/api/types/HarborSavedQueryDraftEnvelope.d.ts +4 -0
  32. package/api/types/HarborSavedQueryDraftEnvelope.js +3 -0
  33. package/api/types/HarborSavedQueryDraftListEnvelope.d.ts +5 -0
  34. package/api/types/HarborSavedQueryDraftListEnvelope.js +3 -0
  35. package/api/types/HarborSavedQueryDraftResponse.d.ts +33 -0
  36. package/api/types/HarborSavedQueryDraftResponse.js +3 -0
  37. package/api/types/HarborSavedQueryEnvelope.d.ts +4 -0
  38. package/api/types/HarborSavedQueryEnvelope.js +3 -0
  39. package/api/types/HarborSavedQueryListEnvelope.d.ts +5 -0
  40. package/api/types/HarborSavedQueryListEnvelope.js +3 -0
  41. package/api/types/HarborSavedQueryMetadataResponse.d.ts +20 -0
  42. package/api/types/HarborSavedQueryMetadataResponse.js +3 -0
  43. package/api/types/HarborSavedQueryParameter.d.ts +22 -0
  44. package/api/types/HarborSavedQueryParameter.js +16 -0
  45. package/api/types/HarborSavedQueryPreviewResponse.d.ts +8 -0
  46. package/api/types/HarborSavedQueryPreviewResponse.js +3 -0
  47. package/api/types/HarborSavedQueryResponse.d.ts +31 -0
  48. package/api/types/HarborSavedQueryResponse.js +3 -0
  49. package/api/types/HarborSavedQueryValidationEnvelope.d.ts +4 -0
  50. package/api/types/HarborSavedQueryValidationEnvelope.js +3 -0
  51. package/api/types/HarboractivityapiHarborActivityEvent.d.ts +1 -0
  52. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +3 -0
  53. package/api/types/HarboractivityapiHarborActivityQuerySource.d.ts +7 -0
  54. package/api/types/HarboractivityapiHarborActivityQuerySource.js +3 -0
  55. package/api/types/HarboractivityapiHarborActivitySavedQuerySource.d.ts +7 -0
  56. package/api/types/HarboractivityapiHarborActivitySavedQuerySource.js +3 -0
  57. package/api/types/HarboractivityapiHarborActivityTarget.d.ts +2 -0
  58. package/api/types/ModelSyncIdentities.d.ts +18 -0
  59. package/api/types/ModelSyncIdentities.js +12 -0
  60. package/api/types/ModelSyncProblem.d.ts +10 -0
  61. package/api/types/ModelSyncProblem.js +3 -0
  62. package/api/types/ModelSyncV5Response.d.ts +5 -0
  63. package/api/types/SyncDestinationProperties.d.ts +2 -0
  64. package/api/types/TypesDefinition.d.ts +4 -1
  65. package/api/types/UserFieldRequest.d.ts +3 -1
  66. package/api/types/index.d.ts +17 -0
  67. package/api/types/index.js +17 -0
  68. package/package.json +1 -1
  69. package/reference.md +956 -2
  70. package/version.d.ts +1 -1
  71. package/version.js +1 -1
@@ -0,0 +1,24 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * name: "Monthly revenue",
6
+ * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
7
+ * }
8
+ */
9
+ export interface CreateHarborSavedQueryDraftRequest {
10
+ /** Optional note copied to the immutable published version. */
11
+ change_note?: string;
12
+ /** Business definition and usage notes. Maximum 2,000 characters. */
13
+ description?: string;
14
+ /** Human-readable saved-query name. Maximum 200 characters. */
15
+ name: string;
16
+ /** Human-readable owner label. Maximum 200 characters. */
17
+ owner?: string;
18
+ /** Typed scalar parameter declarations. */
19
+ parameters?: Polytomic.HarborSavedQueryParameter[];
20
+ /** DuckDB SQL template using {{name}} references for bound parameters. */
21
+ sql_template: string;
22
+ /** Author-supplied JSON scalar values used only to validate this draft. */
23
+ validation_values?: Record<string, unknown>;
24
+ }
@@ -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
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ExecuteHarborSavedQueryRequest {
6
+ "X-Polytomic-Harbor-Session"?: string;
7
+ "X-Polytomic-Activity-Request-ID"?: string;
8
+ /** Named JSON scalar overrides for declared parameters. Omission uses published default_value, or SQL NULL for optional parameters without a default. Required parameters reject explicit null even with a default; without a default they also reject omission. Unknown names and invalid types are rejected. */
9
+ parameters?: Record<string, unknown>;
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
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface HarborsGetSavedQueryRequest {
6
+ "X-Polytomic-Harbor-Session"?: string;
7
+ "X-Polytomic-Activity-Request-ID"?: 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,15 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * limit: 1,
5
+ * page_token: "page_token"
6
+ * }
7
+ */
8
+ export interface HarborsListSavedQueriesRequest {
9
+ /** Maximum number of saved queries to return. */
10
+ limit?: number;
11
+ /** Opaque pagination cursor returned by the previous request. */
12
+ page_token?: string;
13
+ "X-Polytomic-Harbor-Session"?: string;
14
+ "X-Polytomic-Activity-Request-ID"?: 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,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * limit: 1,
5
+ * page_token: "page_token"
6
+ * }
7
+ */
8
+ export interface HarborsListSavedQueryDraftsRequest {
9
+ /** Maximum number of saved-query drafts to return. */
10
+ limit?: number;
11
+ /** Opaque pagination cursor returned by the previous request. */
12
+ page_token?: string;
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,24 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * name: "Monthly revenue",
6
+ * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
7
+ * }
8
+ */
9
+ export interface SaveHarborSavedQueryDraftRequest {
10
+ /** Optional note copied to the immutable published version. */
11
+ change_note?: string;
12
+ /** Business definition and usage notes. Maximum 2,000 characters. */
13
+ description?: string;
14
+ /** Human-readable saved-query name. Maximum 200 characters. */
15
+ name: string;
16
+ /** Human-readable owner label. Maximum 200 characters. */
17
+ owner?: string;
18
+ /** Typed scalar parameter declarations. */
19
+ parameters?: Polytomic.HarborSavedQueryParameter[];
20
+ /** DuckDB SQL template using {{name}} references for bound parameters. */
21
+ sql_template: string;
22
+ /** Author-supplied JSON scalar values used only to validate this draft. */
23
+ validation_values?: Record<string, unknown>;
24
+ }
@@ -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
  export type { CreateHarborContextDraftRequest } from "./CreateHarborContextDraftRequest";
2
2
  export type { CreateHarborContextRequest } from "./CreateHarborContextRequest";
3
3
  export type { CreateHarborRequest } from "./CreateHarborRequest";
4
+ export type { CreateHarborSavedQueryDraftRequest } from "./CreateHarborSavedQueryDraftRequest";
5
+ export type { ExecuteHarborSavedQueryRequest } from "./ExecuteHarborSavedQueryRequest";
4
6
  export type { HarborsCloseSessionRequest } from "./HarborsCloseSessionRequest";
5
7
  export type { HarborsDeleteContextDraftRequest } from "./HarborsDeleteContextDraftRequest";
6
8
  export type { HarborsDeleteContextRequest } from "./HarborsDeleteContextRequest";
@@ -8,6 +10,7 @@ export type { HarborsGetAuthorizedSchemaRequest } from "./HarborsGetAuthorizedSc
8
10
  export type { HarborsGetContextDraftRequest } from "./HarborsGetContextDraftRequest";
9
11
  export type { HarborsGetContextRequest } from "./HarborsGetContextRequest";
10
12
  export type { HarborsGetContextVersionRequest } from "./HarborsGetContextVersionRequest";
13
+ export type { HarborsGetSavedQueryRequest } from "./HarborsGetSavedQueryRequest";
11
14
  export type { HarborsListAuthorizedConnectionsRequest } from "./HarborsListAuthorizedConnectionsRequest";
12
15
  export type { HarborsListAuthorizedSchemasRequest } from "./HarborsListAuthorizedSchemasRequest";
13
16
  export type { HarborsListContextDraftsRequest } from "./HarborsListContextDraftsRequest";
@@ -15,6 +18,8 @@ export type { HarborsListContextsRequest } from "./HarborsListContextsRequest";
15
18
  export type { HarborsListContextVersionsRequest } from "./HarborsListContextVersionsRequest";
16
19
  export type { HarborsListKeysRequest } from "./HarborsListKeysRequest";
17
20
  export type { HarborsListRequest } from "./HarborsListRequest";
21
+ export type { HarborsListSavedQueriesRequest } from "./HarborsListSavedQueriesRequest";
22
+ export type { HarborsListSavedQueryDraftsRequest } from "./HarborsListSavedQueryDraftsRequest";
18
23
  export type { HarborsListUsersRequest } from "./HarborsListUsersRequest";
19
24
  export type { HarborsPromoteContextDraftRequest } from "./HarborsPromoteContextDraftRequest";
20
25
  export type { InviteHarborUserRequest } from "./InviteHarborUserRequest";
@@ -22,4 +27,5 @@ export type { RegisterHarborSessionRequest } from "./RegisterHarborSessionReques
22
27
  export type { ResolveHarborSourceMappingsRequest } from "./ResolveHarborSourceMappingsRequest";
23
28
  export type { SaveHarborContextDraftRequest } from "./SaveHarborContextDraftRequest";
24
29
  export type { SaveHarborContextRequest } from "./SaveHarborContextRequest";
30
+ export type { SaveHarborSavedQueryDraftRequest } from "./SaveHarborSavedQueryDraftRequest";
25
31
  export type { UpdateHarborRequest } from "./UpdateHarborRequest";
@@ -24,6 +24,9 @@ export interface CreateModelSyncV5Request {
24
24
  filter_logic?: string;
25
25
  /** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
26
26
  filters?: Polytomic.Filter[];
27
+ /** Identity mappings for the sync and the strategy combining them, replacing any the sync has. When this is omitted, 'identity' is used instead; updating a sync with more than one mapping requires this property. */
28
+ identities?: Polytomic.ModelSyncIdentities;
29
+ /** Deprecated. Use 'identities'. Reports and accepts the first identity mapping only. */
27
30
  identity?: Polytomic.Identity;
28
31
  mode: Polytomic.ModelsyncSyncTargetMode;
29
32
  model_filters?: Polytomic.ModelFilters;
@@ -24,6 +24,9 @@ export interface UpdateModelSyncV5Request {
24
24
  filter_logic?: string;
25
25
  /** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
26
26
  filters?: Polytomic.Filter[];
27
+ /** Identity mappings for the sync and the strategy combining them, replacing any the sync has. When this is omitted, 'identity' is used instead; updating a sync with more than one mapping requires this property. */
28
+ identities?: Polytomic.ModelSyncIdentities;
29
+ /** Deprecated. Use 'identities'. Reports and accepts the first identity mapping only. */
27
30
  identity?: Polytomic.Identity;
28
31
  mode: Polytomic.ModelsyncSyncTargetMode;
29
32
  model_filters?: Polytomic.ModelFilters;
@@ -0,0 +1,9 @@
1
+ export interface DeletedHarborSavedQueryDraftEnvelope {
2
+ data?: DeletedHarborSavedQueryDraftEnvelope.Data | undefined;
3
+ }
4
+ export declare namespace DeletedHarborSavedQueryDraftEnvelope {
5
+ interface Data {
6
+ /** Identifier of the discarded draft. */
7
+ id?: string | undefined;
8
+ }
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 });
@@ -0,0 +1,9 @@
1
+ export interface DeletedHarborSavedQueryEnvelope {
2
+ data?: DeletedHarborSavedQueryEnvelope.Data | undefined;
3
+ }
4
+ export declare namespace DeletedHarborSavedQueryEnvelope {
5
+ interface Data {
6
+ /** Stable identifier of the archived saved query. */
7
+ id?: string | undefined;
8
+ }
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 });
@@ -0,0 +1,27 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface ExecuteHarborSavedQueryEnvelope {
3
+ data?: ExecuteHarborSavedQueryEnvelope.Data | undefined;
4
+ }
5
+ export declare namespace ExecuteHarborSavedQueryEnvelope {
6
+ interface Data {
7
+ /** The number of rows returned by the query. This will not be returned until the query completes. */
8
+ count?: number | undefined;
9
+ /** Error message if the query failed. */
10
+ error?: string | undefined;
11
+ /** The time at which the query will expire and be deleted. This will not be returned until the query completes. */
12
+ expires?: string | undefined;
13
+ /** The names of the fields returned by the query. This will not be returned until the query completes. */
14
+ fields?: string[] | undefined;
15
+ /** The ID of the query task. Poll GET /api/queries/{id} until the task reaches the terminal status done, failed, or unknown. */
16
+ id?: string | undefined;
17
+ /** The query results, returned as an array of objects. */
18
+ results?: Record<string, unknown>[] | undefined;
19
+ /** Immutable published revision selected while processing this request, before execution acceptance. */
20
+ revision_id?: string | undefined;
21
+ /** Stable identifier of the executed saved query. */
22
+ saved_query_id?: string | undefined;
23
+ status?: Polytomic.QueryStatus | undefined;
24
+ /** Published version of the selected immutable revision. */
25
+ version?: number | undefined;
26
+ }
27
+ }
@@ -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 });
@@ -15,6 +15,8 @@ export interface HarborResponse {
15
15
  name?: string | undefined;
16
16
  /** Organization that owns the Harbor. */
17
17
  organization_id?: string | undefined;
18
+ /** Storage lifecycle status. Wait for ready before using the Harbor; failed provisioning is retried automatically. */
19
+ status?: string | undefined;
18
20
  /** When the Harbor was last updated. */
19
21
  updated_at?: string | undefined;
20
22
  }
@@ -0,0 +1,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborSavedQueryDraftEnvelope {
3
+ data?: Polytomic.HarborSavedQueryDraftResponse | 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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborSavedQueryDraftListEnvelope {
3
+ data?: Polytomic.HarborSavedQueryDraftResponse[] | 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,33 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborSavedQueryDraftResponse {
3
+ /** Optional draft change note. */
4
+ change_note?: string | undefined;
5
+ /** When the draft was created. */
6
+ created_at?: string | undefined;
7
+ /** Actor that created the draft. Null for the system actor. */
8
+ created_by?: string | undefined;
9
+ /** Type of actor that created the draft. */
10
+ created_by_type?: string | undefined;
11
+ /** Draft business definition. */
12
+ description?: string | undefined;
13
+ /** Unique identifier of this mutable draft candidate. */
14
+ id?: string | undefined;
15
+ /** Draft name. */
16
+ name?: string | undefined;
17
+ /** Draft owner label. */
18
+ owner?: string | undefined;
19
+ /** Draft typed parameter declarations. */
20
+ parameters?: Polytomic.HarborSavedQueryParameter[] | undefined;
21
+ /** Stable saved-query identifier. */
22
+ saved_query_id?: string | undefined;
23
+ /** Draft SQL template. */
24
+ sql_template?: string | undefined;
25
+ /** When the draft was last replaced. */
26
+ updated_at?: string | undefined;
27
+ /** Actor that last replaced the draft. Null for the system actor. */
28
+ updated_by?: string | undefined;
29
+ /** Type of actor that last replaced the draft. */
30
+ updated_by_type?: string | undefined;
31
+ /** Author-supplied validation inputs. */
32
+ validation_values?: Record<string, unknown> | undefined;
33
+ }
@@ -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 HarborSavedQueryEnvelope {
3
+ data?: Polytomic.HarborSavedQueryResponse | 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,5 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborSavedQueryListEnvelope {
3
+ data?: Polytomic.HarborSavedQueryMetadataResponse[] | 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,20 @@
1
+ export interface HarborSavedQueryMetadataResponse {
2
+ /** Business definition and usage notes. */
3
+ description?: string | undefined;
4
+ /** Expected ordered result-column names. */
5
+ expected_columns?: string[] | undefined;
6
+ /** Stable saved-query identifier. */
7
+ id?: string | undefined;
8
+ /** Human-readable saved-query name. */
9
+ name?: string | undefined;
10
+ /** Human-readable owner label. */
11
+ owner?: string | undefined;
12
+ /** When this version was published. */
13
+ published_at?: string | undefined;
14
+ /** Immutable identifier of this exact published definition. */
15
+ revision_id?: string | undefined;
16
+ /** When this version's draft was last updated before publication. */
17
+ updated_at?: string | undefined;
18
+ /** Current published version number. */
19
+ version?: number | 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,22 @@
1
+ export interface HarborSavedQueryParameter {
2
+ /** JSON scalar used when the parameter is omitted, matching the declared type. Use default_value, not default. Optional parameters without a default bind SQL NULL. */
3
+ default_value?: unknown | undefined;
4
+ /** Template parameter name referenced as {{start_date}}. */
5
+ name: string;
6
+ /** When true, rejects explicit null during validation and execution and allows omission only when default_value is present. */
7
+ required?: boolean | undefined;
8
+ /** Scalar parameter type. */
9
+ type: HarborSavedQueryParameter.Type;
10
+ }
11
+ export declare namespace HarborSavedQueryParameter {
12
+ /** Scalar parameter type. */
13
+ const Type: {
14
+ readonly String: "string";
15
+ readonly Number: "number";
16
+ readonly Boolean: "boolean";
17
+ readonly Date: "date";
18
+ readonly Timestamp: "timestamp";
19
+ readonly Uuid: "uuid";
20
+ };
21
+ type Type = (typeof Type)[keyof typeof Type];
22
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HarborSavedQueryParameter = void 0;
5
+ var HarborSavedQueryParameter;
6
+ (function (HarborSavedQueryParameter) {
7
+ /** Scalar parameter type. */
8
+ HarborSavedQueryParameter.Type = {
9
+ String: "string",
10
+ Number: "number",
11
+ Boolean: "boolean",
12
+ Date: "date",
13
+ Timestamp: "timestamp",
14
+ Uuid: "uuid",
15
+ };
16
+ })(HarborSavedQueryParameter || (exports.HarborSavedQueryParameter = HarborSavedQueryParameter = {}));
@@ -0,0 +1,8 @@
1
+ export interface HarborSavedQueryPreviewResponse {
2
+ /** Ordered preview column names. */
3
+ columns?: string[] | undefined;
4
+ /** Ephemeral bounded preview rows. These rows are never persisted. */
5
+ rows?: Record<string, unknown>[] | undefined;
6
+ /** Whether validation stopped at the row or serialized-size bound. */
7
+ truncated?: boolean | 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,31 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborSavedQueryResponse {
3
+ /** Note supplied when this version was published. */
4
+ change_note?: string | undefined;
5
+ /** Business definition and usage notes. */
6
+ description?: string | undefined;
7
+ /** Expected ordered result-column names. */
8
+ expected_columns?: string[] | undefined;
9
+ /** Stable saved-query identifier. */
10
+ id?: string | undefined;
11
+ /** Human-readable saved-query name. */
12
+ name?: string | undefined;
13
+ /** Human-readable owner label. */
14
+ owner?: string | undefined;
15
+ /** Published typed scalar parameter declarations. */
16
+ parameters?: Polytomic.HarborSavedQueryParameter[] | undefined;
17
+ /** When this version was published. */
18
+ published_at?: string | undefined;
19
+ /** Actor that published this version. Null for the system actor. */
20
+ published_by?: string | undefined;
21
+ /** Type of actor that published this version. */
22
+ published_by_type?: string | undefined;
23
+ /** Immutable identifier of this exact published definition. */
24
+ revision_id?: string | undefined;
25
+ /** Published SQL template. */
26
+ sql_template?: string | undefined;
27
+ /** When this version's draft was last updated before publication. */
28
+ updated_at?: string | undefined;
29
+ /** Current published version number. */
30
+ version?: number | undefined;
31
+ }
@@ -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 HarborSavedQueryValidationEnvelope {
3
+ data?: Polytomic.HarborSavedQueryPreviewResponse | 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 });
@@ -18,6 +18,7 @@ export interface HarboractivityapiHarborActivityEvent {
18
18
  outcome?: string | undefined;
19
19
  profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
20
20
  provenance?: string | undefined;
21
+ query_source?: Polytomic.HarboractivityapiHarborActivityQuerySource | undefined;
21
22
  recorded_at?: string | undefined;
22
23
  session_id?: string | undefined;
23
24
  targets?: Polytomic.HarboractivityapiHarborActivityTarget[] | undefined;
@@ -24,6 +24,9 @@ export interface HarboractivityapiHarborActivityMetadata {
24
24
  reason?: string | undefined;
25
25
  record_id?: string | undefined;
26
26
  row_count?: number | undefined;
27
+ saved_query_id?: string | undefined;
28
+ saved_query_revision_id?: string | undefined;
29
+ saved_query_version?: number | undefined;
27
30
  schema_id?: string | undefined;
28
31
  statement_category?: string | undefined;
29
32
  supported?: boolean | undefined;
@@ -0,0 +1,7 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarboractivityapiHarborActivityQuerySource {
3
+ kind?: string | undefined;
4
+ saved_query?: Polytomic.HarboractivityapiHarborActivitySavedQuerySource | undefined;
5
+ submission_event_id?: string | undefined;
6
+ submitted_at?: string | 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,7 @@
1
+ export interface HarboractivityapiHarborActivitySavedQuerySource {
2
+ id?: string | undefined;
3
+ name?: string | undefined;
4
+ name_truncated?: boolean | undefined;
5
+ revision_id?: string | undefined;
6
+ version?: number | 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 });
@@ -2,5 +2,7 @@ export interface HarboractivityapiHarborActivityTarget {
2
2
  id?: string | undefined;
3
3
  label?: string | undefined;
4
4
  label_truncated?: boolean | undefined;
5
+ revision_id?: string | undefined;
5
6
  type?: string | undefined;
7
+ version?: number | undefined;
6
8
  }
@@ -0,0 +1,18 @@
1
+ import type * as Polytomic from "../index";
2
+ /**
3
+ * Identity mappings determining how records are matched between source and destination.
4
+ */
5
+ export interface ModelSyncIdentities {
6
+ /** Identity mappings in priority order. An empty list removes every identity mapping. */
7
+ mappings: Polytomic.Identity[];
8
+ /** How the mappings are combined: 'priority' matches each record on the first mapping that finds a destination record, and 'and' requires every mapping to match. Required when there is more than one mapping; a single mapping is always 'priority'. */
9
+ strategy?: ModelSyncIdentities.Strategy | undefined;
10
+ }
11
+ export declare namespace ModelSyncIdentities {
12
+ /** How the mappings are combined: 'priority' matches each record on the first mapping that finds a destination record, and 'and' requires every mapping to match. Required when there is more than one mapping; a single mapping is always 'priority'. */
13
+ const Strategy: {
14
+ readonly Priority: "priority";
15
+ readonly And: "and";
16
+ };
17
+ type Strategy = (typeof Strategy)[keyof typeof Strategy];
18
+ }
@@ -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.ModelSyncIdentities = void 0;
5
+ var ModelSyncIdentities;
6
+ (function (ModelSyncIdentities) {
7
+ /** How the mappings are combined: 'priority' matches each record on the first mapping that finds a destination record, and 'and' requires every mapping to match. Required when there is more than one mapping; a single mapping is always 'priority'. */
8
+ ModelSyncIdentities.Strategy = {
9
+ Priority: "priority",
10
+ And: "and",
11
+ };
12
+ })(ModelSyncIdentities || (exports.ModelSyncIdentities = ModelSyncIdentities = {}));
@@ -0,0 +1,10 @@
1
+ export interface ModelSyncProblem {
2
+ /** Stable identifier for the kind of problem. Branch on this rather than on 'message'. */
3
+ code?: string | undefined;
4
+ /** Description of the problem, suitable for showing to a person. */
5
+ message?: string | undefined;
6
+ /** JSON path of the part of this configuration the problem is about, relative to the sync object. */
7
+ path?: string | undefined;
8
+ /** How serious the problem is. Every problem reported today is an error, which stops the sync from running; read this rather than assuming. */
9
+ severity?: "error" | undefined;
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 });
@@ -10,6 +10,9 @@ export interface ModelSyncV5Response {
10
10
  /** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions'. Reports the same filters, with the two kinds interleaved and told apart by 'field_type'. */
11
11
  filters?: Polytomic.Filter[] | undefined;
12
12
  id?: string | undefined;
13
+ /** Identity mappings for the sync and the strategy combining them. */
14
+ identities?: Polytomic.ModelSyncIdentities | undefined;
15
+ /** Deprecated. Use 'identities'. Reports the first identity mapping only. */
13
16
  identity?: Polytomic.Identity | undefined;
14
17
  mode?: Polytomic.ModelsyncSyncTargetMode | undefined;
15
18
  model_filters?: Polytomic.ModelFilters | undefined;
@@ -21,6 +24,8 @@ export interface ModelSyncV5Response {
21
24
  override_fields?: Polytomic.OverrideField[] | undefined;
22
25
  overrides?: Polytomic.Override[] | undefined;
23
26
  policies?: string[] | undefined;
27
+ /** Parts of this configuration which could not be resolved when it was read. The configuration is reported unchanged, references included, so it can be corrected and written back; this property is ignored on input. */
28
+ problems?: Polytomic.ModelSyncProblem[] | undefined;
24
29
  schedule?: Polytomic.Schedule | undefined;
25
30
  skip_initial_backfill?: boolean | undefined;
26
31
  sync_all_records?: boolean | undefined;
@@ -21,6 +21,8 @@ export interface SyncDestinationProperties {
21
21
  supports_filter_value_fields?: boolean | undefined;
22
22
  /** True if a sync may create a new field on this target to use as the sync identity. */
23
23
  supports_identity_field_creation?: boolean | undefined;
24
+ /** True if the destination can match records on more than one identity mapping. */
25
+ supports_multiple_identities?: boolean | undefined;
24
26
  /** True if target filters are supported on this destination; the chosen sync mode may further constrain availability. */
25
27
  supports_target_filters?: boolean | undefined;
26
28
  /** True if writing to this target will create a new object in the destination system rather than write to an existing one. */