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
package/reference.md
CHANGED
|
@@ -1171,6 +1171,27 @@ exposes, consult the parameter schema returned by
|
|
|
1171
1171
|
To inspect the data objects available on a specific connection, use
|
|
1172
1172
|
[`POST /api/connections/{id}/schemas/refresh`](../../api-reference/schemas/refresh)
|
|
1173
1173
|
followed by [`GET /api/connections/{id}/schemas/status`](../../api-reference/schemas/get-status).
|
|
1174
|
+
|
|
1175
|
+
## Observed rate limits
|
|
1176
|
+
|
|
1177
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
1178
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
1179
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
1180
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
1181
|
+
copy are not included.
|
|
1182
|
+
|
|
1183
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
1184
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
1185
|
+
period separated from the active period by a gap does not extend that start.
|
|
1186
|
+
|
|
1187
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
1188
|
+
>
|
|
1189
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
1190
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
1191
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
1192
|
+
|
|
1193
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
1194
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
1174
1195
|
</dd>
|
|
1175
1196
|
</dl>
|
|
1176
1197
|
</dd>
|
|
@@ -1532,6 +1553,27 @@ To inspect the schemas available on this connection, trigger a refresh with
|
|
|
1532
1553
|
[`POST /api/connections/{id}/schemas/refresh`](../../../api-reference/schemas/refresh) and
|
|
1533
1554
|
track progress via
|
|
1534
1555
|
[`GET /api/connections/{id}/schemas/status`](../../../api-reference/schemas/get-status).
|
|
1556
|
+
|
|
1557
|
+
## Observed rate limits
|
|
1558
|
+
|
|
1559
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
1560
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
1561
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
1562
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
1563
|
+
copy are not included.
|
|
1564
|
+
|
|
1565
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
1566
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
1567
|
+
period separated from the active period by a gap does not extend that start.
|
|
1568
|
+
|
|
1569
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
1570
|
+
>
|
|
1571
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
1572
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
1573
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
1574
|
+
|
|
1575
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
1576
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
1535
1577
|
</dd>
|
|
1536
1578
|
</dl>
|
|
1537
1579
|
</dd>
|
|
@@ -1931,9 +1973,11 @@ This endpoint returns immediately with a query task ID. It does not wait for
|
|
|
1931
1973
|
the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
1932
1974
|
reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
1933
1975
|
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1976
|
+
A Harbor-bound scoped credential can submit freeform SQL only against its
|
|
1977
|
+
Harbor's backing connection, even if its profile allows other connections.
|
|
1978
|
+
Other credentials retain their existing connection access. Query results are
|
|
1979
|
+
stored temporarily and may expire; use the `expires` field from the result
|
|
1980
|
+
endpoint to understand how long they remain available.
|
|
1937
1981
|
</dd>
|
|
1938
1982
|
</dl>
|
|
1939
1983
|
</dd>
|
|
@@ -6871,6 +6915,91 @@ await client.harbors.deleteKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7
|
|
|
6871
6915
|
</dl>
|
|
6872
6916
|
|
|
6873
6917
|
|
|
6918
|
+
</dd>
|
|
6919
|
+
</dl>
|
|
6920
|
+
</details>
|
|
6921
|
+
|
|
6922
|
+
<details><summary><code>client.harbors.<a href="/src/api/resources/harbors/client/Client.ts">runQuery</a>(harbor_id, { ...params }) -> Polytomic.RunQueryEnvelope</code></summary>
|
|
6923
|
+
<dl>
|
|
6924
|
+
<dd>
|
|
6925
|
+
|
|
6926
|
+
#### 📝 Description
|
|
6927
|
+
|
|
6928
|
+
<dl>
|
|
6929
|
+
<dd>
|
|
6930
|
+
|
|
6931
|
+
<dl>
|
|
6932
|
+
<dd>
|
|
6933
|
+
|
|
6934
|
+
Submits a query against the Harbor backing connection for asynchronous execution.
|
|
6935
|
+
|
|
6936
|
+
Use a scoped credential bound to this Harbor. The query runs only against the
|
|
6937
|
+
Harbor's backing connection; you cannot select another connection on this route.
|
|
6938
|
+
Send a unique `X-Polytomic-Activity-Request-ID` UUID with each submission. The
|
|
6939
|
+
`X-Polytomic-Harbor-Session` header is optional; if you send one, it must be
|
|
6940
|
+
valid for this Harbor.
|
|
6941
|
+
|
|
6942
|
+
The response contains a query ID and an initial `created` status. Poll
|
|
6943
|
+
[`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) with that ID
|
|
6944
|
+
until the status is `done`, `failed`, or `unknown`. Follow the result endpoint's
|
|
6945
|
+
pagination links for additional rows. Results are temporary; check `expires`
|
|
6946
|
+
on the completed query.
|
|
6947
|
+
</dd>
|
|
6948
|
+
</dl>
|
|
6949
|
+
</dd>
|
|
6950
|
+
</dl>
|
|
6951
|
+
|
|
6952
|
+
#### 🔌 Usage
|
|
6953
|
+
|
|
6954
|
+
<dl>
|
|
6955
|
+
<dd>
|
|
6956
|
+
|
|
6957
|
+
<dl>
|
|
6958
|
+
<dd>
|
|
6959
|
+
|
|
6960
|
+
```typescript
|
|
6961
|
+
await client.harbors.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
6962
|
+
query: "SELECT 1 AS n"
|
|
6963
|
+
});
|
|
6964
|
+
|
|
6965
|
+
```
|
|
6966
|
+
</dd>
|
|
6967
|
+
</dl>
|
|
6968
|
+
</dd>
|
|
6969
|
+
</dl>
|
|
6970
|
+
|
|
6971
|
+
#### ⚙️ Parameters
|
|
6972
|
+
|
|
6973
|
+
<dl>
|
|
6974
|
+
<dd>
|
|
6975
|
+
|
|
6976
|
+
<dl>
|
|
6977
|
+
<dd>
|
|
6978
|
+
|
|
6979
|
+
**harbor_id:** `string` — Unique identifier of the Harbor whose backing connection runs the query.
|
|
6980
|
+
|
|
6981
|
+
</dd>
|
|
6982
|
+
</dl>
|
|
6983
|
+
|
|
6984
|
+
<dl>
|
|
6985
|
+
<dd>
|
|
6986
|
+
|
|
6987
|
+
**request:** `Polytomic.RunHarborQueryRequest`
|
|
6988
|
+
|
|
6989
|
+
</dd>
|
|
6990
|
+
</dl>
|
|
6991
|
+
|
|
6992
|
+
<dl>
|
|
6993
|
+
<dd>
|
|
6994
|
+
|
|
6995
|
+
**requestOptions:** `HarborsClient.IdempotentRequestOptions`
|
|
6996
|
+
|
|
6997
|
+
</dd>
|
|
6998
|
+
</dl>
|
|
6999
|
+
</dd>
|
|
7000
|
+
</dl>
|
|
7001
|
+
|
|
7002
|
+
|
|
6874
7003
|
</dd>
|
|
6875
7004
|
</dl>
|
|
6876
7005
|
</details>
|
|
@@ -8553,6 +8682,180 @@ await client.notifications.setGlobalErrorSubscribers();
|
|
|
8553
8682
|
</dl>
|
|
8554
8683
|
|
|
8555
8684
|
|
|
8685
|
+
</dd>
|
|
8686
|
+
</dl>
|
|
8687
|
+
</details>
|
|
8688
|
+
|
|
8689
|
+
## Operations
|
|
8690
|
+
<details><summary><code>client.operations.<a href="/src/api/resources/operations/client/Client.ts">search</a>({ ...params }) -> Polytomic.SearchOperationsEnvelope</code></summary>
|
|
8691
|
+
<dl>
|
|
8692
|
+
<dd>
|
|
8693
|
+
|
|
8694
|
+
#### 📝 Description
|
|
8695
|
+
|
|
8696
|
+
<dl>
|
|
8697
|
+
<dd>
|
|
8698
|
+
|
|
8699
|
+
<dl>
|
|
8700
|
+
<dd>
|
|
8701
|
+
|
|
8702
|
+
Finds documented REST operations for up to three plain-language tasks in one request.
|
|
8703
|
+
|
|
8704
|
+
This endpoint returns HTTP 503 when operation search is not configured for the
|
|
8705
|
+
API deployment. Check [search availability](../../../api-reference/operations/get-search-availability)
|
|
8706
|
+
before offering operation search in a client.
|
|
8707
|
+
|
|
8708
|
+
Each question counts against three fixed UTC-window budgets: 12 questions per
|
|
8709
|
+
Organization per minute, 300 per Organization per day, and 60 per minute
|
|
8710
|
+
across the deployment. A request with three tasks uses three questions from
|
|
8711
|
+
each budget. At most eight provider calls run concurrently across the
|
|
8712
|
+
deployment. These are initial defaults; operators can adjust them with
|
|
8713
|
+
`API_DISCOVERY_ORG_QUESTIONS_PER_MINUTE`,
|
|
8714
|
+
`API_DISCOVERY_ORG_QUESTIONS_PER_DAY`,
|
|
8715
|
+
`API_DISCOVERY_GLOBAL_QUESTIONS_PER_MINUTE`, and
|
|
8716
|
+
`API_DISCOVERY_GLOBAL_IN_FLIGHT`. All settings must be positive integers.
|
|
8717
|
+
Daily budgets reset at 00:00 UTC; minute budgets reset on UTC minute
|
|
8718
|
+
boundaries, which can allow a short burst across adjacent minutes. Calls
|
|
8719
|
+
rejected by a limit return HTTP 429 with a `Retry-After` header in seconds.
|
|
8720
|
+
A submitted call still counts if the provider fails. If admission is
|
|
8721
|
+
unavailable, the endpoint returns HTTP 503 instead of contacting the provider.
|
|
8722
|
+
|
|
8723
|
+
Pass `operationIds` to rank only those documented operations. The list must
|
|
8724
|
+
contain at least one unique, known `METHOD /api/path` ID. If you omit it,
|
|
8725
|
+
Polytomic ranks all documented operations. Every ranking also includes the
|
|
8726
|
+
no-match option. The response's `sourceSha256` is the SHA-256 of the internal processed MCP
|
|
8727
|
+
spec artifact used to build the operation catalog. It is not the digest of the
|
|
8728
|
+
public OpenAPI document. Treat it as an opaque catalog version for detecting
|
|
8729
|
+
drift between the API and MCP deployments.
|
|
8730
|
+
|
|
8731
|
+
Each task has its own ranking in the same order as `queries`. The scores within
|
|
8732
|
+
one task describe the relative probability of choosing each operation as the
|
|
8733
|
+
single best option, including the no-match option. They are not independent
|
|
8734
|
+
relevance scores and cannot be compared across tasks.
|
|
8735
|
+
|
|
8736
|
+
If no documented operation is the best choice, `matches` is empty. Results
|
|
8737
|
+
come from the public API contract, not your Organization's data. Finding an
|
|
8738
|
+
operation does not authorize you to call it; the operation's own authentication
|
|
8739
|
+
and permissions still apply.
|
|
8740
|
+
</dd>
|
|
8741
|
+
</dl>
|
|
8742
|
+
</dd>
|
|
8743
|
+
</dl>
|
|
8744
|
+
|
|
8745
|
+
#### 🔌 Usage
|
|
8746
|
+
|
|
8747
|
+
<dl>
|
|
8748
|
+
<dd>
|
|
8749
|
+
|
|
8750
|
+
<dl>
|
|
8751
|
+
<dd>
|
|
8752
|
+
|
|
8753
|
+
```typescript
|
|
8754
|
+
await client.operations.search({
|
|
8755
|
+
queries: ["queries"]
|
|
8756
|
+
});
|
|
8757
|
+
|
|
8758
|
+
```
|
|
8759
|
+
</dd>
|
|
8760
|
+
</dl>
|
|
8761
|
+
</dd>
|
|
8762
|
+
</dl>
|
|
8763
|
+
|
|
8764
|
+
#### ⚙️ Parameters
|
|
8765
|
+
|
|
8766
|
+
<dl>
|
|
8767
|
+
<dd>
|
|
8768
|
+
|
|
8769
|
+
<dl>
|
|
8770
|
+
<dd>
|
|
8771
|
+
|
|
8772
|
+
**request:** `Polytomic.SearchOperationsRequest`
|
|
8773
|
+
|
|
8774
|
+
</dd>
|
|
8775
|
+
</dl>
|
|
8776
|
+
|
|
8777
|
+
<dl>
|
|
8778
|
+
<dd>
|
|
8779
|
+
|
|
8780
|
+
**requestOptions:** `OperationsClient.IdempotentRequestOptions`
|
|
8781
|
+
|
|
8782
|
+
</dd>
|
|
8783
|
+
</dl>
|
|
8784
|
+
</dd>
|
|
8785
|
+
</dl>
|
|
8786
|
+
|
|
8787
|
+
|
|
8788
|
+
</dd>
|
|
8789
|
+
</dl>
|
|
8790
|
+
</details>
|
|
8791
|
+
|
|
8792
|
+
<details><summary><code>client.operations.<a href="/src/api/resources/operations/client/Client.ts">getSearchAvailability</a>() -> Polytomic.OperationSearchAvailabilityEnvelope</code></summary>
|
|
8793
|
+
<dl>
|
|
8794
|
+
<dd>
|
|
8795
|
+
|
|
8796
|
+
#### 📝 Description
|
|
8797
|
+
|
|
8798
|
+
<dl>
|
|
8799
|
+
<dd>
|
|
8800
|
+
|
|
8801
|
+
<dl>
|
|
8802
|
+
<dd>
|
|
8803
|
+
|
|
8804
|
+
Reports whether operation search is configured on this API deployment.
|
|
8805
|
+
|
|
8806
|
+
When a request for one question would exceed an Organization-minute,
|
|
8807
|
+
Organization-day, or deployment-minute question budget, the response includes
|
|
8808
|
+
`rate_limited` with a reason and a UTC `reset_at` timestamp. If more than one
|
|
8809
|
+
budget is exhausted, the timestamp reflects the latest reset. The check does
|
|
8810
|
+
not use any question allowance.
|
|
8811
|
+
|
|
8812
|
+
> ⚠️ The result is a snapshot. A later request can be limited even if this
|
|
8813
|
+
> response has no `rate_limited` field, especially if it contains two or three
|
|
8814
|
+
> questions or other requests use the shared budget. Concurrent-call limits
|
|
8815
|
+
> are not included. The search request's `429` response and `Retry-After` header
|
|
8816
|
+
> are authoritative.
|
|
8817
|
+
|
|
8818
|
+
If your request does not identify an Organization, the response reports only
|
|
8819
|
+
`enabled`. When `enabled` is `false`, `rate_limited` is omitted. If Polytomic
|
|
8820
|
+
cannot check the question budgets, the endpoint returns `503`.
|
|
8821
|
+
</dd>
|
|
8822
|
+
</dl>
|
|
8823
|
+
</dd>
|
|
8824
|
+
</dl>
|
|
8825
|
+
|
|
8826
|
+
#### 🔌 Usage
|
|
8827
|
+
|
|
8828
|
+
<dl>
|
|
8829
|
+
<dd>
|
|
8830
|
+
|
|
8831
|
+
<dl>
|
|
8832
|
+
<dd>
|
|
8833
|
+
|
|
8834
|
+
```typescript
|
|
8835
|
+
await client.operations.getSearchAvailability();
|
|
8836
|
+
|
|
8837
|
+
```
|
|
8838
|
+
</dd>
|
|
8839
|
+
</dl>
|
|
8840
|
+
</dd>
|
|
8841
|
+
</dl>
|
|
8842
|
+
|
|
8843
|
+
#### ⚙️ Parameters
|
|
8844
|
+
|
|
8845
|
+
<dl>
|
|
8846
|
+
<dd>
|
|
8847
|
+
|
|
8848
|
+
<dl>
|
|
8849
|
+
<dd>
|
|
8850
|
+
|
|
8851
|
+
**requestOptions:** `OperationsClient.RequestOptions`
|
|
8852
|
+
|
|
8853
|
+
</dd>
|
|
8854
|
+
</dl>
|
|
8855
|
+
</dd>
|
|
8856
|
+
</dl>
|
|
8857
|
+
|
|
8858
|
+
|
|
8556
8859
|
</dd>
|
|
8557
8860
|
</dl>
|
|
8558
8861
|
</details>
|
|
@@ -10318,7 +10621,7 @@ await client.recordViewLinks.getCapabilities({
|
|
|
10318
10621
|
<dl>
|
|
10319
10622
|
<dd>
|
|
10320
10623
|
|
|
10321
|
-
Issues a non-renewable credential with a bounded lifetime for a user or
|
|
10624
|
+
Issues a non-renewable credential with a bounded lifetime for a user or Harbor.
|
|
10322
10625
|
|
|
10323
10626
|
The response contains the credential secret once. Store it securely and send it
|
|
10324
10627
|
as a Bearer token in the `Authorization` header.
|
|
@@ -10331,17 +10634,17 @@ read-only caller can issue only read-only credentials.
|
|
|
10331
10634
|
|
|
10332
10635
|
Partner callers must provide both `organization_id` and `user_id`. The target
|
|
10333
10636
|
must be an active user in an organization owned by the partner. User subjects
|
|
10334
|
-
must be application users;
|
|
10637
|
+
must be application users; Harbor-only users continue to use Harbor
|
|
10335
10638
|
credentials.
|
|
10336
10639
|
|
|
10337
10640
|
User credentials resolve the subject's current permissions on every request.
|
|
10338
10641
|
Permission changes take effect immediately, and deleting the user invalidates
|
|
10339
10642
|
the credential.
|
|
10340
10643
|
|
|
10341
|
-
Set `subject.type` to `
|
|
10342
|
-
credential uses the
|
|
10343
|
-
changes take effect immediately
|
|
10344
|
-
|
|
10644
|
+
Set `subject.type` to `harbor` and provide the Harbor ID in `harbor_id`. The
|
|
10645
|
+
credential uses the Harbor's current connection access on every request;
|
|
10646
|
+
changes take effect immediately. Missing and deleted Harbors cannot be
|
|
10647
|
+
targeted.
|
|
10345
10648
|
|
|
10346
10649
|
A temporary credential stops authenticating at `expires_at`. It cannot be
|
|
10347
10650
|
refreshed, extended, or used to create another temporary credential. Create a
|
|
@@ -10774,7 +11077,7 @@ await client.webhooks.delete("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10774
11077
|
</dl>
|
|
10775
11078
|
</details>
|
|
10776
11079
|
|
|
10777
|
-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">
|
|
11080
|
+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">listDeliveries</a>(id, { ...params }) -> Polytomic.WebhookDeliveriesEnvelope</code></summary>
|
|
10778
11081
|
<dl>
|
|
10779
11082
|
<dd>
|
|
10780
11083
|
|
|
@@ -10786,19 +11089,13 @@ await client.webhooks.delete("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10786
11089
|
<dl>
|
|
10787
11090
|
<dd>
|
|
10788
11091
|
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
> 📘 One webhook per organization
|
|
10792
|
-
>
|
|
10793
|
-
> An organization can register a single webhook, which receives every event
|
|
10794
|
-
> produced in that organization. See the
|
|
10795
|
-
> [Events documentation](../../../../guides/events) for the
|
|
10796
|
-
> list of event types and payload shapes.
|
|
11092
|
+
Lists delivery attempts for a webhook, newest first.
|
|
10797
11093
|
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
11094
|
+
Use `success`, `event_id`, `start`, and `end` to narrow the results.
|
|
11095
|
+
Results are ordered by attempt time, newest first. Pass the returned
|
|
11096
|
+
`next_page_token` as `page_token` to fetch the next page. An empty token means
|
|
11097
|
+
there are no more results. Response bodies contain content returned by your
|
|
11098
|
+
webhook endpoint. Attempts are listed only while their event is retained.
|
|
10802
11099
|
</dd>
|
|
10803
11100
|
</dl>
|
|
10804
11101
|
</dd>
|
|
@@ -10813,7 +11110,13 @@ delivery, re-enable the webhook using
|
|
|
10813
11110
|
<dd>
|
|
10814
11111
|
|
|
10815
11112
|
```typescript
|
|
10816
|
-
await client.webhooks.
|
|
11113
|
+
await client.webhooks.listDeliveries("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
11114
|
+
success: true,
|
|
11115
|
+
event_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
11116
|
+
start: "2024-01-15T09:30:00Z",
|
|
11117
|
+
end: "2024-01-15T09:30:00Z",
|
|
11118
|
+
page_token: "page_token"
|
|
11119
|
+
});
|
|
10817
11120
|
|
|
10818
11121
|
```
|
|
10819
11122
|
</dd>
|
|
@@ -10837,7 +11140,15 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10837
11140
|
<dl>
|
|
10838
11141
|
<dd>
|
|
10839
11142
|
|
|
10840
|
-
**
|
|
11143
|
+
**request:** `Polytomic.WebhooksListDeliveriesRequest`
|
|
11144
|
+
|
|
11145
|
+
</dd>
|
|
11146
|
+
</dl>
|
|
11147
|
+
|
|
11148
|
+
<dl>
|
|
11149
|
+
<dd>
|
|
11150
|
+
|
|
11151
|
+
**requestOptions:** `WebhooksClient.RequestOptions`
|
|
10841
11152
|
|
|
10842
11153
|
</dd>
|
|
10843
11154
|
</dl>
|
|
@@ -10849,7 +11160,7 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10849
11160
|
</dl>
|
|
10850
11161
|
</details>
|
|
10851
11162
|
|
|
10852
|
-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">
|
|
11163
|
+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">disable</a>(id) -> Polytomic.WebhookEnvelope</code></summary>
|
|
10853
11164
|
<dl>
|
|
10854
11165
|
<dd>
|
|
10855
11166
|
|
|
@@ -10861,7 +11172,7 @@ await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10861
11172
|
<dl>
|
|
10862
11173
|
<dd>
|
|
10863
11174
|
|
|
10864
|
-
|
|
11175
|
+
Disables a webhook without deleting it.
|
|
10865
11176
|
|
|
10866
11177
|
> 📘 One webhook per organization
|
|
10867
11178
|
>
|
|
@@ -10870,8 +11181,10 @@ Re-enables a previously disabled webhook.
|
|
|
10870
11181
|
> [Events documentation](../../../../guides/events) for the
|
|
10871
11182
|
> list of event types and payload shapes.
|
|
10872
11183
|
|
|
10873
|
-
|
|
10874
|
-
|
|
11184
|
+
Events are not queued while the webhook is disabled — any activity that occurs
|
|
11185
|
+
during the disabled period is not delivered retroactively. To resume
|
|
11186
|
+
delivery, re-enable the webhook using
|
|
11187
|
+
[`POST /api/webhooks/{id}/enable`](../../../../api-reference/webhooks/enable).
|
|
10875
11188
|
</dd>
|
|
10876
11189
|
</dl>
|
|
10877
11190
|
</dd>
|
|
@@ -10886,7 +11199,7 @@ occurred while the webhook was disabled are not replayed.
|
|
|
10886
11199
|
<dd>
|
|
10887
11200
|
|
|
10888
11201
|
```typescript
|
|
10889
|
-
await client.webhooks.
|
|
11202
|
+
await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
10890
11203
|
|
|
10891
11204
|
```
|
|
10892
11205
|
</dd>
|
|
@@ -10922,8 +11235,7 @@ await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10922
11235
|
</dl>
|
|
10923
11236
|
</details>
|
|
10924
11237
|
|
|
10925
|
-
|
|
10926
|
-
<details><summary><code>client.bulkSync.executions.<a href="/src/api/resources/bulkSync/resources/executions/client/Client.ts">listStatus</a>({ ...params }) -> Polytomic.ListBulkSyncExecutionsStatusEnvelope</code></summary>
|
|
11238
|
+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">enable</a>(id) -> Polytomic.WebhookEnvelope</code></summary>
|
|
10927
11239
|
<dl>
|
|
10928
11240
|
<dd>
|
|
10929
11241
|
|
|
@@ -10935,18 +11247,92 @@ await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
10935
11247
|
<dl>
|
|
10936
11248
|
<dd>
|
|
10937
11249
|
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
This endpoint is a summary view, not an execution-history view. Each schema is
|
|
10941
|
-
represented at most once with its most recent execution status, and running
|
|
10942
|
-
executions are preferred over older terminal ones.
|
|
11250
|
+
Re-enables a previously disabled webhook.
|
|
10943
11251
|
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
11252
|
+
> 📘 One webhook per organization
|
|
11253
|
+
>
|
|
11254
|
+
> An organization can register a single webhook, which receives every event
|
|
11255
|
+
> produced in that organization. See the
|
|
11256
|
+
> [Events documentation](../../../../guides/events) for the
|
|
11257
|
+
> list of event types and payload shapes.
|
|
10948
11258
|
|
|
10949
|
-
|
|
11259
|
+
Delivery resumes from the next event generated after this call. Events that
|
|
11260
|
+
occurred while the webhook was disabled are not replayed.
|
|
11261
|
+
</dd>
|
|
11262
|
+
</dl>
|
|
11263
|
+
</dd>
|
|
11264
|
+
</dl>
|
|
11265
|
+
|
|
11266
|
+
#### 🔌 Usage
|
|
11267
|
+
|
|
11268
|
+
<dl>
|
|
11269
|
+
<dd>
|
|
11270
|
+
|
|
11271
|
+
<dl>
|
|
11272
|
+
<dd>
|
|
11273
|
+
|
|
11274
|
+
```typescript
|
|
11275
|
+
await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
11276
|
+
|
|
11277
|
+
```
|
|
11278
|
+
</dd>
|
|
11279
|
+
</dl>
|
|
11280
|
+
</dd>
|
|
11281
|
+
</dl>
|
|
11282
|
+
|
|
11283
|
+
#### ⚙️ Parameters
|
|
11284
|
+
|
|
11285
|
+
<dl>
|
|
11286
|
+
<dd>
|
|
11287
|
+
|
|
11288
|
+
<dl>
|
|
11289
|
+
<dd>
|
|
11290
|
+
|
|
11291
|
+
**id:** `string`
|
|
11292
|
+
|
|
11293
|
+
</dd>
|
|
11294
|
+
</dl>
|
|
11295
|
+
|
|
11296
|
+
<dl>
|
|
11297
|
+
<dd>
|
|
11298
|
+
|
|
11299
|
+
**requestOptions:** `WebhooksClient.IdempotentRequestOptions`
|
|
11300
|
+
|
|
11301
|
+
</dd>
|
|
11302
|
+
</dl>
|
|
11303
|
+
</dd>
|
|
11304
|
+
</dl>
|
|
11305
|
+
|
|
11306
|
+
|
|
11307
|
+
</dd>
|
|
11308
|
+
</dl>
|
|
11309
|
+
</details>
|
|
11310
|
+
|
|
11311
|
+
## BulkSync Executions
|
|
11312
|
+
<details><summary><code>client.bulkSync.executions.<a href="/src/api/resources/bulkSync/resources/executions/client/Client.ts">listStatus</a>({ ...params }) -> Polytomic.ListBulkSyncExecutionsStatusEnvelope</code></summary>
|
|
11313
|
+
<dl>
|
|
11314
|
+
<dd>
|
|
11315
|
+
|
|
11316
|
+
#### 📝 Description
|
|
11317
|
+
|
|
11318
|
+
<dl>
|
|
11319
|
+
<dd>
|
|
11320
|
+
|
|
11321
|
+
<dl>
|
|
11322
|
+
<dd>
|
|
11323
|
+
|
|
11324
|
+
Returns a concise per-schema status for one or more bulk syncs.
|
|
11325
|
+
|
|
11326
|
+
This endpoint is a summary view, not an execution-history view. Each schema is
|
|
11327
|
+
represented at most once with its most recent execution status, and running
|
|
11328
|
+
executions are preferred over older terminal ones.
|
|
11329
|
+
|
|
11330
|
+
Use this endpoint when you want a dashboard-style answer to "what is each sync
|
|
11331
|
+
doing now?" If you need the full execution history or a single execution's
|
|
11332
|
+
details, use [`GET /api/bulk/syncs/{id}/executions`](../../../../api-reference/bulk-sync/executions/list) or
|
|
11333
|
+
[`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../api-reference/bulk-sync/executions/get) instead.
|
|
11334
|
+
|
|
11335
|
+
Setting `all=true` or `active=true` ignores any explicit `sync_id` filters and
|
|
10950
11336
|
expands the request to the caller's organization scope.
|
|
10951
11337
|
</dd>
|
|
10952
11338
|
</dl>
|
|
@@ -12634,6 +13020,10 @@ size and rate limits.
|
|
|
12634
13020
|
|
|
12635
13021
|
## Important behavior
|
|
12636
13022
|
|
|
13023
|
+
- For connections that expose more than one API (listed in `apis` in the proxy
|
|
13024
|
+
info response), set `request.api` to the name of the API to call. Requests
|
|
13025
|
+
without `request.api` go to the default API. `request.api` is rejected for
|
|
13026
|
+
connections that expose a single API.
|
|
12637
13027
|
- `request.path` must be relative and start with `/`.
|
|
12638
13028
|
- Use either `request.query` or `request.rawQuery`, not both.
|
|
12639
13029
|
- Caller-supplied headers are merged with inherited headers, but inherited auth
|
|
@@ -12641,6 +13031,9 @@ size and rate limits.
|
|
|
12641
13031
|
- The proxy strips a fixed set of request and response headers for safety.
|
|
12642
13032
|
- Response bodies larger than the configured maximum are truncated, and
|
|
12643
13033
|
`truncated` is set to `true`.
|
|
13034
|
+
- A `429` means Polytomic's proxy rate limit was reached, or the connection's
|
|
13035
|
+
upstream quota, which the proxy shares with the connection's syncs, is
|
|
13036
|
+
exhausted.
|
|
12644
13037
|
|
|
12645
13038
|
To run a `GET` request asynchronously, set `async` to `true`. The initial
|
|
12646
13039
|
response returns `status: 202`, `jobId`, `jobStatus`, and `jobUrl`. Poll
|
|
@@ -12739,6 +13132,12 @@ when you need to build requests programmatically. The response shows:
|
|
|
12739
13132
|
- allowed HTTP methods and body shapes
|
|
12740
13133
|
- timeout, rate-limit, and payload-size limits
|
|
12741
13134
|
|
|
13135
|
+
Some connections reach more than one upstream API, each with its own base URL
|
|
13136
|
+
and quota. For these, the response includes `apis`: one entry per API with its
|
|
13137
|
+
`name`, `description`, whether it is the `default`, and its own
|
|
13138
|
+
`inheritedBase`. The top-level `inheritedBase` describes the default API.
|
|
13139
|
+
Connections with a single API omit `apis`.
|
|
13140
|
+
|
|
12742
13141
|
Sensitive inherited header and query values are redacted in the response. The
|
|
12743
13142
|
contract is still useful for discovering which keys are fixed by the
|
|
12744
13143
|
connection, even though their raw values are not exposed.
|
|
@@ -12965,6 +13364,27 @@ downstream organizations have already received a shared copy.
|
|
|
12965
13364
|
Creating a new shared copy is a separate operation. Use
|
|
12966
13365
|
[`POST /api/organizations/{org_id}/connections/{connection_id}/share`](../../../../api-reference/connections/create-shared-connection)
|
|
12967
13366
|
for the v5 partner-scoped flow.
|
|
13367
|
+
|
|
13368
|
+
## Observed rate limits
|
|
13369
|
+
|
|
13370
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
13371
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
13372
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
13373
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
13374
|
+
copy are not included.
|
|
13375
|
+
|
|
13376
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
13377
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
13378
|
+
period separated from the active period by a gap does not extend that start.
|
|
13379
|
+
|
|
13380
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
13381
|
+
>
|
|
13382
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
13383
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
13384
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
13385
|
+
|
|
13386
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
13387
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
12968
13388
|
</dd>
|
|
12969
13389
|
</dl>
|
|
12970
13390
|
</dd>
|
|
@@ -13036,6 +13456,27 @@ parent connection.
|
|
|
13036
13456
|
This endpoint is useful in partner workflows where the parent connection is in
|
|
13037
13457
|
the partner owner organization and the caller needs to audit which child
|
|
13038
13458
|
organizations already have a shared copy.
|
|
13459
|
+
|
|
13460
|
+
## Observed rate limits
|
|
13461
|
+
|
|
13462
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
13463
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
13464
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
13465
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
13466
|
+
copy are not included.
|
|
13467
|
+
|
|
13468
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
13469
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
13470
|
+
period separated from the active period by a gap does not extend that start.
|
|
13471
|
+
|
|
13472
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
13473
|
+
>
|
|
13474
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
13475
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
13476
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
13477
|
+
|
|
13478
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
13479
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
13039
13480
|
</dd>
|
|
13040
13481
|
</dl>
|
|
13041
13482
|
</dd>
|
|
@@ -13171,6 +13612,680 @@ await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70
|
|
|
13171
13612
|
</dl>
|
|
13172
13613
|
|
|
13173
13614
|
|
|
13615
|
+
</dd>
|
|
13616
|
+
</dl>
|
|
13617
|
+
</details>
|
|
13618
|
+
|
|
13619
|
+
## Harbors Actions
|
|
13620
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">getExecution</a>(harbor_id, execution_id, { ...params }) -> Polytomic.HarborActionExecutionEnvelope</code></summary>
|
|
13621
|
+
<dl>
|
|
13622
|
+
<dd>
|
|
13623
|
+
|
|
13624
|
+
#### 📝 Description
|
|
13625
|
+
|
|
13626
|
+
<dl>
|
|
13627
|
+
<dd>
|
|
13628
|
+
|
|
13629
|
+
<dl>
|
|
13630
|
+
<dd>
|
|
13631
|
+
|
|
13632
|
+
Read a metadata-only action receipt without resubmitting the action.
|
|
13633
|
+
|
|
13634
|
+
Use a currently valid scoped credential belonging to the original Harbor. The
|
|
13635
|
+
receipt remains readable after the action or rollout feature is disabled. A
|
|
13636
|
+
credential from another Harbor cannot inspect it. The response does not contain
|
|
13637
|
+
lookup values, input values, output payloads, credential secrets, or raw provider
|
|
13638
|
+
errors. It includes structured operation identity, lookup field names, submitted
|
|
13639
|
+
field names, and the original credential ID.
|
|
13640
|
+
|
|
13641
|
+
An overdue executing receipt transitions atomically to `unknown`; this read
|
|
13642
|
+
never invokes the destination provider. Stop polling at `succeeded`, `failed`, or `unknown`.
|
|
13643
|
+
Unknown is terminal for this execution identifier and means the update may have
|
|
13644
|
+
happened. Investigate rather than preparing a replacement action to retry.
|
|
13645
|
+
|
|
13646
|
+
Preparation alone has no execution receipt. A `404 Not Found` after an uncertain
|
|
13647
|
+
execution does not prove the operation never happened.
|
|
13648
|
+
|
|
13649
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. Direct REST requests
|
|
13650
|
+
may omit `X-Polytomic-Harbor-Session`; a supplied session must be active and bound
|
|
13651
|
+
to the same credential and Harbor.
|
|
13652
|
+
</dd>
|
|
13653
|
+
</dl>
|
|
13654
|
+
</dd>
|
|
13655
|
+
</dl>
|
|
13656
|
+
|
|
13657
|
+
#### 🔌 Usage
|
|
13658
|
+
|
|
13659
|
+
<dl>
|
|
13660
|
+
<dd>
|
|
13661
|
+
|
|
13662
|
+
<dl>
|
|
13663
|
+
<dd>
|
|
13664
|
+
|
|
13665
|
+
```typescript
|
|
13666
|
+
await client.harbors.actions.getExecution("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
13667
|
+
|
|
13668
|
+
```
|
|
13669
|
+
</dd>
|
|
13670
|
+
</dl>
|
|
13671
|
+
</dd>
|
|
13672
|
+
</dl>
|
|
13673
|
+
|
|
13674
|
+
#### ⚙️ Parameters
|
|
13675
|
+
|
|
13676
|
+
<dl>
|
|
13677
|
+
<dd>
|
|
13678
|
+
|
|
13679
|
+
<dl>
|
|
13680
|
+
<dd>
|
|
13681
|
+
|
|
13682
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13683
|
+
|
|
13684
|
+
</dd>
|
|
13685
|
+
</dl>
|
|
13686
|
+
|
|
13687
|
+
<dl>
|
|
13688
|
+
<dd>
|
|
13689
|
+
|
|
13690
|
+
**execution_id:** `string`
|
|
13691
|
+
|
|
13692
|
+
</dd>
|
|
13693
|
+
</dl>
|
|
13694
|
+
|
|
13695
|
+
<dl>
|
|
13696
|
+
<dd>
|
|
13697
|
+
|
|
13698
|
+
**request:** `Polytomic.harbors.ActionsGetExecutionRequest`
|
|
13699
|
+
|
|
13700
|
+
</dd>
|
|
13701
|
+
</dl>
|
|
13702
|
+
|
|
13703
|
+
<dl>
|
|
13704
|
+
<dd>
|
|
13705
|
+
|
|
13706
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13707
|
+
|
|
13708
|
+
</dd>
|
|
13709
|
+
</dl>
|
|
13710
|
+
</dd>
|
|
13711
|
+
</dl>
|
|
13712
|
+
|
|
13713
|
+
|
|
13714
|
+
</dd>
|
|
13715
|
+
</dl>
|
|
13716
|
+
</details>
|
|
13717
|
+
|
|
13718
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">list</a>(harbor_id, { ...params }) -> Polytomic.HarborActionListEnvelope</code></summary>
|
|
13719
|
+
<dl>
|
|
13720
|
+
<dd>
|
|
13721
|
+
|
|
13722
|
+
#### 📝 Description
|
|
13723
|
+
|
|
13724
|
+
<dl>
|
|
13725
|
+
<dd>
|
|
13726
|
+
|
|
13727
|
+
<dl>
|
|
13728
|
+
<dd>
|
|
13729
|
+
|
|
13730
|
+
List a page of configured action identities without loading provider capabilities or field metadata.
|
|
13731
|
+
|
|
13732
|
+
Use a scoped credential belonging to this Harbor. An administrator must first
|
|
13733
|
+
select Connections and explicitly enable object operations and fields. These
|
|
13734
|
+
grants apply to existing and future eligible Harbor credentials without changing
|
|
13735
|
+
read access. Newly available objects and fields remain disabled until selected.
|
|
13736
|
+
|
|
13737
|
+
Each entry identifies a configured operation by `connection_id`, `schema_id`, and
|
|
13738
|
+
`operation_id`. Search filters those identities. Follow
|
|
13739
|
+
`pagination.next_page_token` with the same search to read additional pages.
|
|
13740
|
+
Pages contain saved identities without field metadata or provider capability
|
|
13741
|
+
checks. `unavailable: true` means the saved Connection is unavailable for actions;
|
|
13742
|
+
its permissions remain saved and revocable. An available Connection does not
|
|
13743
|
+
confirm that its operations or granted fields are currently available.
|
|
13744
|
+
|
|
13745
|
+
Use [Describe action](../../../../api-reference/harbors/actions/describe) for the selected
|
|
13746
|
+
operation before looking up a record or
|
|
13747
|
+
[preparing an action](../../../../api-reference/harbors/actions/prepare). Description checks
|
|
13748
|
+
current provider capabilities and returns the operation's `effect` (`read_only`
|
|
13749
|
+
or `mutating`) and effective granted fields.
|
|
13750
|
+
Always submit the intended Connection explicitly when looking up or preparing,
|
|
13751
|
+
even if only one is enabled. If several destinations match your intent, clarify
|
|
13752
|
+
which one to use.
|
|
13753
|
+
|
|
13754
|
+
Read-only operations use [Lookup action](../../../../api-reference/harbors/actions/lookup)
|
|
13755
|
+
without preparation or approval. Salesforce and HubSpot support exact lookups by
|
|
13756
|
+
their canonical record ID. Listing does not grant additional permissions or
|
|
13757
|
+
authorize mutations by a read-only credential.
|
|
13758
|
+
|
|
13759
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. For direct REST
|
|
13760
|
+
requests, `X-Polytomic-Harbor-Session` is optional. If supplied, the session must
|
|
13761
|
+
be active and bound to the credential and Harbor. Discovery is recorded as
|
|
13762
|
+
`action.listed`; no response is returned if that event cannot be recorded.
|
|
13763
|
+
</dd>
|
|
13764
|
+
</dl>
|
|
13765
|
+
</dd>
|
|
13766
|
+
</dl>
|
|
13767
|
+
|
|
13768
|
+
#### 🔌 Usage
|
|
13769
|
+
|
|
13770
|
+
<dl>
|
|
13771
|
+
<dd>
|
|
13772
|
+
|
|
13773
|
+
<dl>
|
|
13774
|
+
<dd>
|
|
13775
|
+
|
|
13776
|
+
```typescript
|
|
13777
|
+
await client.harbors.actions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13778
|
+
search: "search",
|
|
13779
|
+
page_token: "page_token",
|
|
13780
|
+
limit: 1
|
|
13781
|
+
});
|
|
13782
|
+
|
|
13783
|
+
```
|
|
13784
|
+
</dd>
|
|
13785
|
+
</dl>
|
|
13786
|
+
</dd>
|
|
13787
|
+
</dl>
|
|
13788
|
+
|
|
13789
|
+
#### ⚙️ Parameters
|
|
13790
|
+
|
|
13791
|
+
<dl>
|
|
13792
|
+
<dd>
|
|
13793
|
+
|
|
13794
|
+
<dl>
|
|
13795
|
+
<dd>
|
|
13796
|
+
|
|
13797
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13798
|
+
|
|
13799
|
+
</dd>
|
|
13800
|
+
</dl>
|
|
13801
|
+
|
|
13802
|
+
<dl>
|
|
13803
|
+
<dd>
|
|
13804
|
+
|
|
13805
|
+
**request:** `Polytomic.harbors.ActionsListRequest`
|
|
13806
|
+
|
|
13807
|
+
</dd>
|
|
13808
|
+
</dl>
|
|
13809
|
+
|
|
13810
|
+
<dl>
|
|
13811
|
+
<dd>
|
|
13812
|
+
|
|
13813
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13814
|
+
|
|
13815
|
+
</dd>
|
|
13816
|
+
</dl>
|
|
13817
|
+
</dd>
|
|
13818
|
+
</dl>
|
|
13819
|
+
|
|
13820
|
+
|
|
13821
|
+
</dd>
|
|
13822
|
+
</dl>
|
|
13823
|
+
</details>
|
|
13824
|
+
|
|
13825
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">describe</a>(harbor_id, { ...params }) -> Polytomic.HarborActionDescribeEnvelope</code></summary>
|
|
13826
|
+
<dl>
|
|
13827
|
+
<dd>
|
|
13828
|
+
|
|
13829
|
+
#### 📝 Description
|
|
13830
|
+
|
|
13831
|
+
<dl>
|
|
13832
|
+
<dd>
|
|
13833
|
+
|
|
13834
|
+
<dl>
|
|
13835
|
+
<dd>
|
|
13836
|
+
|
|
13837
|
+
Describe one granted operation and its currently available enabled fields.
|
|
13838
|
+
|
|
13839
|
+
Select an identity from [List actions](../../../../../api-reference/harbors/actions/list).
|
|
13840
|
+
Supply its `connection_id`, `schema_id`, and `operation_id`. Use a scoped
|
|
13841
|
+
credential belonging to this Harbor; description does not require write access.
|
|
13842
|
+
|
|
13843
|
+
`effect` identifies an operation as `read_only` or `mutating`. For read-only
|
|
13844
|
+
operations, `lookup_fields` and `output_fields` contain only fields both granted
|
|
13845
|
+
by the administrator and currently available through the Connection.
|
|
13846
|
+
`input_fields` is empty. Use
|
|
13847
|
+
[Lookup action](../../../../../api-reference/harbors/actions/lookup) to return one projected
|
|
13848
|
+
record without preparation.
|
|
13849
|
+
|
|
13850
|
+
For mutations, `input_fields` contains only granted, currently available fields.
|
|
13851
|
+
`lookup_fields` and `output_fields` describe the connector's lookup and output.
|
|
13852
|
+
Fields retain their types, constraints, required flags, and nullability. Supply
|
|
13853
|
+
exactly one lookup when `lookup_fields` is nonempty; otherwise omit it. Omitted
|
|
13854
|
+
input fields remain unchanged. Explicit null requires `nullable: true`.
|
|
13855
|
+
|
|
13856
|
+
For mutations, `idempotency` describes remote deduplication, not permission to
|
|
13857
|
+
retry. Harbor write receipts remain metadata-only.
|
|
13858
|
+
|
|
13859
|
+
A provider discovery failure or a granted operation that is no longer available
|
|
13860
|
+
returns `503 Service Unavailable`, not an empty field list. An ungranted identity
|
|
13861
|
+
returns `403 Forbidden`. These responses do not revoke saved permissions.
|
|
13862
|
+
Polytomic checks current grants and provider capabilities again at execution.
|
|
13863
|
+
|
|
13864
|
+
Description fetches only the selected object's operations. It does not fetch
|
|
13865
|
+
fields for the entire catalog. Lookup permissions are checked against fresh
|
|
13866
|
+
provider metadata. Provider permissions and automation still apply.
|
|
13867
|
+
|
|
13868
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. A supplied
|
|
13869
|
+
`X-Polytomic-Harbor-Session` must be active and bound to this credential and
|
|
13870
|
+
Harbor. Successful description is recorded as `action.listed`.
|
|
13871
|
+
</dd>
|
|
13872
|
+
</dl>
|
|
13873
|
+
</dd>
|
|
13874
|
+
</dl>
|
|
13875
|
+
|
|
13876
|
+
#### 🔌 Usage
|
|
13877
|
+
|
|
13878
|
+
<dl>
|
|
13879
|
+
<dd>
|
|
13880
|
+
|
|
13881
|
+
<dl>
|
|
13882
|
+
<dd>
|
|
13883
|
+
|
|
13884
|
+
```typescript
|
|
13885
|
+
await client.harbors.actions.describe("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13886
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
13887
|
+
schema_id: "schema_id",
|
|
13888
|
+
operation_id: "operation_id"
|
|
13889
|
+
});
|
|
13890
|
+
|
|
13891
|
+
```
|
|
13892
|
+
</dd>
|
|
13893
|
+
</dl>
|
|
13894
|
+
</dd>
|
|
13895
|
+
</dl>
|
|
13896
|
+
|
|
13897
|
+
#### ⚙️ Parameters
|
|
13898
|
+
|
|
13899
|
+
<dl>
|
|
13900
|
+
<dd>
|
|
13901
|
+
|
|
13902
|
+
<dl>
|
|
13903
|
+
<dd>
|
|
13904
|
+
|
|
13905
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13906
|
+
|
|
13907
|
+
</dd>
|
|
13908
|
+
</dl>
|
|
13909
|
+
|
|
13910
|
+
<dl>
|
|
13911
|
+
<dd>
|
|
13912
|
+
|
|
13913
|
+
**request:** `Polytomic.harbors.ActionsDescribeRequest`
|
|
13914
|
+
|
|
13915
|
+
</dd>
|
|
13916
|
+
</dl>
|
|
13917
|
+
|
|
13918
|
+
<dl>
|
|
13919
|
+
<dd>
|
|
13920
|
+
|
|
13921
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13922
|
+
|
|
13923
|
+
</dd>
|
|
13924
|
+
</dl>
|
|
13925
|
+
</dd>
|
|
13926
|
+
</dl>
|
|
13927
|
+
|
|
13928
|
+
|
|
13929
|
+
</dd>
|
|
13930
|
+
</dl>
|
|
13931
|
+
</details>
|
|
13932
|
+
|
|
13933
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">execute</a>(harbor_id, { ...params }) -> Polytomic.HarborActionExecutionEnvelope</code></summary>
|
|
13934
|
+
<dl>
|
|
13935
|
+
<dd>
|
|
13936
|
+
|
|
13937
|
+
#### 📝 Description
|
|
13938
|
+
|
|
13939
|
+
<dl>
|
|
13940
|
+
<dd>
|
|
13941
|
+
|
|
13942
|
+
<dl>
|
|
13943
|
+
<dd>
|
|
13944
|
+
|
|
13945
|
+
Execute a prepared action with at most one application attempt per server-issued execution identifier.
|
|
13946
|
+
|
|
13947
|
+
First call [Prepare action](../../../../../api-reference/harbors/actions/prepare). Submit only
|
|
13948
|
+
its server-issued `execution_id` using a writable scoped credential belonging to
|
|
13949
|
+
the same Harbor. The destination, operation, lookup, and input are fixed by
|
|
13950
|
+
preparation. No per-request approval is required.
|
|
13951
|
+
|
|
13952
|
+
Polytomic checks current grants, provider capabilities, and the saved Connection
|
|
13953
|
+
again before execution. Preparation does not reserve permission. An expired
|
|
13954
|
+
preparation cannot start an execution. It returns `410 Gone` while the expired
|
|
13955
|
+
preparation remains available, or `404 Not Found` after cleanup.
|
|
13956
|
+
|
|
13957
|
+
> 🚧 Updates can overwrite intervening edits
|
|
13958
|
+
>
|
|
13959
|
+
> Enabled operations can act on records accessible through the saved Connection
|
|
13960
|
+
> and may trigger provider automation. Preparation does not lock the destination
|
|
13961
|
+
> record. Action permission does not grant read access.
|
|
13962
|
+
|
|
13963
|
+
## One intended attempt
|
|
13964
|
+
|
|
13965
|
+
An identifier already claimed for execution returns its original receipt,
|
|
13966
|
+
including through another eligible credential or after action disablement.
|
|
13967
|
+
Receipts remain available after prepared arguments are removed or expire.
|
|
13968
|
+
They are retained independently of Activity history.
|
|
13969
|
+
|
|
13970
|
+
An `action.attempt_started` event means permission to attempt the action was
|
|
13971
|
+
claimed, not that the provider received it. Disabling actions blocks new claims
|
|
13972
|
+
but does not recall an accepted attempt. This is at most one application attempt
|
|
13973
|
+
per execution identifier, not a remote exactly-once guarantee. Advertised remote
|
|
13974
|
+
idempotency does not authorize automatic replay.
|
|
13975
|
+
|
|
13976
|
+
## Results and recovery
|
|
13977
|
+
|
|
13978
|
+
Keep `execution_id` and the returned `status_path`. `succeeded` means the provider
|
|
13979
|
+
confirmed the operation and Polytomic recorded that outcome. `failed` means the
|
|
13980
|
+
operation was rejected. `executing` is incomplete. `recovery_required: true`
|
|
13981
|
+
does not confirm durable acceptance or completion. Use the status path after a
|
|
13982
|
+
timeout or server error. A missing receipt does not prove no operation occurred.
|
|
13983
|
+
|
|
13984
|
+
> ⚠️ An unknown outcome is terminal
|
|
13985
|
+
>
|
|
13986
|
+
> `unknown` means the operation may have happened. Investigate the record and
|
|
13987
|
+
> provider automation. Do not resubmit or prepare a replacement action to retry.
|
|
13988
|
+
> Polytomic never automatically retries an uncertain attempt. An overdue
|
|
13989
|
+
> executing receipt becomes unknown after its 90-second deadline.
|
|
13990
|
+
|
|
13991
|
+
Send a separate nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP
|
|
13992
|
+
request. MCP supplies this transport header automatically.
|
|
13993
|
+
`X-Polytomic-Harbor-Session` is optional for direct REST requests; a supplied
|
|
13994
|
+
session must be active and bound to your credential and Harbor. Receipts and
|
|
13995
|
+
Activity contain operation identity, lookup field names, submitted field names,
|
|
13996
|
+
original attribution, and safe outcome categories. They exclude lookup values,
|
|
13997
|
+
input values, output payloads, and raw provider errors.
|
|
13998
|
+
</dd>
|
|
13999
|
+
</dl>
|
|
14000
|
+
</dd>
|
|
14001
|
+
</dl>
|
|
14002
|
+
|
|
14003
|
+
#### 🔌 Usage
|
|
14004
|
+
|
|
14005
|
+
<dl>
|
|
14006
|
+
<dd>
|
|
14007
|
+
|
|
14008
|
+
<dl>
|
|
14009
|
+
<dd>
|
|
14010
|
+
|
|
14011
|
+
```typescript
|
|
14012
|
+
await client.harbors.actions.execute("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
14013
|
+
execution_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
14014
|
+
});
|
|
14015
|
+
|
|
14016
|
+
```
|
|
14017
|
+
</dd>
|
|
14018
|
+
</dl>
|
|
14019
|
+
</dd>
|
|
14020
|
+
</dl>
|
|
14021
|
+
|
|
14022
|
+
#### ⚙️ Parameters
|
|
14023
|
+
|
|
14024
|
+
<dl>
|
|
14025
|
+
<dd>
|
|
14026
|
+
|
|
14027
|
+
<dl>
|
|
14028
|
+
<dd>
|
|
14029
|
+
|
|
14030
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
14031
|
+
|
|
14032
|
+
</dd>
|
|
14033
|
+
</dl>
|
|
14034
|
+
|
|
14035
|
+
<dl>
|
|
14036
|
+
<dd>
|
|
14037
|
+
|
|
14038
|
+
**request:** `Polytomic.harbors.ExecuteHarborActionRequest`
|
|
14039
|
+
|
|
14040
|
+
</dd>
|
|
14041
|
+
</dl>
|
|
14042
|
+
|
|
14043
|
+
<dl>
|
|
14044
|
+
<dd>
|
|
14045
|
+
|
|
14046
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
14047
|
+
|
|
14048
|
+
</dd>
|
|
14049
|
+
</dl>
|
|
14050
|
+
</dd>
|
|
14051
|
+
</dl>
|
|
14052
|
+
|
|
14053
|
+
|
|
14054
|
+
</dd>
|
|
14055
|
+
</dl>
|
|
14056
|
+
</details>
|
|
14057
|
+
|
|
14058
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">lookup</a>(harbor_id, { ...params }) -> Polytomic.HarborActionLookupEnvelope</code></summary>
|
|
14059
|
+
<dl>
|
|
14060
|
+
<dd>
|
|
14061
|
+
|
|
14062
|
+
#### 📝 Description
|
|
14063
|
+
|
|
14064
|
+
<dl>
|
|
14065
|
+
<dd>
|
|
14066
|
+
|
|
14067
|
+
<dl>
|
|
14068
|
+
<dd>
|
|
14069
|
+
|
|
14070
|
+
Look up exactly one record using a granted read-only Harbor action.
|
|
14071
|
+
|
|
14072
|
+
Use a scoped credential belonging to this Harbor, including a read-only
|
|
14073
|
+
credential. An administrator must grant the Connection, read-only operation,
|
|
14074
|
+
lookup field, and returned fields. Select an identity with
|
|
14075
|
+
[List actions](../../../../../api-reference/harbors/actions/list), then inspect its effective
|
|
14076
|
+
lookup and output fields with
|
|
14077
|
+
[Describe action](../../../../../api-reference/harbors/actions/describe).
|
|
14078
|
+
|
|
14079
|
+
Polytomic checks current grants and provider capabilities on each lookup. The
|
|
14080
|
+
response contains one record under `data`, limited to the selected fields.
|
|
14081
|
+
Omitting `fields` returns all currently available granted outputs;
|
|
14082
|
+
new provider fields remain excluded until an administrator grants them.
|
|
14083
|
+
Salesforce uses `Id`; HubSpot uses `hs_object_id`. Preserve these IDs as strings.
|
|
14084
|
+
Alternate keys, fuzzy matches, search, and batching are unsupported.
|
|
14085
|
+
|
|
14086
|
+
A definite absence returns `404 Not Found`. More than one exact match returns
|
|
14087
|
+
`409 Conflict`. Invalid selections return `400 Bad Request`; unavailable
|
|
14088
|
+
capabilities or provider failures return `503 Service Unavailable`. Errors do
|
|
14089
|
+
not include lookup values or provider response bodies.
|
|
14090
|
+
|
|
14091
|
+
This request is synchronous and read-only. It requires no preparation, approval,
|
|
14092
|
+
execution identifier, or status polling. It creates no write receipt or private
|
|
14093
|
+
write evidence. Harbor Activity records `action.looked_up` with field names and
|
|
14094
|
+
an outcome, never the lookup value or returned values. If Activity cannot be
|
|
14095
|
+
recorded, Polytomic returns no record.
|
|
14096
|
+
|
|
14097
|
+
Unknown properties, duplicate keys, invalid Unicode, trailing JSON, and bodies
|
|
14098
|
+
larger than 256 KiB are rejected. Lookup values must be JSON scalars. Numeric
|
|
14099
|
+
values must use integer notation within +/-9007199254740991.
|
|
14100
|
+
|
|
14101
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each request.
|
|
14102
|
+
`X-Polytomic-Harbor-Session` is optional for direct REST requests. A supplied
|
|
14103
|
+
session must be active and bound to your credential and Harbor.
|
|
14104
|
+
</dd>
|
|
14105
|
+
</dl>
|
|
14106
|
+
</dd>
|
|
14107
|
+
</dl>
|
|
14108
|
+
|
|
14109
|
+
#### 🔌 Usage
|
|
14110
|
+
|
|
14111
|
+
<dl>
|
|
14112
|
+
<dd>
|
|
14113
|
+
|
|
14114
|
+
<dl>
|
|
14115
|
+
<dd>
|
|
14116
|
+
|
|
14117
|
+
```typescript
|
|
14118
|
+
await client.harbors.actions.lookup("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
14119
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
14120
|
+
lookup: {},
|
|
14121
|
+
operation_id: "operation_id",
|
|
14122
|
+
schema_id: "schema_id"
|
|
14123
|
+
});
|
|
14124
|
+
|
|
14125
|
+
```
|
|
14126
|
+
</dd>
|
|
14127
|
+
</dl>
|
|
14128
|
+
</dd>
|
|
14129
|
+
</dl>
|
|
14130
|
+
|
|
14131
|
+
#### ⚙️ Parameters
|
|
14132
|
+
|
|
14133
|
+
<dl>
|
|
14134
|
+
<dd>
|
|
14135
|
+
|
|
14136
|
+
<dl>
|
|
14137
|
+
<dd>
|
|
14138
|
+
|
|
14139
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
14140
|
+
|
|
14141
|
+
</dd>
|
|
14142
|
+
</dl>
|
|
14143
|
+
|
|
14144
|
+
<dl>
|
|
14145
|
+
<dd>
|
|
14146
|
+
|
|
14147
|
+
**request:** `Polytomic.harbors.LookupHarborActionRequest`
|
|
14148
|
+
|
|
14149
|
+
</dd>
|
|
14150
|
+
</dl>
|
|
14151
|
+
|
|
14152
|
+
<dl>
|
|
14153
|
+
<dd>
|
|
14154
|
+
|
|
14155
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
14156
|
+
|
|
14157
|
+
</dd>
|
|
14158
|
+
</dl>
|
|
14159
|
+
</dd>
|
|
14160
|
+
</dl>
|
|
14161
|
+
|
|
14162
|
+
|
|
14163
|
+
</dd>
|
|
14164
|
+
</dl>
|
|
14165
|
+
</details>
|
|
14166
|
+
|
|
14167
|
+
<details><summary><code>client.harbors.actions.<a href="/src/api/resources/harbors/resources/actions/client/Client.ts">prepare</a>(harbor_id, { ...params }) -> Polytomic.HarborActionPreparationEnvelope</code></summary>
|
|
14168
|
+
<dl>
|
|
14169
|
+
<dd>
|
|
14170
|
+
|
|
14171
|
+
#### 📝 Description
|
|
14172
|
+
|
|
14173
|
+
<dl>
|
|
14174
|
+
<dd>
|
|
14175
|
+
|
|
14176
|
+
<dl>
|
|
14177
|
+
<dd>
|
|
14178
|
+
|
|
14179
|
+
Validate and prepare an enabled action without executing it, returning a server-issued execution identifier.
|
|
14180
|
+
|
|
14181
|
+
Use a writable scoped credential belonging to this Harbor. An administrator must
|
|
14182
|
+
first enable the destination Connection, operation, and input fields. Select an
|
|
14183
|
+
identity with [List actions](../../../../../api-reference/harbors/actions/list), then inspect
|
|
14184
|
+
its fields with [Describe action](../../../../../api-reference/harbors/actions/describe).
|
|
14185
|
+
|
|
14186
|
+
Preparation validates and temporarily stores the exact destination, lookup, and
|
|
14187
|
+
input. It returns a server-generated `execution_id` and `expires_at`. You do not
|
|
14188
|
+
supply an execution UUID. Preparation neither performs nor approves a destination
|
|
14189
|
+
mutation. Call [Execute action](../../../../../api-reference/harbors/actions/execute) with only
|
|
14190
|
+
the returned identifier within 15 minutes. Polytomic checks current permissions,
|
|
14191
|
+
provider capabilities, and the saved Connection again at execution.
|
|
14192
|
+
|
|
14193
|
+
Supply one advertised lookup when `lookup_fields` is nonempty. Otherwise omit
|
|
14194
|
+
`lookup`. Omitted input fields remain unchanged. Explicit `null` requires
|
|
14195
|
+
`nullable: true`. Empty and blank strings follow the advertised constraints.
|
|
14196
|
+
Values are JSON scalars; arrays, nested objects, and type coercion are unsupported.
|
|
14197
|
+
Numbers must use integer JSON notation, without a decimal point or exponent, and
|
|
14198
|
+
lie between -9007199254740991 and 9007199254740991. Preserve opaque IDs as strings.
|
|
14199
|
+
Unknown envelope properties, duplicate keys, invalid Unicode, trailing JSON, and
|
|
14200
|
+
bodies larger than 256 KiB are rejected.
|
|
14201
|
+
|
|
14202
|
+
## Lifetime and recovery
|
|
14203
|
+
|
|
14204
|
+
Prepared arguments are fixed for that identifier. Polytomic removes them when
|
|
14205
|
+
execution is claimed and periodically cleans up expired, unexecuted preparations.
|
|
14206
|
+
Execution receipts and Activity event metadata contain no submitted values.
|
|
14207
|
+
Polytomic retains a separate encrypted copy of the target and submitted values
|
|
14208
|
+
for 90 days from preparation. Only Organization administrators can reveal these
|
|
14209
|
+
details in the audit ledger. MCP receipts do not expose them. This evidence
|
|
14210
|
+
records your request, not a verified before-and-after record state.
|
|
14211
|
+
Preparation alone does not create an execution receipt.
|
|
14212
|
+
|
|
14213
|
+
If the preparation response is lost, you may prepare again: no destination
|
|
14214
|
+
mutation occurred. Each preparation creates a distinct execution identifier.
|
|
14215
|
+
|
|
14216
|
+
> ⚠️ Preserve the identifier after execution
|
|
14217
|
+
>
|
|
14218
|
+
> After submitting an execution, use its original `execution_id` to investigate
|
|
14219
|
+
> an uncertain outcome. Do not prepare a replacement action to retry it.
|
|
14220
|
+
|
|
14221
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP request.
|
|
14222
|
+
MCP supplies this transport header automatically. `X-Polytomic-Harbor-Session` is
|
|
14223
|
+
optional for direct REST requests; a supplied session must be active and bound
|
|
14224
|
+
to your credential and Harbor. Preparation is recorded as `action.prepared`,
|
|
14225
|
+
with its original actor and execution identifier. Expired, unexecuted
|
|
14226
|
+
preparations are recorded as `action.preparation_expired`. Execution records its
|
|
14227
|
+
own actor and attempt separately.
|
|
14228
|
+
</dd>
|
|
14229
|
+
</dl>
|
|
14230
|
+
</dd>
|
|
14231
|
+
</dl>
|
|
14232
|
+
|
|
14233
|
+
#### 🔌 Usage
|
|
14234
|
+
|
|
14235
|
+
<dl>
|
|
14236
|
+
<dd>
|
|
14237
|
+
|
|
14238
|
+
<dl>
|
|
14239
|
+
<dd>
|
|
14240
|
+
|
|
14241
|
+
```typescript
|
|
14242
|
+
await client.harbors.actions.prepare("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
14243
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
14244
|
+
input: {
|
|
14245
|
+
"key": "value"
|
|
14246
|
+
},
|
|
14247
|
+
operation_id: "operation_id",
|
|
14248
|
+
schema_id: "schema_id"
|
|
14249
|
+
});
|
|
14250
|
+
|
|
14251
|
+
```
|
|
14252
|
+
</dd>
|
|
14253
|
+
</dl>
|
|
14254
|
+
</dd>
|
|
14255
|
+
</dl>
|
|
14256
|
+
|
|
14257
|
+
#### ⚙️ Parameters
|
|
14258
|
+
|
|
14259
|
+
<dl>
|
|
14260
|
+
<dd>
|
|
14261
|
+
|
|
14262
|
+
<dl>
|
|
14263
|
+
<dd>
|
|
14264
|
+
|
|
14265
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
14266
|
+
|
|
14267
|
+
</dd>
|
|
14268
|
+
</dl>
|
|
14269
|
+
|
|
14270
|
+
<dl>
|
|
14271
|
+
<dd>
|
|
14272
|
+
|
|
14273
|
+
**request:** `Polytomic.harbors.PrepareHarborActionRequest`
|
|
14274
|
+
|
|
14275
|
+
</dd>
|
|
14276
|
+
</dl>
|
|
14277
|
+
|
|
14278
|
+
<dl>
|
|
14279
|
+
<dd>
|
|
14280
|
+
|
|
14281
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
14282
|
+
|
|
14283
|
+
</dd>
|
|
14284
|
+
</dl>
|
|
14285
|
+
</dd>
|
|
14286
|
+
</dl>
|
|
14287
|
+
|
|
14288
|
+
|
|
13174
14289
|
</dd>
|
|
13175
14290
|
</dl>
|
|
13176
14291
|
</details>
|