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.
- package/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +21 -16
- package/api/resources/bulkSync/client/Client.d.ts +2 -0
- package/api/resources/bulkSync/client/Client.js +6 -0
- package/api/resources/connections/client/Client.d.ts +42 -0
- package/api/resources/connections/client/Client.js +42 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +42 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +42 -0
- package/api/resources/harbors/client/Client.d.ts +3 -0
- package/api/resources/harbors/client/Client.js +5 -0
- package/api/resources/harbors/exports.d.ts +1 -0
- package/api/resources/harbors/exports.js +1 -0
- package/api/resources/harbors/index.d.ts +1 -0
- package/api/resources/harbors/index.js +1 -0
- package/api/resources/harbors/resources/actions/client/Client.d.ts +345 -0
- package/api/resources/harbors/resources/actions/client/Client.js +652 -0
- package/api/resources/harbors/resources/actions/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/actions/client/index.js +17 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsDescribeRequest.d.ts +15 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.d.ts +8 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.d.ts +17 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.d.ts +12 -0
- package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.d.ts +23 -0
- package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.d.ts +24 -0
- package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/index.d.ts +6 -0
- package/api/resources/harbors/resources/actions/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/actions/exports.d.ts +2 -0
- package/api/resources/harbors/resources/actions/exports.js +21 -0
- package/api/resources/harbors/resources/actions/index.d.ts +1 -0
- package/api/resources/harbors/resources/actions/index.js +17 -0
- package/api/resources/harbors/resources/index.d.ts +2 -0
- package/api/resources/harbors/resources/index.js +41 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/modelSync/client/Client.d.ts +2 -2
- package/api/resources/modelSync/client/Client.js +1 -1
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/index.d.ts +1 -1
- package/api/resources/operations/client/Client.d.ts +102 -0
- package/api/resources/operations/client/Client.js +233 -0
- package/api/resources/operations/client/index.d.ts +1 -0
- package/api/resources/operations/client/index.js +17 -0
- package/api/resources/operations/client/requests/SearchOperationsRequest.d.ts +14 -0
- package/api/resources/operations/client/requests/SearchOperationsRequest.js +3 -0
- package/api/resources/operations/client/requests/index.d.ts +1 -0
- package/api/resources/operations/client/requests/index.js +2 -0
- package/api/resources/operations/exports.d.ts +2 -0
- package/api/resources/operations/exports.js +21 -0
- package/api/resources/operations/index.d.ts +1 -0
- package/api/resources/operations/index.js +17 -0
- package/api/resources/organization/client/Client.d.ts +1 -1
- package/api/resources/organization/client/Client.js +1 -1
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +2 -0
- package/api/resources/temporaryCredentials/client/Client.d.ts +6 -6
- package/api/resources/temporaryCredentials/client/Client.js +6 -6
- package/api/types/ActionLookup.d.ts +4 -0
- package/api/types/ActionLookup.js +3 -0
- package/api/types/CompletionValue.d.ts +5 -0
- package/api/types/CompletionValue.js +3 -0
- package/api/types/ConnectionResponseSchema.d.ts +15 -0
- package/api/types/FieldConfiguration.d.ts +2 -0
- package/api/types/HarborActionCapability.d.ts +12 -0
- package/api/types/HarborActionCapability.js +3 -0
- package/api/types/HarborActionDescribeEnvelope.d.ts +4 -0
- package/api/types/HarborActionDescribeEnvelope.js +3 -0
- package/api/types/HarborActionExecutionEnvelope.d.ts +4 -0
- package/api/types/HarborActionExecutionEnvelope.js +3 -0
- package/api/types/HarborActionExecutionResponse.d.ts +28 -0
- package/api/types/HarborActionExecutionResponse.js +13 -0
- package/api/types/HarborActionField.d.ts +14 -0
- package/api/types/HarborActionField.js +3 -0
- package/api/types/HarborActionListEnvelope.d.ts +10 -0
- package/api/types/HarborActionListEnvelope.js +3 -0
- package/api/types/HarborActionLookupEnvelope.d.ts +4 -0
- package/api/types/HarborActionLookupEnvelope.js +3 -0
- package/api/types/HarborActionPreparation.d.ts +4 -0
- package/api/types/HarborActionPreparation.js +3 -0
- package/api/types/HarborActionPreparationEnvelope.d.ts +4 -0
- package/api/types/HarborActionPreparationEnvelope.js +3 -0
- package/api/types/HarborActionSummary.d.ts +7 -0
- package/api/types/HarborActionSummary.js +3 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +7 -0
- package/api/types/IdentityCredentialHarborSchema.d.ts +2 -0
- package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
- package/api/types/ModelSyncSourceIdentity.js +3 -0
- package/api/types/OperationMatch.d.ts +16 -0
- package/api/types/OperationMatch.js +3 -0
- package/api/types/OperationSearchAvailabilityEnvelope.d.ts +11 -0
- package/api/types/OperationSearchAvailabilityEnvelope.js +3 -0
- package/api/types/OperationSearchRateLimit.d.ts +15 -0
- package/api/types/OperationSearchRateLimit.js +13 -0
- package/api/types/OperationSearchResult.d.ts +9 -0
- package/api/types/OperationSearchResult.js +3 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
- package/api/types/SchemaConfiguration.d.ts +2 -0
- package/api/types/SchemaOperationIdempotency.d.ts +5 -0
- package/api/types/SchemaOperationIdempotency.js +3 -0
- package/api/types/SchemaRecord.d.ts +1 -0
- package/api/types/SchemaRecord.js +3 -0
- package/api/types/SearchOperationsEnvelope.d.ts +4 -0
- package/api/types/SearchOperationsEnvelope.js +3 -0
- package/api/types/SearchOperationsResponse.d.ts +7 -0
- package/api/types/SearchOperationsResponse.js +3 -0
- package/api/types/TemporaryCredentialSubject.d.ts +7 -7
- package/api/types/TemporaryCredentialSubject.js +3 -3
- package/api/types/TimeDuration.d.ts +1 -0
- package/api/types/TimeDuration.js +3 -0
- package/api/types/Webhook.d.ts +2 -0
- package/api/types/index.d.ts +22 -0
- package/api/types/index.js +22 -0
- package/package.json +1 -1
- package/reference.md +940 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +0 -9
- /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,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
|
+
}
|
package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.d.ts
ADDED
|
@@ -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
|
+
}
|
package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.d.ts
ADDED
|
@@ -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
|
+
}
|
package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.d.ts
ADDED
|
@@ -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,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,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,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);
|
package/api/resources/index.d.ts
CHANGED
|
@@ -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";
|
package/api/resources/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
+
}
|
|
@@ -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 {
|
|
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
|
+
}
|