polytomic 25.9.7 → 25.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +3 -0
  3. package/Client.js +21 -16
  4. package/api/resources/bulkSync/client/Client.d.ts +2 -0
  5. package/api/resources/bulkSync/client/Client.js +6 -0
  6. package/api/resources/connections/client/Client.d.ts +42 -0
  7. package/api/resources/connections/client/Client.js +42 -0
  8. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +42 -0
  9. package/api/resources/connections/resources/sharedConnections/client/Client.js +42 -0
  10. package/api/resources/harbors/client/Client.d.ts +3 -0
  11. package/api/resources/harbors/client/Client.js +5 -0
  12. package/api/resources/harbors/exports.d.ts +1 -0
  13. package/api/resources/harbors/exports.js +1 -0
  14. package/api/resources/harbors/index.d.ts +1 -0
  15. package/api/resources/harbors/index.js +1 -0
  16. package/api/resources/harbors/resources/actions/client/Client.d.ts +345 -0
  17. package/api/resources/harbors/resources/actions/client/Client.js +652 -0
  18. package/api/resources/harbors/resources/actions/client/index.d.ts +1 -0
  19. package/api/resources/harbors/resources/actions/client/index.js +17 -0
  20. package/api/resources/harbors/resources/actions/client/requests/ActionsDescribeRequest.d.ts +15 -0
  21. package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.d.ts +8 -0
  22. package/api/resources/harbors/resources/actions/client/requests/ActionsGetExecutionRequest.js +3 -0
  23. package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.d.ts +17 -0
  24. package/api/resources/harbors/resources/actions/client/requests/ActionsListRequest.js +3 -0
  25. package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.d.ts +12 -0
  26. package/api/resources/harbors/resources/actions/client/requests/ExecuteHarborActionRequest.js +3 -0
  27. package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.d.ts +23 -0
  28. package/api/resources/harbors/resources/actions/client/requests/LookupHarborActionRequest.js +3 -0
  29. package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.d.ts +24 -0
  30. package/api/resources/harbors/resources/actions/client/requests/PrepareHarborActionRequest.js +3 -0
  31. package/api/resources/harbors/resources/actions/client/requests/index.d.ts +6 -0
  32. package/api/resources/harbors/resources/actions/client/requests/index.js +2 -0
  33. package/api/resources/harbors/resources/actions/exports.d.ts +2 -0
  34. package/api/resources/harbors/resources/actions/exports.js +21 -0
  35. package/api/resources/harbors/resources/actions/index.d.ts +1 -0
  36. package/api/resources/harbors/resources/actions/index.js +17 -0
  37. package/api/resources/harbors/resources/index.d.ts +2 -0
  38. package/api/resources/harbors/resources/index.js +41 -0
  39. package/api/resources/index.d.ts +2 -0
  40. package/api/resources/index.js +3 -1
  41. package/api/resources/modelSync/client/Client.d.ts +2 -2
  42. package/api/resources/modelSync/client/Client.js +1 -1
  43. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
  44. package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +3 -0
  45. package/api/resources/modelSync/client/requests/index.d.ts +1 -1
  46. package/api/resources/operations/client/Client.d.ts +102 -0
  47. package/api/resources/operations/client/Client.js +233 -0
  48. package/api/resources/operations/client/index.d.ts +1 -0
  49. package/api/resources/operations/client/index.js +17 -0
  50. package/api/resources/operations/client/requests/SearchOperationsRequest.d.ts +14 -0
  51. package/api/resources/operations/client/requests/SearchOperationsRequest.js +3 -0
  52. package/api/resources/operations/client/requests/index.d.ts +1 -0
  53. package/api/resources/operations/client/requests/index.js +2 -0
  54. package/api/resources/operations/exports.d.ts +2 -0
  55. package/api/resources/operations/exports.js +21 -0
  56. package/api/resources/operations/index.d.ts +1 -0
  57. package/api/resources/operations/index.js +17 -0
  58. package/api/resources/organization/client/Client.d.ts +1 -1
  59. package/api/resources/organization/client/Client.js +1 -1
  60. package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +2 -0
  61. package/api/resources/temporaryCredentials/client/Client.d.ts +6 -6
  62. package/api/resources/temporaryCredentials/client/Client.js +6 -6
  63. package/api/types/ActionLookup.d.ts +4 -0
  64. package/api/types/ActionLookup.js +3 -0
  65. package/api/types/CompletionValue.d.ts +5 -0
  66. package/api/types/CompletionValue.js +3 -0
  67. package/api/types/ConnectionResponseSchema.d.ts +15 -0
  68. package/api/types/FieldConfiguration.d.ts +2 -0
  69. package/api/types/HarborActionCapability.d.ts +12 -0
  70. package/api/types/HarborActionCapability.js +3 -0
  71. package/api/types/HarborActionDescribeEnvelope.d.ts +4 -0
  72. package/api/types/HarborActionDescribeEnvelope.js +3 -0
  73. package/api/types/HarborActionExecutionEnvelope.d.ts +4 -0
  74. package/api/types/HarborActionExecutionEnvelope.js +3 -0
  75. package/api/types/HarborActionExecutionResponse.d.ts +28 -0
  76. package/api/types/HarborActionExecutionResponse.js +13 -0
  77. package/api/types/HarborActionField.d.ts +14 -0
  78. package/api/types/HarborActionField.js +3 -0
  79. package/api/types/HarborActionListEnvelope.d.ts +10 -0
  80. package/api/types/HarborActionListEnvelope.js +3 -0
  81. package/api/types/HarborActionLookupEnvelope.d.ts +4 -0
  82. package/api/types/HarborActionLookupEnvelope.js +3 -0
  83. package/api/types/HarborActionPreparation.d.ts +4 -0
  84. package/api/types/HarborActionPreparation.js +3 -0
  85. package/api/types/HarborActionPreparationEnvelope.d.ts +4 -0
  86. package/api/types/HarborActionPreparationEnvelope.js +3 -0
  87. package/api/types/HarborActionSummary.d.ts +7 -0
  88. package/api/types/HarborActionSummary.js +3 -0
  89. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +7 -0
  90. package/api/types/IdentityCredentialHarborSchema.d.ts +2 -0
  91. package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
  92. package/api/types/ModelSyncSourceIdentity.js +3 -0
  93. package/api/types/OperationMatch.d.ts +16 -0
  94. package/api/types/OperationMatch.js +3 -0
  95. package/api/types/OperationSearchAvailabilityEnvelope.d.ts +11 -0
  96. package/api/types/OperationSearchAvailabilityEnvelope.js +3 -0
  97. package/api/types/OperationSearchRateLimit.d.ts +15 -0
  98. package/api/types/OperationSearchRateLimit.js +13 -0
  99. package/api/types/OperationSearchResult.d.ts +9 -0
  100. package/api/types/OperationSearchResult.js +3 -0
  101. package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
  102. package/api/types/SchemaConfiguration.d.ts +2 -0
  103. package/api/types/SchemaOperationIdempotency.d.ts +5 -0
  104. package/api/types/SchemaOperationIdempotency.js +3 -0
  105. package/api/types/SchemaRecord.d.ts +1 -0
  106. package/api/types/SchemaRecord.js +3 -0
  107. package/api/types/SearchOperationsEnvelope.d.ts +4 -0
  108. package/api/types/SearchOperationsEnvelope.js +3 -0
  109. package/api/types/SearchOperationsResponse.d.ts +7 -0
  110. package/api/types/SearchOperationsResponse.js +3 -0
  111. package/api/types/TemporaryCredentialSubject.d.ts +7 -7
  112. package/api/types/TemporaryCredentialSubject.js +3 -3
  113. package/api/types/TimeDuration.d.ts +1 -0
  114. package/api/types/TimeDuration.js +3 -0
  115. package/api/types/Webhook.d.ts +2 -0
  116. package/api/types/index.d.ts +22 -0
  117. package/api/types/index.js +22 -0
  118. package/package.json +1 -1
  119. package/reference.md +940 -8
  120. package/version.d.ts +1 -1
  121. package/version.js +1 -1
  122. package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +0 -9
  123. /package/api/resources/{modelSync/client/requests/StartSyncRequest.js → harbors/resources/actions/client/requests/ActionsDescribeRequest.js} +0 -0
@@ -0,0 +1,345 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
3
+ import * as core from "../../../../../../core";
4
+ import type * as Polytomic from "../../../../../index";
5
+ export declare namespace ActionsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ export declare class ActionsClient {
13
+ protected readonly _options: NormalizedClientOptionsWithAuth<ActionsClient.Options>;
14
+ constructor(options?: ActionsClient.Options);
15
+ /**
16
+ * Read a metadata-only action receipt without resubmitting the action.
17
+ *
18
+ * Use a currently valid scoped credential belonging to the original Harbor. The
19
+ * receipt remains readable after the action or rollout feature is disabled. A
20
+ * credential from another Harbor cannot inspect it. The response does not contain
21
+ * lookup values, input values, output payloads, credential secrets, or raw provider
22
+ * errors. It includes structured operation identity, lookup field names, submitted
23
+ * field names, and the original credential ID.
24
+ *
25
+ * An overdue executing receipt transitions atomically to `unknown`; this read
26
+ * never invokes the destination provider. Stop polling at `succeeded`, `failed`, or `unknown`.
27
+ * Unknown is terminal for this execution identifier and means the update may have
28
+ * happened. Investigate rather than preparing a replacement action to retry.
29
+ *
30
+ * Preparation alone has no execution receipt. A `404 Not Found` after an uncertain
31
+ * execution does not prove the operation never happened.
32
+ *
33
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. Direct REST requests
34
+ * may omit `X-Polytomic-Harbor-Session`; a supplied session must be active and bound
35
+ * to the same credential and Harbor.
36
+ *
37
+ * @param {string} harbor_id - Unique identifier of the Harbor.
38
+ * @param {string} execution_id
39
+ * @param {Polytomic.harbors.ActionsGetExecutionRequest} request
40
+ * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link errors.PolytomicError}
43
+ * @throws {@link errors.PolytomicTimeoutError}
44
+ *
45
+ * @example
46
+ * await client.harbors.actions.getExecution("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
47
+ */
48
+ getExecution(harbor_id: string, execution_id: string, request?: Polytomic.harbors.ActionsGetExecutionRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionExecutionEnvelope>;
49
+ private __getExecution;
50
+ /**
51
+ * List a page of configured action identities without loading provider capabilities or field metadata.
52
+ *
53
+ * Use a scoped credential belonging to this Harbor. An administrator must first
54
+ * select Connections and explicitly enable object operations and fields. These
55
+ * grants apply to existing and future eligible Harbor credentials without changing
56
+ * read access. Newly available objects and fields remain disabled until selected.
57
+ *
58
+ * Each entry identifies a configured operation by `connection_id`, `schema_id`, and
59
+ * `operation_id`. Search filters those identities. Follow
60
+ * `pagination.next_page_token` with the same search to read additional pages.
61
+ * Pages contain saved identities without field metadata or provider capability
62
+ * checks. `unavailable: true` means the saved Connection is unavailable for actions;
63
+ * its permissions remain saved and revocable. An available Connection does not
64
+ * confirm that its operations or granted fields are currently available.
65
+ *
66
+ * Use [Describe action](../../../../api-reference/harbors/actions/describe) for the selected
67
+ * operation before looking up a record or
68
+ * [preparing an action](../../../../api-reference/harbors/actions/prepare). Description checks
69
+ * current provider capabilities and returns the operation's `effect` (`read_only`
70
+ * or `mutating`) and effective granted fields.
71
+ * Always submit the intended Connection explicitly when looking up or preparing,
72
+ * even if only one is enabled. If several destinations match your intent, clarify
73
+ * which one to use.
74
+ *
75
+ * Read-only operations use [Lookup action](../../../../api-reference/harbors/actions/lookup)
76
+ * without preparation or approval. Salesforce and HubSpot support exact lookups by
77
+ * their canonical record ID. Listing does not grant additional permissions or
78
+ * authorize mutations by a read-only credential.
79
+ *
80
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. For direct REST
81
+ * requests, `X-Polytomic-Harbor-Session` is optional. If supplied, the session must
82
+ * be active and bound to the credential and Harbor. Discovery is recorded as
83
+ * `action.listed`; no response is returned if that event cannot be recorded.
84
+ *
85
+ * @param {string} harbor_id - Unique identifier of the Harbor.
86
+ * @param {Polytomic.harbors.ActionsListRequest} request
87
+ * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link errors.PolytomicError}
90
+ * @throws {@link errors.PolytomicTimeoutError}
91
+ *
92
+ * @example
93
+ * await client.harbors.actions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
94
+ * search: "search",
95
+ * page_token: "page_token",
96
+ * limit: 1
97
+ * })
98
+ */
99
+ list(harbor_id: string, request?: Polytomic.harbors.ActionsListRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionListEnvelope>;
100
+ private __list;
101
+ /**
102
+ * Describe one granted operation and its currently available enabled fields.
103
+ *
104
+ * Select an identity from [List actions](../../../../../api-reference/harbors/actions/list).
105
+ * Supply its `connection_id`, `schema_id`, and `operation_id`. Use a scoped
106
+ * credential belonging to this Harbor; description does not require write access.
107
+ *
108
+ * `effect` identifies an operation as `read_only` or `mutating`. For read-only
109
+ * operations, `lookup_fields` and `output_fields` contain only fields both granted
110
+ * by the administrator and currently available through the Connection.
111
+ * `input_fields` is empty. Use
112
+ * [Lookup action](../../../../../api-reference/harbors/actions/lookup) to return one projected
113
+ * record without preparation.
114
+ *
115
+ * For mutations, `input_fields` contains only granted, currently available fields.
116
+ * `lookup_fields` and `output_fields` describe the connector's lookup and output.
117
+ * Fields retain their types, constraints, required flags, and nullability. Supply
118
+ * exactly one lookup when `lookup_fields` is nonempty; otherwise omit it. Omitted
119
+ * input fields remain unchanged. Explicit null requires `nullable: true`.
120
+ *
121
+ * For mutations, `idempotency` describes remote deduplication, not permission to
122
+ * retry. Harbor write receipts remain metadata-only.
123
+ *
124
+ * A provider discovery failure or a granted operation that is no longer available
125
+ * returns `503 Service Unavailable`, not an empty field list. An ungranted identity
126
+ * returns `403 Forbidden`. These responses do not revoke saved permissions.
127
+ * Polytomic checks current grants and provider capabilities again at execution.
128
+ *
129
+ * Description fetches only the selected object's operations. It does not fetch
130
+ * fields for the entire catalog. Lookup permissions are checked against fresh
131
+ * provider metadata. Provider permissions and automation still apply.
132
+ *
133
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. A supplied
134
+ * `X-Polytomic-Harbor-Session` must be active and bound to this credential and
135
+ * Harbor. Successful description is recorded as `action.listed`.
136
+ *
137
+ * @param {string} harbor_id - Unique identifier of the Harbor.
138
+ * @param {Polytomic.harbors.ActionsDescribeRequest} request
139
+ * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link errors.PolytomicError}
142
+ * @throws {@link errors.PolytomicTimeoutError}
143
+ *
144
+ * @example
145
+ * await client.harbors.actions.describe("248df4b7-aa70-47b8-a036-33ac447e668d", {
146
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
147
+ * schema_id: "schema_id",
148
+ * operation_id: "operation_id"
149
+ * })
150
+ */
151
+ describe(harbor_id: string, request: Polytomic.harbors.ActionsDescribeRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionDescribeEnvelope>;
152
+ private __describe;
153
+ /**
154
+ * Execute a prepared action with at most one application attempt per server-issued execution identifier.
155
+ *
156
+ * First call [Prepare action](../../../../../api-reference/harbors/actions/prepare). Submit only
157
+ * its server-issued `execution_id` using a writable scoped credential belonging to
158
+ * the same Harbor. The destination, operation, lookup, and input are fixed by
159
+ * preparation. No per-request approval is required.
160
+ *
161
+ * Polytomic checks current grants, provider capabilities, and the saved Connection
162
+ * again before execution. Preparation does not reserve permission. An expired
163
+ * preparation cannot start an execution. It returns `410 Gone` while the expired
164
+ * preparation remains available, or `404 Not Found` after cleanup.
165
+ *
166
+ * > 🚧 Updates can overwrite intervening edits
167
+ * >
168
+ * > Enabled operations can act on records accessible through the saved Connection
169
+ * > and may trigger provider automation. Preparation does not lock the destination
170
+ * > record. Action permission does not grant read access.
171
+ *
172
+ * ## One intended attempt
173
+ *
174
+ * An identifier already claimed for execution returns its original receipt,
175
+ * including through another eligible credential or after action disablement.
176
+ * Receipts remain available after prepared arguments are removed or expire.
177
+ * They are retained independently of Activity history.
178
+ *
179
+ * An `action.attempt_started` event means permission to attempt the action was
180
+ * claimed, not that the provider received it. Disabling actions blocks new claims
181
+ * but does not recall an accepted attempt. This is at most one application attempt
182
+ * per execution identifier, not a remote exactly-once guarantee. Advertised remote
183
+ * idempotency does not authorize automatic replay.
184
+ *
185
+ * ## Results and recovery
186
+ *
187
+ * Keep `execution_id` and the returned `status_path`. `succeeded` means the provider
188
+ * confirmed the operation and Polytomic recorded that outcome. `failed` means the
189
+ * operation was rejected. `executing` is incomplete. `recovery_required: true`
190
+ * does not confirm durable acceptance or completion. Use the status path after a
191
+ * timeout or server error. A missing receipt does not prove no operation occurred.
192
+ *
193
+ * > ⚠️ An unknown outcome is terminal
194
+ * >
195
+ * > `unknown` means the operation may have happened. Investigate the record and
196
+ * > provider automation. Do not resubmit or prepare a replacement action to retry.
197
+ * > Polytomic never automatically retries an uncertain attempt. An overdue
198
+ * > executing receipt becomes unknown after its 90-second deadline.
199
+ *
200
+ * Send a separate nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP
201
+ * request. MCP supplies this transport header automatically.
202
+ * `X-Polytomic-Harbor-Session` is optional for direct REST requests; a supplied
203
+ * session must be active and bound to your credential and Harbor. Receipts and
204
+ * Activity contain operation identity, lookup field names, submitted field names,
205
+ * original attribution, and safe outcome categories. They exclude lookup values,
206
+ * input values, output payloads, and raw provider errors.
207
+ *
208
+ * @param {string} harbor_id - Unique identifier of the Harbor.
209
+ * @param {Polytomic.harbors.ExecuteHarborActionRequest} request
210
+ * @param {ActionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
211
+ *
212
+ * @throws {@link errors.PolytomicError}
213
+ * @throws {@link errors.PolytomicTimeoutError}
214
+ *
215
+ * @example
216
+ * await client.harbors.actions.execute("248df4b7-aa70-47b8-a036-33ac447e668d", {
217
+ * execution_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
218
+ * })
219
+ */
220
+ execute(harbor_id: string, request: Polytomic.harbors.ExecuteHarborActionRequest, requestOptions?: ActionsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionExecutionEnvelope>;
221
+ private __execute;
222
+ /**
223
+ * Look up exactly one record using a granted read-only Harbor action.
224
+ *
225
+ * Use a scoped credential belonging to this Harbor, including a read-only
226
+ * credential. An administrator must grant the Connection, read-only operation,
227
+ * lookup field, and returned fields. Select an identity with
228
+ * [List actions](../../../../../api-reference/harbors/actions/list), then inspect its effective
229
+ * lookup and output fields with
230
+ * [Describe action](../../../../../api-reference/harbors/actions/describe).
231
+ *
232
+ * Polytomic checks current grants and provider capabilities on each lookup. The
233
+ * response contains one record under `data`, limited to the selected fields.
234
+ * Omitting `fields` returns all currently available granted outputs;
235
+ * new provider fields remain excluded until an administrator grants them.
236
+ * Salesforce uses `Id`; HubSpot uses `hs_object_id`. Preserve these IDs as strings.
237
+ * Alternate keys, fuzzy matches, search, and batching are unsupported.
238
+ *
239
+ * A definite absence returns `404 Not Found`. More than one exact match returns
240
+ * `409 Conflict`. Invalid selections return `400 Bad Request`; unavailable
241
+ * capabilities or provider failures return `503 Service Unavailable`. Errors do
242
+ * not include lookup values or provider response bodies.
243
+ *
244
+ * This request is synchronous and read-only. It requires no preparation, approval,
245
+ * execution identifier, or status polling. It creates no write receipt or private
246
+ * write evidence. Harbor Activity records `action.looked_up` with field names and
247
+ * an outcome, never the lookup value or returned values. If Activity cannot be
248
+ * recorded, Polytomic returns no record.
249
+ *
250
+ * Unknown properties, duplicate keys, invalid Unicode, trailing JSON, and bodies
251
+ * larger than 256 KiB are rejected. Lookup values must be JSON scalars. Numeric
252
+ * values must use integer notation within +/-9007199254740991.
253
+ *
254
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each request.
255
+ * `X-Polytomic-Harbor-Session` is optional for direct REST requests. A supplied
256
+ * session must be active and bound to your credential and Harbor.
257
+ *
258
+ * @param {string} harbor_id - Unique identifier of the Harbor.
259
+ * @param {Polytomic.harbors.LookupHarborActionRequest} request
260
+ * @param {ActionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
261
+ *
262
+ * @throws {@link errors.PolytomicError}
263
+ * @throws {@link errors.PolytomicTimeoutError}
264
+ *
265
+ * @example
266
+ * await client.harbors.actions.lookup("248df4b7-aa70-47b8-a036-33ac447e668d", {
267
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
268
+ * lookup: {},
269
+ * operation_id: "operation_id",
270
+ * schema_id: "schema_id"
271
+ * })
272
+ */
273
+ lookup(harbor_id: string, request: Polytomic.harbors.LookupHarborActionRequest, requestOptions?: ActionsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionLookupEnvelope>;
274
+ private __lookup;
275
+ /**
276
+ * Validate and prepare an enabled action without executing it, returning a server-issued execution identifier.
277
+ *
278
+ * Use a writable scoped credential belonging to this Harbor. An administrator must
279
+ * first enable the destination Connection, operation, and input fields. Select an
280
+ * identity with [List actions](../../../../../api-reference/harbors/actions/list), then inspect
281
+ * its fields with [Describe action](../../../../../api-reference/harbors/actions/describe).
282
+ *
283
+ * Preparation validates and temporarily stores the exact destination, lookup, and
284
+ * input. It returns a server-generated `execution_id` and `expires_at`. You do not
285
+ * supply an execution UUID. Preparation neither performs nor approves a destination
286
+ * mutation. Call [Execute action](../../../../../api-reference/harbors/actions/execute) with only
287
+ * the returned identifier within 15 minutes. Polytomic checks current permissions,
288
+ * provider capabilities, and the saved Connection again at execution.
289
+ *
290
+ * Supply one advertised lookup when `lookup_fields` is nonempty. Otherwise omit
291
+ * `lookup`. Omitted input fields remain unchanged. Explicit `null` requires
292
+ * `nullable: true`. Empty and blank strings follow the advertised constraints.
293
+ * Values are JSON scalars; arrays, nested objects, and type coercion are unsupported.
294
+ * Numbers must use integer JSON notation, without a decimal point or exponent, and
295
+ * lie between -9007199254740991 and 9007199254740991. Preserve opaque IDs as strings.
296
+ * Unknown envelope properties, duplicate keys, invalid Unicode, trailing JSON, and
297
+ * bodies larger than 256 KiB are rejected.
298
+ *
299
+ * ## Lifetime and recovery
300
+ *
301
+ * Prepared arguments are fixed for that identifier. Polytomic removes them when
302
+ * execution is claimed and periodically cleans up expired, unexecuted preparations.
303
+ * Execution receipts and Activity event metadata contain no submitted values.
304
+ * Polytomic retains a separate encrypted copy of the target and submitted values
305
+ * for 90 days from preparation. Only Organization administrators can reveal these
306
+ * details in the audit ledger. MCP receipts do not expose them. This evidence
307
+ * records your request, not a verified before-and-after record state.
308
+ * Preparation alone does not create an execution receipt.
309
+ *
310
+ * If the preparation response is lost, you may prepare again: no destination
311
+ * mutation occurred. Each preparation creates a distinct execution identifier.
312
+ *
313
+ * > ⚠️ Preserve the identifier after execution
314
+ * >
315
+ * > After submitting an execution, use its original `execution_id` to investigate
316
+ * > an uncertain outcome. Do not prepare a replacement action to retry it.
317
+ *
318
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID` for each HTTP request.
319
+ * MCP supplies this transport header automatically. `X-Polytomic-Harbor-Session` is
320
+ * optional for direct REST requests; a supplied session must be active and bound
321
+ * to your credential and Harbor. Preparation is recorded as `action.prepared`,
322
+ * with its original actor and execution identifier. Expired, unexecuted
323
+ * preparations are recorded as `action.preparation_expired`. Execution records its
324
+ * own actor and attempt separately.
325
+ *
326
+ * @param {string} harbor_id - Unique identifier of the Harbor.
327
+ * @param {Polytomic.harbors.PrepareHarborActionRequest} request
328
+ * @param {ActionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link errors.PolytomicError}
331
+ * @throws {@link errors.PolytomicTimeoutError}
332
+ *
333
+ * @example
334
+ * await client.harbors.actions.prepare("248df4b7-aa70-47b8-a036-33ac447e668d", {
335
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
336
+ * input: {
337
+ * "key": "value"
338
+ * },
339
+ * operation_id: "operation_id",
340
+ * schema_id: "schema_id"
341
+ * })
342
+ */
343
+ prepare(harbor_id: string, request: Polytomic.harbors.PrepareHarborActionRequest, requestOptions?: ActionsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionPreparationEnvelope>;
344
+ private __prepare;
345
+ }