polytomic 25.9.12 → 25.9.13

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 (229) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +0 -3
  3. package/Client.js +38 -43
  4. package/api/resources/bulkSync/client/Client.d.ts +42 -18
  5. package/api/resources/bulkSync/client/Client.js +54 -22
  6. package/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.d.ts +10 -0
  7. package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
  8. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +17 -10
  9. package/api/resources/bulkSync/resources/executions/client/Client.js +17 -10
  10. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
  11. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +8 -0
  12. package/api/resources/bulkSync/resources/schedules/client/Client.js +8 -0
  13. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -0
  14. package/api/resources/connections/client/Client.d.ts +8 -7
  15. package/api/resources/connections/client/Client.js +8 -7
  16. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -1
  17. package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +5 -1
  18. package/api/resources/connections/resources/proxy/client/Client.d.ts +13 -2
  19. package/api/resources/connections/resources/proxy/client/Client.js +13 -2
  20. package/api/resources/events/client/Client.d.ts +10 -7
  21. package/api/resources/events/client/Client.js +10 -7
  22. package/api/resources/harbors/client/Client.d.ts +73 -1290
  23. package/api/resources/harbors/client/Client.js +108 -3353
  24. package/api/resources/harbors/client/requests/index.d.ts +0 -29
  25. package/api/resources/harbors/resources/actionConfiguration/client/Client.d.ts +267 -0
  26. package/api/resources/harbors/resources/actionConfiguration/client/Client.js +686 -0
  27. package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.d.ts} +1 -1
  28. package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.d.ts} +1 -1
  29. package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.d.ts +1 -1
  30. package/api/resources/harbors/resources/actionConfiguration/client/requests/index.d.ts +3 -0
  31. package/api/resources/harbors/resources/actionConfiguration/exports.d.ts +2 -0
  32. package/api/resources/harbors/resources/actionConfiguration/exports.js +21 -0
  33. package/api/resources/harbors/resources/actionConfiguration/index.d.ts +1 -0
  34. package/api/resources/harbors/resources/actionConfiguration/index.js +17 -0
  35. package/api/resources/harbors/resources/actions/client/Client.d.ts +4 -0
  36. package/api/resources/harbors/resources/actions/client/Client.js +4 -0
  37. package/api/resources/{activity → harbors/resources/activity}/client/Client.d.ts +11 -11
  38. package/api/resources/{activity → harbors/resources/activity}/client/Client.js +12 -12
  39. package/api/resources/harbors/resources/activity/client/index.d.ts +1 -0
  40. package/api/resources/harbors/resources/activity/client/index.js +17 -0
  41. package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityGetSessionRequest.d.ts +2 -2
  42. package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityListRequest.d.ts +2 -2
  43. package/api/resources/harbors/resources/activity/client/requests/index.js +2 -0
  44. package/api/resources/harbors/resources/connections/client/Client.d.ts +64 -0
  45. package/api/resources/harbors/resources/connections/client/Client.js +236 -0
  46. package/api/resources/harbors/resources/connections/client/index.d.ts +1 -0
  47. package/api/resources/harbors/resources/connections/client/index.js +17 -0
  48. package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.d.ts → resources/connections/client/requests/ConnectionsGetSchemaRequest.d.ts} +1 -1
  49. package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.d.ts → resources/connections/client/requests/ConnectionsListRequest.d.ts} +1 -1
  50. package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.d.ts → resources/connections/client/requests/ConnectionsListSchemasRequest.d.ts} +1 -1
  51. package/api/resources/harbors/resources/connections/client/requests/index.d.ts +3 -0
  52. package/api/resources/harbors/resources/connections/client/requests/index.js +2 -0
  53. package/api/resources/harbors/resources/connections/exports.d.ts +2 -0
  54. package/api/resources/harbors/resources/connections/exports.js +21 -0
  55. package/api/resources/harbors/resources/connections/index.d.ts +1 -0
  56. package/api/resources/harbors/resources/connections/index.js +17 -0
  57. package/api/resources/harbors/resources/contexts/client/Client.d.ts +395 -0
  58. package/api/resources/harbors/resources/contexts/client/Client.js +1142 -0
  59. package/api/resources/harbors/resources/contexts/client/index.d.ts +1 -0
  60. package/api/resources/harbors/resources/contexts/client/index.js +17 -0
  61. package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.d.ts → resources/contexts/client/requests/ContextsDeleteDraftRequest.d.ts} +1 -1
  62. package/api/resources/harbors/{client/requests/HarborsGetContextRequest.d.ts → resources/contexts/client/requests/ContextsDeleteRequest.d.ts} +1 -1
  63. package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.d.ts → resources/contexts/client/requests/ContextsGetDraftRequest.d.ts} +1 -1
  64. package/api/resources/harbors/resources/contexts/client/requests/ContextsGetRequest.d.ts +10 -0
  65. package/api/resources/harbors/resources/contexts/client/requests/ContextsGetVersionRequest.d.ts +10 -0
  66. package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.d.ts → resources/contexts/client/requests/ContextsListDraftsRequest.d.ts} +1 -1
  67. package/api/resources/harbors/{client/requests/HarborsListContextsRequest.d.ts → resources/contexts/client/requests/ContextsListRequest.d.ts} +1 -1
  68. package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.d.ts → resources/contexts/client/requests/ContextsListVersionsRequest.d.ts} +1 -1
  69. package/api/resources/harbors/resources/contexts/client/requests/ContextsPromoteDraftRequest.d.ts +10 -0
  70. package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.d.ts +6 -2
  71. package/api/resources/harbors/resources/contexts/client/requests/index.d.ts +14 -0
  72. package/api/resources/harbors/resources/contexts/client/requests/index.js +2 -0
  73. package/api/resources/harbors/resources/contexts/exports.d.ts +2 -0
  74. package/api/resources/harbors/resources/contexts/exports.js +21 -0
  75. package/api/resources/harbors/resources/contexts/index.d.ts +1 -0
  76. package/api/resources/harbors/resources/contexts/index.js +17 -0
  77. package/api/resources/harbors/resources/index.d.ts +15 -0
  78. package/api/resources/harbors/resources/index.js +16 -1
  79. package/api/resources/harbors/resources/keys/client/Client.d.ts +86 -0
  80. package/api/resources/harbors/resources/keys/client/Client.js +266 -0
  81. package/api/resources/harbors/resources/keys/client/index.d.ts +1 -0
  82. package/api/resources/harbors/resources/keys/client/index.js +17 -0
  83. package/api/resources/harbors/{client/requests/HarborsListKeysRequest.d.ts → resources/keys/client/requests/KeysListRequest.d.ts} +1 -1
  84. package/api/resources/harbors/resources/keys/client/requests/index.d.ts +1 -0
  85. package/api/resources/harbors/resources/keys/client/requests/index.js +2 -0
  86. package/api/resources/harbors/resources/keys/exports.d.ts +2 -0
  87. package/api/resources/harbors/resources/keys/exports.js +21 -0
  88. package/api/resources/harbors/resources/keys/index.d.ts +1 -0
  89. package/api/resources/harbors/resources/keys/index.js +17 -0
  90. package/api/resources/harbors/resources/savedQueries/client/Client.d.ts +430 -0
  91. package/api/resources/harbors/resources/savedQueries/client/Client.js +1008 -0
  92. package/api/resources/harbors/resources/savedQueries/client/index.d.ts +1 -0
  93. package/api/resources/harbors/resources/savedQueries/client/index.js +17 -0
  94. package/api/resources/harbors/{client → resources/savedQueries/client}/requests/CreateHarborSavedQueryDraftRequest.d.ts +1 -1
  95. package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.d.ts +1 -1
  96. package/api/resources/harbors/resources/savedQueries/client/requests/SavedQueriesGetRequest.d.ts +10 -0
  97. package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.d.ts} +1 -1
  98. package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListRequest.d.ts} +1 -1
  99. package/api/resources/harbors/resources/savedQueries/client/requests/index.d.ts +6 -0
  100. package/api/resources/harbors/resources/savedQueries/client/requests/index.js +2 -0
  101. package/api/resources/harbors/resources/savedQueries/exports.d.ts +2 -0
  102. package/api/resources/harbors/resources/savedQueries/exports.js +21 -0
  103. package/api/resources/harbors/resources/savedQueries/index.d.ts +1 -0
  104. package/api/resources/harbors/resources/savedQueries/index.js +17 -0
  105. package/api/resources/harbors/resources/users/client/Client.d.ts +105 -0
  106. package/api/resources/harbors/resources/users/client/Client.js +342 -0
  107. package/api/resources/harbors/resources/users/client/index.d.ts +1 -0
  108. package/api/resources/harbors/resources/users/client/index.js +17 -0
  109. package/api/resources/harbors/{client/requests/HarborsListUsersRequest.d.ts → resources/users/client/requests/UsersListRequest.d.ts} +1 -1
  110. package/api/resources/harbors/resources/users/client/requests/UsersListRequest.js +3 -0
  111. package/api/resources/harbors/resources/users/client/requests/index.d.ts +2 -0
  112. package/api/resources/harbors/resources/users/client/requests/index.js +2 -0
  113. package/api/resources/harbors/resources/users/exports.d.ts +2 -0
  114. package/api/resources/harbors/resources/users/exports.js +21 -0
  115. package/api/resources/harbors/resources/users/index.d.ts +1 -0
  116. package/api/resources/harbors/resources/users/index.js +17 -0
  117. package/api/resources/index.d.ts +0 -3
  118. package/api/resources/index.js +1 -4
  119. package/api/resources/modelSync/resources/executions/client/Client.d.ts +12 -6
  120. package/api/resources/modelSync/resources/executions/client/Client.js +12 -6
  121. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
  122. package/api/resources/models/client/Client.d.ts +2 -8
  123. package/api/resources/models/client/Client.js +2 -8
  124. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -2
  125. package/api/resources/permissions/resources/policies/client/Client.js +10 -2
  126. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +5 -1
  127. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +5 -1
  128. package/api/resources/recordViewLinks/client/Client.d.ts +5 -0
  129. package/api/resources/recordViewLinks/client/Client.js +5 -0
  130. package/api/resources/schemas/client/Client.d.ts +4 -11
  131. package/api/resources/schemas/client/Client.js +4 -11
  132. package/api/resources/temporaryCredentials/client/Client.d.ts +3 -0
  133. package/api/resources/temporaryCredentials/client/Client.js +3 -0
  134. package/api/resources/users/client/Client.d.ts +30 -15
  135. package/api/resources/users/client/Client.js +30 -15
  136. package/api/resources/webhooks/client/Client.d.ts +7 -7
  137. package/api/resources/webhooks/client/Client.js +7 -7
  138. package/api/types/BulkBulkSyncSchedule.d.ts +0 -1
  139. package/api/types/BulkSchema.d.ts +2 -0
  140. package/api/types/BulkSelectiveMode.d.ts +9 -0
  141. package/api/types/BulkSelectiveMode.js +9 -0
  142. package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +0 -1
  143. package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +0 -1
  144. package/api/types/BulkSyncDest.d.ts +2 -0
  145. package/api/types/BulkSyncScheduleApi.d.ts +0 -1
  146. package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
  147. package/api/types/ConnectAccessLevel.d.ts +5 -0
  148. package/api/types/ConnectAccessLevel.js +8 -0
  149. package/api/types/ConnectionType.d.ts +2 -0
  150. package/api/types/EventPayload.d.ts +1 -1
  151. package/api/types/EventingBulkSyncCanceledEvent.d.ts +5 -2
  152. package/api/types/EventingBulkSyncCompletedEvent.d.ts +5 -2
  153. package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +5 -2
  154. package/api/types/EventingBulkSyncFailedEvent.d.ts +5 -2
  155. package/api/types/EventingBulkSyncRunningEvent.d.ts +5 -2
  156. package/api/types/EventingBulkSyncSchedule.d.ts +1 -1
  157. package/api/types/EventingIngestionRecoveredEvent.d.ts +17 -0
  158. package/api/types/EventingIngestionRecoveredEvent.js +3 -0
  159. package/api/types/EventingIngestionStalledEvent.d.ts +19 -0
  160. package/api/types/EventingIngestionStalledEvent.js +3 -0
  161. package/api/types/EventingSyncCanceledEvent.d.ts +5 -2
  162. package/api/types/EventingSyncCompletedEvent.d.ts +6 -3
  163. package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +5 -2
  164. package/api/types/EventingSyncFailedEvent.d.ts +5 -2
  165. package/api/types/EventingSyncRunningEvent.d.ts +5 -2
  166. package/api/types/HarborStatusScheduleResponse.d.ts +0 -1
  167. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +2 -2
  168. package/api/types/SchemaConfiguration.d.ts +2 -0
  169. package/api/types/index.d.ts +3 -0
  170. package/api/types/index.js +3 -0
  171. package/package.json +1 -1
  172. package/reference.md +2696 -2580
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +0 -10
  176. package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +0 -10
  177. package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +0 -10
  178. package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +0 -10
  179. /package/api/resources/{activity/client/requests/ActivityGetSessionRequest.js → bulkSync/client/requests/BulkSyncGetDestinationRequest.js} +0 -0
  180. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.d.ts +0 -0
  181. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.js +0 -0
  182. /package/api/resources/{activity/client/requests/ActivityListRequest.js → harbors/resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.js} +0 -0
  183. /package/api/resources/harbors/{client/requests/CreateHarborContextDraftRequest.js → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.js} +0 -0
  184. /package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.js +0 -0
  185. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/requests/index.js +0 -0
  186. /package/api/resources/harbors/{client/requests/CreateHarborContextRequest.js → resources/activity/client/requests/ActivityGetSessionRequest.js} +0 -0
  187. /package/api/resources/harbors/{client/requests/CreateHarborSavedQueryDraftRequest.js → resources/activity/client/requests/ActivityListRequest.js} +0 -0
  188. /package/api/resources/{activity → harbors/resources/activity}/client/requests/index.d.ts +0 -0
  189. /package/api/resources/{activity → harbors/resources/activity}/exports.d.ts +0 -0
  190. /package/api/resources/{activity → harbors/resources/activity}/exports.js +0 -0
  191. /package/api/resources/{activity → harbors/resources/activity}/index.d.ts +0 -0
  192. /package/api/resources/{activity → harbors/resources/activity}/index.js +0 -0
  193. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.d.ts +0 -0
  194. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.js +0 -0
  195. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.d.ts +0 -0
  196. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.js +0 -0
  197. /package/api/resources/{activity → harbors/resources/activity}/types/index.d.ts +0 -0
  198. /package/api/resources/{activity → harbors/resources/activity}/types/index.js +0 -0
  199. /package/api/resources/harbors/{client/requests/ExecuteHarborSavedQueryRequest.js → resources/connections/client/requests/ConnectionsGetSchemaRequest.js} +0 -0
  200. /package/api/resources/harbors/{client/requests/HarborsDeleteContextDraftRequest.js → resources/connections/client/requests/ConnectionsListRequest.js} +0 -0
  201. /package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.js → resources/connections/client/requests/ConnectionsListSchemasRequest.js} +0 -0
  202. /package/api/resources/harbors/{client/requests/HarborsGetAuthorizedSchemaRequest.js → resources/contexts/client/requests/ContextsDeleteDraftRequest.js} +0 -0
  203. /package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.js → resources/contexts/client/requests/ContextsDeleteRequest.js} +0 -0
  204. /package/api/resources/harbors/{client/requests/HarborsGetContextRequest.js → resources/contexts/client/requests/ContextsGetDraftRequest.js} +0 -0
  205. /package/api/resources/harbors/{client/requests/HarborsGetContextVersionRequest.js → resources/contexts/client/requests/ContextsGetRequest.js} +0 -0
  206. /package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.js → resources/contexts/client/requests/ContextsGetVersionRequest.js} +0 -0
  207. /package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.js → resources/contexts/client/requests/ContextsListDraftsRequest.js} +0 -0
  208. /package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.js → resources/contexts/client/requests/ContextsListRequest.js} +0 -0
  209. /package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.js → resources/contexts/client/requests/ContextsListVersionsRequest.js} +0 -0
  210. /package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.js → resources/contexts/client/requests/ContextsPromoteDraftRequest.js} +0 -0
  211. /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextDraftRequest.d.ts +0 -0
  212. /package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.js → resources/contexts/client/requests/CreateHarborContextDraftRequest.js} +0 -0
  213. /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextRequest.d.ts +0 -0
  214. /package/api/resources/harbors/{client/requests/HarborsListContextsRequest.js → resources/contexts/client/requests/CreateHarborContextRequest.js} +0 -0
  215. /package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.js +0 -0
  216. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.d.ts +0 -0
  217. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.js +0 -0
  218. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.d.ts +0 -0
  219. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.js +0 -0
  220. /package/api/resources/harbors/{client/requests/HarborsListKeysRequest.js → resources/keys/client/requests/KeysListRequest.js} +0 -0
  221. /package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.js → resources/savedQueries/client/requests/CreateHarborSavedQueryDraftRequest.js} +0 -0
  222. /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/ExecuteHarborSavedQueryRequest.d.ts +0 -0
  223. /package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.js → resources/savedQueries/client/requests/ExecuteHarborSavedQueryRequest.js} +0 -0
  224. /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.js +0 -0
  225. /package/api/resources/harbors/{client/requests/HarborsListUsersRequest.js → resources/savedQueries/client/requests/SavedQueriesGetRequest.js} +0 -0
  226. /package/api/resources/harbors/{client/requests/HarborsPromoteContextDraftRequest.js → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.js} +0 -0
  227. /package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.js → resources/savedQueries/client/requests/SavedQueriesListRequest.js} +0 -0
  228. /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.d.ts +0 -0
  229. /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.js +0 -0
@@ -2,7 +2,14 @@ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOption
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
3
  import * as core from "../../../../core";
4
4
  import * as Polytomic from "../../../index";
5
+ import { ActionConfigurationClient } from "../resources/actionConfiguration/client/Client";
5
6
  import { ActionsClient } from "../resources/actions/client/Client";
7
+ import { ActivityClient } from "../resources/activity/client/Client";
8
+ import { ConnectionsClient } from "../resources/connections/client/Client";
9
+ import { ContextsClient } from "../resources/contexts/client/Client";
10
+ import { KeysClient } from "../resources/keys/client/Client";
11
+ import { SavedQueriesClient } from "../resources/savedQueries/client/Client";
12
+ import { UsersClient } from "../resources/users/client/Client";
6
13
  export declare namespace HarborsClient {
7
14
  type Options = BaseClientOptions;
8
15
  interface RequestOptions extends BaseRequestOptions {
@@ -12,60 +19,23 @@ export declare namespace HarborsClient {
12
19
  }
13
20
  export declare class HarborsClient {
14
21
  protected readonly _options: NormalizedClientOptionsWithAuth<HarborsClient.Options>;
22
+ protected _connections: ConnectionsClient | undefined;
23
+ protected _actionConfiguration: ActionConfigurationClient | undefined;
15
24
  protected _actions: ActionsClient | undefined;
25
+ protected _contexts: ContextsClient | undefined;
26
+ protected _keys: KeysClient | undefined;
27
+ protected _savedQueries: SavedQueriesClient | undefined;
28
+ protected _users: UsersClient | undefined;
29
+ protected _activity: ActivityClient | undefined;
16
30
  constructor(options?: HarborsClient.Options);
31
+ get connections(): ConnectionsClient;
32
+ get actionConfiguration(): ActionConfigurationClient;
17
33
  get actions(): ActionsClient;
18
- /**
19
- * Lists profile-authorized connections and capabilities for the current Harbor credential.
20
- *
21
- * @param {Polytomic.HarborsListAuthorizedConnectionsRequest} request
22
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
23
- *
24
- * @throws {@link errors.PolytomicError}
25
- * @throws {@link errors.PolytomicTimeoutError}
26
- *
27
- * @example
28
- * await client.harbors.listAuthorizedConnections({
29
- * limit: 1,
30
- * page_token: "page_token"
31
- * })
32
- */
33
- listAuthorizedConnections(request?: Polytomic.HarborsListAuthorizedConnectionsRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborConnectionListEnvelope>;
34
- private __listAuthorizedConnections;
35
- /**
36
- * Lists one bounded page of schema resources authorized by the current Harbor profile.
37
- *
38
- * @param {string} connection_id - Connection ID
39
- * @param {Polytomic.HarborsListAuthorizedSchemasRequest} request
40
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
41
- *
42
- * @throws {@link errors.PolytomicError}
43
- * @throws {@link errors.PolytomicTimeoutError}
44
- *
45
- * @example
46
- * await client.harbors.listAuthorizedSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", {
47
- * limit: 1,
48
- * page_token: "page_token"
49
- * })
50
- */
51
- listAuthorizedSchemas(connection_id: string, request?: Polytomic.HarborsListAuthorizedSchemasRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSchemaListEnvelope>;
52
- private __listAuthorizedSchemas;
53
- /**
54
- * Returns one schema resource authorized by the current Harbor profile.
55
- *
56
- * @param {string} connection_id - Connection ID
57
- * @param {string} schema_id - Schema ID
58
- * @param {Polytomic.HarborsGetAuthorizedSchemaRequest} request
59
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
60
- *
61
- * @throws {@link errors.PolytomicError}
62
- * @throws {@link errors.PolytomicTimeoutError}
63
- *
64
- * @example
65
- * await client.harbors.getAuthorizedSchema("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
66
- */
67
- getAuthorizedSchema(connection_id: string, schema_id: string, request?: Polytomic.HarborsGetAuthorizedSchemaRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborConnectionSchemaEnvelope>;
68
- private __getAuthorizedSchema;
34
+ get contexts(): ContextsClient;
35
+ get keys(): KeysClient;
36
+ get savedQueries(): SavedQueriesClient;
37
+ get users(): UsersClient;
38
+ get activity(): ActivityClient;
69
39
  /**
70
40
  * Registers a service-attested MCP transport session for a scoped Harbor credential.
71
41
  *
@@ -225,1279 +195,92 @@ export declare class HarborsClient {
225
195
  delete(harbor_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborEnvelope>;
226
196
  private __delete;
227
197
  /**
228
- * Returns configured action grants and revisions for a Harbor.
229
- *
230
- * You must be an Organization administrator with permission to edit the Harbor.
231
- * Use a writable API credential, not a Harbor profile credential. Read-only keys
232
- * are denied because this endpoint requires Harbor edit permission.
233
- *
234
- * This response includes grants for Connections that no longer populate the
235
- * Harbor. You can remove those stale grants without reattaching the Connection.
236
- * Reading configuration does not require the Harbor Actions entitlement.
237
- *
238
- * Use each Connection's `revision` as `expected_revision` when replacing or
239
- * removing its grants. Configuration responses contain metadata only, not provider
240
- * credentials or record values.
241
- *
242
- * @param {string} harbor_id - Unique identifier of the Harbor
243
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
244
- *
245
- * @throws {@link Polytomic.ForbiddenError}
246
- * @throws {@link Polytomic.NotFoundError}
247
- * @throws {@link Polytomic.ConflictError}
248
- * @throws {@link Polytomic.UnprocessableEntityError}
249
- * @throws {@link Polytomic.InternalServerError}
250
- * @throws {@link Polytomic.ServiceUnavailableError}
251
- * @throws {@link errors.PolytomicError}
252
- * @throws {@link errors.PolytomicTimeoutError}
253
- *
254
- * @example
255
- * await client.harbors.getActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d")
256
- */
257
- getActionConfiguration(harbor_id: string, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationEnvelope>;
258
- private __getActionConfiguration;
259
- /**
260
- * Disables all configured actions for a Harbor.
261
- *
262
- * You must be an Organization administrator with permission to edit the Harbor.
263
- * Use a normal writable API credential, not a Harbor profile credential. Your
264
- * Organization must have the Harbor Actions entitlement.
265
- *
266
- * > 🚧 Disable all actions
267
- * >
268
- * > This removes every configured action grant from the Harbor, including grants
269
- * > for detached Connections. There is no per-Connection revision check.
270
- *
271
- * The response contains the empty configuration. This request does not delete
272
- * Connections, syncs, or provider records.
273
- *
274
- * @param {string} harbor_id - Unique identifier of the Harbor
275
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
276
- *
277
- * @throws {@link Polytomic.ForbiddenError}
278
- * @throws {@link Polytomic.NotFoundError}
279
- * @throws {@link Polytomic.ConflictError}
280
- * @throws {@link Polytomic.UnprocessableEntityError}
281
- * @throws {@link Polytomic.InternalServerError}
282
- * @throws {@link Polytomic.ServiceUnavailableError}
283
- * @throws {@link errors.PolytomicError}
284
- * @throws {@link errors.PolytomicTimeoutError}
285
- *
286
- * @example
287
- * await client.harbors.disableActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d")
288
- */
289
- disableActionConfiguration(harbor_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationEnvelope>;
290
- private __disableActionConfiguration;
291
- /**
292
- * Lists action-capable source Connections that populate a Harbor.
293
- *
294
- * You must be an Organization administrator with permission to edit the Harbor.
295
- * Use a writable API credential, not a Harbor profile credential. Read-only keys
296
- * are denied because this endpoint requires Harbor edit permission. Discovery does
297
- * not require the Harbor Actions entitlement.
298
- *
299
- * A Connection is eligible when it supports actions and is a source of a
300
- * non-deleted Bulk Sync or Model Sync targeting the Harbor's backing Connection.
301
- * Only saved, non-shared Connections in your Organization that you can query are
302
- * included. Disabled syncs still establish source membership.
303
- *
304
- * Discover schemas and operations before choosing the grants to configure.
305
- *
306
- * @param {string} harbor_id - Unique identifier of the Harbor
307
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
308
- *
309
- * @throws {@link Polytomic.ForbiddenError}
310
- * @throws {@link Polytomic.NotFoundError}
311
- * @throws {@link Polytomic.ConflictError}
312
- * @throws {@link Polytomic.UnprocessableEntityError}
313
- * @throws {@link Polytomic.InternalServerError}
314
- * @throws {@link Polytomic.ServiceUnavailableError}
315
- * @throws {@link errors.PolytomicError}
316
- * @throws {@link errors.PolytomicTimeoutError}
317
- *
318
- * @example
319
- * await client.harbors.listActionSourceConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
320
- */
321
- listActionSourceConnections(harbor_id: string, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionSourceConnectionsEnvelope>;
322
- private __listActionSourceConnections;
323
- /**
324
- * Creates or replaces action grants for an eligible Harbor source Connection.
325
- *
326
- * You must be an Organization administrator with permission to edit both the
327
- * Harbor and the source Connection. Use a normal writable API credential, not a
328
- * Harbor profile credential. Your Organization must have the Harbor Actions
329
- * entitlement.
330
- *
331
- * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
332
- * Sync targeting its backing Connection. This requirement applies to new grants
333
- * and replacements, even when you only remove fields from an existing grant.
334
- *
335
- * Submit the complete grant set for this Connection. Omit `expected_revision` to
336
- * create it, or supply the current revision to replace it. A missing, stale, or
337
- * unexpected revision returns `409 Conflict`; read configuration again before
338
- * retrying. Successful replacement creates a new revision.
339
- *
340
- * For mutating operations, `field_ids` selects input fields and
341
- * `lookup_field_ids` must be omitted. For read-only operations, `field_ids`
342
- * selects output fields and `lookup_field_ids` selects allowed lookup fields.
343
- * Duplicate operations or field IDs are invalid. An empty grant set is invalid;
344
- * remove the Connection's grants instead.
345
- *
346
- * This request changes permissions only. It does not execute provider actions.
347
- *
348
- * @param {string} harbor_id - Unique identifier of the Harbor
349
- * @param {string} connection_id - Source Connection whose action grants you want to manage
350
- * @param {Polytomic.SetHarborActionConfigurationRequest} request
351
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
352
- *
353
- * @throws {@link Polytomic.ForbiddenError}
354
- * @throws {@link Polytomic.NotFoundError}
355
- * @throws {@link Polytomic.ConflictError}
356
- * @throws {@link Polytomic.UnprocessableEntityError}
357
- * @throws {@link Polytomic.InternalServerError}
358
- * @throws {@link Polytomic.ServiceUnavailableError}
359
- * @throws {@link errors.PolytomicError}
360
- * @throws {@link errors.PolytomicTimeoutError}
361
- *
362
- * @example
363
- * await client.harbors.setActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
364
- */
365
- setActionConfiguration(harbor_id: string, connection_id: string, request?: Polytomic.SetHarborActionConfigurationRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationEnvelope>;
366
- private __setActionConfiguration;
367
- /**
368
- * Removes a Connection's action grants from a Harbor.
198
+ * Submits a query against the Harbor backing connection for asynchronous execution.
369
199
  *
370
- * You must be an Organization administrator with permission to edit the Harbor.
371
- * Use a normal writable API credential, not a Harbor profile credential. Your
372
- * Organization must have the Harbor Actions entitlement.
200
+ * Use a scoped credential bound to this Harbor. The query runs only against the
201
+ * Harbor's backing connection; you cannot select another connection on this route.
202
+ * Send a unique `X-Polytomic-Activity-Request-ID` UUID with each submission. The
203
+ * `X-Polytomic-Harbor-Session` header is optional; if you send one, it must be
204
+ * valid for this Harbor.
373
205
  *
374
- * Supply the current `expected_revision` as a query parameter. A stale revision
375
- * returns `409 Conflict`; read configuration again before retrying.
206
+ * The response contains a query ID and an initial `created` status. Poll
207
+ * [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) with that ID
208
+ * until the status is `done`, `failed`, or `unknown`. Follow the result endpoint's
209
+ * pagination links for additional rows. Results are temporary; check `expires`
210
+ * on the completed query.
376
211
  *
377
- * You can remove grants after the Connection stops populating the Harbor, or after
378
- * the Connection is deleted. The response contains the remaining configured action
379
- * Connections. This request does not delete the Connection or provider records.
212
+ * To open a result record in its source application, discover
213
+ * [record-view capabilities](../../../../api-reference/record-view-links/get-capabilities)
214
+ * and create a record-view link for the source Connection and schema. Record-view
215
+ * links are also available independently of Harbor.
380
216
  *
381
- * @param {string} harbor_id - Unique identifier of the Harbor
382
- * @param {string} connection_id - Source Connection whose action grants you want to manage
383
- * @param {Polytomic.HarborsRemoveActionConfigurationRequest} request
217
+ * @param {string} harbor_id - Unique identifier of the Harbor whose backing connection runs the query
218
+ * @param {Polytomic.RunHarborQueryRequest} request
384
219
  * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
385
220
  *
221
+ * @throws {@link Polytomic.BadRequestError}
386
222
  * @throws {@link Polytomic.ForbiddenError}
387
223
  * @throws {@link Polytomic.NotFoundError}
388
224
  * @throws {@link Polytomic.ConflictError}
389
- * @throws {@link Polytomic.UnprocessableEntityError}
390
- * @throws {@link Polytomic.InternalServerError}
391
- * @throws {@link Polytomic.ServiceUnavailableError}
392
- * @throws {@link errors.PolytomicError}
393
- * @throws {@link errors.PolytomicTimeoutError}
394
- *
395
- * @example
396
- * await client.harbors.removeActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
397
- * expected_revision: "248df4b7-aa70-47b8-a036-33ac447e668d"
398
- * })
399
- */
400
- removeActionConfiguration(harbor_id: string, connection_id: string, request: Polytomic.HarborsRemoveActionConfigurationRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationEnvelope>;
401
- private __removeActionConfiguration;
402
- /**
403
- * Lists available action schemas for an eligible Harbor source Connection.
404
- *
405
- * You must be an Organization administrator with permission to edit the Harbor
406
- * and query the source Connection. Use a writable API credential, not a Harbor
407
- * profile credential. Read-only keys are denied because this endpoint requires
408
- * Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
409
- *
410
- * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
411
- * Sync targeting its backing Connection. The response lists action schemas, not
412
- * records. Use the next page token with the same search filter to continue.
413
- *
414
- * Operation IDs in the catalog are hints. Operation discovery returns the current
415
- * configurable fields for a schema.
416
- *
417
- * @param {string} harbor_id - Unique identifier of the Harbor
418
- * @param {string} connection_id - Source Connection whose action grants you want to manage
419
- * @param {Polytomic.HarborsListActionConfigurationSchemasRequest} request
420
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
421
- *
422
- * @throws {@link Polytomic.ForbiddenError}
423
- * @throws {@link Polytomic.NotFoundError}
424
- * @throws {@link Polytomic.ConflictError}
425
- * @throws {@link Polytomic.UnprocessableEntityError}
426
- * @throws {@link Polytomic.InternalServerError}
427
- * @throws {@link Polytomic.ServiceUnavailableError}
428
- * @throws {@link errors.PolytomicError}
429
- * @throws {@link errors.PolytomicTimeoutError}
430
- *
431
- * @example
432
- * await client.harbors.listActionConfigurationSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
433
- * search: "search",
434
- * limit: 1,
435
- * page_token: "page_token"
436
- * })
437
- */
438
- listActionConfigurationSchemas(harbor_id: string, connection_id: string, request?: Polytomic.HarborsListActionConfigurationSchemasRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationSchemasEnvelope>;
439
- private __listActionConfigurationSchemas;
440
- /**
441
- * Lists operations and configurable fields for an eligible Harbor action schema.
442
- *
443
- * You must be an Organization administrator with permission to edit the Harbor
444
- * and query the source Connection. Use a writable API credential, not a Harbor
445
- * profile credential. Read-only keys are denied because this endpoint requires
446
- * Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
447
- *
448
- * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
449
- * Sync targeting its backing Connection. This request returns operation metadata,
450
- * not provider records, and does not execute an action.
451
- *
452
- * For a mutating operation, choose input field IDs. For a read-only operation,
453
- * choose output field IDs and at least one lookup field ID. Required input fields
454
- * must be included in the grant.
455
- *
456
- * @param {string} harbor_id - Unique identifier of the Harbor
457
- * @param {string} connection_id - Source Connection whose action grants you want to manage
458
- * @param {string} schema_id - Exact action schema ID returned by schema discovery
459
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
460
- *
461
- * @throws {@link Polytomic.ForbiddenError}
462
- * @throws {@link Polytomic.NotFoundError}
463
- * @throws {@link Polytomic.ConflictError}
464
- * @throws {@link Polytomic.UnprocessableEntityError}
465
225
  * @throws {@link Polytomic.InternalServerError}
466
226
  * @throws {@link Polytomic.ServiceUnavailableError}
467
227
  * @throws {@link errors.PolytomicError}
468
228
  * @throws {@link errors.PolytomicTimeoutError}
469
229
  *
470
230
  * @example
471
- * await client.harbors.listActionConfigurationOperations("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
472
- */
473
- listActionConfigurationOperations(harbor_id: string, connection_id: string, schema_id: string, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActionConfigurationOperationsEnvelope>;
474
- private __listActionConfigurationOperations;
475
- /**
476
- * Lists context document metadata for a Harbor without returning document content.
477
- *
478
- * Collection items include the current published `version` number and omit
479
- * `content`. Use the context item endpoint to retrieve a complete document.
480
- *
481
- * A Harbor profile credential can read context only when `harbor_id` identifies
482
- * its own Harbor.
483
- *
484
- * @param {string} harbor_id - Unique identifier of the Harbor
485
- * @param {Polytomic.HarborsListContextsRequest} request
486
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
487
- *
488
- * @throws {@link Polytomic.ForbiddenError}
489
- * @throws {@link Polytomic.NotFoundError}
490
- * @throws {@link Polytomic.UnprocessableEntityError}
491
- * @throws {@link Polytomic.InternalServerError}
492
- * @throws {@link errors.PolytomicError}
493
- * @throws {@link errors.PolytomicTimeoutError}
494
- *
495
- * @example
496
- * await client.harbors.listContexts("248df4b7-aa70-47b8-a036-33ac447e668d", {
497
- * limit: 50,
498
- * page_token: "page_token"
231
+ * await client.harbors.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
232
+ * query: "SELECT 1 AS n"
499
233
  * })
500
234
  */
501
- listContexts(harbor_id: string, request?: Polytomic.HarborsListContextsRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextListEnvelope>;
502
- private __listContexts;
235
+ runQuery(harbor_id: string, request: Polytomic.RunHarborQueryRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.RunQueryEnvelope>;
236
+ private __runQuery;
503
237
  /**
504
- * Creates and attaches a context document to a Harbor.
505
- *
506
- * The new document belongs only to this Harbor. Context documents cannot be attached to multiple Harbors.
507
- *
508
- * @param {string} harbor_id - Unique identifier of the Harbor
509
- * @param {Polytomic.CreateHarborContextRequest} request
510
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
238
+ * Returns raw Polytomic refresh evidence for datasets written to a Harbor.
511
239
  *
512
- * @throws {@link Polytomic.ForbiddenError}
513
- * @throws {@link Polytomic.NotFoundError}
514
- * @throws {@link Polytomic.UnprocessableEntityError}
515
- * @throws {@link Polytomic.InternalServerError}
516
- * @throws {@link errors.PolytomicError}
517
- * @throws {@link errors.PolytomicTimeoutError}
240
+ * Each pipeline corresponds to a bulk sync or model sync that writes at least one
241
+ * dataset to the Harbor's backing Connection. Tables populated outside Polytomic
242
+ * are not included, even when they are queryable through a customer-managed
243
+ * backing Connection.
518
244
  *
519
- * @example
520
- * await client.harbors.createContext("248df4b7-aa70-47b8-a036-33ac447e668d", {
521
- * content: "Bookings use the contract signed date...",
522
- * title: "Revenue definitions"
523
- * })
524
- */
525
- createContext(harbor_id: string, request: Polytomic.CreateHarborContextRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborContextEnvelope>;
526
- private __createContext;
527
- /**
528
- * Lists mutable Harbor context drafts without returning document content.
245
+ * The response groups shared pipeline evidence so schedules and configuration are
246
+ * not repeated for every dataset:
529
247
  *
530
- * The collection includes drafts for published context documents and initial drafts
531
- * that have not yet been published. Use `context_id` with the draft detail,
532
- * replacement, promotion, and discard endpoints.
248
+ * - Each entry in `pipelines` identifies the producer through `type` and `id`.
249
+ * Separate pipelines targeting the same physical dataset remain separate
250
+ * entries.
251
+ * - `datasets` is keyed by the effective destination dataset name.
252
+ * `last_success_at` is the start time of the most recent execution in which that
253
+ * dataset completed successfully, including a successful dataset within a bulk
254
+ * execution that completes with errors. The start time is a conservative upper
255
+ * bound because source reads and destination writes happen afterward.
256
+ * - `latest_status` preserves the latest Polytomic execution status. Never-run
257
+ * datasets omit this field.
258
+ * - Pipeline-level `schedules` preserves schedule parameters and selectors. A
259
+ * schedule can be manual, event-driven, advanced, selective, or limited to
260
+ * named source schemas, so callers should not reduce the list to one inferred
261
+ * cadence.
262
+ * - Continuous schedules use the scheduler's persisted next firing. If scheduler
263
+ * state is unavailable, `next_run_at` is omitted rather than recalculated with
264
+ * new jitter.
265
+ * - Paused pipelines remain present with `refresh_enabled` set to `false` and no
266
+ * `next_run_at`.
533
267
  *
534
- * Draft metadata does not include `content`. Fetch a selected draft through its
535
- * detail endpoint to read the complete candidate. Normal context list and detail
536
- * operations continue to return published content only.
268
+ * Use absolute timestamps and the raw statuses to apply the maximum acceptable
269
+ * staleness for your task. The endpoint does not classify datasets or the Harbor
270
+ * as healthy, stale, or unhealthy.
537
271
  *
538
272
  * @param {string} harbor_id - Unique identifier of the Harbor
539
- * @param {Polytomic.HarborsListContextDraftsRequest} request
540
273
  * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
541
274
  *
542
275
  * @throws {@link Polytomic.ForbiddenError}
543
276
  * @throws {@link Polytomic.NotFoundError}
544
- * @throws {@link Polytomic.UnprocessableEntityError}
545
- * @throws {@link Polytomic.InternalServerError}
546
- * @throws {@link errors.PolytomicError}
547
- * @throws {@link errors.PolytomicTimeoutError}
548
- *
549
- * @example
550
- * await client.harbors.listContextDrafts("248df4b7-aa70-47b8-a036-33ac447e668d", {
551
- * limit: 50,
552
- * page_token: "page_token"
553
- * })
554
- */
555
- listContextDrafts(harbor_id: string, request?: Polytomic.HarborsListContextDraftsRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextDraftListEnvelope>;
556
- private __listContextDrafts;
557
- /**
558
- * Creates an unpublished context document with its initial mutable draft.
559
- *
560
- * Creates a stable context identity and its initial mutable draft without publishing
561
- * content to the Harbor. The response includes `context_id`, which identifies the
562
- * draft replacement, promotion, and discard routes.
563
- *
564
- * The initial draft has a null `base_revision_id`. It remains absent from normal
565
- * context list/detail, GraphQL, entity lookup, and Harbor MCP reads until promoted.
566
- * Use the regular context creation endpoint instead when the initial payload should
567
- * be published immediately.
568
- *
569
- * @param {string} harbor_id - Unique identifier of the Harbor
570
- * @param {Polytomic.CreateHarborContextDraftRequest} request
571
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
572
- *
573
- * @throws {@link Polytomic.ForbiddenError}
574
- * @throws {@link Polytomic.NotFoundError}
575
- * @throws {@link Polytomic.UnprocessableEntityError}
576
277
  * @throws {@link Polytomic.InternalServerError}
577
278
  * @throws {@link errors.PolytomicError}
578
279
  * @throws {@link errors.PolytomicTimeoutError}
579
280
  *
580
281
  * @example
581
- * await client.harbors.createContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", {
582
- * content: "Bookings use the contract signed date...",
583
- * title: "Revenue definitions"
584
- * })
585
- */
586
- createContextDraft(harbor_id: string, request: Polytomic.CreateHarborContextDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborContextDraftEnvelope>;
587
- private __createContextDraft;
588
- /**
589
- * Returns one complete Harbor context document.
590
- *
591
- * The response includes the current published `version` number and complete
592
- * plain-text `content`.
593
- *
594
- * A Harbor profile credential can read context only when `harbor_id` identifies
595
- * its own Harbor.
596
- *
597
- * @param {string} harbor_id - Unique identifier of the Harbor
598
- * @param {string} context_id - Unique identifier of the context document
599
- * @param {Polytomic.HarborsGetContextRequest} request
600
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
601
- *
602
- * @throws {@link Polytomic.ForbiddenError}
603
- * @throws {@link Polytomic.NotFoundError}
604
- * @throws {@link Polytomic.InternalServerError}
605
- * @throws {@link errors.PolytomicError}
606
- * @throws {@link errors.PolytomicTimeoutError}
607
- *
608
- * @example
609
- * await client.harbors.getContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
610
- */
611
- getContext(harbor_id: string, context_id: string, request?: Polytomic.HarborsGetContextRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextEnvelope>;
612
- private __getContext;
613
- /**
614
- * Replaces one Harbor context document.
615
- *
616
- * Each successful request publishes the next immutable version. You can omit
617
- * `change_note`.
618
- *
619
- * A direct publication leaves an existing draft unchanged.
620
- *
621
- * @param {string} harbor_id - Unique identifier of the Harbor
622
- * @param {string} context_id - Unique identifier of the context document
623
- * @param {Polytomic.SaveHarborContextRequest} request
624
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
625
- *
626
- * @throws {@link Polytomic.ForbiddenError}
627
- * @throws {@link Polytomic.NotFoundError}
628
- * @throws {@link Polytomic.UnprocessableEntityError}
629
- * @throws {@link Polytomic.InternalServerError}
630
- * @throws {@link errors.PolytomicError}
631
- * @throws {@link errors.PolytomicTimeoutError}
632
- *
633
- * @example
634
- * await client.harbors.updateContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
635
- * content: "Bookings use the contract signed date...",
636
- * title: "Revenue definitions"
637
- * })
638
- */
639
- updateContext(harbor_id: string, context_id: string, request: Polytomic.SaveHarborContextRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborContextEnvelope>;
640
- private __updateContext;
641
- /**
642
- * Deletes one context document from a Harbor.
643
- *
644
- * Deleting a context document does not affect the Harbor or its other context documents.
645
- *
646
- * @param {string} harbor_id - Unique identifier of the Harbor
647
- * @param {string} context_id - Unique identifier of the context document
648
- * @param {Polytomic.HarborsDeleteContextRequest} request
649
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
650
- *
651
- * @throws {@link Polytomic.ForbiddenError}
652
- * @throws {@link Polytomic.NotFoundError}
653
- * @throws {@link Polytomic.InternalServerError}
654
- * @throws {@link errors.PolytomicError}
655
- * @throws {@link errors.PolytomicTimeoutError}
656
- *
657
- * @example
658
- * await client.harbors.deleteContext("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
659
- */
660
- deleteContext(harbor_id: string, context_id: string, request?: Polytomic.HarborsDeleteContextRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborContextEnvelope>;
661
- private __deleteContext;
662
- /**
663
- * Returns the mutable draft for a Harbor context document.
664
- *
665
- * Drafts are available only through the draft endpoints. `base_revision_id`
666
- * identifies the published revision from which the candidate was created. Normal
667
- * context reads and Harbor MCP tools continue to return the current published
668
- * version. Creator and updater IDs are null when their actor type is `system`.
669
- *
670
- * @param {string} harbor_id - Unique identifier of the Harbor
671
- * @param {string} context_id - Unique identifier of the context document
672
- * @param {Polytomic.HarborsGetContextDraftRequest} request
673
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
674
- *
675
- * @throws {@link Polytomic.ForbiddenError}
676
- * @throws {@link Polytomic.NotFoundError}
677
- * @throws {@link Polytomic.InternalServerError}
678
- * @throws {@link errors.PolytomicError}
679
- * @throws {@link errors.PolytomicTimeoutError}
680
- *
681
- * @example
682
- * await client.harbors.getContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
683
- */
684
- getContextDraft(harbor_id: string, context_id: string, request?: Polytomic.HarborsGetContextDraftRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextDraftEnvelope>;
685
- private __getContextDraft;
686
- /**
687
- * Creates or completely replaces the mutable draft for a Harbor context document.
688
- *
689
- * The request supplies the complete draft payload. If a draft already exists,
690
- * this request replaces it while preserving the draft ID, creation metadata, and
691
- * `base_revision_id`.
692
- *
693
- * A new draft for a published document records the current revision as its base.
694
- * An unpublished document's initial draft keeps a null base when replaced. Saving
695
- * a draft does not change published content or its `updated_at`. Creator and
696
- * updater provenance comes from the request actor; system actors have a null actor
697
- * ID.
698
- *
699
- * @param {string} harbor_id - Unique identifier of the Harbor
700
- * @param {string} context_id - Unique identifier of the context document
701
- * @param {Polytomic.SaveHarborContextDraftRequest} request
702
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
703
- *
704
- * @throws {@link Polytomic.ForbiddenError}
705
- * @throws {@link Polytomic.NotFoundError}
706
- * @throws {@link Polytomic.UnprocessableEntityError}
707
- * @throws {@link Polytomic.InternalServerError}
708
- * @throws {@link errors.PolytomicError}
709
- * @throws {@link errors.PolytomicTimeoutError}
710
- *
711
- * @example
712
- * await client.harbors.saveContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
713
- * content: "Bookings use the contract signed date...",
714
- * title: "Revenue definitions"
715
- * })
716
- */
717
- saveContextDraft(harbor_id: string, context_id: string, request: Polytomic.SaveHarborContextDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborContextDraftEnvelope>;
718
- private __saveContextDraft;
719
- /**
720
- * Discards the mutable draft for a Harbor context document.
721
- *
722
- * Discarding a draft does not change the current published version or its
723
- * history. If the draft belongs to a context that has never been published,
724
- * discarding it also removes the otherwise empty context identity.
725
- *
726
- * @param {string} harbor_id - Unique identifier of the Harbor
727
- * @param {string} context_id - Unique identifier of the context document
728
- * @param {Polytomic.HarborsDeleteContextDraftRequest} request
729
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
730
- *
731
- * @throws {@link Polytomic.ForbiddenError}
732
- * @throws {@link Polytomic.NotFoundError}
733
- * @throws {@link Polytomic.InternalServerError}
734
- * @throws {@link errors.PolytomicError}
735
- * @throws {@link errors.PolytomicTimeoutError}
736
- *
737
- * @example
738
- * await client.harbors.deleteContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
739
- */
740
- deleteContextDraft(harbor_id: string, context_id: string, request?: Polytomic.HarborsDeleteContextDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborContextDraftEnvelope>;
741
- private __deleteContextDraft;
742
- /**
743
- * Promotes the draft to the next immutable published context version.
744
- *
745
- * Promotion publishes the draft's exact title, description, content, and optional
746
- * change note as the next version. An unpublished context's initial draft becomes
747
- * version 1. The draft is removed after publication.
748
- *
749
- * Promotion returns a conflict when the current published revision differs from
750
- * the draft's `base_revision_id`. The stale draft remains available so an author
751
- * can compare it with the current version before discarding and recreating it.
752
- *
753
- * @param {string} harbor_id - Unique identifier of the Harbor
754
- * @param {string} context_id - Unique identifier of the context document
755
- * @param {Polytomic.HarborsPromoteContextDraftRequest} request
756
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
757
- *
758
- * @throws {@link Polytomic.ForbiddenError}
759
- * @throws {@link Polytomic.NotFoundError}
760
- * @throws {@link Polytomic.ConflictError}
761
- * @throws {@link Polytomic.InternalServerError}
762
- * @throws {@link errors.PolytomicError}
763
- * @throws {@link errors.PolytomicTimeoutError}
764
- *
765
- * @example
766
- * await client.harbors.promoteContextDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
767
- */
768
- promoteContextDraft(harbor_id: string, context_id: string, request?: Polytomic.HarborsPromoteContextDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborContextVersionEnvelope>;
769
- private __promoteContextDraft;
770
- /**
771
- * Lists immutable published versions of a Harbor context document without returning content.
772
- *
773
- * Versions are ordered from newest to oldest. Collection items omit `content`,
774
- * and the draft is never included. Pagination tokens continue from the last
775
- * returned version, so publishing a newer version between requests does not shift
776
- * or duplicate older results.
777
- *
778
- * Published revision IDs are durable artifact identities intended for future
779
- * Harbor activity and audit records. Publisher IDs are paired with actor types.
780
- * System publications have `published_by_type: "system"` and a null
781
- * `published_by` because the system actor has no UUID.
782
- *
783
- * A Harbor profile credential can read versions only when `harbor_id` identifies
784
- * its own Harbor.
785
- *
786
- * @param {string} harbor_id - Unique identifier of the Harbor
787
- * @param {string} context_id - Unique identifier of the context document
788
- * @param {Polytomic.HarborsListContextVersionsRequest} request
789
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
790
- *
791
- * @throws {@link Polytomic.ForbiddenError}
792
- * @throws {@link Polytomic.NotFoundError}
793
- * @throws {@link Polytomic.UnprocessableEntityError}
794
- * @throws {@link Polytomic.InternalServerError}
795
- * @throws {@link errors.PolytomicError}
796
- * @throws {@link errors.PolytomicTimeoutError}
797
- *
798
- * @example
799
- * await client.harbors.listContextVersions("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
800
- * limit: 50,
801
- * page_token: "page_token"
802
- * })
803
- */
804
- listContextVersions(harbor_id: string, context_id: string, request?: Polytomic.HarborsListContextVersionsRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextVersionListEnvelope>;
805
- private __listContextVersions;
806
- /**
807
- * Returns one immutable published version of a Harbor context document.
808
- *
809
- * The response includes the complete title, description, and plain-text
810
- * `content` captured when the version was published.
811
- *
812
- * Published versions cannot be changed or deleted. System publications have
813
- * `published_by_type: "system"` and a null `published_by`.
814
- *
815
- * @param {string} harbor_id - Unique identifier of the Harbor
816
- * @param {string} context_id - Unique identifier of the context document
817
- * @param {string} version_id - Unique identifier of the published context version
818
- * @param {Polytomic.HarborsGetContextVersionRequest} request
819
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
820
- *
821
- * @throws {@link Polytomic.ForbiddenError}
822
- * @throws {@link Polytomic.NotFoundError}
823
- * @throws {@link Polytomic.InternalServerError}
824
- * @throws {@link errors.PolytomicError}
825
- * @throws {@link errors.PolytomicTimeoutError}
826
- *
827
- * @example
828
- * await client.harbors.getContextVersion("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
829
- */
830
- getContextVersion(harbor_id: string, context_id: string, version_id: string, request?: Polytomic.HarborsGetContextVersionRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborContextVersionEnvelope>;
831
- private __getContextVersion;
832
- /**
833
- * Lists active masked credentials for a Harbor.
834
- *
835
- * Each item contains a masked `key_hint`. Polytomic never returns a credential plaintext after creation.
836
- *
837
- * @param {string} harbor_id - Unique identifier of the Harbor
838
- * @param {Polytomic.HarborsListKeysRequest} request
839
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
840
- *
841
- * @throws {@link Polytomic.ForbiddenError}
842
- * @throws {@link Polytomic.NotFoundError}
843
- * @throws {@link Polytomic.UnprocessableEntityError}
844
- * @throws {@link Polytomic.InternalServerError}
845
- * @throws {@link errors.PolytomicError}
846
- * @throws {@link errors.PolytomicTimeoutError}
847
- *
848
- * @example
849
- * await client.harbors.listKeys("248df4b7-aa70-47b8-a036-33ac447e668d", {
850
- * limit: 50,
851
- * page_token: "page_token"
852
- * })
853
- */
854
- listKeys(harbor_id: string, request?: Polytomic.HarborsListKeysRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborKeyListEnvelope>;
855
- private __listKeys;
856
- /**
857
- * Generates a new Harbor credential and returns its plaintext value once.
858
- *
859
- * Store the returned `value` securely. Polytomic returns it only in this response.
860
- *
861
- * @param {string} harbor_id - Unique identifier of the Harbor
862
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
863
- *
864
- * @throws {@link Polytomic.ForbiddenError}
865
- * @throws {@link Polytomic.NotFoundError}
866
- * @throws {@link Polytomic.InternalServerError}
867
- * @throws {@link errors.PolytomicError}
868
- * @throws {@link errors.PolytomicTimeoutError}
869
- *
870
- * @example
871
- * await client.harbors.createKey("248df4b7-aa70-47b8-a036-33ac447e668d")
872
- */
873
- createKey(harbor_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborKeyEnvelope>;
874
- private __createKey;
875
- /**
876
- * Revokes one Harbor credential by its credential ID.
877
- *
878
- * Revocation affects only the selected credential. Other active Harbor credentials remain valid.
879
- *
880
- * @param {string} harbor_id - Unique identifier of the Harbor
881
- * @param {string} key_id - Unique identifier of the Harbor credential
882
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
883
- *
884
- * @throws {@link Polytomic.ForbiddenError}
885
- * @throws {@link Polytomic.NotFoundError}
886
- * @throws {@link Polytomic.InternalServerError}
887
- * @throws {@link errors.PolytomicError}
888
- * @throws {@link errors.PolytomicTimeoutError}
889
- *
890
- * @example
891
- * await client.harbors.deleteKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
892
- */
893
- deleteKey(harbor_id: string, key_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.RevokedHarborKeyEnvelope>;
894
- private __deleteKey;
895
- /**
896
- * Submits a query against the Harbor backing connection for asynchronous execution.
897
- *
898
- * Use a scoped credential bound to this Harbor. The query runs only against the
899
- * Harbor's backing connection; you cannot select another connection on this route.
900
- * Send a unique `X-Polytomic-Activity-Request-ID` UUID with each submission. The
901
- * `X-Polytomic-Harbor-Session` header is optional; if you send one, it must be
902
- * valid for this Harbor.
903
- *
904
- * The response contains a query ID and an initial `created` status. Poll
905
- * [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) with that ID
906
- * until the status is `done`, `failed`, or `unknown`. Follow the result endpoint's
907
- * pagination links for additional rows. Results are temporary; check `expires`
908
- * on the completed query.
909
- *
910
- * @param {string} harbor_id - Unique identifier of the Harbor whose backing connection runs the query
911
- * @param {Polytomic.RunHarborQueryRequest} request
912
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
913
- *
914
- * @throws {@link Polytomic.BadRequestError}
915
- * @throws {@link Polytomic.ForbiddenError}
916
- * @throws {@link Polytomic.NotFoundError}
917
- * @throws {@link Polytomic.ConflictError}
918
- * @throws {@link Polytomic.InternalServerError}
919
- * @throws {@link Polytomic.ServiceUnavailableError}
920
- * @throws {@link errors.PolytomicError}
921
- * @throws {@link errors.PolytomicTimeoutError}
922
- *
923
- * @example
924
- * await client.harbors.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
925
- * query: "SELECT 1 AS n"
926
- * })
927
- */
928
- runQuery(harbor_id: string, request: Polytomic.RunHarborQueryRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.RunQueryEnvelope>;
929
- private __runQuery;
930
- /**
931
- * Lists current published saved queries for a Harbor.
932
- *
933
- * Saved queries are supported only for Polytomic-managed Harbors whose backing
934
- * Connection type is `polytomic_harbor`.
935
- *
936
- * Collection items contain current published metadata and omit SQL, parameter
937
- * values, and unpublished drafts. A Harbor profile credential can list saved
938
- * queries only when `harbor_id` identifies its own Harbor.
939
- *
940
- * ## Harbor Activity
941
- *
942
- * When you use a Harbor profile credential, send a new nonzero UUID in
943
- * `X-Polytomic-Activity-Request-ID` for each request, including each page. A
944
- * missing or invalid ID returns `400 Bad Request`. Reusing a consumed ID returns
945
- * `409 Conflict`.
946
- *
947
- * If you supply `X-Polytomic-Harbor-Session`, the session must be active and bound
948
- * to your credential and Harbor. An invalid session returns `403 Forbidden`.
949
- * Direct scoped REST requests may omit the session header.
950
- *
951
- * Polytomic records `saved_query.listed` before returning data. The event describes
952
- * only the returned page, including saved-query IDs, immutable revision IDs,
953
- * version numbers, and bounded name snapshots. Activity excludes SQL, parameter
954
- * values, and expected column names. If Polytomic cannot record the event, the
955
- * request returns `503 Service Unavailable` without saved-query data.
956
- *
957
- * @param {string} harbor_id - Unique identifier of the Harbor
958
- * @param {Polytomic.HarborsListSavedQueriesRequest} request
959
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
960
- *
961
- * @throws {@link Polytomic.BadRequestError}
962
- * @throws {@link Polytomic.ForbiddenError}
963
- * @throws {@link Polytomic.NotFoundError}
964
- * @throws {@link Polytomic.ConflictError}
965
- * @throws {@link Polytomic.UnprocessableEntityError}
966
- * @throws {@link Polytomic.InternalServerError}
967
- * @throws {@link Polytomic.ServiceUnavailableError}
968
- * @throws {@link errors.PolytomicError}
969
- * @throws {@link errors.PolytomicTimeoutError}
970
- *
971
- * @example
972
- * await client.harbors.listSavedQueries("248df4b7-aa70-47b8-a036-33ac447e668d", {
973
- * limit: 1,
974
- * page_token: "page_token"
975
- * })
976
- */
977
- listSavedQueries(harbor_id: string, request?: Polytomic.HarborsListSavedQueriesRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryListEnvelope>;
978
- private __listSavedQueries;
979
- /**
980
- * Creates a stable Harbor saved query with its initial mutable draft.
981
- *
982
- * Saved queries are supported only for Polytomic-managed Harbors whose backing
983
- * Connection type is `polytomic_harbor`. Customer-managed Harbor backings return
984
- * an unsupported-backing error.
985
- *
986
- * The saved query receives a stable ID, but it remains absent from published
987
- * saved-query reads until an administrator publishes its initial draft.
988
- *
989
- * Use `{{parameter_name}}` references in `sql_template`. Each reference must have
990
- * one scalar declaration. Validation values and defaults must match the declared
991
- * `string`, `number`, `boolean`, `date`, `timestamp`, or `uuid` type.
992
- *
993
- * Unknown JSON fields, including fields inside parameter declarations, return
994
- * `400 Bad Request` before the draft is saved. Use `default_value`, not `default`,
995
- * for parameter defaults.
996
- *
997
- * When you omit a parameter during execution, Polytomic uses its published
998
- * `default_value`, never its draft validation value. An omitted optional parameter
999
- * without a default binds SQL `NULL`. A required parameter allows omission when a
1000
- * default exists, but rejects explicit `null` even with a default.
1001
- *
1002
- * For a report window, use a required parameter with a default so omission selects
1003
- * a useful window and explicit `null` is rejected:
1004
- *
1005
- * ```json
1006
- * {"name": "days", "type": "number", "required": true, "default_value": 7}
1007
- * ```
1008
- *
1009
- * @param {string} harbor_id - Unique identifier of the Harbor
1010
- * @param {Polytomic.CreateHarborSavedQueryDraftRequest} request
1011
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1012
- *
1013
- * @throws {@link Polytomic.BadRequestError}
1014
- * @throws {@link Polytomic.ForbiddenError}
1015
- * @throws {@link Polytomic.NotFoundError}
1016
- * @throws {@link Polytomic.UnprocessableEntityError}
1017
- * @throws {@link Polytomic.InternalServerError}
1018
- * @throws {@link errors.PolytomicError}
1019
- * @throws {@link errors.PolytomicTimeoutError}
1020
- *
1021
- * @example
1022
- * await client.harbors.createSavedQueryDraft("248df4b7-aa70-47b8-a036-33ac447e668d", {
1023
- * name: "Monthly revenue",
1024
- * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
1025
- * })
1026
- */
1027
- createSavedQueryDraft(harbor_id: string, request: Polytomic.CreateHarborSavedQueryDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftEnvelope>;
1028
- private __createSavedQueryDraft;
1029
- /**
1030
- * Lists mutable Harbor saved-query drafts.
1031
- *
1032
- * Drafts are ordered from newest to oldest and include complete SQL, typed
1033
- * parameter declarations, and author-supplied validation values. Harbor profile
1034
- * credentials cannot access this endpoint.
1035
- *
1036
- * @param {string} harbor_id - Unique identifier of the Harbor
1037
- * @param {Polytomic.HarborsListSavedQueryDraftsRequest} request
1038
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1039
- *
1040
- * @throws {@link Polytomic.ForbiddenError}
1041
- * @throws {@link Polytomic.NotFoundError}
1042
- * @throws {@link Polytomic.UnprocessableEntityError}
1043
- * @throws {@link Polytomic.InternalServerError}
1044
- * @throws {@link errors.PolytomicError}
1045
- * @throws {@link errors.PolytomicTimeoutError}
1046
- *
1047
- * @example
1048
- * await client.harbors.listSavedQueryDrafts("248df4b7-aa70-47b8-a036-33ac447e668d", {
1049
- * limit: 1,
1050
- * page_token: "page_token"
1051
- * })
1052
- */
1053
- listSavedQueryDrafts(harbor_id: string, request?: Polytomic.HarborsListSavedQueryDraftsRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftListEnvelope>;
1054
- private __listSavedQueryDrafts;
1055
- /**
1056
- * Returns the current published version of one Harbor saved query.
1057
- *
1058
- * The response contains the current immutable `revision_id`, SQL template,
1059
- * parameter contract, expected columns, and publication provenance. Validation
1060
- * inputs are draft-only and are never part of a published response.
1061
- *
1062
- * A Harbor profile credential can retrieve a saved query only from its own Harbor.
1063
- *
1064
- * ## Harbor Activity
1065
- *
1066
- * When you use a Harbor profile credential, send a new nonzero UUID in
1067
- * `X-Polytomic-Activity-Request-ID` for each request. A missing or invalid ID
1068
- * returns `400 Bad Request`. Reusing a consumed ID returns `409 Conflict`.
1069
- *
1070
- * If you supply `X-Polytomic-Harbor-Session`, the session must be active and bound
1071
- * to your credential and Harbor. An invalid session returns `403 Forbidden`.
1072
- * Direct scoped REST requests may omit the session header.
1073
- *
1074
- * Polytomic records `saved_query.fetched` before returning the definition. The
1075
- * event identifies the saved query, exact immutable revision, published version,
1076
- * and bounded name snapshot. It does not indicate query execution. Activity
1077
- * excludes SQL, parameter defaults and validation values, expected column names,
1078
- * and result rows. If Polytomic cannot record the event, the request returns
1079
- * `503 Service Unavailable` without saved-query data.
1080
- *
1081
- * @param {string} harbor_id - Unique identifier of the Harbor
1082
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1083
- * @param {Polytomic.HarborsGetSavedQueryRequest} request
1084
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1085
- *
1086
- * @throws {@link Polytomic.BadRequestError}
1087
- * @throws {@link Polytomic.ForbiddenError}
1088
- * @throws {@link Polytomic.NotFoundError}
1089
- * @throws {@link Polytomic.ConflictError}
1090
- * @throws {@link Polytomic.UnprocessableEntityError}
1091
- * @throws {@link Polytomic.InternalServerError}
1092
- * @throws {@link Polytomic.ServiceUnavailableError}
1093
- * @throws {@link errors.PolytomicError}
1094
- * @throws {@link errors.PolytomicTimeoutError}
1095
- *
1096
- * @example
1097
- * await client.harbors.getSavedQuery("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1098
- */
1099
- getSavedQuery(harbor_id: string, saved_query_id: string, request?: Polytomic.HarborsGetSavedQueryRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryEnvelope>;
1100
- private __getSavedQuery;
1101
- /**
1102
- * Archives one Harbor saved query and removes it from active reads.
1103
- *
1104
- * Archiving removes the saved query and any draft from active reads while
1105
- * retaining its immutable revisions for provenance. The operation does not run
1106
- * the saved SQL or modify the Harbor backing Connection. Archiving does not cancel
1107
- * in-flight execution requests or queued executions.
1108
- *
1109
- * This REST operation archives the saved query; it does not merely unpublish it.
1110
- * Unpublish is available only through the GraphQL `unpublishHarborSavedQuery`
1111
- * mutation. There is no REST unpublish endpoint.
1112
- *
1113
- * @param {string} harbor_id - Unique identifier of the Harbor
1114
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1115
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1116
- *
1117
- * @throws {@link Polytomic.ForbiddenError}
1118
- * @throws {@link Polytomic.NotFoundError}
1119
- * @throws {@link Polytomic.UnprocessableEntityError}
1120
- * @throws {@link Polytomic.InternalServerError}
1121
- * @throws {@link errors.PolytomicError}
1122
- * @throws {@link errors.PolytomicTimeoutError}
1123
- *
1124
- * @example
1125
- * await client.harbors.deleteSavedQuery("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1126
- */
1127
- deleteSavedQuery(harbor_id: string, saved_query_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborSavedQueryEnvelope>;
1128
- private __deleteSavedQuery;
1129
- /**
1130
- * Creates or completely replaces the mutable draft for a Harbor saved query.
1131
- *
1132
- * Replacement is complete rather than partial. The next validation or publication
1133
- * uses the replacement SQL, parameter declarations, and validation values.
1134
- *
1135
- * Unknown JSON fields, including fields inside parameter declarations, return
1136
- * `400 Bad Request` before the draft is saved. Use `default_value`, not `default`,
1137
- * for parameter defaults.
1138
- *
1139
- * When you omit a parameter during execution, Polytomic uses its published
1140
- * `default_value`, never its draft validation value. An omitted optional parameter
1141
- * without a default binds SQL `NULL`. A required parameter allows omission when a
1142
- * default exists, but rejects explicit `null` even with a default.
1143
- *
1144
- * For a report window, use a required parameter with a default so omission selects
1145
- * a useful window and explicit `null` is rejected:
1146
- *
1147
- * ```json
1148
- * {"name": "days", "type": "number", "required": true, "default_value": 7}
1149
- * ```
1150
- *
1151
- * @param {string} harbor_id - Unique identifier of the Harbor
1152
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1153
- * @param {Polytomic.SaveHarborSavedQueryDraftRequest} request
1154
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1155
- *
1156
- * @throws {@link Polytomic.BadRequestError}
1157
- * @throws {@link Polytomic.ForbiddenError}
1158
- * @throws {@link Polytomic.NotFoundError}
1159
- * @throws {@link Polytomic.UnprocessableEntityError}
1160
- * @throws {@link Polytomic.InternalServerError}
1161
- * @throws {@link errors.PolytomicError}
1162
- * @throws {@link errors.PolytomicTimeoutError}
1163
- *
1164
- * @example
1165
- * await client.harbors.saveSavedQueryDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
1166
- * name: "Monthly revenue",
1167
- * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
1168
- * })
1169
- */
1170
- saveSavedQueryDraft(harbor_id: string, saved_query_id: string, request: Polytomic.SaveHarborSavedQueryDraftRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftEnvelope>;
1171
- private __saveSavedQueryDraft;
1172
- /**
1173
- * Discards the mutable draft for one Harbor saved query.
1174
- *
1175
- * Discarding an initial unpublished draft also removes its otherwise empty stable
1176
- * saved-query identity. Discarding a later draft preserves every immutable
1177
- * published version.
1178
- *
1179
- * @param {string} harbor_id - Unique identifier of the Harbor
1180
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1181
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1182
- *
1183
- * @throws {@link Polytomic.ForbiddenError}
1184
- * @throws {@link Polytomic.NotFoundError}
1185
- * @throws {@link Polytomic.ConflictError}
1186
- * @throws {@link Polytomic.UnprocessableEntityError}
1187
- * @throws {@link Polytomic.InternalServerError}
1188
- * @throws {@link errors.PolytomicError}
1189
- * @throws {@link errors.PolytomicTimeoutError}
1190
- *
1191
- * @example
1192
- * await client.harbors.deleteSavedQueryDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1193
- */
1194
- deleteSavedQueryDraft(harbor_id: string, saved_query_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborSavedQueryDraftEnvelope>;
1195
- private __deleteSavedQueryDraft;
1196
- /**
1197
- * Validates and publishes the current draft as the next immutable saved-query version.
1198
- *
1199
- * Only organization administrators can publish. Publication executes and validates
1200
- * the current draft with the Polytomic-managed Harbor's MotherDuck `read_scaling`
1201
- * credential. It fails instead of using the Harbor writer credential when the
1202
- * reader credential is missing or incomplete.
1203
- *
1204
- * After execution, publication verifies that the draft did not change. A
1205
- * concurrent edit returns a conflict and remains a draft. Successful publication
1206
- * creates the next immutable revision, records the observed ordered columns as its
1207
- * output contract, removes validation inputs from the published definition, and
1208
- * deletes the mutable draft. The response includes the immutable `revision_id`
1209
- * that future executions use for exact provenance.
1210
- *
1211
- * @param {string} harbor_id - Unique identifier of the Harbor
1212
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1213
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1214
- *
1215
- * @throws {@link Polytomic.ForbiddenError}
1216
- * @throws {@link Polytomic.NotFoundError}
1217
- * @throws {@link Polytomic.ConflictError}
1218
- * @throws {@link Polytomic.UnprocessableEntityError}
1219
- * @throws {@link Polytomic.InternalServerError}
1220
- * @throws {@link errors.PolytomicError}
1221
- * @throws {@link errors.PolytomicTimeoutError}
1222
- *
1223
- * @example
1224
- * await client.harbors.publishSavedQueryDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1225
- */
1226
- publishSavedQueryDraft(harbor_id: string, saved_query_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryEnvelope>;
1227
- private __publishSavedQueryDraft;
1228
- /**
1229
- * Validates the exact current saved-query draft and returns a bounded ephemeral preview.
1230
- *
1231
- * Only organization administrators can validate drafts. Named template references
1232
- * compile to DuckDB placeholders, and typed values are passed separately rather
1233
- * than interpolated into SQL.
1234
- *
1235
- * The query runs with the Polytomic-managed Harbor's MotherDuck `read_scaling`
1236
- * credential. Validation fails when that credential is missing or incomplete and
1237
- * never falls back to the Harbor writer credential. Preview rows and serialized
1238
- * response size are bounded. The preview and validation attempt are not persisted.
1239
- *
1240
- * @param {string} harbor_id - Unique identifier of the Harbor
1241
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1242
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1243
- *
1244
- * @throws {@link Polytomic.ForbiddenError}
1245
- * @throws {@link Polytomic.NotFoundError}
1246
- * @throws {@link Polytomic.UnprocessableEntityError}
1247
- * @throws {@link Polytomic.InternalServerError}
1248
- * @throws {@link errors.PolytomicError}
1249
- * @throws {@link errors.PolytomicTimeoutError}
1250
- *
1251
- * @example
1252
- * await client.harbors.validateSavedQueryDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1253
- */
1254
- validateSavedQueryDraft(harbor_id: string, saved_query_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryValidationEnvelope>;
1255
- private __validateSavedQueryDraft;
1256
- /**
1257
- * Submits the current published Harbor saved query for asynchronous reader-only execution.
1258
- *
1259
- * Use a Harbor-bound scoped credential with query access to the Harbor's backing
1260
- * Connection. Administrator credentials cannot submit executions here. Saved
1261
- * queries require a Polytomic-managed Harbor.
1262
- *
1263
- * Polytomic selects the current published revision while processing your request.
1264
- * The response identifies that exact immutable revision. Selection happens before
1265
- * Polytomic accepts the execution. Drafts, unpublished queries, and archived
1266
- * queries are unavailable for selection. You cannot select a historical revision
1267
- * or supply SQL through this endpoint.
1268
- *
1269
- * > ⚠️ Concurrent publication changes
1270
- * >
1271
- * > Publishing, unpublishing, or archiving a saved query after selection does not
1272
- * > change the selected revision. An in-flight request may still be accepted and
1273
- * > execute that revision. Unpublishing or archiving does not cancel in-flight
1274
- * > requests or queued executions. Query access is checked again before execution
1275
- * > and result retrieval.
1276
- *
1277
- * Parameter values are bound separately from SQL. Omitted parameters use the
1278
- * published `default_value`, never draft validation values. An omitted optional
1279
- * parameter without a default binds SQL `NULL`. Required parameters allow omission
1280
- * when a default exists, but reject explicit `null` even with a default. Missing
1281
- * required values without defaults, explicit `null` for required parameters,
1282
- * unknown parameter names, and invalid scalar types return
1283
- * `422 Unprocessable Entity` without accepting an execution. Execution requires
1284
- * reader credentials and never falls back to writer credentials.
1285
- *
1286
- * For report windows, define parameters with `required: true` and a
1287
- * `default_value`, such as `7` for a `days` parameter. This allows omission while
1288
- * preventing explicit `null` from turning a time filter into a SQL `NULL`
1289
- * comparison.
1290
- *
1291
- * To archive a saved query through REST, use
1292
- * [`DELETE /api/harbors/{harbor_id}/saved-queries/{saved_query_id}`](../../../../../../api-reference/harbors/delete-saved-query).
1293
- * Unpublish is available only through the GraphQL `unpublishHarborSavedQuery`
1294
- * mutation, not a REST endpoint.
1295
- *
1296
- * ## Results
1297
- *
1298
- * The response returns a task ID with status `created`, not result rows. Poll
1299
- * [`GET /api/queries/{id}`](../../../../../../api-reference/query-runner/get-query) using a credential
1300
- * from the same Harbor profile. Query access is checked again before execution and
1301
- * result retrieval. Stop polling at `done`, `failed`, or `unknown`; `unknown` means
1302
- * execution started but no durable terminal result is available.
1303
- *
1304
- * Results and detailed failure information expire after 24 hours. Use the
1305
- * `expires` field and follow `links.next` to retrieve additional result pages.
1306
- *
1307
- * ## Harbor Activity
1308
- *
1309
- * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. Missing or invalid
1310
- * IDs return `400 Bad Request`. Reusing a consumed ID returns `409 Conflict` and
1311
- * does not create another execution.
1312
- *
1313
- * You may omit `X-Polytomic-Harbor-Session` for direct REST requests. If supplied,
1314
- * the session must be active and bound to your credential and Harbor.
1315
- *
1316
- * Polytomic records `query.submitted` atomically with acceptance. The event
1317
- * identifies the saved query, immutable revision, published version, and bounded
1318
- * name snapshot. SQL, parameter values and defaults, column names, and result rows
1319
- * remain outside Activity metadata. If Activity persistence is unavailable, the
1320
- * request returns `503 Service Unavailable` without accepting an execution.
1321
- *
1322
- * `query.started` records provider invocation. `query.succeeded` means results are
1323
- * available for authorized retrieval, not that you have consumed them.
1324
- *
1325
- * @param {string} harbor_id - Unique identifier of the Harbor
1326
- * @param {string} saved_query_id - Unique stable identifier of the saved query
1327
- * @param {Polytomic.ExecuteHarborSavedQueryRequest} request
1328
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1329
- *
1330
- * @throws {@link Polytomic.BadRequestError}
1331
- * @throws {@link Polytomic.ForbiddenError}
1332
- * @throws {@link Polytomic.NotFoundError}
1333
- * @throws {@link Polytomic.ConflictError}
1334
- * @throws {@link Polytomic.UnprocessableEntityError}
1335
- * @throws {@link Polytomic.InternalServerError}
1336
- * @throws {@link Polytomic.ServiceUnavailableError}
1337
- * @throws {@link errors.PolytomicError}
1338
- * @throws {@link errors.PolytomicTimeoutError}
1339
- *
1340
- * @example
1341
- * await client.harbors.executeSavedQuery("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1342
- */
1343
- executeSavedQuery(harbor_id: string, saved_query_id: string, request?: Polytomic.ExecuteHarborSavedQueryRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ExecuteHarborSavedQueryEnvelope>;
1344
- private __executeSavedQuery;
1345
- /**
1346
- * Resolves documented source table and field identities to the names a Harbor's backing Connection accepts.
1347
- *
1348
- * @param {string} harbor_id - Unique identifier of the Harbor
1349
- * @param {Polytomic.ResolveHarborSourceMappingsRequest} request
1350
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1351
- *
1352
- * @throws {@link Polytomic.ForbiddenError}
1353
- * @throws {@link Polytomic.NotFoundError}
1354
- * @throws {@link Polytomic.UnprocessableEntityError}
1355
- * @throws {@link Polytomic.InternalServerError}
1356
- * @throws {@link errors.PolytomicError}
1357
- * @throws {@link errors.PolytomicTimeoutError}
1358
- *
1359
- * @example
1360
- * await client.harbors.resolveSourceMappings("248df4b7-aa70-47b8-a036-33ac447e668d")
1361
- */
1362
- resolveSourceMappings(harbor_id: string, request?: Polytomic.ResolveHarborSourceMappingsRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ResolveHarborSourceMappingsEnvelope>;
1363
- private __resolveSourceMappings;
1364
- /**
1365
- * Returns raw Polytomic refresh evidence for datasets written to a Harbor.
1366
- *
1367
- * Each pipeline corresponds to a bulk sync or model sync that writes at least one
1368
- * dataset to the Harbor's backing Connection. Tables populated outside Polytomic
1369
- * are not included, even when they are queryable through a customer-managed
1370
- * backing Connection.
1371
- *
1372
- * The response groups shared pipeline evidence so schedules and configuration are
1373
- * not repeated for every dataset:
1374
- *
1375
- * - Each entry in `pipelines` identifies the producer through `type` and `id`.
1376
- * Separate pipelines targeting the same physical dataset remain separate
1377
- * entries.
1378
- * - `datasets` is keyed by the effective destination dataset name.
1379
- * `last_success_at` is the start time of the most recent execution in which that
1380
- * dataset completed successfully, including a successful dataset within a bulk
1381
- * execution that completes with errors. The start time is a conservative upper
1382
- * bound because source reads and destination writes happen afterward.
1383
- * - `latest_status` preserves the latest Polytomic execution status. Never-run
1384
- * datasets omit this field.
1385
- * - Pipeline-level `schedules` preserves schedule parameters and selectors. A
1386
- * schedule can be manual, event-driven, advanced, selective, or limited to
1387
- * named source schemas, so callers should not reduce the list to one inferred
1388
- * cadence.
1389
- * - Continuous schedules use the scheduler's persisted next firing. If scheduler
1390
- * state is unavailable, `next_run_at` is omitted rather than recalculated with
1391
- * new jitter.
1392
- * - Paused pipelines remain present with `refresh_enabled` set to `false` and no
1393
- * `next_run_at`.
1394
- *
1395
- * Use absolute timestamps and the raw statuses to apply the maximum acceptable
1396
- * staleness for your task. The endpoint does not classify datasets or the Harbor
1397
- * as healthy, stale, or unhealthy.
1398
- *
1399
- * @param {string} harbor_id - Unique identifier of the Harbor
1400
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1401
- *
1402
- * @throws {@link Polytomic.ForbiddenError}
1403
- * @throws {@link Polytomic.NotFoundError}
1404
- * @throws {@link Polytomic.InternalServerError}
1405
- * @throws {@link errors.PolytomicError}
1406
- * @throws {@link errors.PolytomicTimeoutError}
1407
- *
1408
- * @example
1409
- * await client.harbors.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
282
+ * await client.harbors.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
1410
283
  */
1411
284
  getStatus(harbor_id: string, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborStatusEnvelope>;
1412
285
  private __getStatus;
1413
- /**
1414
- * Lists Harbor-only users assigned to a Harbor.
1415
- *
1416
- * The response contains only Harbor-only users currently assigned to this Harbor.
1417
- *
1418
- * @param {string} harbor_id - Unique identifier of the Harbor
1419
- * @param {Polytomic.HarborsListUsersRequest} request
1420
- * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1421
- *
1422
- * @throws {@link Polytomic.ForbiddenError}
1423
- * @throws {@link Polytomic.NotFoundError}
1424
- * @throws {@link Polytomic.UnprocessableEntityError}
1425
- * @throws {@link Polytomic.InternalServerError}
1426
- * @throws {@link errors.PolytomicError}
1427
- * @throws {@link errors.PolytomicTimeoutError}
1428
- *
1429
- * @example
1430
- * await client.harbors.listUsers("248df4b7-aa70-47b8-a036-33ac447e668d", {
1431
- * limit: 50,
1432
- * page_token: "page_token"
1433
- * })
1434
- */
1435
- listUsers(harbor_id: string, request?: Polytomic.HarborsListUsersRequest, requestOptions?: HarborsClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborUserListEnvelope>;
1436
- private __listUsers;
1437
- /**
1438
- * Invites and assigns a new Harbor-only user.
1439
- *
1440
- * The invited account is restricted to assigned Harbors and does not receive regular Polytomic application access.
1441
- *
1442
- * @param {string} harbor_id - Unique identifier of the Harbor
1443
- * @param {Polytomic.InviteHarborUserRequest} request
1444
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1445
- *
1446
- * @throws {@link Polytomic.ForbiddenError}
1447
- * @throws {@link Polytomic.NotFoundError}
1448
- * @throws {@link Polytomic.ConflictError}
1449
- * @throws {@link Polytomic.UnprocessableEntityError}
1450
- * @throws {@link Polytomic.InternalServerError}
1451
- * @throws {@link errors.PolytomicError}
1452
- * @throws {@link errors.PolytomicTimeoutError}
1453
- *
1454
- * @example
1455
- * await client.harbors.inviteUser("248df4b7-aa70-47b8-a036-33ac447e668d", {
1456
- * email: "analyst@example.com"
1457
- * })
1458
- */
1459
- inviteUser(harbor_id: string, request: Polytomic.InviteHarborUserRequest, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborUserEnvelope>;
1460
- private __inviteUser;
1461
- /**
1462
- * Assigns an existing Harbor-only user to a Harbor.
1463
- *
1464
- * The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.
1465
- *
1466
- * @param {string} harbor_id - Unique identifier of the Harbor
1467
- * @param {string} user_id - Unique identifier of the Harbor-only user
1468
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1469
- *
1470
- * @throws {@link Polytomic.ForbiddenError}
1471
- * @throws {@link Polytomic.NotFoundError}
1472
- * @throws {@link Polytomic.UnprocessableEntityError}
1473
- * @throws {@link Polytomic.InternalServerError}
1474
- * @throws {@link errors.PolytomicError}
1475
- * @throws {@link errors.PolytomicTimeoutError}
1476
- *
1477
- * @example
1478
- * await client.harbors.assignUser("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1479
- */
1480
- assignUser(harbor_id: string, user_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborUserEnvelope>;
1481
- private __assignUser;
1482
- /**
1483
- * Removes a Harbor assignment without deleting the user.
1484
- *
1485
- * This removes only the Harbor assignment. The organization user remains available and may retain assignments to other Harbors.
1486
- *
1487
- * @param {string} harbor_id - Unique identifier of the Harbor
1488
- * @param {string} user_id - Unique identifier of the Harbor-only user
1489
- * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1490
- *
1491
- * @throws {@link Polytomic.ForbiddenError}
1492
- * @throws {@link Polytomic.NotFoundError}
1493
- * @throws {@link Polytomic.UnprocessableEntityError}
1494
- * @throws {@link Polytomic.InternalServerError}
1495
- * @throws {@link errors.PolytomicError}
1496
- * @throws {@link errors.PolytomicTimeoutError}
1497
- *
1498
- * @example
1499
- * await client.harbors.unassignUser("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1500
- */
1501
- unassignUser(harbor_id: string, user_id: string, requestOptions?: HarborsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.UnassignedHarborUserEnvelope>;
1502
- private __unassignUser;
1503
286
  }