polytomic 25.9.7 → 25.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +21 -16
- package/api/resources/bulkSync/client/Client.d.ts +2 -0
- package/api/resources/bulkSync/client/Client.js +6 -0
- package/api/resources/connections/client/Client.d.ts +42 -0
- package/api/resources/connections/client/Client.js +42 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +42 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +42 -0
- package/api/resources/harbors/client/Client.d.ts +3 -0
- package/api/resources/harbors/client/Client.js +5 -0
- package/api/resources/harbors/exports.d.ts +1 -0
- package/api/resources/harbors/exports.js +1 -0
- package/api/resources/harbors/index.d.ts +1 -0
- package/api/resources/harbors/index.js +1 -0
- package/api/resources/harbors/resources/actions/client/Client.d.ts +345 -0
- package/api/resources/harbors/resources/actions/client/Client.js +652 -0
- package/api/resources/harbors/resources/actions/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/actions/client/index.js +17 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsDescribeRequest.d.ts +15 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.d.ts +8 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.d.ts +17 -0
- package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.d.ts +12 -0
- package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.d.ts +23 -0
- package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.d.ts +24 -0
- package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.js +3 -0
- package/api/resources/harbors/resources/actions/client/requests/index.d.ts +6 -0
- package/api/resources/harbors/resources/actions/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/actions/exports.d.ts +2 -0
- package/api/resources/harbors/resources/actions/exports.js +21 -0
- package/api/resources/harbors/resources/actions/index.d.ts +1 -0
- package/api/resources/harbors/resources/actions/index.js +17 -0
- package/api/resources/harbors/resources/index.d.ts +2 -0
- package/api/resources/harbors/resources/index.js +41 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/modelSync/client/Client.d.ts +2 -2
- package/api/resources/modelSync/client/Client.js +1 -1
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/index.d.ts +1 -1
- package/api/resources/operations/client/Client.d.ts +102 -0
- package/api/resources/operations/client/Client.js +233 -0
- package/api/resources/operations/client/index.d.ts +1 -0
- package/api/resources/operations/client/index.js +17 -0
- package/api/resources/operations/client/requests/SearchOperationsRequest.d.ts +14 -0
- package/api/resources/operations/client/requests/SearchOperationsRequest.js +3 -0
- package/api/resources/operations/client/requests/index.d.ts +1 -0
- package/api/resources/operations/client/requests/index.js +2 -0
- package/api/resources/operations/exports.d.ts +2 -0
- package/api/resources/operations/exports.js +21 -0
- package/api/resources/operations/index.d.ts +1 -0
- package/api/resources/operations/index.js +17 -0
- package/api/resources/organization/client/Client.d.ts +1 -1
- package/api/resources/organization/client/Client.js +1 -1
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +2 -0
- package/api/resources/temporaryCredentials/client/Client.d.ts +6 -6
- package/api/resources/temporaryCredentials/client/Client.js +6 -6
- package/api/types/ActionLookup.d.ts +4 -0
- package/api/types/ActionLookup.js +3 -0
- package/api/types/CompletionValue.d.ts +5 -0
- package/api/types/CompletionValue.js +3 -0
- package/api/types/ConnectionResponseSchema.d.ts +15 -0
- package/api/types/FieldConfiguration.d.ts +2 -0
- package/api/types/HarborActionCapability.d.ts +12 -0
- package/api/types/HarborActionCapability.js +3 -0
- package/api/types/HarborActionDescribeEnvelope.d.ts +4 -0
- package/api/types/HarborActionDescribeEnvelope.js +3 -0
- package/api/types/HarborActionExecutionEnvelope.d.ts +4 -0
- package/api/types/HarborActionExecutionEnvelope.js +3 -0
- package/api/types/HarborActionExecutionResponse.d.ts +28 -0
- package/api/types/HarborActionExecutionResponse.js +13 -0
- package/api/types/HarborActionField.d.ts +14 -0
- package/api/types/HarborActionField.js +3 -0
- package/api/types/HarborActionListEnvelope.d.ts +10 -0
- package/api/types/HarborActionListEnvelope.js +3 -0
- package/api/types/HarborActionLookupEnvelope.d.ts +4 -0
- package/api/types/HarborActionLookupEnvelope.js +3 -0
- package/api/types/HarborActionPreparation.d.ts +4 -0
- package/api/types/HarborActionPreparation.js +3 -0
- package/api/types/HarborActionPreparationEnvelope.d.ts +4 -0
- package/api/types/HarborActionPreparationEnvelope.js +3 -0
- package/api/types/HarborActionSummary.d.ts +7 -0
- package/api/types/HarborActionSummary.js +3 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +7 -0
- package/api/types/IdentityCredentialHarborSchema.d.ts +2 -0
- package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
- package/api/types/ModelSyncSourceIdentity.js +3 -0
- package/api/types/OperationMatch.d.ts +16 -0
- package/api/types/OperationMatch.js +3 -0
- package/api/types/OperationSearchAvailabilityEnvelope.d.ts +11 -0
- package/api/types/OperationSearchAvailabilityEnvelope.js +3 -0
- package/api/types/OperationSearchRateLimit.d.ts +15 -0
- package/api/types/OperationSearchRateLimit.js +13 -0
- package/api/types/OperationSearchResult.d.ts +9 -0
- package/api/types/OperationSearchResult.js +3 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
- package/api/types/SchemaConfiguration.d.ts +2 -0
- package/api/types/SchemaOperationIdempotency.d.ts +5 -0
- package/api/types/SchemaOperationIdempotency.js +3 -0
- package/api/types/SchemaRecord.d.ts +1 -0
- package/api/types/SchemaRecord.js +3 -0
- package/api/types/SearchOperationsEnvelope.d.ts +4 -0
- package/api/types/SearchOperationsEnvelope.js +3 -0
- package/api/types/SearchOperationsResponse.d.ts +7 -0
- package/api/types/SearchOperationsResponse.js +3 -0
- package/api/types/TemporaryCredentialSubject.d.ts +7 -7
- package/api/types/TemporaryCredentialSubject.js +3 -3
- package/api/types/TimeDuration.d.ts +1 -0
- package/api/types/TimeDuration.js +3 -0
- package/api/types/Webhook.d.ts +2 -0
- package/api/types/index.d.ts +22 -0
- package/api/types/index.js +22 -0
- package/package.json +1 -1
- package/reference.md +940 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +0 -9
- /package/api/resources/{modelSync/client/requests/StartSyncRequest.js → harbors/resources/actions/client/requests/ActionsDescribeRequest.js} +0 -0
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>
|
|
@@ -4399,7 +4441,7 @@ await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
4399
4441
|
<dl>
|
|
4400
4442
|
<dd>
|
|
4401
4443
|
|
|
4402
|
-
**request:** `Polytomic.
|
|
4444
|
+
**request:** `Polytomic.StartModelSyncRequest`
|
|
4403
4445
|
|
|
4404
4446
|
</dd>
|
|
4405
4447
|
</dl>
|
|
@@ -8553,6 +8595,180 @@ await client.notifications.setGlobalErrorSubscribers();
|
|
|
8553
8595
|
</dl>
|
|
8554
8596
|
|
|
8555
8597
|
|
|
8598
|
+
</dd>
|
|
8599
|
+
</dl>
|
|
8600
|
+
</details>
|
|
8601
|
+
|
|
8602
|
+
## Operations
|
|
8603
|
+
<details><summary><code>client.operations.<a href="/src/api/resources/operations/client/Client.ts">search</a>({ ...params }) -> Polytomic.SearchOperationsEnvelope</code></summary>
|
|
8604
|
+
<dl>
|
|
8605
|
+
<dd>
|
|
8606
|
+
|
|
8607
|
+
#### 📝 Description
|
|
8608
|
+
|
|
8609
|
+
<dl>
|
|
8610
|
+
<dd>
|
|
8611
|
+
|
|
8612
|
+
<dl>
|
|
8613
|
+
<dd>
|
|
8614
|
+
|
|
8615
|
+
Finds documented REST operations for up to three plain-language tasks in one request.
|
|
8616
|
+
|
|
8617
|
+
This endpoint returns HTTP 503 when operation search is not configured for the
|
|
8618
|
+
API deployment. Check [search availability](../../../api-reference/operations/get-search-availability)
|
|
8619
|
+
before offering operation search in a client.
|
|
8620
|
+
|
|
8621
|
+
Each question counts against three fixed UTC-window budgets: 12 questions per
|
|
8622
|
+
Organization per minute, 300 per Organization per day, and 60 per minute
|
|
8623
|
+
across the deployment. A request with three tasks uses three questions from
|
|
8624
|
+
each budget. At most eight provider calls run concurrently across the
|
|
8625
|
+
deployment. These are initial defaults; operators can adjust them with
|
|
8626
|
+
`API_DISCOVERY_ORG_QUESTIONS_PER_MINUTE`,
|
|
8627
|
+
`API_DISCOVERY_ORG_QUESTIONS_PER_DAY`,
|
|
8628
|
+
`API_DISCOVERY_GLOBAL_QUESTIONS_PER_MINUTE`, and
|
|
8629
|
+
`API_DISCOVERY_GLOBAL_IN_FLIGHT`. All settings must be positive integers.
|
|
8630
|
+
Daily budgets reset at 00:00 UTC; minute budgets reset on UTC minute
|
|
8631
|
+
boundaries, which can allow a short burst across adjacent minutes. Calls
|
|
8632
|
+
rejected by a limit return HTTP 429 with a `Retry-After` header in seconds.
|
|
8633
|
+
A submitted call still counts if the provider fails. If admission is
|
|
8634
|
+
unavailable, the endpoint returns HTTP 503 instead of contacting the provider.
|
|
8635
|
+
|
|
8636
|
+
Pass `operationIds` to rank only those documented operations. The list must
|
|
8637
|
+
contain at least one unique, known `METHOD /api/path` ID. If you omit it,
|
|
8638
|
+
Polytomic ranks all documented operations. Every ranking also includes the
|
|
8639
|
+
no-match option. The response's `sourceSha256` is the SHA-256 of the internal processed MCP
|
|
8640
|
+
spec artifact used to build the operation catalog. It is not the digest of the
|
|
8641
|
+
public OpenAPI document. Treat it as an opaque catalog version for detecting
|
|
8642
|
+
drift between the API and MCP deployments.
|
|
8643
|
+
|
|
8644
|
+
Each task has its own ranking in the same order as `queries`. The scores within
|
|
8645
|
+
one task describe the relative probability of choosing each operation as the
|
|
8646
|
+
single best option, including the no-match option. They are not independent
|
|
8647
|
+
relevance scores and cannot be compared across tasks.
|
|
8648
|
+
|
|
8649
|
+
If no documented operation is the best choice, `matches` is empty. Results
|
|
8650
|
+
come from the public API contract, not your Organization's data. Finding an
|
|
8651
|
+
operation does not authorize you to call it; the operation's own authentication
|
|
8652
|
+
and permissions still apply.
|
|
8653
|
+
</dd>
|
|
8654
|
+
</dl>
|
|
8655
|
+
</dd>
|
|
8656
|
+
</dl>
|
|
8657
|
+
|
|
8658
|
+
#### 🔌 Usage
|
|
8659
|
+
|
|
8660
|
+
<dl>
|
|
8661
|
+
<dd>
|
|
8662
|
+
|
|
8663
|
+
<dl>
|
|
8664
|
+
<dd>
|
|
8665
|
+
|
|
8666
|
+
```typescript
|
|
8667
|
+
await client.operations.search({
|
|
8668
|
+
queries: ["queries"]
|
|
8669
|
+
});
|
|
8670
|
+
|
|
8671
|
+
```
|
|
8672
|
+
</dd>
|
|
8673
|
+
</dl>
|
|
8674
|
+
</dd>
|
|
8675
|
+
</dl>
|
|
8676
|
+
|
|
8677
|
+
#### ⚙️ Parameters
|
|
8678
|
+
|
|
8679
|
+
<dl>
|
|
8680
|
+
<dd>
|
|
8681
|
+
|
|
8682
|
+
<dl>
|
|
8683
|
+
<dd>
|
|
8684
|
+
|
|
8685
|
+
**request:** `Polytomic.SearchOperationsRequest`
|
|
8686
|
+
|
|
8687
|
+
</dd>
|
|
8688
|
+
</dl>
|
|
8689
|
+
|
|
8690
|
+
<dl>
|
|
8691
|
+
<dd>
|
|
8692
|
+
|
|
8693
|
+
**requestOptions:** `OperationsClient.IdempotentRequestOptions`
|
|
8694
|
+
|
|
8695
|
+
</dd>
|
|
8696
|
+
</dl>
|
|
8697
|
+
</dd>
|
|
8698
|
+
</dl>
|
|
8699
|
+
|
|
8700
|
+
|
|
8701
|
+
</dd>
|
|
8702
|
+
</dl>
|
|
8703
|
+
</details>
|
|
8704
|
+
|
|
8705
|
+
<details><summary><code>client.operations.<a href="/src/api/resources/operations/client/Client.ts">getSearchAvailability</a>() -> Polytomic.OperationSearchAvailabilityEnvelope</code></summary>
|
|
8706
|
+
<dl>
|
|
8707
|
+
<dd>
|
|
8708
|
+
|
|
8709
|
+
#### 📝 Description
|
|
8710
|
+
|
|
8711
|
+
<dl>
|
|
8712
|
+
<dd>
|
|
8713
|
+
|
|
8714
|
+
<dl>
|
|
8715
|
+
<dd>
|
|
8716
|
+
|
|
8717
|
+
Reports whether operation search is configured on this API deployment.
|
|
8718
|
+
|
|
8719
|
+
When a request for one question would exceed an Organization-minute,
|
|
8720
|
+
Organization-day, or deployment-minute question budget, the response includes
|
|
8721
|
+
`rate_limited` with a reason and a UTC `reset_at` timestamp. If more than one
|
|
8722
|
+
budget is exhausted, the timestamp reflects the latest reset. The check does
|
|
8723
|
+
not use any question allowance.
|
|
8724
|
+
|
|
8725
|
+
> ⚠️ The result is a snapshot. A later request can be limited even if this
|
|
8726
|
+
> response has no `rate_limited` field, especially if it contains two or three
|
|
8727
|
+
> questions or other requests use the shared budget. Concurrent-call limits
|
|
8728
|
+
> are not included. The search request's `429` response and `Retry-After` header
|
|
8729
|
+
> are authoritative.
|
|
8730
|
+
|
|
8731
|
+
If your request does not identify an Organization, the response reports only
|
|
8732
|
+
`enabled`. When `enabled` is `false`, `rate_limited` is omitted. If Polytomic
|
|
8733
|
+
cannot check the question budgets, the endpoint returns `503`.
|
|
8734
|
+
</dd>
|
|
8735
|
+
</dl>
|
|
8736
|
+
</dd>
|
|
8737
|
+
</dl>
|
|
8738
|
+
|
|
8739
|
+
#### 🔌 Usage
|
|
8740
|
+
|
|
8741
|
+
<dl>
|
|
8742
|
+
<dd>
|
|
8743
|
+
|
|
8744
|
+
<dl>
|
|
8745
|
+
<dd>
|
|
8746
|
+
|
|
8747
|
+
```typescript
|
|
8748
|
+
await client.operations.getSearchAvailability();
|
|
8749
|
+
|
|
8750
|
+
```
|
|
8751
|
+
</dd>
|
|
8752
|
+
</dl>
|
|
8753
|
+
</dd>
|
|
8754
|
+
</dl>
|
|
8755
|
+
|
|
8756
|
+
#### ⚙️ Parameters
|
|
8757
|
+
|
|
8758
|
+
<dl>
|
|
8759
|
+
<dd>
|
|
8760
|
+
|
|
8761
|
+
<dl>
|
|
8762
|
+
<dd>
|
|
8763
|
+
|
|
8764
|
+
**requestOptions:** `OperationsClient.RequestOptions`
|
|
8765
|
+
|
|
8766
|
+
</dd>
|
|
8767
|
+
</dl>
|
|
8768
|
+
</dd>
|
|
8769
|
+
</dl>
|
|
8770
|
+
|
|
8771
|
+
|
|
8556
8772
|
</dd>
|
|
8557
8773
|
</dl>
|
|
8558
8774
|
</details>
|
|
@@ -8689,7 +8905,7 @@ await client.organization.getRecordLogging();
|
|
|
8689
8905
|
<dl>
|
|
8690
8906
|
<dd>
|
|
8691
8907
|
|
|
8692
|
-
Replaces the organization's record logging settings. `deliveryConnectionId`
|
|
8908
|
+
Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
|
|
8693
8909
|
</dd>
|
|
8694
8910
|
</dl>
|
|
8695
8911
|
</dd>
|
|
@@ -10318,7 +10534,7 @@ await client.recordViewLinks.getCapabilities({
|
|
|
10318
10534
|
<dl>
|
|
10319
10535
|
<dd>
|
|
10320
10536
|
|
|
10321
|
-
Issues a non-renewable credential with a bounded lifetime for a user or
|
|
10537
|
+
Issues a non-renewable credential with a bounded lifetime for a user or Harbor.
|
|
10322
10538
|
|
|
10323
10539
|
The response contains the credential secret once. Store it securely and send it
|
|
10324
10540
|
as a Bearer token in the `Authorization` header.
|
|
@@ -10331,17 +10547,17 @@ read-only caller can issue only read-only credentials.
|
|
|
10331
10547
|
|
|
10332
10548
|
Partner callers must provide both `organization_id` and `user_id`. The target
|
|
10333
10549
|
must be an active user in an organization owned by the partner. User subjects
|
|
10334
|
-
must be application users;
|
|
10550
|
+
must be application users; Harbor-only users continue to use Harbor
|
|
10335
10551
|
credentials.
|
|
10336
10552
|
|
|
10337
10553
|
User credentials resolve the subject's current permissions on every request.
|
|
10338
10554
|
Permission changes take effect immediately, and deleting the user invalidates
|
|
10339
10555
|
the credential.
|
|
10340
10556
|
|
|
10341
|
-
Set `subject.type` to `
|
|
10342
|
-
credential uses the
|
|
10343
|
-
changes take effect immediately
|
|
10344
|
-
|
|
10557
|
+
Set `subject.type` to `harbor` and provide the Harbor ID in `harbor_id`. The
|
|
10558
|
+
credential uses the Harbor's current connection access on every request;
|
|
10559
|
+
changes take effect immediately. Missing and deleted Harbors cannot be
|
|
10560
|
+
targeted.
|
|
10345
10561
|
|
|
10346
10562
|
A temporary credential stops authenticating at `expires_at`. It cannot be
|
|
10347
10563
|
refreshed, extended, or used to create another temporary credential. Create a
|
|
@@ -12965,6 +13181,27 @@ downstream organizations have already received a shared copy.
|
|
|
12965
13181
|
Creating a new shared copy is a separate operation. Use
|
|
12966
13182
|
[`POST /api/organizations/{org_id}/connections/{connection_id}/share`](../../../../api-reference/connections/create-shared-connection)
|
|
12967
13183
|
for the v5 partner-scoped flow.
|
|
13184
|
+
|
|
13185
|
+
## Observed rate limits
|
|
13186
|
+
|
|
13187
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
13188
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
13189
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
13190
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
13191
|
+
copy are not included.
|
|
13192
|
+
|
|
13193
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
13194
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
13195
|
+
period separated from the active period by a gap does not extend that start.
|
|
13196
|
+
|
|
13197
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
13198
|
+
>
|
|
13199
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
13200
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
13201
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
13202
|
+
|
|
13203
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
13204
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
12968
13205
|
</dd>
|
|
12969
13206
|
</dl>
|
|
12970
13207
|
</dd>
|
|
@@ -13036,6 +13273,27 @@ parent connection.
|
|
|
13036
13273
|
This endpoint is useful in partner workflows where the parent connection is in
|
|
13037
13274
|
the partner owner organization and the caller needs to audit which child
|
|
13038
13275
|
organizations already have a shared copy.
|
|
13276
|
+
|
|
13277
|
+
## Observed rate limits
|
|
13278
|
+
|
|
13279
|
+
You can use `rate_limit` to inspect observed rate limiting separately from
|
|
13280
|
+
Connection health. A Connection can be healthy while Polytomic has an active
|
|
13281
|
+
rate-limit marker. Shared Connections combine observations recorded for their
|
|
13282
|
+
own ID and their root Connection. Observations recorded only for another shared
|
|
13283
|
+
copy are not included.
|
|
13284
|
+
|
|
13285
|
+
When these observed periods overlap or touch, `limited_since` reflects the start
|
|
13286
|
+
of the continuous period and `expires_at` reflects its latest expiry. An expired
|
|
13287
|
+
period separated from the active period by a gap does not extend that start.
|
|
13288
|
+
|
|
13289
|
+
> ⚠️ Observation, not a capacity guarantee
|
|
13290
|
+
>
|
|
13291
|
+
> An active marker does not mean every endpoint or sync is blocked. No active
|
|
13292
|
+
> marker does not guarantee that the upstream service has capacity. The marker
|
|
13293
|
+
> expiry can be extended and is not a promised provider reset or exact retry time.
|
|
13294
|
+
|
|
13295
|
+
If any required lookup is unavailable, `rate_limit` is `null`. This does not change
|
|
13296
|
+
`status` or `status_error`, and the Connection response is still returned.
|
|
13039
13297
|
</dd>
|
|
13040
13298
|
</dl>
|
|
13041
13299
|
</dd>
|
|
@@ -13171,6 +13429,680 @@ await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70
|
|
|
13171
13429
|
</dl>
|
|
13172
13430
|
|
|
13173
13431
|
|
|
13432
|
+
</dd>
|
|
13433
|
+
</dl>
|
|
13434
|
+
</details>
|
|
13435
|
+
|
|
13436
|
+
## Harbors Actions
|
|
13437
|
+
<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>
|
|
13438
|
+
<dl>
|
|
13439
|
+
<dd>
|
|
13440
|
+
|
|
13441
|
+
#### 📝 Description
|
|
13442
|
+
|
|
13443
|
+
<dl>
|
|
13444
|
+
<dd>
|
|
13445
|
+
|
|
13446
|
+
<dl>
|
|
13447
|
+
<dd>
|
|
13448
|
+
|
|
13449
|
+
Read a metadata-only action receipt without resubmitting the action.
|
|
13450
|
+
|
|
13451
|
+
Use a currently valid scoped credential belonging to the original Harbor. The
|
|
13452
|
+
receipt remains readable after the action or rollout feature is disabled. A
|
|
13453
|
+
credential from another Harbor cannot inspect it. The response does not contain
|
|
13454
|
+
lookup values, input values, output payloads, credential secrets, or raw provider
|
|
13455
|
+
errors. It includes structured operation identity, lookup field names, submitted
|
|
13456
|
+
field names, and the original credential ID.
|
|
13457
|
+
|
|
13458
|
+
An overdue executing receipt transitions atomically to `unknown`; this read
|
|
13459
|
+
never invokes the destination provider. Stop polling at `succeeded`, `failed`, or `unknown`.
|
|
13460
|
+
Unknown is terminal for this execution identifier and means the update may have
|
|
13461
|
+
happened. Investigate rather than preparing a replacement action to retry.
|
|
13462
|
+
|
|
13463
|
+
Preparation alone has no execution receipt. A `404 Not Found` after an uncertain
|
|
13464
|
+
execution does not prove the operation never happened.
|
|
13465
|
+
|
|
13466
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. Direct REST requests
|
|
13467
|
+
may omit `X-Polytomic-Harbor-Session`; a supplied session must be active and bound
|
|
13468
|
+
to the same credential and Harbor.
|
|
13469
|
+
</dd>
|
|
13470
|
+
</dl>
|
|
13471
|
+
</dd>
|
|
13472
|
+
</dl>
|
|
13473
|
+
|
|
13474
|
+
#### 🔌 Usage
|
|
13475
|
+
|
|
13476
|
+
<dl>
|
|
13477
|
+
<dd>
|
|
13478
|
+
|
|
13479
|
+
<dl>
|
|
13480
|
+
<dd>
|
|
13481
|
+
|
|
13482
|
+
```typescript
|
|
13483
|
+
await client.harbors.actions.getExecution("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
13484
|
+
|
|
13485
|
+
```
|
|
13486
|
+
</dd>
|
|
13487
|
+
</dl>
|
|
13488
|
+
</dd>
|
|
13489
|
+
</dl>
|
|
13490
|
+
|
|
13491
|
+
#### ⚙️ Parameters
|
|
13492
|
+
|
|
13493
|
+
<dl>
|
|
13494
|
+
<dd>
|
|
13495
|
+
|
|
13496
|
+
<dl>
|
|
13497
|
+
<dd>
|
|
13498
|
+
|
|
13499
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13500
|
+
|
|
13501
|
+
</dd>
|
|
13502
|
+
</dl>
|
|
13503
|
+
|
|
13504
|
+
<dl>
|
|
13505
|
+
<dd>
|
|
13506
|
+
|
|
13507
|
+
**execution_id:** `string`
|
|
13508
|
+
|
|
13509
|
+
</dd>
|
|
13510
|
+
</dl>
|
|
13511
|
+
|
|
13512
|
+
<dl>
|
|
13513
|
+
<dd>
|
|
13514
|
+
|
|
13515
|
+
**request:** `Polytomic.harbors.ActionsGetExecutionRequest`
|
|
13516
|
+
|
|
13517
|
+
</dd>
|
|
13518
|
+
</dl>
|
|
13519
|
+
|
|
13520
|
+
<dl>
|
|
13521
|
+
<dd>
|
|
13522
|
+
|
|
13523
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13524
|
+
|
|
13525
|
+
</dd>
|
|
13526
|
+
</dl>
|
|
13527
|
+
</dd>
|
|
13528
|
+
</dl>
|
|
13529
|
+
|
|
13530
|
+
|
|
13531
|
+
</dd>
|
|
13532
|
+
</dl>
|
|
13533
|
+
</details>
|
|
13534
|
+
|
|
13535
|
+
<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>
|
|
13536
|
+
<dl>
|
|
13537
|
+
<dd>
|
|
13538
|
+
|
|
13539
|
+
#### 📝 Description
|
|
13540
|
+
|
|
13541
|
+
<dl>
|
|
13542
|
+
<dd>
|
|
13543
|
+
|
|
13544
|
+
<dl>
|
|
13545
|
+
<dd>
|
|
13546
|
+
|
|
13547
|
+
List a page of configured action identities without loading provider capabilities or field metadata.
|
|
13548
|
+
|
|
13549
|
+
Use a scoped credential belonging to this Harbor. An administrator must first
|
|
13550
|
+
select Connections and explicitly enable object operations and fields. These
|
|
13551
|
+
grants apply to existing and future eligible Harbor credentials without changing
|
|
13552
|
+
read access. Newly available objects and fields remain disabled until selected.
|
|
13553
|
+
|
|
13554
|
+
Each entry identifies a configured operation by `connection_id`, `schema_id`, and
|
|
13555
|
+
`operation_id`. Search filters those identities. Follow
|
|
13556
|
+
`pagination.next_page_token` with the same search to read additional pages.
|
|
13557
|
+
Pages contain saved identities without field metadata or provider capability
|
|
13558
|
+
checks. `unavailable: true` means the saved Connection is unavailable for actions;
|
|
13559
|
+
its permissions remain saved and revocable. An available Connection does not
|
|
13560
|
+
confirm that its operations or granted fields are currently available.
|
|
13561
|
+
|
|
13562
|
+
Use [Describe action](../../../../api-reference/harbors/actions/describe) for the selected
|
|
13563
|
+
operation before looking up a record or
|
|
13564
|
+
[preparing an action](../../../../api-reference/harbors/actions/prepare). Description checks
|
|
13565
|
+
current provider capabilities and returns the operation's `effect` (`read_only`
|
|
13566
|
+
or `mutating`) and effective granted fields.
|
|
13567
|
+
Always submit the intended Connection explicitly when looking up or preparing,
|
|
13568
|
+
even if only one is enabled. If several destinations match your intent, clarify
|
|
13569
|
+
which one to use.
|
|
13570
|
+
|
|
13571
|
+
Read-only operations use [Lookup action](../../../../api-reference/harbors/actions/lookup)
|
|
13572
|
+
without preparation or approval. Salesforce and HubSpot support exact lookups by
|
|
13573
|
+
their canonical record ID. Listing does not grant additional permissions or
|
|
13574
|
+
authorize mutations by a read-only credential.
|
|
13575
|
+
|
|
13576
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. For direct REST
|
|
13577
|
+
requests, `X-Polytomic-Harbor-Session` is optional. If supplied, the session must
|
|
13578
|
+
be active and bound to the credential and Harbor. Discovery is recorded as
|
|
13579
|
+
`action.listed`; no response is returned if that event cannot be recorded.
|
|
13580
|
+
</dd>
|
|
13581
|
+
</dl>
|
|
13582
|
+
</dd>
|
|
13583
|
+
</dl>
|
|
13584
|
+
|
|
13585
|
+
#### 🔌 Usage
|
|
13586
|
+
|
|
13587
|
+
<dl>
|
|
13588
|
+
<dd>
|
|
13589
|
+
|
|
13590
|
+
<dl>
|
|
13591
|
+
<dd>
|
|
13592
|
+
|
|
13593
|
+
```typescript
|
|
13594
|
+
await client.harbors.actions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13595
|
+
search: "search",
|
|
13596
|
+
page_token: "page_token",
|
|
13597
|
+
limit: 1
|
|
13598
|
+
});
|
|
13599
|
+
|
|
13600
|
+
```
|
|
13601
|
+
</dd>
|
|
13602
|
+
</dl>
|
|
13603
|
+
</dd>
|
|
13604
|
+
</dl>
|
|
13605
|
+
|
|
13606
|
+
#### ⚙️ Parameters
|
|
13607
|
+
|
|
13608
|
+
<dl>
|
|
13609
|
+
<dd>
|
|
13610
|
+
|
|
13611
|
+
<dl>
|
|
13612
|
+
<dd>
|
|
13613
|
+
|
|
13614
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13615
|
+
|
|
13616
|
+
</dd>
|
|
13617
|
+
</dl>
|
|
13618
|
+
|
|
13619
|
+
<dl>
|
|
13620
|
+
<dd>
|
|
13621
|
+
|
|
13622
|
+
**request:** `Polytomic.harbors.ActionsListRequest`
|
|
13623
|
+
|
|
13624
|
+
</dd>
|
|
13625
|
+
</dl>
|
|
13626
|
+
|
|
13627
|
+
<dl>
|
|
13628
|
+
<dd>
|
|
13629
|
+
|
|
13630
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13631
|
+
|
|
13632
|
+
</dd>
|
|
13633
|
+
</dl>
|
|
13634
|
+
</dd>
|
|
13635
|
+
</dl>
|
|
13636
|
+
|
|
13637
|
+
|
|
13638
|
+
</dd>
|
|
13639
|
+
</dl>
|
|
13640
|
+
</details>
|
|
13641
|
+
|
|
13642
|
+
<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>
|
|
13643
|
+
<dl>
|
|
13644
|
+
<dd>
|
|
13645
|
+
|
|
13646
|
+
#### 📝 Description
|
|
13647
|
+
|
|
13648
|
+
<dl>
|
|
13649
|
+
<dd>
|
|
13650
|
+
|
|
13651
|
+
<dl>
|
|
13652
|
+
<dd>
|
|
13653
|
+
|
|
13654
|
+
Describe one granted operation and its currently available enabled fields.
|
|
13655
|
+
|
|
13656
|
+
Select an identity from [List actions](../../../../../api-reference/harbors/actions/list).
|
|
13657
|
+
Supply its `connection_id`, `schema_id`, and `operation_id`. Use a scoped
|
|
13658
|
+
credential belonging to this Harbor; description does not require write access.
|
|
13659
|
+
|
|
13660
|
+
`effect` identifies an operation as `read_only` or `mutating`. For read-only
|
|
13661
|
+
operations, `lookup_fields` and `output_fields` contain only fields both granted
|
|
13662
|
+
by the administrator and currently available through the Connection.
|
|
13663
|
+
`input_fields` is empty. Use
|
|
13664
|
+
[Lookup action](../../../../../api-reference/harbors/actions/lookup) to return one projected
|
|
13665
|
+
record without preparation.
|
|
13666
|
+
|
|
13667
|
+
For mutations, `input_fields` contains only granted, currently available fields.
|
|
13668
|
+
`lookup_fields` and `output_fields` describe the connector's lookup and output.
|
|
13669
|
+
Fields retain their types, constraints, required flags, and nullability. Supply
|
|
13670
|
+
exactly one lookup when `lookup_fields` is nonempty; otherwise omit it. Omitted
|
|
13671
|
+
input fields remain unchanged. Explicit null requires `nullable: true`.
|
|
13672
|
+
|
|
13673
|
+
For mutations, `idempotency` describes remote deduplication, not permission to
|
|
13674
|
+
retry. Harbor write receipts remain metadata-only.
|
|
13675
|
+
|
|
13676
|
+
A provider discovery failure or a granted operation that is no longer available
|
|
13677
|
+
returns `503 Service Unavailable`, not an empty field list. An ungranted identity
|
|
13678
|
+
returns `403 Forbidden`. These responses do not revoke saved permissions.
|
|
13679
|
+
Polytomic checks current grants and provider capabilities again at execution.
|
|
13680
|
+
|
|
13681
|
+
Description fetches only the selected object's operations. It does not fetch
|
|
13682
|
+
fields for the entire catalog. Lookup permissions are checked against fresh
|
|
13683
|
+
provider metadata. Provider permissions and automation still apply.
|
|
13684
|
+
|
|
13685
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. A supplied
|
|
13686
|
+
`X-Polytomic-Harbor-Session` must be active and bound to this credential and
|
|
13687
|
+
Harbor. Successful description is recorded as `action.listed`.
|
|
13688
|
+
</dd>
|
|
13689
|
+
</dl>
|
|
13690
|
+
</dd>
|
|
13691
|
+
</dl>
|
|
13692
|
+
|
|
13693
|
+
#### 🔌 Usage
|
|
13694
|
+
|
|
13695
|
+
<dl>
|
|
13696
|
+
<dd>
|
|
13697
|
+
|
|
13698
|
+
<dl>
|
|
13699
|
+
<dd>
|
|
13700
|
+
|
|
13701
|
+
```typescript
|
|
13702
|
+
await client.harbors.actions.describe("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13703
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
13704
|
+
schema_id: "schema_id",
|
|
13705
|
+
operation_id: "operation_id"
|
|
13706
|
+
});
|
|
13707
|
+
|
|
13708
|
+
```
|
|
13709
|
+
</dd>
|
|
13710
|
+
</dl>
|
|
13711
|
+
</dd>
|
|
13712
|
+
</dl>
|
|
13713
|
+
|
|
13714
|
+
#### ⚙️ Parameters
|
|
13715
|
+
|
|
13716
|
+
<dl>
|
|
13717
|
+
<dd>
|
|
13718
|
+
|
|
13719
|
+
<dl>
|
|
13720
|
+
<dd>
|
|
13721
|
+
|
|
13722
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13723
|
+
|
|
13724
|
+
</dd>
|
|
13725
|
+
</dl>
|
|
13726
|
+
|
|
13727
|
+
<dl>
|
|
13728
|
+
<dd>
|
|
13729
|
+
|
|
13730
|
+
**request:** `Polytomic.harbors.ActionsDescribeRequest`
|
|
13731
|
+
|
|
13732
|
+
</dd>
|
|
13733
|
+
</dl>
|
|
13734
|
+
|
|
13735
|
+
<dl>
|
|
13736
|
+
<dd>
|
|
13737
|
+
|
|
13738
|
+
**requestOptions:** `ActionsClient.RequestOptions`
|
|
13739
|
+
|
|
13740
|
+
</dd>
|
|
13741
|
+
</dl>
|
|
13742
|
+
</dd>
|
|
13743
|
+
</dl>
|
|
13744
|
+
|
|
13745
|
+
|
|
13746
|
+
</dd>
|
|
13747
|
+
</dl>
|
|
13748
|
+
</details>
|
|
13749
|
+
|
|
13750
|
+
<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>
|
|
13751
|
+
<dl>
|
|
13752
|
+
<dd>
|
|
13753
|
+
|
|
13754
|
+
#### 📝 Description
|
|
13755
|
+
|
|
13756
|
+
<dl>
|
|
13757
|
+
<dd>
|
|
13758
|
+
|
|
13759
|
+
<dl>
|
|
13760
|
+
<dd>
|
|
13761
|
+
|
|
13762
|
+
Execute a prepared action with at most one application attempt per server-issued execution identifier.
|
|
13763
|
+
|
|
13764
|
+
First call [Prepare action](../../../../../api-reference/harbors/actions/prepare). Submit only
|
|
13765
|
+
its server-issued `execution_id` using a writable scoped credential belonging to
|
|
13766
|
+
the same Harbor. The destination, operation, lookup, and input are fixed by
|
|
13767
|
+
preparation. No per-request approval is required.
|
|
13768
|
+
|
|
13769
|
+
Polytomic checks current grants, provider capabilities, and the saved Connection
|
|
13770
|
+
again before execution. Preparation does not reserve permission. An expired
|
|
13771
|
+
preparation cannot start an execution. It returns `410 Gone` while the expired
|
|
13772
|
+
preparation remains available, or `404 Not Found` after cleanup.
|
|
13773
|
+
|
|
13774
|
+
> 🚧 Updates can overwrite intervening edits
|
|
13775
|
+
>
|
|
13776
|
+
> Enabled operations can act on records accessible through the saved Connection
|
|
13777
|
+
> and may trigger provider automation. Preparation does not lock the destination
|
|
13778
|
+
> record. Action permission does not grant read access.
|
|
13779
|
+
|
|
13780
|
+
## One intended attempt
|
|
13781
|
+
|
|
13782
|
+
An identifier already claimed for execution returns its original receipt,
|
|
13783
|
+
including through another eligible credential or after action disablement.
|
|
13784
|
+
Receipts remain available after prepared arguments are removed or expire.
|
|
13785
|
+
They are retained independently of Activity history.
|
|
13786
|
+
|
|
13787
|
+
An `action.attempt_started` event means permission to attempt the action was
|
|
13788
|
+
claimed, not that the provider received it. Disabling actions blocks new claims
|
|
13789
|
+
but does not recall an accepted attempt. This is at most one application attempt
|
|
13790
|
+
per execution identifier, not a remote exactly-once guarantee. Advertised remote
|
|
13791
|
+
idempotency does not authorize automatic replay.
|
|
13792
|
+
|
|
13793
|
+
## Results and recovery
|
|
13794
|
+
|
|
13795
|
+
Keep `execution_id` and the returned `status_path`. `succeeded` means the provider
|
|
13796
|
+
confirmed the operation and Polytomic recorded that outcome. `failed` means the
|
|
13797
|
+
operation was rejected. `executing` is incomplete. `recovery_required: true`
|
|
13798
|
+
does not confirm durable acceptance or completion. Use the status path after a
|
|
13799
|
+
timeout or server error. A missing receipt does not prove no operation occurred.
|
|
13800
|
+
|
|
13801
|
+
> ⚠️ An unknown outcome is terminal
|
|
13802
|
+
>
|
|
13803
|
+
> `unknown` means the operation may have happened. Investigate the record and
|
|
13804
|
+
> provider automation. Do not resubmit or prepare a replacement action to retry.
|
|
13805
|
+
> Polytomic never automatically retries an uncertain attempt. An overdue
|
|
13806
|
+
> executing receipt becomes unknown after its 90-second deadline.
|
|
13807
|
+
|
|
13808
|
+
Send a separate nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP
|
|
13809
|
+
request. MCP supplies this transport header automatically.
|
|
13810
|
+
`X-Polytomic-Harbor-Session` is optional for direct REST requests; a supplied
|
|
13811
|
+
session must be active and bound to your credential and Harbor. Receipts and
|
|
13812
|
+
Activity contain operation identity, lookup field names, submitted field names,
|
|
13813
|
+
original attribution, and safe outcome categories. They exclude lookup values,
|
|
13814
|
+
input values, output payloads, and raw provider errors.
|
|
13815
|
+
</dd>
|
|
13816
|
+
</dl>
|
|
13817
|
+
</dd>
|
|
13818
|
+
</dl>
|
|
13819
|
+
|
|
13820
|
+
#### 🔌 Usage
|
|
13821
|
+
|
|
13822
|
+
<dl>
|
|
13823
|
+
<dd>
|
|
13824
|
+
|
|
13825
|
+
<dl>
|
|
13826
|
+
<dd>
|
|
13827
|
+
|
|
13828
|
+
```typescript
|
|
13829
|
+
await client.harbors.actions.execute("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13830
|
+
execution_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
13831
|
+
});
|
|
13832
|
+
|
|
13833
|
+
```
|
|
13834
|
+
</dd>
|
|
13835
|
+
</dl>
|
|
13836
|
+
</dd>
|
|
13837
|
+
</dl>
|
|
13838
|
+
|
|
13839
|
+
#### ⚙️ Parameters
|
|
13840
|
+
|
|
13841
|
+
<dl>
|
|
13842
|
+
<dd>
|
|
13843
|
+
|
|
13844
|
+
<dl>
|
|
13845
|
+
<dd>
|
|
13846
|
+
|
|
13847
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13848
|
+
|
|
13849
|
+
</dd>
|
|
13850
|
+
</dl>
|
|
13851
|
+
|
|
13852
|
+
<dl>
|
|
13853
|
+
<dd>
|
|
13854
|
+
|
|
13855
|
+
**request:** `Polytomic.harbors.ExecuteHarborActionRequest`
|
|
13856
|
+
|
|
13857
|
+
</dd>
|
|
13858
|
+
</dl>
|
|
13859
|
+
|
|
13860
|
+
<dl>
|
|
13861
|
+
<dd>
|
|
13862
|
+
|
|
13863
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
13864
|
+
|
|
13865
|
+
</dd>
|
|
13866
|
+
</dl>
|
|
13867
|
+
</dd>
|
|
13868
|
+
</dl>
|
|
13869
|
+
|
|
13870
|
+
|
|
13871
|
+
</dd>
|
|
13872
|
+
</dl>
|
|
13873
|
+
</details>
|
|
13874
|
+
|
|
13875
|
+
<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>
|
|
13876
|
+
<dl>
|
|
13877
|
+
<dd>
|
|
13878
|
+
|
|
13879
|
+
#### 📝 Description
|
|
13880
|
+
|
|
13881
|
+
<dl>
|
|
13882
|
+
<dd>
|
|
13883
|
+
|
|
13884
|
+
<dl>
|
|
13885
|
+
<dd>
|
|
13886
|
+
|
|
13887
|
+
Look up exactly one record using a granted read-only Harbor action.
|
|
13888
|
+
|
|
13889
|
+
Use a scoped credential belonging to this Harbor, including a read-only
|
|
13890
|
+
credential. An administrator must grant the Connection, read-only operation,
|
|
13891
|
+
lookup field, and returned fields. Select an identity with
|
|
13892
|
+
[List actions](../../../../../api-reference/harbors/actions/list), then inspect its effective
|
|
13893
|
+
lookup and output fields with
|
|
13894
|
+
[Describe action](../../../../../api-reference/harbors/actions/describe).
|
|
13895
|
+
|
|
13896
|
+
Polytomic checks current grants and provider capabilities on each lookup. The
|
|
13897
|
+
response contains one record under `data`, limited to the selected fields.
|
|
13898
|
+
Omitting `fields` returns all currently available granted outputs;
|
|
13899
|
+
new provider fields remain excluded until an administrator grants them.
|
|
13900
|
+
Salesforce uses `Id`; HubSpot uses `hs_object_id`. Preserve these IDs as strings.
|
|
13901
|
+
Alternate keys, fuzzy matches, search, and batching are unsupported.
|
|
13902
|
+
|
|
13903
|
+
A definite absence returns `404 Not Found`. More than one exact match returns
|
|
13904
|
+
`409 Conflict`. Invalid selections return `400 Bad Request`; unavailable
|
|
13905
|
+
capabilities or provider failures return `503 Service Unavailable`. Errors do
|
|
13906
|
+
not include lookup values or provider response bodies.
|
|
13907
|
+
|
|
13908
|
+
This request is synchronous and read-only. It requires no preparation, approval,
|
|
13909
|
+
execution identifier, or status polling. It creates no write receipt or private
|
|
13910
|
+
write evidence. Harbor Activity records `action.looked_up` with field names and
|
|
13911
|
+
an outcome, never the lookup value or returned values. If Activity cannot be
|
|
13912
|
+
recorded, Polytomic returns no record.
|
|
13913
|
+
|
|
13914
|
+
Unknown properties, duplicate keys, invalid Unicode, trailing JSON, and bodies
|
|
13915
|
+
larger than 256 KiB are rejected. Lookup values must be JSON scalars. Numeric
|
|
13916
|
+
values must use integer notation within +/-9007199254740991.
|
|
13917
|
+
|
|
13918
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each request.
|
|
13919
|
+
`X-Polytomic-Harbor-Session` is optional for direct REST requests. A supplied
|
|
13920
|
+
session must be active and bound to your credential and Harbor.
|
|
13921
|
+
</dd>
|
|
13922
|
+
</dl>
|
|
13923
|
+
</dd>
|
|
13924
|
+
</dl>
|
|
13925
|
+
|
|
13926
|
+
#### 🔌 Usage
|
|
13927
|
+
|
|
13928
|
+
<dl>
|
|
13929
|
+
<dd>
|
|
13930
|
+
|
|
13931
|
+
<dl>
|
|
13932
|
+
<dd>
|
|
13933
|
+
|
|
13934
|
+
```typescript
|
|
13935
|
+
await client.harbors.actions.lookup("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
13936
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
13937
|
+
lookup: {},
|
|
13938
|
+
operation_id: "operation_id",
|
|
13939
|
+
schema_id: "schema_id"
|
|
13940
|
+
});
|
|
13941
|
+
|
|
13942
|
+
```
|
|
13943
|
+
</dd>
|
|
13944
|
+
</dl>
|
|
13945
|
+
</dd>
|
|
13946
|
+
</dl>
|
|
13947
|
+
|
|
13948
|
+
#### ⚙️ Parameters
|
|
13949
|
+
|
|
13950
|
+
<dl>
|
|
13951
|
+
<dd>
|
|
13952
|
+
|
|
13953
|
+
<dl>
|
|
13954
|
+
<dd>
|
|
13955
|
+
|
|
13956
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
13957
|
+
|
|
13958
|
+
</dd>
|
|
13959
|
+
</dl>
|
|
13960
|
+
|
|
13961
|
+
<dl>
|
|
13962
|
+
<dd>
|
|
13963
|
+
|
|
13964
|
+
**request:** `Polytomic.harbors.LookupHarborActionRequest`
|
|
13965
|
+
|
|
13966
|
+
</dd>
|
|
13967
|
+
</dl>
|
|
13968
|
+
|
|
13969
|
+
<dl>
|
|
13970
|
+
<dd>
|
|
13971
|
+
|
|
13972
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
13973
|
+
|
|
13974
|
+
</dd>
|
|
13975
|
+
</dl>
|
|
13976
|
+
</dd>
|
|
13977
|
+
</dl>
|
|
13978
|
+
|
|
13979
|
+
|
|
13980
|
+
</dd>
|
|
13981
|
+
</dl>
|
|
13982
|
+
</details>
|
|
13983
|
+
|
|
13984
|
+
<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>
|
|
13985
|
+
<dl>
|
|
13986
|
+
<dd>
|
|
13987
|
+
|
|
13988
|
+
#### 📝 Description
|
|
13989
|
+
|
|
13990
|
+
<dl>
|
|
13991
|
+
<dd>
|
|
13992
|
+
|
|
13993
|
+
<dl>
|
|
13994
|
+
<dd>
|
|
13995
|
+
|
|
13996
|
+
Validate and prepare an enabled action without executing it, returning a server-issued execution identifier.
|
|
13997
|
+
|
|
13998
|
+
Use a writable scoped credential belonging to this Harbor. An administrator must
|
|
13999
|
+
first enable the destination Connection, operation, and input fields. Select an
|
|
14000
|
+
identity with [List actions](../../../../../api-reference/harbors/actions/list), then inspect
|
|
14001
|
+
its fields with [Describe action](../../../../../api-reference/harbors/actions/describe).
|
|
14002
|
+
|
|
14003
|
+
Preparation validates and temporarily stores the exact destination, lookup, and
|
|
14004
|
+
input. It returns a server-generated `execution_id` and `expires_at`. You do not
|
|
14005
|
+
supply an execution UUID. Preparation neither performs nor approves a destination
|
|
14006
|
+
mutation. Call [Execute action](../../../../../api-reference/harbors/actions/execute) with only
|
|
14007
|
+
the returned identifier within 15 minutes. Polytomic checks current permissions,
|
|
14008
|
+
provider capabilities, and the saved Connection again at execution.
|
|
14009
|
+
|
|
14010
|
+
Supply one advertised lookup when `lookup_fields` is nonempty. Otherwise omit
|
|
14011
|
+
`lookup`. Omitted input fields remain unchanged. Explicit `null` requires
|
|
14012
|
+
`nullable: true`. Empty and blank strings follow the advertised constraints.
|
|
14013
|
+
Values are JSON scalars; arrays, nested objects, and type coercion are unsupported.
|
|
14014
|
+
Numbers must use integer JSON notation, without a decimal point or exponent, and
|
|
14015
|
+
lie between -9007199254740991 and 9007199254740991. Preserve opaque IDs as strings.
|
|
14016
|
+
Unknown envelope properties, duplicate keys, invalid Unicode, trailing JSON, and
|
|
14017
|
+
bodies larger than 256 KiB are rejected.
|
|
14018
|
+
|
|
14019
|
+
## Lifetime and recovery
|
|
14020
|
+
|
|
14021
|
+
Prepared arguments are fixed for that identifier. Polytomic removes them when
|
|
14022
|
+
execution is claimed and periodically cleans up expired, unexecuted preparations.
|
|
14023
|
+
Execution receipts and Activity event metadata contain no submitted values.
|
|
14024
|
+
Polytomic retains a separate encrypted copy of the target and submitted values
|
|
14025
|
+
for 90 days from preparation. Only Organization administrators can reveal these
|
|
14026
|
+
details in the audit ledger. MCP receipts do not expose them. This evidence
|
|
14027
|
+
records your request, not a verified before-and-after record state.
|
|
14028
|
+
Preparation alone does not create an execution receipt.
|
|
14029
|
+
|
|
14030
|
+
If the preparation response is lost, you may prepare again: no destination
|
|
14031
|
+
mutation occurred. Each preparation creates a distinct execution identifier.
|
|
14032
|
+
|
|
14033
|
+
> ⚠️ Preserve the identifier after execution
|
|
14034
|
+
>
|
|
14035
|
+
> After submitting an execution, use its original `execution_id` to investigate
|
|
14036
|
+
> an uncertain outcome. Do not prepare a replacement action to retry it.
|
|
14037
|
+
|
|
14038
|
+
Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP request.
|
|
14039
|
+
MCP supplies this transport header automatically. `X-Polytomic-Harbor-Session` is
|
|
14040
|
+
optional for direct REST requests; a supplied session must be active and bound
|
|
14041
|
+
to your credential and Harbor. Preparation is recorded as `action.prepared`,
|
|
14042
|
+
with its original actor and execution identifier. Expired, unexecuted
|
|
14043
|
+
preparations are recorded as `action.preparation_expired`. Execution records its
|
|
14044
|
+
own actor and attempt separately.
|
|
14045
|
+
</dd>
|
|
14046
|
+
</dl>
|
|
14047
|
+
</dd>
|
|
14048
|
+
</dl>
|
|
14049
|
+
|
|
14050
|
+
#### 🔌 Usage
|
|
14051
|
+
|
|
14052
|
+
<dl>
|
|
14053
|
+
<dd>
|
|
14054
|
+
|
|
14055
|
+
<dl>
|
|
14056
|
+
<dd>
|
|
14057
|
+
|
|
14058
|
+
```typescript
|
|
14059
|
+
await client.harbors.actions.prepare("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
14060
|
+
connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
14061
|
+
input: {
|
|
14062
|
+
"key": "value"
|
|
14063
|
+
},
|
|
14064
|
+
operation_id: "operation_id",
|
|
14065
|
+
schema_id: "schema_id"
|
|
14066
|
+
});
|
|
14067
|
+
|
|
14068
|
+
```
|
|
14069
|
+
</dd>
|
|
14070
|
+
</dl>
|
|
14071
|
+
</dd>
|
|
14072
|
+
</dl>
|
|
14073
|
+
|
|
14074
|
+
#### ⚙️ Parameters
|
|
14075
|
+
|
|
14076
|
+
<dl>
|
|
14077
|
+
<dd>
|
|
14078
|
+
|
|
14079
|
+
<dl>
|
|
14080
|
+
<dd>
|
|
14081
|
+
|
|
14082
|
+
**harbor_id:** `string` — Unique identifier of the Harbor.
|
|
14083
|
+
|
|
14084
|
+
</dd>
|
|
14085
|
+
</dl>
|
|
14086
|
+
|
|
14087
|
+
<dl>
|
|
14088
|
+
<dd>
|
|
14089
|
+
|
|
14090
|
+
**request:** `Polytomic.harbors.PrepareHarborActionRequest`
|
|
14091
|
+
|
|
14092
|
+
</dd>
|
|
14093
|
+
</dl>
|
|
14094
|
+
|
|
14095
|
+
<dl>
|
|
14096
|
+
<dd>
|
|
14097
|
+
|
|
14098
|
+
**requestOptions:** `ActionsClient.IdempotentRequestOptions`
|
|
14099
|
+
|
|
14100
|
+
</dd>
|
|
14101
|
+
</dl>
|
|
14102
|
+
</dd>
|
|
14103
|
+
</dl>
|
|
14104
|
+
|
|
14105
|
+
|
|
13174
14106
|
</dd>
|
|
13175
14107
|
</dl>
|
|
13176
14108
|
</details>
|