polytomic 25.9.7 → 25.9.9

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 (123) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +3 -0
  3. package/Client.js +21 -16
  4. package/api/resources/bulkSync/client/Client.d.ts +2 -0
  5. package/api/resources/bulkSync/client/Client.js +6 -0
  6. package/api/resources/connections/client/Client.d.ts +42 -0
  7. package/api/resources/connections/client/Client.js +42 -0
  8. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +42 -0
  9. package/api/resources/connections/resources/sharedConnections/client/Client.js +42 -0
  10. package/api/resources/harbors/client/Client.d.ts +3 -0
  11. package/api/resources/harbors/client/Client.js +5 -0
  12. package/api/resources/harbors/exports.d.ts +1 -0
  13. package/api/resources/harbors/exports.js +1 -0
  14. package/api/resources/harbors/index.d.ts +1 -0
  15. package/api/resources/harbors/index.js +1 -0
  16. package/api/resources/harbors/resources/actions/client/Client.d.ts +345 -0
  17. package/api/resources/harbors/resources/actions/client/Client.js +652 -0
  18. package/api/resources/harbors/resources/actions/client/index.d.ts +1 -0
  19. package/api/resources/harbors/resources/actions/client/index.js +17 -0
  20. package/api/resources/harbors/resources/actions/client/requests/ActionsDescribeRequest.d.ts +15 -0
  21. package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.d.ts +8 -0
  22. package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.js +3 -0
  23. package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.d.ts +17 -0
  24. package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.js +3 -0
  25. package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.d.ts +12 -0
  26. package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.js +3 -0
  27. package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.d.ts +23 -0
  28. package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.js +3 -0
  29. package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.d.ts +24 -0
  30. package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.js +3 -0
  31. package/api/resources/harbors/resources/actions/client/requests/index.d.ts +6 -0
  32. package/api/resources/harbors/resources/actions/client/requests/index.js +2 -0
  33. package/api/resources/harbors/resources/actions/exports.d.ts +2 -0
  34. package/api/resources/harbors/resources/actions/exports.js +21 -0
  35. package/api/resources/harbors/resources/actions/index.d.ts +1 -0
  36. package/api/resources/harbors/resources/actions/index.js +17 -0
  37. package/api/resources/harbors/resources/index.d.ts +2 -0
  38. package/api/resources/harbors/resources/index.js +41 -0
  39. package/api/resources/index.d.ts +2 -0
  40. package/api/resources/index.js +3 -1
  41. package/api/resources/modelSync/client/Client.d.ts +2 -2
  42. package/api/resources/modelSync/client/Client.js +1 -1
  43. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
  44. package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +3 -0
  45. package/api/resources/modelSync/client/requests/index.d.ts +1 -1
  46. package/api/resources/operations/client/Client.d.ts +102 -0
  47. package/api/resources/operations/client/Client.js +233 -0
  48. package/api/resources/operations/client/index.d.ts +1 -0
  49. package/api/resources/operations/client/index.js +17 -0
  50. package/api/resources/operations/client/requests/SearchOperationsRequest.d.ts +14 -0
  51. package/api/resources/operations/client/requests/SearchOperationsRequest.js +3 -0
  52. package/api/resources/operations/client/requests/index.d.ts +1 -0
  53. package/api/resources/operations/client/requests/index.js +2 -0
  54. package/api/resources/operations/exports.d.ts +2 -0
  55. package/api/resources/operations/exports.js +21 -0
  56. package/api/resources/operations/index.d.ts +1 -0
  57. package/api/resources/operations/index.js +17 -0
  58. package/api/resources/organization/client/Client.d.ts +1 -1
  59. package/api/resources/organization/client/Client.js +1 -1
  60. package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +2 -0
  61. package/api/resources/temporaryCredentials/client/Client.d.ts +6 -6
  62. package/api/resources/temporaryCredentials/client/Client.js +6 -6
  63. package/api/types/ActionLookup.d.ts +4 -0
  64. package/api/types/ActionLookup.js +3 -0
  65. package/api/types/CompletionValue.d.ts +5 -0
  66. package/api/types/CompletionValue.js +3 -0
  67. package/api/types/ConnectionResponseSchema.d.ts +15 -0
  68. package/api/types/FieldConfiguration.d.ts +2 -0
  69. package/api/types/HarborActionCapability.d.ts +12 -0
  70. package/api/types/HarborActionCapability.js +3 -0
  71. package/api/types/HarborActionDescribeEnvelope.d.ts +4 -0
  72. package/api/types/HarborActionDescribeEnvelope.js +3 -0
  73. package/api/types/HarborActionExecutionEnvelope.d.ts +4 -0
  74. package/api/types/HarborActionExecutionEnvelope.js +3 -0
  75. package/api/types/HarborActionExecutionResponse.d.ts +28 -0
  76. package/api/types/HarborActionExecutionResponse.js +13 -0
  77. package/api/types/HarborActionField.d.ts +14 -0
  78. package/api/types/HarborActionField.js +3 -0
  79. package/api/types/HarborActionListEnvelope.d.ts +10 -0
  80. package/api/types/HarborActionListEnvelope.js +3 -0
  81. package/api/types/HarborActionLookupEnvelope.d.ts +4 -0
  82. package/api/types/HarborActionLookupEnvelope.js +3 -0
  83. package/api/types/HarborActionPreparation.d.ts +4 -0
  84. package/api/types/HarborActionPreparation.js +3 -0
  85. package/api/types/HarborActionPreparationEnvelope.d.ts +4 -0
  86. package/api/types/HarborActionPreparationEnvelope.js +3 -0
  87. package/api/types/HarborActionSummary.d.ts +7 -0
  88. package/api/types/HarborActionSummary.js +3 -0
  89. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +7 -0
  90. package/api/types/IdentityCredentialHarborSchema.d.ts +2 -0
  91. package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
  92. package/api/types/ModelSyncSourceIdentity.js +3 -0
  93. package/api/types/OperationMatch.d.ts +16 -0
  94. package/api/types/OperationMatch.js +3 -0
  95. package/api/types/OperationSearchAvailabilityEnvelope.d.ts +11 -0
  96. package/api/types/OperationSearchAvailabilityEnvelope.js +3 -0
  97. package/api/types/OperationSearchRateLimit.d.ts +15 -0
  98. package/api/types/OperationSearchRateLimit.js +13 -0
  99. package/api/types/OperationSearchResult.d.ts +9 -0
  100. package/api/types/OperationSearchResult.js +3 -0
  101. package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
  102. package/api/types/SchemaConfiguration.d.ts +2 -0
  103. package/api/types/SchemaOperationIdempotency.d.ts +5 -0
  104. package/api/types/SchemaOperationIdempotency.js +3 -0
  105. package/api/types/SchemaRecord.d.ts +1 -0
  106. package/api/types/SchemaRecord.js +3 -0
  107. package/api/types/SearchOperationsEnvelope.d.ts +4 -0
  108. package/api/types/SearchOperationsEnvelope.js +3 -0
  109. package/api/types/SearchOperationsResponse.d.ts +7 -0
  110. package/api/types/SearchOperationsResponse.js +3 -0
  111. package/api/types/TemporaryCredentialSubject.d.ts +7 -7
  112. package/api/types/TemporaryCredentialSubject.js +3 -3
  113. package/api/types/TimeDuration.d.ts +1 -0
  114. package/api/types/TimeDuration.js +3 -0
  115. package/api/types/Webhook.d.ts +2 -0
  116. package/api/types/index.d.ts +22 -0
  117. package/api/types/index.js +22 -0
  118. package/package.json +1 -1
  119. package/reference.md +940 -8
  120. package/version.d.ts +1 -1
  121. package/version.js +1 -1
  122. package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +0 -9
  123. /package/api/resources/{modelSync/client/requests/StartSyncRequest.js → harbors/resources/actions/client/requests/ActionsDescribeRequest.js} +0 -0
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
5
+ * schema_id: "schema_id",
6
+ * operation_id: "operation_id"
7
+ * }
8
+ */
9
+ export interface ActionsDescribeRequest {
10
+ connection_id: string;
11
+ schema_id: string;
12
+ operation_id: string;
13
+ "X-Polytomic-Harbor-Session"?: string;
14
+ "X-Polytomic-Activity-Request-ID"?: string;
15
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ActionsGetExecutionRequest {
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,17 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * search: "search",
5
+ * page_token: "page_token",
6
+ * limit: 1
7
+ * }
8
+ */
9
+ export interface ActionsListRequest {
10
+ /** Filter configured schema or operation identities. */
11
+ search?: string;
12
+ /** Continuation token from the previous page; keep search unchanged. */
13
+ page_token?: string;
14
+ limit?: number;
15
+ "X-Polytomic-Harbor-Session"?: string;
16
+ "X-Polytomic-Activity-Request-ID"?: string;
17
+ }
@@ -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
+ /**
2
+ * @example
3
+ * {
4
+ * execution_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
5
+ * }
6
+ */
7
+ export interface ExecuteHarborActionRequest {
8
+ "X-Polytomic-Harbor-Session"?: string;
9
+ "X-Polytomic-Activity-Request-ID"?: string;
10
+ /** Server-issued identifier returned by prepare. Preserve it for status recovery; never prepare a replacement to retry uncertainty. */
11
+ execution_id: 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,23 @@
1
+ import type * as Polytomic from "../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
6
+ * lookup: {},
7
+ * operation_id: "operation_id",
8
+ * schema_id: "schema_id"
9
+ * }
10
+ */
11
+ export interface LookupHarborActionRequest {
12
+ "X-Polytomic-Harbor-Session"?: string;
13
+ "X-Polytomic-Activity-Request-ID"?: string;
14
+ /** Connection ID from Harbor action discovery. */
15
+ connection_id: string;
16
+ /** Unique, nonempty subset of granted output field IDs. Omit to return all currently available granted outputs. Null and empty arrays are invalid. */
17
+ fields?: string[];
18
+ lookup: Polytomic.ActionLookup;
19
+ /** Exact read-only operation ID from action discovery. */
20
+ operation_id: string;
21
+ /** Exact schema ID from action discovery. */
22
+ schema_id: string;
23
+ }
@@ -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
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
6
+ * input: {
7
+ * "key": "value"
8
+ * },
9
+ * operation_id: "operation_id",
10
+ * schema_id: "schema_id"
11
+ * }
12
+ */
13
+ export interface PrepareHarborActionRequest {
14
+ "X-Polytomic-Harbor-Session"?: string;
15
+ "X-Polytomic-Activity-Request-ID"?: string;
16
+ /** Explicit destination connection ID from action discovery. Must have this action and its submitted fields enabled in this Harbor. */
17
+ connection_id: string;
18
+ input: Polytomic.SchemaRecord;
19
+ lookup?: Polytomic.ActionLookup;
20
+ /** Exact operation_id from action discovery. */
21
+ operation_id: string;
22
+ /** Exact schema_id from action discovery. */
23
+ schema_id: string;
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,6 @@
1
+ export type { ActionsDescribeRequest } from "./ActionsDescribeRequest";
2
+ export type { ActionsGetExecutionRequest } from "./ActionsGetExecutionRequest";
3
+ export type { ActionsListRequest } from "./ActionsListRequest";
4
+ export type { ExecuteHarborActionRequest } from "./ExecuteHarborActionRequest";
5
+ export type { LookupHarborActionRequest } from "./LookupHarborActionRequest";
6
+ export type { PrepareHarborActionRequest } from "./PrepareHarborActionRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ActionsClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ActionsClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "ActionsClient", { enumerable: true, get: function () { return Client_1.ActionsClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,2 @@
1
+ export * as actions from "./actions";
2
+ export * from "./actions/client/requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.actions = void 0;
40
+ exports.actions = __importStar(require("./actions"));
41
+ __exportStar(require("./actions/client/requests"), exports);
@@ -18,6 +18,8 @@ export * as models from "./models";
18
18
  export * from "./models/client/requests";
19
19
  export * as notifications from "./notifications";
20
20
  export * from "./notifications/client/requests";
21
+ export * as operations from "./operations";
22
+ export * from "./operations/client/requests";
21
23
  export * as organization from "./organization";
22
24
  export * from "./organization/client/requests";
23
25
  export * as permissions from "./permissions";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.webhooks = exports.users = exports.temporaryCredentials = exports.schemas = exports.recordViewLinks = exports.queryRunner = exports.permissions = exports.organization = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.harbors = exports.events = exports.entities = exports.connections = exports.bulkSync = exports.activity = void 0;
39
+ exports.webhooks = exports.users = exports.temporaryCredentials = exports.schemas = exports.recordViewLinks = exports.queryRunner = exports.permissions = exports.organization = exports.operations = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.harbors = exports.events = exports.entities = exports.connections = exports.bulkSync = exports.activity = void 0;
40
40
  exports.activity = __importStar(require("./activity"));
41
41
  __exportStar(require("./activity/client/requests"), exports);
42
42
  __exportStar(require("./activity/types"), exports);
@@ -57,6 +57,8 @@ exports.models = __importStar(require("./models"));
57
57
  __exportStar(require("./models/client/requests"), exports);
58
58
  exports.notifications = __importStar(require("./notifications"));
59
59
  __exportStar(require("./notifications/client/requests"), exports);
60
+ exports.operations = __importStar(require("./operations"));
61
+ __exportStar(require("./operations/client/requests"), exports);
60
62
  exports.organization = __importStar(require("./organization"));
61
63
  __exportStar(require("./organization/client/requests"), exports);
62
64
  exports.permissions = __importStar(require("./permissions"));
@@ -362,7 +362,7 @@ export declare class ModelSyncClient {
362
362
  * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
363
363
  *
364
364
  * @param {string} id
365
- * @param {Polytomic.StartSyncRequest} request
365
+ * @param {Polytomic.StartModelSyncRequest} request
366
366
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
367
367
  *
368
368
  * @throws {@link Polytomic.BadRequestError}
@@ -376,7 +376,7 @@ export declare class ModelSyncClient {
376
376
  * @example
377
377
  * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
378
378
  */
379
- start(id: string, request?: Polytomic.StartSyncRequest, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.StartSyncResponseEnvelope>;
379
+ start(id: string, request?: Polytomic.StartModelSyncRequest, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.StartSyncResponseEnvelope>;
380
380
  private __start;
381
381
  /**
382
382
  * Returns the current status of a model sync.
@@ -891,7 +891,7 @@ class ModelSyncClient {
891
891
  * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
892
892
  *
893
893
  * @param {string} id
894
- * @param {Polytomic.StartSyncRequest} request
894
+ * @param {Polytomic.StartModelSyncRequest} request
895
895
  * @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
896
896
  *
897
897
  * @throws {@link Polytomic.BadRequestError}
@@ -0,0 +1,13 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface StartModelSyncRequest {
7
+ /** Values of the sync's identity source field naming the records to sync. A sync with more than one identity mapping requires 'source_identities' instead. */
8
+ identities?: string[];
9
+ resync?: boolean;
10
+ /** Records to sync, each identified by every source and value its entry lists. The sources of an entry are identity mapping sources of one model, and an entry for a sync whose identities strategy is 'and' lists all of them. Cannot be combined with 'identities'; at most 1000 entries. */
11
+ source_identities?: Polytomic.ModelSyncSourceIdentity[][];
12
+ test?: boolean;
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 });
@@ -2,5 +2,5 @@ export type { CreateModelSyncV5Request } from "./CreateModelSyncV5Request";
2
2
  export type { ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
3
3
  export type { ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
4
4
  export type { ModelSyncListRequest } from "./ModelSyncListRequest";
5
- export type { StartSyncRequest } from "./StartSyncRequest";
5
+ export type { StartModelSyncRequest } from "./StartModelSyncRequest";
6
6
  export type { UpdateModelSyncV5Request } from "./UpdateModelSyncV5Request";
@@ -0,0 +1,102 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as Polytomic from "../../../index";
5
+ export declare namespace OperationsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ export declare class OperationsClient {
13
+ protected readonly _options: NormalizedClientOptionsWithAuth<OperationsClient.Options>;
14
+ constructor(options?: OperationsClient.Options);
15
+ /**
16
+ * Finds documented REST operations for up to three plain-language tasks in one request.
17
+ *
18
+ * This endpoint returns HTTP 503 when operation search is not configured for the
19
+ * API deployment. Check [search availability](../../../api-reference/operations/get-search-availability)
20
+ * before offering operation search in a client.
21
+ *
22
+ * Each question counts against three fixed UTC-window budgets: 12 questions per
23
+ * Organization per minute, 300 per Organization per day, and 60 per minute
24
+ * across the deployment. A request with three tasks uses three questions from
25
+ * each budget. At most eight provider calls run concurrently across the
26
+ * deployment. These are initial defaults; operators can adjust them with
27
+ * `API_DISCOVERY_ORG_QUESTIONS_PER_MINUTE`,
28
+ * `API_DISCOVERY_ORG_QUESTIONS_PER_DAY`,
29
+ * `API_DISCOVERY_GLOBAL_QUESTIONS_PER_MINUTE`, and
30
+ * `API_DISCOVERY_GLOBAL_IN_FLIGHT`. All settings must be positive integers.
31
+ * Daily budgets reset at 00:00 UTC; minute budgets reset on UTC minute
32
+ * boundaries, which can allow a short burst across adjacent minutes. Calls
33
+ * rejected by a limit return HTTP 429 with a `Retry-After` header in seconds.
34
+ * A submitted call still counts if the provider fails. If admission is
35
+ * unavailable, the endpoint returns HTTP 503 instead of contacting the provider.
36
+ *
37
+ * Pass `operationIds` to rank only those documented operations. The list must
38
+ * contain at least one unique, known `METHOD /api/path` ID. If you omit it,
39
+ * Polytomic ranks all documented operations. Every ranking also includes the
40
+ * no-match option. The response's `sourceSha256` is the SHA-256 of the internal processed MCP
41
+ * spec artifact used to build the operation catalog. It is not the digest of the
42
+ * public OpenAPI document. Treat it as an opaque catalog version for detecting
43
+ * drift between the API and MCP deployments.
44
+ *
45
+ * Each task has its own ranking in the same order as `queries`. The scores within
46
+ * one task describe the relative probability of choosing each operation as the
47
+ * single best option, including the no-match option. They are not independent
48
+ * relevance scores and cannot be compared across tasks.
49
+ *
50
+ * If no documented operation is the best choice, `matches` is empty. Results
51
+ * come from the public API contract, not your Organization's data. Finding an
52
+ * operation does not authorize you to call it; the operation's own authentication
53
+ * and permissions still apply.
54
+ *
55
+ * @param {Polytomic.SearchOperationsRequest} request
56
+ * @param {OperationsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Polytomic.BadRequestError}
59
+ * @throws {@link Polytomic.TooManyRequestsError}
60
+ * @throws {@link Polytomic.BadGatewayError}
61
+ * @throws {@link Polytomic.ServiceUnavailableError}
62
+ * @throws {@link errors.PolytomicError}
63
+ * @throws {@link errors.PolytomicTimeoutError}
64
+ *
65
+ * @example
66
+ * await client.operations.search({
67
+ * queries: ["queries"]
68
+ * })
69
+ */
70
+ search(request: Polytomic.SearchOperationsRequest, requestOptions?: OperationsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.SearchOperationsEnvelope>;
71
+ private __search;
72
+ /**
73
+ * Reports whether operation search is configured on this API deployment.
74
+ *
75
+ * When a request for one question would exceed an Organization-minute,
76
+ * Organization-day, or deployment-minute question budget, the response includes
77
+ * `rate_limited` with a reason and a UTC `reset_at` timestamp. If more than one
78
+ * budget is exhausted, the timestamp reflects the latest reset. The check does
79
+ * not use any question allowance.
80
+ *
81
+ * > ⚠️ The result is a snapshot. A later request can be limited even if this
82
+ * > response has no `rate_limited` field, especially if it contains two or three
83
+ * > questions or other requests use the shared budget. Concurrent-call limits
84
+ * > are not included. The search request's `429` response and `Retry-After` header
85
+ * > are authoritative.
86
+ *
87
+ * If your request does not identify an Organization, the response reports only
88
+ * `enabled`. When `enabled` is `false`, `rate_limited` is omitted. If Polytomic
89
+ * cannot check the question budgets, the endpoint returns `503`.
90
+ *
91
+ * @param {OperationsClient.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Polytomic.ServiceUnavailableError}
94
+ * @throws {@link errors.PolytomicError}
95
+ * @throws {@link errors.PolytomicTimeoutError}
96
+ *
97
+ * @example
98
+ * await client.operations.getSearchAvailability()
99
+ */
100
+ getSearchAvailability(requestOptions?: OperationsClient.RequestOptions): core.HttpResponsePromise<Polytomic.OperationSearchAvailabilityEnvelope>;
101
+ private __getSearchAvailability;
102
+ }