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,233 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.OperationsClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
48
+ const core = __importStar(require("../../../../core"));
49
+ const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
51
+ const environments = __importStar(require("../../../../environments"));
52
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
53
+ const errors = __importStar(require("../../../../errors/index"));
54
+ const Polytomic = __importStar(require("../../../index"));
55
+ class OperationsClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
58
+ }
59
+ /**
60
+ * Finds documented REST operations for up to three plain-language tasks in one request.
61
+ *
62
+ * This endpoint returns HTTP 503 when operation search is not configured for the
63
+ * API deployment. Check [search availability](../../../api-reference/operations/get-search-availability)
64
+ * before offering operation search in a client.
65
+ *
66
+ * Each question counts against three fixed UTC-window budgets: 12 questions per
67
+ * Organization per minute, 300 per Organization per day, and 60 per minute
68
+ * across the deployment. A request with three tasks uses three questions from
69
+ * each budget. At most eight provider calls run concurrently across the
70
+ * deployment. These are initial defaults; operators can adjust them with
71
+ * `API_DISCOVERY_ORG_QUESTIONS_PER_MINUTE`,
72
+ * `API_DISCOVERY_ORG_QUESTIONS_PER_DAY`,
73
+ * `API_DISCOVERY_GLOBAL_QUESTIONS_PER_MINUTE`, and
74
+ * `API_DISCOVERY_GLOBAL_IN_FLIGHT`. All settings must be positive integers.
75
+ * Daily budgets reset at 00:00 UTC; minute budgets reset on UTC minute
76
+ * boundaries, which can allow a short burst across adjacent minutes. Calls
77
+ * rejected by a limit return HTTP 429 with a `Retry-After` header in seconds.
78
+ * A submitted call still counts if the provider fails. If admission is
79
+ * unavailable, the endpoint returns HTTP 503 instead of contacting the provider.
80
+ *
81
+ * Pass `operationIds` to rank only those documented operations. The list must
82
+ * contain at least one unique, known `METHOD /api/path` ID. If you omit it,
83
+ * Polytomic ranks all documented operations. Every ranking also includes the
84
+ * no-match option. The response's `sourceSha256` is the SHA-256 of the internal processed MCP
85
+ * spec artifact used to build the operation catalog. It is not the digest of the
86
+ * public OpenAPI document. Treat it as an opaque catalog version for detecting
87
+ * drift between the API and MCP deployments.
88
+ *
89
+ * Each task has its own ranking in the same order as `queries`. The scores within
90
+ * one task describe the relative probability of choosing each operation as the
91
+ * single best option, including the no-match option. They are not independent
92
+ * relevance scores and cannot be compared across tasks.
93
+ *
94
+ * If no documented operation is the best choice, `matches` is empty. Results
95
+ * come from the public API contract, not your Organization's data. Finding an
96
+ * operation does not authorize you to call it; the operation's own authentication
97
+ * and permissions still apply.
98
+ *
99
+ * @param {Polytomic.SearchOperationsRequest} request
100
+ * @param {OperationsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
101
+ *
102
+ * @throws {@link Polytomic.BadRequestError}
103
+ * @throws {@link Polytomic.TooManyRequestsError}
104
+ * @throws {@link Polytomic.BadGatewayError}
105
+ * @throws {@link Polytomic.ServiceUnavailableError}
106
+ * @throws {@link errors.PolytomicError}
107
+ * @throws {@link errors.PolytomicTimeoutError}
108
+ *
109
+ * @example
110
+ * await client.operations.search({
111
+ * queries: ["queries"]
112
+ * })
113
+ */
114
+ search(request, requestOptions) {
115
+ return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
116
+ }
117
+ __search(request, requestOptions) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
120
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
121
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
122
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
123
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
124
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
125
+ const _response = yield core.fetcher({
126
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/operations/search"),
127
+ method: "POST",
128
+ headers: _headers,
129
+ contentType: "application/json",
130
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
131
+ requestType: "json",
132
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
133
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
134
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
135
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
136
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
137
+ logging: this._options.logging,
138
+ });
139
+ if (_response.ok) {
140
+ return { data: _response.body, rawResponse: _response.rawResponse };
141
+ }
142
+ if (_response.error.reason === "status-code") {
143
+ switch (_response.error.statusCode) {
144
+ case 400:
145
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
146
+ case 429:
147
+ throw new Polytomic.TooManyRequestsError(_response.error.body, _response.rawResponse);
148
+ case 502:
149
+ throw new Polytomic.BadGatewayError(_response.error.body, _response.rawResponse);
150
+ case 503:
151
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
152
+ default:
153
+ throw new errors.PolytomicError({
154
+ statusCode: _response.error.statusCode,
155
+ body: _response.error.body,
156
+ rawResponse: _response.rawResponse,
157
+ });
158
+ }
159
+ }
160
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/operations/search");
161
+ });
162
+ }
163
+ /**
164
+ * Reports whether operation search is configured on this API deployment.
165
+ *
166
+ * When a request for one question would exceed an Organization-minute,
167
+ * Organization-day, or deployment-minute question budget, the response includes
168
+ * `rate_limited` with a reason and a UTC `reset_at` timestamp. If more than one
169
+ * budget is exhausted, the timestamp reflects the latest reset. The check does
170
+ * not use any question allowance.
171
+ *
172
+ * > ⚠️ The result is a snapshot. A later request can be limited even if this
173
+ * > response has no `rate_limited` field, especially if it contains two or three
174
+ * > questions or other requests use the shared budget. Concurrent-call limits
175
+ * > are not included. The search request's `429` response and `Retry-After` header
176
+ * > are authoritative.
177
+ *
178
+ * If your request does not identify an Organization, the response reports only
179
+ * `enabled`. When `enabled` is `false`, `rate_limited` is omitted. If Polytomic
180
+ * cannot check the question budgets, the endpoint returns `503`.
181
+ *
182
+ * @param {OperationsClient.RequestOptions} requestOptions - Request-specific configuration.
183
+ *
184
+ * @throws {@link Polytomic.ServiceUnavailableError}
185
+ * @throws {@link errors.PolytomicError}
186
+ * @throws {@link errors.PolytomicTimeoutError}
187
+ *
188
+ * @example
189
+ * await client.operations.getSearchAvailability()
190
+ */
191
+ getSearchAvailability(requestOptions) {
192
+ return core.HttpResponsePromise.fromPromise(this.__getSearchAvailability(requestOptions));
193
+ }
194
+ __getSearchAvailability(requestOptions) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
197
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
198
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
199
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
200
+ const _response = yield core.fetcher({
201
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, "api/operations/search/availability"),
202
+ method: "GET",
203
+ headers: _headers,
204
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
205
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
206
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
209
+ logging: this._options.logging,
210
+ });
211
+ if (_response.ok) {
212
+ return {
213
+ data: _response.body,
214
+ rawResponse: _response.rawResponse,
215
+ };
216
+ }
217
+ if (_response.error.reason === "status-code") {
218
+ switch (_response.error.statusCode) {
219
+ case 503:
220
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
221
+ default:
222
+ throw new errors.PolytomicError({
223
+ statusCode: _response.error.statusCode,
224
+ body: _response.error.body,
225
+ rawResponse: _response.rawResponse,
226
+ });
227
+ }
228
+ }
229
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/operations/search/availability");
230
+ });
231
+ }
232
+ }
233
+ exports.OperationsClient = OperationsClient;
@@ -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,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * queries: ["queries"]
5
+ * }
6
+ */
7
+ export interface SearchOperationsRequest {
8
+ /** Maximum operations per task, from 1 to 10; defaults to 5. */
9
+ limit?: number;
10
+ /** Optional nonempty list of unique stable operation IDs to rank; omitted to rank the full catalog. */
11
+ operationIds?: string[];
12
+ /** One to three plain-language tasks to find API operations for. */
13
+ queries: string[];
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { SearchOperationsRequest } from "./SearchOperationsRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { OperationsClient } 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.OperationsClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "OperationsClient", { enumerable: true, get: function () { return Client_1.OperationsClient; } });
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);
@@ -54,7 +54,7 @@ export declare class OrganizationClient {
54
54
  getRecordLogging(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<Polytomic.RecordLoggingSettingsEnvelope>;
55
55
  private __getRecordLogging;
56
56
  /**
57
- * Replaces the organization's record logging settings. `deliveryConnectionId` is replaced, not merged: omitting it, or sending null, removes any destination previously configured.
57
+ * Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
58
58
  *
59
59
  * @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
60
60
  * @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
@@ -183,7 +183,7 @@ class OrganizationClient {
183
183
  });
184
184
  }
185
185
  /**
186
- * Replaces the organization's record logging settings. `deliveryConnectionId` is replaced, not merged: omitting it, or sending null, removes any destination previously configured.
186
+ * Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
187
187
  *
188
188
  * @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
189
189
  * @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
@@ -7,6 +7,8 @@
7
7
  export interface UpdateRecordLoggingSettingsRequest {
8
8
  /** Blobstorage connection that receives record logs after each model sync execution. Omit or send null to deliver nowhere; this field is replaced, not merged. */
9
9
  deliveryConnectionId?: string;
10
+ /** Path record logs are delivered under, ahead of the organization ID. Omit or send null for none; this field is replaced, not merged. */
11
+ deliveryPrefix?: string;
10
12
  /** Whether record logging is enabled for the organization. */
11
13
  enabled: boolean;
12
14
  }
@@ -13,7 +13,7 @@ export declare class TemporaryCredentialsClient {
13
13
  protected readonly _options: NormalizedClientOptionsWithAuth<TemporaryCredentialsClient.Options>;
14
14
  constructor(options?: TemporaryCredentialsClient.Options);
15
15
  /**
16
- * Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
16
+ * Issues a non-renewable credential with a bounded lifetime for a user or Harbor.
17
17
  *
18
18
  * The response contains the credential secret once. Store it securely and send it
19
19
  * as a Bearer token in the `Authorization` header.
@@ -26,17 +26,17 @@ export declare class TemporaryCredentialsClient {
26
26
  *
27
27
  * Partner callers must provide both `organization_id` and `user_id`. The target
28
28
  * must be an active user in an organization owned by the partner. User subjects
29
- * must be application users; Agent Data portal-only users continue to use profile
29
+ * must be application users; Harbor-only users continue to use Harbor
30
30
  * credentials.
31
31
  *
32
32
  * User credentials resolve the subject's current permissions on every request.
33
33
  * Permission changes take effect immediately, and deleting the user invalidates
34
34
  * the credential.
35
35
  *
36
- * Set `subject.type` to `profile` and provide the Agent Data profile ID. The
37
- * credential uses the profile's current connection access on every request;
38
- * changes take effect immediately, and deleting the profile invalidates the
39
- * credential.
36
+ * Set `subject.type` to `harbor` and provide the Harbor ID in `harbor_id`. The
37
+ * credential uses the Harbor's current connection access on every request;
38
+ * changes take effect immediately. Missing and deleted Harbors cannot be
39
+ * targeted.
40
40
  *
41
41
  * A temporary credential stops authenticating at `expires_at`. It cannot be
42
42
  * refreshed, extended, or used to create another temporary credential. Create a
@@ -57,7 +57,7 @@ class TemporaryCredentialsClient {
57
57
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
- * Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
60
+ * Issues a non-renewable credential with a bounded lifetime for a user or Harbor.
61
61
  *
62
62
  * The response contains the credential secret once. Store it securely and send it
63
63
  * as a Bearer token in the `Authorization` header.
@@ -70,17 +70,17 @@ class TemporaryCredentialsClient {
70
70
  *
71
71
  * Partner callers must provide both `organization_id` and `user_id`. The target
72
72
  * must be an active user in an organization owned by the partner. User subjects
73
- * must be application users; Agent Data portal-only users continue to use profile
73
+ * must be application users; Harbor-only users continue to use Harbor
74
74
  * credentials.
75
75
  *
76
76
  * User credentials resolve the subject's current permissions on every request.
77
77
  * Permission changes take effect immediately, and deleting the user invalidates
78
78
  * the credential.
79
79
  *
80
- * Set `subject.type` to `profile` and provide the Agent Data profile ID. The
81
- * credential uses the profile's current connection access on every request;
82
- * changes take effect immediately, and deleting the profile invalidates the
83
- * credential.
80
+ * Set `subject.type` to `harbor` and provide the Harbor ID in `harbor_id`. The
81
+ * credential uses the Harbor's current connection access on every request;
82
+ * changes take effect immediately. Missing and deleted Harbors cannot be
83
+ * targeted.
84
84
  *
85
85
  * A temporary credential stops authenticating at `expires_at`. It cannot be
86
86
  * refreshed, extended, or used to create another temporary credential. Create a
@@ -0,0 +1,4 @@
1
+ export interface ActionLookup {
2
+ field_id?: string | undefined;
3
+ value?: unknown | 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
+ export interface CompletionValue {
2
+ label?: string | undefined;
3
+ path?: string | undefined;
4
+ value?: unknown | 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 });
@@ -11,6 +11,8 @@ export interface ConnectionResponseSchema {
11
11
  /** For shared connections, the ID of the parent connection. */
12
12
  parent_connection_id?: string | undefined;
13
13
  policies?: string[] | undefined;
14
+ /** Observed connection-wide rate limiting, independent of connection health. Null when any required lookup is unavailable. Shared connections combine their own marker with their root connection's marker. */
15
+ rate_limit?: ConnectionResponseSchema.RateLimit | undefined;
14
16
  saved?: boolean | undefined;
15
17
  status?: string | undefined;
16
18
  status_error?: string | undefined;
@@ -18,3 +20,16 @@ export interface ConnectionResponseSchema {
18
20
  updated_at?: string | undefined;
19
21
  updated_by?: Polytomic.OutputActor | undefined;
20
22
  }
23
+ export declare namespace ConnectionResponseSchema {
24
+ /**
25
+ * Observed connection-wide rate limiting, independent of connection health. Null when any required lookup is unavailable. Shared connections combine their own marker with their root connection's marker.
26
+ */
27
+ interface RateLimit {
28
+ /** Whether Polytomic has an unexpired connection-wide rate-limit marker. False means no active observed limit, not guaranteed upstream capacity. */
29
+ currently_limited?: boolean | undefined;
30
+ /** Marker expiry unless extended. Not a promised provider reset or exact retry time. Null when no active marker exists. */
31
+ expires_at?: string | undefined;
32
+ /** Start of the continuous rate-limited period. Null when no active marker exists. */
33
+ limited_since?: string | undefined;
34
+ }
35
+ }
@@ -4,4 +4,6 @@ export interface FieldConfiguration {
4
4
  id?: string | undefined;
5
5
  /** Whether the field should be obfuscated. */
6
6
  obfuscate?: boolean | undefined;
7
+ /** User-specified override for the destination field name. Omit to keep the current value; send an empty string to clear it. */
8
+ user_output_name?: string | undefined;
7
9
  }
@@ -0,0 +1,12 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionCapability {
3
+ description?: string | undefined;
4
+ effect?: string | undefined;
5
+ idempotency?: Polytomic.SchemaOperationIdempotency | undefined;
6
+ input_fields?: Polytomic.HarborActionField[] | undefined;
7
+ lookup_fields?: Polytomic.HarborActionField[] | undefined;
8
+ name?: string | undefined;
9
+ operation_id?: string | undefined;
10
+ output_fields?: Polytomic.HarborActionField[] | undefined;
11
+ schema_id?: string | undefined;
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,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionDescribeEnvelope {
3
+ data?: Polytomic.HarborActionCapability | 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,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionExecutionEnvelope {
3
+ data?: Polytomic.HarborActionExecutionResponse | 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,28 @@
1
+ export interface HarborActionExecutionResponse {
2
+ connection_id?: string | undefined;
3
+ /** Original credential attribution, including when another credential submits a duplicate. */
4
+ credential_id?: string | undefined;
5
+ deadline_at?: string | undefined;
6
+ execution_id?: string | undefined;
7
+ failure_category?: string | undefined;
8
+ /** Submitted field names only, never their values. */
9
+ field_ids?: string[] | undefined;
10
+ finished_at?: string | undefined;
11
+ lookup_field_id?: string | undefined;
12
+ operation_id?: string | undefined;
13
+ /** True when receipt persistence was interrupted or uncertain. Inspect status; this response does not confirm durable acceptance or completion. */
14
+ recovery_required?: boolean | undefined;
15
+ schema_id?: string | undefined;
16
+ started_at?: string | undefined;
17
+ status?: HarborActionExecutionResponse.Status | undefined;
18
+ status_path?: string | undefined;
19
+ }
20
+ export declare namespace HarborActionExecutionResponse {
21
+ const Status: {
22
+ readonly Executing: "executing";
23
+ readonly Succeeded: "succeeded";
24
+ readonly Failed: "failed";
25
+ readonly Unknown: "unknown";
26
+ };
27
+ type Status = (typeof Status)[keyof typeof Status];
28
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HarborActionExecutionResponse = void 0;
5
+ var HarborActionExecutionResponse;
6
+ (function (HarborActionExecutionResponse) {
7
+ HarborActionExecutionResponse.Status = {
8
+ Executing: "executing",
9
+ Succeeded: "succeeded",
10
+ Failed: "failed",
11
+ Unknown: "unknown",
12
+ };
13
+ })(HarborActionExecutionResponse || (exports.HarborActionExecutionResponse = HarborActionExecutionResponse = {}));
@@ -0,0 +1,14 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionField {
3
+ definition?: Polytomic.TypesDefinition | undefined;
4
+ description?: string | undefined;
5
+ id?: string | undefined;
6
+ max_bytes?: number | undefined;
7
+ name?: string | undefined;
8
+ non_blank?: boolean | undefined;
9
+ nullable?: boolean | undefined;
10
+ pattern?: string | undefined;
11
+ required?: boolean | undefined;
12
+ type?: Polytomic.UtilFieldType | undefined;
13
+ values?: Polytomic.CompletionValue[] | undefined;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionListEnvelope {
3
+ data?: Polytomic.HarborActionSummary[] | undefined;
4
+ pagination?: HarborActionListEnvelope.Pagination | undefined;
5
+ }
6
+ export declare namespace HarborActionListEnvelope {
7
+ interface Pagination {
8
+ next_page_token?: string | undefined;
9
+ }
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,4 @@
1
+ import type * as Polytomic from "../index";
2
+ export interface HarborActionLookupEnvelope {
3
+ data?: Polytomic.SchemaRecord | 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,4 @@
1
+ export interface HarborActionPreparation {
2
+ execution_id?: string | undefined;
3
+ expires_at?: string | undefined;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });