polytomic 25.9.8 → 25.9.10
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/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -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/proxy/client/Client.d.ts +13 -0
- package/api/resources/connections/resources/proxy/client/Client.js +13 -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 +38 -0
- package/api/resources/harbors/client/Client.js +94 -0
- package/api/resources/harbors/client/requests/RunHarborQueryRequest.d.ts +12 -0
- package/api/resources/harbors/client/requests/RunHarborQueryRequest.js +3 -0
- package/api/resources/harbors/client/requests/index.d.ts +1 -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/ActionsDescribeRequest.js +3 -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/identity/client/Client.d.ts +1 -0
- package/api/resources/identity/client/Client.js +3 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -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/queryRunner/client/Client.d.ts +5 -3
- package/api/resources/queryRunner/client/Client.js +5 -3
- package/api/resources/temporaryCredentials/client/Client.d.ts +6 -6
- package/api/resources/temporaryCredentials/client/Client.js +6 -6
- package/api/resources/webhooks/client/Client.d.ts +32 -0
- package/api/resources/webhooks/client/Client.js +89 -0
- package/api/resources/webhooks/client/requests/WebhooksListDeliveriesRequest.d.ts +21 -0
- package/api/resources/webhooks/client/requests/WebhooksListDeliveriesRequest.js +3 -0
- package/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/api/types/ActionLookup.d.ts +4 -0
- package/api/types/ActionLookup.js +3 -0
- package/api/types/BulkSchema.d.ts +4 -0
- package/api/types/BulkSchemaListItem.d.ts +4 -0
- package/api/types/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncTargetMode.d.ts +1 -0
- package/api/types/BulkSyncTargetMode.js +1 -0
- package/api/types/CompletionValue.d.ts +6 -0
- package/api/types/CompletionValue.js +3 -0
- package/api/types/ConnectionProxyApi.d.ts +10 -0
- package/api/types/ConnectionProxyApi.js +3 -0
- package/api/types/ConnectionProxyCall.d.ts +3 -1
- package/api/types/ConnectionProxyInfoResponse.d.ts +2 -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/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/PickValue.d.ts +2 -0
- package/api/types/SchemaConfiguration.d.ts +4 -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/TargetField.d.ts +2 -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/WebhookDeliveriesEnvelope.d.ts +5 -0
- package/api/types/WebhookDeliveriesEnvelope.js +3 -0
- package/api/types/WebhookDelivery.d.ts +13 -0
- package/api/types/WebhookDelivery.js +3 -0
- package/api/types/index.d.ts +24 -0
- package/api/types/index.js +24 -0
- package/package.json +1 -1
- package/reference.md +1156 -41
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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 @@
|
|
|
1
|
+
export type { SearchOperationsRequest } from "./SearchOperationsRequest";
|
|
@@ -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);
|
|
@@ -19,9 +19,11 @@ export declare class QueryRunnerClient {
|
|
|
19
19
|
* the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
20
20
|
* reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* A Harbor-bound scoped credential can submit freeform SQL only against its
|
|
23
|
+
* Harbor's backing connection, even if its profile allows other connections.
|
|
24
|
+
* Other credentials retain their existing connection access. Query results are
|
|
25
|
+
* stored temporarily and may expire; use the `expires` field from the result
|
|
26
|
+
* endpoint to understand how long they remain available.
|
|
25
27
|
*
|
|
26
28
|
* @param {string} connection_id - Unique identifier of the connection to run the query against.
|
|
27
29
|
* @param {Polytomic.RunQueryRequest} request
|
|
@@ -74,9 +74,11 @@ class QueryRunnerClient {
|
|
|
74
74
|
* the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
75
75
|
* reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
76
76
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
77
|
+
* A Harbor-bound scoped credential can submit freeform SQL only against its
|
|
78
|
+
* Harbor's backing connection, even if its profile allows other connections.
|
|
79
|
+
* Other credentials retain their existing connection access. Query results are
|
|
80
|
+
* stored temporarily and may expire; use the `expires` field from the result
|
|
81
|
+
* endpoint to understand how long they remain available.
|
|
80
82
|
*
|
|
81
83
|
* @param {string} connection_id - Unique identifier of the connection to run the query against.
|
|
82
84
|
* @param {Polytomic.RunQueryRequest} request
|
|
@@ -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
|
|
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;
|
|
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 `
|
|
37
|
-
* credential uses the
|
|
38
|
-
* changes take effect immediately
|
|
39
|
-
*
|
|
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
|
|
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;
|
|
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 `
|
|
81
|
-
* credential uses the
|
|
82
|
-
* changes take effect immediately
|
|
83
|
-
*
|
|
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
|
|
@@ -137,6 +137,38 @@ export declare class WebhooksClient {
|
|
|
137
137
|
*/
|
|
138
138
|
delete(id: string, requestOptions?: WebhooksClient.IdempotentRequestOptions): core.HttpResponsePromise<void>;
|
|
139
139
|
private __delete;
|
|
140
|
+
/**
|
|
141
|
+
* Lists delivery attempts for a webhook, newest first.
|
|
142
|
+
*
|
|
143
|
+
* Use `success`, `event_id`, `start`, and `end` to narrow the results.
|
|
144
|
+
* Results are ordered by attempt time, newest first. Pass the returned
|
|
145
|
+
* `next_page_token` as `page_token` to fetch the next page. An empty token means
|
|
146
|
+
* there are no more results. Response bodies contain content returned by your
|
|
147
|
+
* webhook endpoint. Attempts are listed only while their event is retained.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} id
|
|
150
|
+
* @param {Polytomic.WebhooksListDeliveriesRequest} request
|
|
151
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
154
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
155
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
156
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
157
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
158
|
+
* @throws {@link errors.PolytomicError}
|
|
159
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.webhooks.listDeliveries("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
163
|
+
* success: true,
|
|
164
|
+
* event_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
165
|
+
* start: "2024-01-15T09:30:00Z",
|
|
166
|
+
* end: "2024-01-15T09:30:00Z",
|
|
167
|
+
* page_token: "page_token"
|
|
168
|
+
* })
|
|
169
|
+
*/
|
|
170
|
+
listDeliveries(id: string, request?: Polytomic.WebhooksListDeliveriesRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Polytomic.WebhookDeliveriesEnvelope>;
|
|
171
|
+
private __listDeliveries;
|
|
140
172
|
/**
|
|
141
173
|
* Disables a webhook without deleting it.
|
|
142
174
|
*
|
|
@@ -385,6 +385,95 @@ class WebhooksClient {
|
|
|
385
385
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/webhooks/{id}");
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Lists delivery attempts for a webhook, newest first.
|
|
390
|
+
*
|
|
391
|
+
* Use `success`, `event_id`, `start`, and `end` to narrow the results.
|
|
392
|
+
* Results are ordered by attempt time, newest first. Pass the returned
|
|
393
|
+
* `next_page_token` as `page_token` to fetch the next page. An empty token means
|
|
394
|
+
* there are no more results. Response bodies contain content returned by your
|
|
395
|
+
* webhook endpoint. Attempts are listed only while their event is retained.
|
|
396
|
+
*
|
|
397
|
+
* @param {string} id
|
|
398
|
+
* @param {Polytomic.WebhooksListDeliveriesRequest} request
|
|
399
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
400
|
+
*
|
|
401
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
402
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
403
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
404
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
405
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
406
|
+
* @throws {@link errors.PolytomicError}
|
|
407
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* await client.webhooks.listDeliveries("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
411
|
+
* success: true,
|
|
412
|
+
* event_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
413
|
+
* start: "2024-01-15T09:30:00Z",
|
|
414
|
+
* end: "2024-01-15T09:30:00Z",
|
|
415
|
+
* page_token: "page_token"
|
|
416
|
+
* })
|
|
417
|
+
*/
|
|
418
|
+
listDeliveries(id, request = {}, requestOptions) {
|
|
419
|
+
return core.HttpResponsePromise.fromPromise(this.__listDeliveries(id, request, requestOptions));
|
|
420
|
+
}
|
|
421
|
+
__listDeliveries(id_1) {
|
|
422
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
423
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
424
|
+
const { success, event_id: eventId, start, end, page_token: pageToken } = request;
|
|
425
|
+
const _queryParams = {
|
|
426
|
+
success,
|
|
427
|
+
event_id: eventId,
|
|
428
|
+
start: start != null ? start : undefined,
|
|
429
|
+
end: end != null ? end : undefined,
|
|
430
|
+
page_token: pageToken,
|
|
431
|
+
};
|
|
432
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
433
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
434
|
+
"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",
|
|
435
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
436
|
+
const _response = yield core.fetcher({
|
|
437
|
+
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/webhooks/${core.url.encodePathParam(id)}/deliveries`),
|
|
438
|
+
method: "GET",
|
|
439
|
+
headers: _headers,
|
|
440
|
+
queryString: core.url
|
|
441
|
+
.queryBuilder()
|
|
442
|
+
.addMany(_queryParams)
|
|
443
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
444
|
+
.build(),
|
|
445
|
+
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,
|
|
446
|
+
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,
|
|
447
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
448
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
449
|
+
logging: this._options.logging,
|
|
450
|
+
});
|
|
451
|
+
if (_response.ok) {
|
|
452
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
453
|
+
}
|
|
454
|
+
if (_response.error.reason === "status-code") {
|
|
455
|
+
switch (_response.error.statusCode) {
|
|
456
|
+
case 400:
|
|
457
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
458
|
+
case 401:
|
|
459
|
+
throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
460
|
+
case 404:
|
|
461
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
462
|
+
case 422:
|
|
463
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
464
|
+
case 500:
|
|
465
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
466
|
+
default:
|
|
467
|
+
throw new errors.PolytomicError({
|
|
468
|
+
statusCode: _response.error.statusCode,
|
|
469
|
+
body: _response.error.body,
|
|
470
|
+
rawResponse: _response.rawResponse,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/webhooks/{id}/deliveries");
|
|
475
|
+
});
|
|
476
|
+
}
|
|
388
477
|
/**
|
|
389
478
|
* Disables a webhook without deleting it.
|
|
390
479
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* success: true,
|
|
5
|
+
* event_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
6
|
+
* start: "2024-01-15T09:30:00Z",
|
|
7
|
+
* end: "2024-01-15T09:30:00Z",
|
|
8
|
+
* page_token: "page_token"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface WebhooksListDeliveriesRequest {
|
|
12
|
+
/** Filter by delivery result. */
|
|
13
|
+
success?: boolean;
|
|
14
|
+
event_id?: string;
|
|
15
|
+
/** Include attempts at or after this time. */
|
|
16
|
+
start?: string;
|
|
17
|
+
/** Include attempts before this time. */
|
|
18
|
+
end?: string;
|
|
19
|
+
/** Token from the previous page. */
|
|
20
|
+
page_token?: string;
|
|
21
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type * as Polytomic from "../index";
|
|
2
2
|
export interface BulkSchema {
|
|
3
3
|
data_cutoff_timestamp?: string | undefined;
|
|
4
|
+
/** Name of the companion history table. Present only when history is enabled on a destination that supports it. */
|
|
5
|
+
destination_history_output_name?: string | undefined;
|
|
4
6
|
disable_data_cutoff?: boolean | undefined;
|
|
5
7
|
enabled?: boolean | undefined;
|
|
6
8
|
/** fields is not populated on the list endpoint and will be removed in a future version; retrieve individual schemas for fields. */
|
|
7
9
|
fields?: Polytomic.BulkField[] | undefined;
|
|
8
10
|
/** filters is not populated on the list endpoint and will be removed in a future version; retrieve individual schemas for filters. */
|
|
9
11
|
filters?: Polytomic.BulkFilter[] | undefined;
|
|
12
|
+
/** Whether a companion history table is maintained beside this schema's output, recording every version observed on successive runs. Requires a replicate-mode sync to a destination reporting supports_history_mode. Always present in responses; when patching, omit it to keep the current value. */
|
|
13
|
+
history_enabled?: boolean | undefined;
|
|
10
14
|
id?: string | undefined;
|
|
11
15
|
output_name?: string | undefined;
|
|
12
16
|
partition_key?: string | undefined;
|