polytomic 25.9.12 → 25.9.14

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 (251) 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 +13 -0
  14. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.js +10 -0
  15. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -1
  16. package/api/resources/bulkSync/resources/schemas/client/requests/index.js +3 -0
  17. package/api/resources/connections/client/Client.d.ts +8 -7
  18. package/api/resources/connections/client/Client.js +8 -7
  19. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -1
  20. package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +5 -1
  21. package/api/resources/connections/resources/proxy/client/Client.d.ts +13 -2
  22. package/api/resources/connections/resources/proxy/client/Client.js +13 -2
  23. package/api/resources/events/client/Client.d.ts +10 -7
  24. package/api/resources/events/client/Client.js +10 -7
  25. package/api/resources/harbors/client/Client.d.ts +73 -1290
  26. package/api/resources/harbors/client/Client.js +108 -3353
  27. package/api/resources/harbors/client/requests/index.d.ts +0 -29
  28. package/api/resources/harbors/resources/actionConfiguration/client/Client.d.ts +267 -0
  29. package/api/resources/harbors/resources/actionConfiguration/client/Client.js +686 -0
  30. package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.d.ts} +1 -1
  31. package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.d.ts} +1 -1
  32. package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.d.ts +1 -1
  33. package/api/resources/harbors/resources/actionConfiguration/client/requests/index.d.ts +3 -0
  34. package/api/resources/harbors/resources/actionConfiguration/exports.d.ts +2 -0
  35. package/api/resources/harbors/resources/actionConfiguration/exports.js +21 -0
  36. package/api/resources/harbors/resources/actionConfiguration/index.d.ts +1 -0
  37. package/api/resources/harbors/resources/actionConfiguration/index.js +17 -0
  38. package/api/resources/harbors/resources/actions/client/Client.d.ts +4 -0
  39. package/api/resources/harbors/resources/actions/client/Client.js +4 -0
  40. package/api/resources/{activity → harbors/resources/activity}/client/Client.d.ts +11 -11
  41. package/api/resources/{activity → harbors/resources/activity}/client/Client.js +12 -12
  42. package/api/resources/harbors/resources/activity/client/index.d.ts +1 -0
  43. package/api/resources/harbors/resources/activity/client/index.js +17 -0
  44. package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityGetSessionRequest.d.ts +2 -2
  45. package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityListRequest.d.ts +2 -2
  46. package/api/resources/harbors/resources/activity/client/requests/index.js +2 -0
  47. package/api/resources/harbors/resources/connections/client/Client.d.ts +64 -0
  48. package/api/resources/harbors/resources/connections/client/Client.js +236 -0
  49. package/api/resources/harbors/resources/connections/client/index.d.ts +1 -0
  50. package/api/resources/harbors/resources/connections/client/index.js +17 -0
  51. package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.d.ts → resources/connections/client/requests/ConnectionsGetSchemaRequest.d.ts} +1 -1
  52. package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.d.ts → resources/connections/client/requests/ConnectionsListRequest.d.ts} +1 -1
  53. package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.d.ts → resources/connections/client/requests/ConnectionsListSchemasRequest.d.ts} +1 -1
  54. package/api/resources/harbors/resources/connections/client/requests/index.d.ts +3 -0
  55. package/api/resources/harbors/resources/connections/client/requests/index.js +2 -0
  56. package/api/resources/harbors/resources/connections/exports.d.ts +2 -0
  57. package/api/resources/harbors/resources/connections/exports.js +21 -0
  58. package/api/resources/harbors/resources/connections/index.d.ts +1 -0
  59. package/api/resources/harbors/resources/connections/index.js +17 -0
  60. package/api/resources/harbors/resources/contexts/client/Client.d.ts +395 -0
  61. package/api/resources/harbors/resources/contexts/client/Client.js +1142 -0
  62. package/api/resources/harbors/resources/contexts/client/index.d.ts +1 -0
  63. package/api/resources/harbors/resources/contexts/client/index.js +17 -0
  64. package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.d.ts → resources/contexts/client/requests/ContextsDeleteDraftRequest.d.ts} +1 -1
  65. package/api/resources/harbors/{client/requests/HarborsGetContextRequest.d.ts → resources/contexts/client/requests/ContextsDeleteRequest.d.ts} +1 -1
  66. package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.d.ts → resources/contexts/client/requests/ContextsGetDraftRequest.d.ts} +1 -1
  67. package/api/resources/harbors/resources/contexts/client/requests/ContextsGetRequest.d.ts +10 -0
  68. package/api/resources/harbors/resources/contexts/client/requests/ContextsGetVersionRequest.d.ts +10 -0
  69. package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.d.ts → resources/contexts/client/requests/ContextsListDraftsRequest.d.ts} +1 -1
  70. package/api/resources/harbors/{client/requests/HarborsListContextsRequest.d.ts → resources/contexts/client/requests/ContextsListRequest.d.ts} +1 -1
  71. package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.d.ts → resources/contexts/client/requests/ContextsListVersionsRequest.d.ts} +1 -1
  72. package/api/resources/harbors/resources/contexts/client/requests/ContextsPromoteDraftRequest.d.ts +10 -0
  73. package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.d.ts +6 -2
  74. package/api/resources/harbors/resources/contexts/client/requests/index.d.ts +14 -0
  75. package/api/resources/harbors/resources/contexts/client/requests/index.js +2 -0
  76. package/api/resources/harbors/resources/contexts/exports.d.ts +2 -0
  77. package/api/resources/harbors/resources/contexts/exports.js +21 -0
  78. package/api/resources/harbors/resources/contexts/index.d.ts +1 -0
  79. package/api/resources/harbors/resources/contexts/index.js +17 -0
  80. package/api/resources/harbors/resources/index.d.ts +15 -0
  81. package/api/resources/harbors/resources/index.js +16 -1
  82. package/api/resources/harbors/resources/keys/client/Client.d.ts +86 -0
  83. package/api/resources/harbors/resources/keys/client/Client.js +266 -0
  84. package/api/resources/harbors/resources/keys/client/index.d.ts +1 -0
  85. package/api/resources/harbors/resources/keys/client/index.js +17 -0
  86. package/api/resources/harbors/{client/requests/HarborsListKeysRequest.d.ts → resources/keys/client/requests/KeysListRequest.d.ts} +1 -1
  87. package/api/resources/harbors/resources/keys/client/requests/index.d.ts +1 -0
  88. package/api/resources/harbors/resources/keys/client/requests/index.js +2 -0
  89. package/api/resources/harbors/resources/keys/exports.d.ts +2 -0
  90. package/api/resources/harbors/resources/keys/exports.js +21 -0
  91. package/api/resources/harbors/resources/keys/index.d.ts +1 -0
  92. package/api/resources/harbors/resources/keys/index.js +17 -0
  93. package/api/resources/harbors/resources/savedQueries/client/Client.d.ts +430 -0
  94. package/api/resources/harbors/resources/savedQueries/client/Client.js +1008 -0
  95. package/api/resources/harbors/resources/savedQueries/client/index.d.ts +1 -0
  96. package/api/resources/harbors/resources/savedQueries/client/index.js +17 -0
  97. package/api/resources/harbors/{client → resources/savedQueries/client}/requests/CreateHarborSavedQueryDraftRequest.d.ts +1 -1
  98. package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.d.ts +1 -1
  99. package/api/resources/harbors/resources/savedQueries/client/requests/SavedQueriesGetRequest.d.ts +10 -0
  100. package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.d.ts} +1 -1
  101. package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListRequest.d.ts} +1 -1
  102. package/api/resources/harbors/resources/savedQueries/client/requests/index.d.ts +6 -0
  103. package/api/resources/harbors/resources/savedQueries/client/requests/index.js +2 -0
  104. package/api/resources/harbors/resources/savedQueries/exports.d.ts +2 -0
  105. package/api/resources/harbors/resources/savedQueries/exports.js +21 -0
  106. package/api/resources/harbors/resources/savedQueries/index.d.ts +1 -0
  107. package/api/resources/harbors/resources/savedQueries/index.js +17 -0
  108. package/api/resources/harbors/resources/users/client/Client.d.ts +105 -0
  109. package/api/resources/harbors/resources/users/client/Client.js +342 -0
  110. package/api/resources/harbors/resources/users/client/index.d.ts +1 -0
  111. package/api/resources/harbors/resources/users/client/index.js +17 -0
  112. package/api/resources/harbors/{client/requests/HarborsListUsersRequest.d.ts → resources/users/client/requests/UsersListRequest.d.ts} +1 -1
  113. package/api/resources/harbors/resources/users/client/requests/UsersListRequest.js +3 -0
  114. package/api/resources/harbors/resources/users/client/requests/index.d.ts +2 -0
  115. package/api/resources/harbors/resources/users/client/requests/index.js +2 -0
  116. package/api/resources/harbors/resources/users/exports.d.ts +2 -0
  117. package/api/resources/harbors/resources/users/exports.js +21 -0
  118. package/api/resources/harbors/resources/users/index.d.ts +1 -0
  119. package/api/resources/harbors/resources/users/index.js +17 -0
  120. package/api/resources/index.d.ts +0 -3
  121. package/api/resources/index.js +1 -4
  122. package/api/resources/modelSync/resources/executions/client/Client.d.ts +12 -6
  123. package/api/resources/modelSync/resources/executions/client/Client.js +12 -6
  124. package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
  125. package/api/resources/models/client/Client.d.ts +83 -10
  126. package/api/resources/models/client/Client.js +83 -10
  127. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +2 -0
  128. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -2
  129. package/api/resources/permissions/resources/policies/client/Client.js +10 -2
  130. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +5 -1
  131. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +5 -1
  132. package/api/resources/queryRunner/client/Client.d.ts +5 -0
  133. package/api/resources/queryRunner/client/Client.js +5 -0
  134. package/api/resources/recordViewLinks/client/Client.d.ts +5 -0
  135. package/api/resources/recordViewLinks/client/Client.js +5 -0
  136. package/api/resources/schemas/client/Client.d.ts +4 -11
  137. package/api/resources/schemas/client/Client.js +4 -11
  138. package/api/resources/temporaryCredentials/client/Client.d.ts +3 -0
  139. package/api/resources/temporaryCredentials/client/Client.js +3 -0
  140. package/api/resources/users/client/Client.d.ts +30 -15
  141. package/api/resources/users/client/Client.js +30 -15
  142. package/api/resources/webhooks/client/Client.d.ts +7 -7
  143. package/api/resources/webhooks/client/Client.js +7 -7
  144. package/api/types/BulkBulkSyncSchedule.d.ts +0 -1
  145. package/api/types/BulkSchema.d.ts +13 -0
  146. package/api/types/BulkSchema.js +10 -0
  147. package/api/types/BulkSchemaListItem.d.ts +11 -0
  148. package/api/types/BulkSchemaListItem.js +10 -0
  149. package/api/types/BulkSelectiveMode.d.ts +9 -0
  150. package/api/types/BulkSelectiveMode.js +9 -0
  151. package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +0 -1
  152. package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +0 -1
  153. package/api/types/BulkSyncDest.d.ts +2 -0
  154. package/api/types/BulkSyncScheduleApi.d.ts +0 -1
  155. package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
  156. package/api/types/BulkSyncSourceStatus.d.ts +5 -0
  157. package/api/types/ConnectAccessLevel.d.ts +5 -0
  158. package/api/types/ConnectAccessLevel.js +8 -0
  159. package/api/types/ConnectionType.d.ts +4 -0
  160. package/api/types/CreateModelRequest.d.ts +2 -0
  161. package/api/types/EventPayload.d.ts +1 -1
  162. package/api/types/EventingBulkSyncCanceledEvent.d.ts +5 -2
  163. package/api/types/EventingBulkSyncCompletedEvent.d.ts +5 -2
  164. package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +5 -2
  165. package/api/types/EventingBulkSyncFailedEvent.d.ts +5 -2
  166. package/api/types/EventingBulkSyncRunningEvent.d.ts +5 -2
  167. package/api/types/EventingBulkSyncSchedule.d.ts +1 -1
  168. package/api/types/EventingIngestionRecoveredEvent.d.ts +17 -0
  169. package/api/types/EventingIngestionRecoveredEvent.js +3 -0
  170. package/api/types/EventingIngestionStalledEvent.d.ts +19 -0
  171. package/api/types/EventingIngestionStalledEvent.js +3 -0
  172. package/api/types/EventingSyncCanceledEvent.d.ts +5 -2
  173. package/api/types/EventingSyncCompletedEvent.d.ts +6 -3
  174. package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +5 -2
  175. package/api/types/EventingSyncFailedEvent.d.ts +5 -2
  176. package/api/types/EventingSyncRunningEvent.d.ts +5 -2
  177. package/api/types/GetIdentityResponseSchema.d.ts +2 -0
  178. package/api/types/HarborStatusScheduleResponse.d.ts +0 -1
  179. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +2 -2
  180. package/api/types/IdentityCredentialSchema.d.ts +2 -0
  181. package/api/types/IdentityCredentialSupportAccessSchema.d.ts +6 -0
  182. package/api/types/IdentityCredentialSupportAccessSchema.js +3 -0
  183. package/api/types/ModelModelFieldOverride.d.ts +17 -0
  184. package/api/types/ModelModelFieldOverride.js +17 -0
  185. package/api/types/SchemaConfiguration.d.ts +11 -0
  186. package/api/types/SchemaConfiguration.js +10 -0
  187. package/api/types/SchemaField.d.ts +4 -0
  188. package/api/types/SchemaSchemaError.d.ts +4 -0
  189. package/api/types/SchemaSchemaError.js +3 -0
  190. package/api/types/SyncDestinationProperties.d.ts +2 -0
  191. package/api/types/index.d.ts +6 -0
  192. package/api/types/index.js +6 -0
  193. package/package.json +1 -1
  194. package/reference.md +2822 -2622
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +0 -10
  198. package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +0 -10
  199. package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +0 -10
  200. package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +0 -10
  201. /package/api/resources/{activity/client/requests/ActivityGetSessionRequest.js → bulkSync/client/requests/BulkSyncGetDestinationRequest.js} +0 -0
  202. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.d.ts +0 -0
  203. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.js +0 -0
  204. /package/api/resources/{activity/client/requests/ActivityListRequest.js → harbors/resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.js} +0 -0
  205. /package/api/resources/harbors/{client/requests/CreateHarborContextDraftRequest.js → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.js} +0 -0
  206. /package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.js +0 -0
  207. /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/requests/index.js +0 -0
  208. /package/api/resources/harbors/{client/requests/CreateHarborContextRequest.js → resources/activity/client/requests/ActivityGetSessionRequest.js} +0 -0
  209. /package/api/resources/harbors/{client/requests/CreateHarborSavedQueryDraftRequest.js → resources/activity/client/requests/ActivityListRequest.js} +0 -0
  210. /package/api/resources/{activity → harbors/resources/activity}/client/requests/index.d.ts +0 -0
  211. /package/api/resources/{activity → harbors/resources/activity}/exports.d.ts +0 -0
  212. /package/api/resources/{activity → harbors/resources/activity}/exports.js +0 -0
  213. /package/api/resources/{activity → harbors/resources/activity}/index.d.ts +0 -0
  214. /package/api/resources/{activity → harbors/resources/activity}/index.js +0 -0
  215. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.d.ts +0 -0
  216. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.js +0 -0
  217. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.d.ts +0 -0
  218. /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.js +0 -0
  219. /package/api/resources/{activity → harbors/resources/activity}/types/index.d.ts +0 -0
  220. /package/api/resources/{activity → harbors/resources/activity}/types/index.js +0 -0
  221. /package/api/resources/harbors/{client/requests/ExecuteHarborSavedQueryRequest.js → resources/connections/client/requests/ConnectionsGetSchemaRequest.js} +0 -0
  222. /package/api/resources/harbors/{client/requests/HarborsDeleteContextDraftRequest.js → resources/connections/client/requests/ConnectionsListRequest.js} +0 -0
  223. /package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.js → resources/connections/client/requests/ConnectionsListSchemasRequest.js} +0 -0
  224. /package/api/resources/harbors/{client/requests/HarborsGetAuthorizedSchemaRequest.js → resources/contexts/client/requests/ContextsDeleteDraftRequest.js} +0 -0
  225. /package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.js → resources/contexts/client/requests/ContextsDeleteRequest.js} +0 -0
  226. /package/api/resources/harbors/{client/requests/HarborsGetContextRequest.js → resources/contexts/client/requests/ContextsGetDraftRequest.js} +0 -0
  227. /package/api/resources/harbors/{client/requests/HarborsGetContextVersionRequest.js → resources/contexts/client/requests/ContextsGetRequest.js} +0 -0
  228. /package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.js → resources/contexts/client/requests/ContextsGetVersionRequest.js} +0 -0
  229. /package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.js → resources/contexts/client/requests/ContextsListDraftsRequest.js} +0 -0
  230. /package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.js → resources/contexts/client/requests/ContextsListRequest.js} +0 -0
  231. /package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.js → resources/contexts/client/requests/ContextsListVersionsRequest.js} +0 -0
  232. /package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.js → resources/contexts/client/requests/ContextsPromoteDraftRequest.js} +0 -0
  233. /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextDraftRequest.d.ts +0 -0
  234. /package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.js → resources/contexts/client/requests/CreateHarborContextDraftRequest.js} +0 -0
  235. /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextRequest.d.ts +0 -0
  236. /package/api/resources/harbors/{client/requests/HarborsListContextsRequest.js → resources/contexts/client/requests/CreateHarborContextRequest.js} +0 -0
  237. /package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.js +0 -0
  238. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.d.ts +0 -0
  239. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.js +0 -0
  240. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.d.ts +0 -0
  241. /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.js +0 -0
  242. /package/api/resources/harbors/{client/requests/HarborsListKeysRequest.js → resources/keys/client/requests/KeysListRequest.js} +0 -0
  243. /package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.js → resources/savedQueries/client/requests/CreateHarborSavedQueryDraftRequest.js} +0 -0
  244. /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/ExecuteHarborSavedQueryRequest.d.ts +0 -0
  245. /package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.js → resources/savedQueries/client/requests/ExecuteHarborSavedQueryRequest.js} +0 -0
  246. /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.js +0 -0
  247. /package/api/resources/harbors/{client/requests/HarborsListUsersRequest.js → resources/savedQueries/client/requests/SavedQueriesGetRequest.js} +0 -0
  248. /package/api/resources/harbors/{client/requests/HarborsPromoteContextDraftRequest.js → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.js} +0 -0
  249. /package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.js → resources/savedQueries/client/requests/SavedQueriesListRequest.js} +0 -0
  250. /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.d.ts +0 -0
  251. /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.js +0 -0
@@ -0,0 +1,2 @@
1
+ export { KeysClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.KeysClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "KeysClient", { enumerable: true, get: function () { return Client_1.KeysClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,430 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
3
+ import * as core from "../../../../../../core";
4
+ import * as Polytomic from "../../../../../index";
5
+ export declare namespace SavedQueriesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ export declare class SavedQueriesClient {
13
+ protected readonly _options: NormalizedClientOptionsWithAuth<SavedQueriesClient.Options>;
14
+ constructor(options?: SavedQueriesClient.Options);
15
+ /**
16
+ * Lists current published saved queries for a Harbor.
17
+ *
18
+ * Saved queries are supported only for Polytomic-managed Harbors whose backing
19
+ * Connection type is `polytomic_harbor`.
20
+ *
21
+ * Collection items contain current published metadata and omit SQL, parameter
22
+ * values, and unpublished drafts. A Harbor profile credential can list saved
23
+ * queries only when `harbor_id` identifies its own Harbor.
24
+ *
25
+ * ## Harbor Activity
26
+ *
27
+ * When you use a Harbor profile credential, send a new nonzero UUID in
28
+ * `X-Polytomic-Activity-Request-ID` for each request, including each page. A
29
+ * missing or invalid ID returns `400 Bad Request`. Reusing a consumed ID returns
30
+ * `409 Conflict`.
31
+ *
32
+ * If you supply `X-Polytomic-Harbor-Session`, the session must be active and bound
33
+ * to your credential and Harbor. An invalid session returns `403 Forbidden`.
34
+ * Direct scoped REST requests may omit the session header.
35
+ *
36
+ * Polytomic records `saved_query.listed` before returning data. The event describes
37
+ * only the returned page, including saved-query IDs, immutable revision IDs,
38
+ * version numbers, and bounded name snapshots. Activity excludes SQL, parameter
39
+ * values, and expected column names. If Polytomic cannot record the event, the
40
+ * request returns `503 Service Unavailable` without saved-query data.
41
+ *
42
+ * @param {string} harbor_id - Unique identifier of the Harbor
43
+ * @param {Polytomic.harbors.SavedQueriesListRequest} request
44
+ * @param {SavedQueriesClient.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link Polytomic.BadRequestError}
47
+ * @throws {@link Polytomic.ForbiddenError}
48
+ * @throws {@link Polytomic.NotFoundError}
49
+ * @throws {@link Polytomic.ConflictError}
50
+ * @throws {@link Polytomic.UnprocessableEntityError}
51
+ * @throws {@link Polytomic.InternalServerError}
52
+ * @throws {@link Polytomic.ServiceUnavailableError}
53
+ * @throws {@link errors.PolytomicError}
54
+ * @throws {@link errors.PolytomicTimeoutError}
55
+ *
56
+ * @example
57
+ * await client.harbors.savedQueries.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
58
+ * limit: 1,
59
+ * page_token: "page_token"
60
+ * })
61
+ */
62
+ list(harbor_id: string, request?: Polytomic.harbors.SavedQueriesListRequest, requestOptions?: SavedQueriesClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryListEnvelope>;
63
+ private __list;
64
+ /**
65
+ * Creates a stable Harbor saved query with its initial mutable draft.
66
+ *
67
+ * Saved queries are supported only for Polytomic-managed Harbors whose backing
68
+ * Connection type is `polytomic_harbor`. Customer-managed Harbor backings return
69
+ * an unsupported-backing error.
70
+ *
71
+ * The saved query receives a stable ID, but it remains absent from published
72
+ * saved-query reads until an administrator publishes its initial draft.
73
+ *
74
+ * Use `{{parameter_name}}` references in `sql_template`. Each reference must have
75
+ * one scalar declaration. Validation values and defaults must match the declared
76
+ * `string`, `number`, `boolean`, `date`, `timestamp`, or `uuid` type.
77
+ *
78
+ * Unknown JSON fields, including fields inside parameter declarations, return
79
+ * `400 Bad Request` before the draft is saved. Use `default_value`, not `default`,
80
+ * for parameter defaults.
81
+ *
82
+ * When you omit a parameter during execution, Polytomic uses its published
83
+ * `default_value`, never its draft validation value. An omitted optional parameter
84
+ * without a default binds SQL `NULL`. A required parameter allows omission when a
85
+ * default exists, but rejects explicit `null` even with a default.
86
+ *
87
+ * For a report window, use a required parameter with a default so omission selects
88
+ * a useful window and explicit `null` is rejected:
89
+ *
90
+ * ```json
91
+ * {"name": "days", "type": "number", "required": true, "default_value": 7}
92
+ * ```
93
+ *
94
+ * @param {string} harbor_id - Unique identifier of the Harbor
95
+ * @param {Polytomic.harbors.CreateHarborSavedQueryDraftRequest} request
96
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
97
+ *
98
+ * @throws {@link Polytomic.BadRequestError}
99
+ * @throws {@link Polytomic.ForbiddenError}
100
+ * @throws {@link Polytomic.NotFoundError}
101
+ * @throws {@link Polytomic.UnprocessableEntityError}
102
+ * @throws {@link Polytomic.InternalServerError}
103
+ * @throws {@link errors.PolytomicError}
104
+ * @throws {@link errors.PolytomicTimeoutError}
105
+ *
106
+ * @example
107
+ * await client.harbors.savedQueries.createDraft("248df4b7-aa70-47b8-a036-33ac447e668d", {
108
+ * name: "Monthly revenue",
109
+ * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
110
+ * })
111
+ */
112
+ createDraft(harbor_id: string, request: Polytomic.harbors.CreateHarborSavedQueryDraftRequest, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftEnvelope>;
113
+ private __createDraft;
114
+ /**
115
+ * Lists mutable Harbor saved-query drafts.
116
+ *
117
+ * Drafts are ordered from newest to oldest and include complete SQL, typed
118
+ * parameter declarations, and author-supplied validation values. Harbor profile
119
+ * credentials cannot access this endpoint.
120
+ *
121
+ * @param {string} harbor_id - Unique identifier of the Harbor
122
+ * @param {Polytomic.harbors.SavedQueriesListDraftsRequest} request
123
+ * @param {SavedQueriesClient.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @throws {@link Polytomic.ForbiddenError}
126
+ * @throws {@link Polytomic.NotFoundError}
127
+ * @throws {@link Polytomic.UnprocessableEntityError}
128
+ * @throws {@link Polytomic.InternalServerError}
129
+ * @throws {@link errors.PolytomicError}
130
+ * @throws {@link errors.PolytomicTimeoutError}
131
+ *
132
+ * @example
133
+ * await client.harbors.savedQueries.listDrafts("248df4b7-aa70-47b8-a036-33ac447e668d", {
134
+ * limit: 1,
135
+ * page_token: "page_token"
136
+ * })
137
+ */
138
+ listDrafts(harbor_id: string, request?: Polytomic.harbors.SavedQueriesListDraftsRequest, requestOptions?: SavedQueriesClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftListEnvelope>;
139
+ private __listDrafts;
140
+ /**
141
+ * Returns the current published version of one Harbor saved query.
142
+ *
143
+ * The response contains the current immutable `revision_id`, SQL template,
144
+ * parameter contract, expected columns, and publication provenance. Validation
145
+ * inputs are draft-only and are never part of a published response.
146
+ *
147
+ * A Harbor profile credential can retrieve a saved query only from its own Harbor.
148
+ *
149
+ * ## Harbor Activity
150
+ *
151
+ * When you use a Harbor profile credential, send a new nonzero UUID in
152
+ * `X-Polytomic-Activity-Request-ID` for each request. A missing or invalid ID
153
+ * returns `400 Bad Request`. Reusing a consumed ID returns `409 Conflict`.
154
+ *
155
+ * If you supply `X-Polytomic-Harbor-Session`, the session must be active and bound
156
+ * to your credential and Harbor. An invalid session returns `403 Forbidden`.
157
+ * Direct scoped REST requests may omit the session header.
158
+ *
159
+ * Polytomic records `saved_query.fetched` before returning the definition. The
160
+ * event identifies the saved query, exact immutable revision, published version,
161
+ * and bounded name snapshot. It does not indicate query execution. Activity
162
+ * excludes SQL, parameter defaults and validation values, expected column names,
163
+ * and result rows. If Polytomic cannot record the event, the request returns
164
+ * `503 Service Unavailable` without saved-query data.
165
+ *
166
+ * @param {string} harbor_id - Unique identifier of the Harbor
167
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
168
+ * @param {Polytomic.harbors.SavedQueriesGetRequest} request
169
+ * @param {SavedQueriesClient.RequestOptions} requestOptions - Request-specific configuration.
170
+ *
171
+ * @throws {@link Polytomic.BadRequestError}
172
+ * @throws {@link Polytomic.ForbiddenError}
173
+ * @throws {@link Polytomic.NotFoundError}
174
+ * @throws {@link Polytomic.ConflictError}
175
+ * @throws {@link Polytomic.UnprocessableEntityError}
176
+ * @throws {@link Polytomic.InternalServerError}
177
+ * @throws {@link Polytomic.ServiceUnavailableError}
178
+ * @throws {@link errors.PolytomicError}
179
+ * @throws {@link errors.PolytomicTimeoutError}
180
+ *
181
+ * @example
182
+ * await client.harbors.savedQueries.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
183
+ */
184
+ get(harbor_id: string, saved_query_id: string, request?: Polytomic.harbors.SavedQueriesGetRequest, requestOptions?: SavedQueriesClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryEnvelope>;
185
+ private __get;
186
+ /**
187
+ * Archives one Harbor saved query and removes it from active reads.
188
+ *
189
+ * Archiving removes the saved query and any draft from active reads while
190
+ * retaining its immutable revisions for provenance. The operation does not run
191
+ * the saved SQL or modify the Harbor backing Connection. Archiving does not cancel
192
+ * in-flight execution requests or queued executions.
193
+ *
194
+ * This REST operation archives the saved query; it does not merely unpublish it.
195
+ * Unpublish is available only through the GraphQL `unpublishHarborSavedQuery`
196
+ * mutation. There is no REST unpublish endpoint.
197
+ *
198
+ * @param {string} harbor_id - Unique identifier of the Harbor
199
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
200
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link Polytomic.ForbiddenError}
203
+ * @throws {@link Polytomic.NotFoundError}
204
+ * @throws {@link Polytomic.UnprocessableEntityError}
205
+ * @throws {@link Polytomic.InternalServerError}
206
+ * @throws {@link errors.PolytomicError}
207
+ * @throws {@link errors.PolytomicTimeoutError}
208
+ *
209
+ * @example
210
+ * await client.harbors.savedQueries.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
211
+ */
212
+ delete(harbor_id: string, saved_query_id: string, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborSavedQueryEnvelope>;
213
+ private __delete;
214
+ /**
215
+ * Creates or completely replaces the mutable draft for a Harbor saved query.
216
+ *
217
+ * Replacement is complete rather than partial. The next validation or publication
218
+ * uses the replacement SQL, parameter declarations, and validation values.
219
+ *
220
+ * Unknown JSON fields, including fields inside parameter declarations, return
221
+ * `400 Bad Request` before the draft is saved. Use `default_value`, not `default`,
222
+ * for parameter defaults.
223
+ *
224
+ * When you omit a parameter during execution, Polytomic uses its published
225
+ * `default_value`, never its draft validation value. An omitted optional parameter
226
+ * without a default binds SQL `NULL`. A required parameter allows omission when a
227
+ * default exists, but rejects explicit `null` even with a default.
228
+ *
229
+ * For a report window, use a required parameter with a default so omission selects
230
+ * a useful window and explicit `null` is rejected:
231
+ *
232
+ * ```json
233
+ * {"name": "days", "type": "number", "required": true, "default_value": 7}
234
+ * ```
235
+ *
236
+ * @param {string} harbor_id - Unique identifier of the Harbor
237
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
238
+ * @param {Polytomic.harbors.SaveHarborSavedQueryDraftRequest} request
239
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
240
+ *
241
+ * @throws {@link Polytomic.BadRequestError}
242
+ * @throws {@link Polytomic.ForbiddenError}
243
+ * @throws {@link Polytomic.NotFoundError}
244
+ * @throws {@link Polytomic.UnprocessableEntityError}
245
+ * @throws {@link Polytomic.InternalServerError}
246
+ * @throws {@link errors.PolytomicError}
247
+ * @throws {@link errors.PolytomicTimeoutError}
248
+ *
249
+ * @example
250
+ * await client.harbors.savedQueries.saveDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
251
+ * name: "Monthly revenue",
252
+ * sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
253
+ * })
254
+ */
255
+ saveDraft(harbor_id: string, saved_query_id: string, request: Polytomic.harbors.SaveHarborSavedQueryDraftRequest, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryDraftEnvelope>;
256
+ private __saveDraft;
257
+ /**
258
+ * Discards the mutable draft for one Harbor saved query.
259
+ *
260
+ * Discarding an initial unpublished draft also removes its otherwise empty stable
261
+ * saved-query identity. Discarding a later draft preserves every immutable
262
+ * published version.
263
+ *
264
+ * @param {string} harbor_id - Unique identifier of the Harbor
265
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
266
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
267
+ *
268
+ * @throws {@link Polytomic.ForbiddenError}
269
+ * @throws {@link Polytomic.NotFoundError}
270
+ * @throws {@link Polytomic.ConflictError}
271
+ * @throws {@link Polytomic.UnprocessableEntityError}
272
+ * @throws {@link Polytomic.InternalServerError}
273
+ * @throws {@link errors.PolytomicError}
274
+ * @throws {@link errors.PolytomicTimeoutError}
275
+ *
276
+ * @example
277
+ * await client.harbors.savedQueries.deleteDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
278
+ */
279
+ deleteDraft(harbor_id: string, saved_query_id: string, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.DeletedHarborSavedQueryDraftEnvelope>;
280
+ private __deleteDraft;
281
+ /**
282
+ * Validates and publishes the current draft as the next immutable saved-query version.
283
+ *
284
+ * Only organization administrators can publish. Publication executes and validates
285
+ * the current draft with the Polytomic-managed Harbor's MotherDuck `read_scaling`
286
+ * credential. It fails instead of using the Harbor writer credential when the
287
+ * reader credential is missing or incomplete.
288
+ *
289
+ * After execution, publication verifies that the draft did not change. A
290
+ * concurrent edit returns a conflict and remains a draft. Successful publication
291
+ * creates the next immutable revision, records the observed ordered columns as its
292
+ * output contract, removes validation inputs from the published definition, and
293
+ * deletes the mutable draft. The response includes the immutable `revision_id`
294
+ * that future executions use for exact provenance.
295
+ *
296
+ * @param {string} harbor_id - Unique identifier of the Harbor
297
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
298
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
299
+ *
300
+ * @throws {@link Polytomic.ForbiddenError}
301
+ * @throws {@link Polytomic.NotFoundError}
302
+ * @throws {@link Polytomic.ConflictError}
303
+ * @throws {@link Polytomic.UnprocessableEntityError}
304
+ * @throws {@link Polytomic.InternalServerError}
305
+ * @throws {@link errors.PolytomicError}
306
+ * @throws {@link errors.PolytomicTimeoutError}
307
+ *
308
+ * @example
309
+ * await client.harbors.savedQueries.publishDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
310
+ */
311
+ publishDraft(harbor_id: string, saved_query_id: string, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryEnvelope>;
312
+ private __publishDraft;
313
+ /**
314
+ * Validates the exact current saved-query draft and returns a bounded ephemeral preview.
315
+ *
316
+ * Only organization administrators can validate drafts. Named template references
317
+ * compile to DuckDB placeholders, and typed values are passed separately rather
318
+ * than interpolated into SQL.
319
+ *
320
+ * The query runs with the Polytomic-managed Harbor's MotherDuck `read_scaling`
321
+ * credential. Validation fails when that credential is missing or incomplete and
322
+ * never falls back to the Harbor writer credential. Preview rows and serialized
323
+ * response size are bounded. The preview and validation attempt are not persisted.
324
+ *
325
+ * @param {string} harbor_id - Unique identifier of the Harbor
326
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
327
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
328
+ *
329
+ * @throws {@link Polytomic.ForbiddenError}
330
+ * @throws {@link Polytomic.NotFoundError}
331
+ * @throws {@link Polytomic.UnprocessableEntityError}
332
+ * @throws {@link Polytomic.InternalServerError}
333
+ * @throws {@link errors.PolytomicError}
334
+ * @throws {@link errors.PolytomicTimeoutError}
335
+ *
336
+ * @example
337
+ * await client.harbors.savedQueries.validateDraft("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
338
+ */
339
+ validateDraft(harbor_id: string, saved_query_id: string, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborSavedQueryValidationEnvelope>;
340
+ private __validateDraft;
341
+ /**
342
+ * Submits the current published Harbor saved query for asynchronous reader-only execution.
343
+ *
344
+ * Use a Harbor-bound scoped credential with query access to the Harbor's backing
345
+ * Connection. Administrator credentials cannot submit executions here. Saved
346
+ * queries require a Polytomic-managed Harbor.
347
+ *
348
+ * Polytomic selects the current published revision while processing your request.
349
+ * The response identifies that exact immutable revision. Selection happens before
350
+ * Polytomic accepts the execution. Drafts, unpublished queries, and archived
351
+ * queries are unavailable for selection. You cannot select a historical revision
352
+ * or supply SQL through this endpoint.
353
+ *
354
+ * > ⚠️ Concurrent publication changes
355
+ * >
356
+ * > Publishing, unpublishing, or archiving a saved query after selection does not
357
+ * > change the selected revision. An in-flight request may still be accepted and
358
+ * > execute that revision. Unpublishing or archiving does not cancel in-flight
359
+ * > requests or queued executions. Query access is checked again before execution
360
+ * > and result retrieval.
361
+ *
362
+ * Parameter values are bound separately from SQL. Omitted parameters use the
363
+ * published `default_value`, never draft validation values. An omitted optional
364
+ * parameter without a default binds SQL `NULL`. Required parameters allow omission
365
+ * when a default exists, but reject explicit `null` even with a default. Missing
366
+ * required values without defaults, explicit `null` for required parameters,
367
+ * unknown parameter names, and invalid scalar types return
368
+ * `422 Unprocessable Entity` without accepting an execution. Execution requires
369
+ * reader credentials and never falls back to writer credentials.
370
+ *
371
+ * For report windows, define parameters with `required: true` and a
372
+ * `default_value`, such as `7` for a `days` parameter. This allows omission while
373
+ * preventing explicit `null` from turning a time filter into a SQL `NULL`
374
+ * comparison.
375
+ *
376
+ * To archive a saved query through REST, use
377
+ * [`DELETE /api/harbors/{harbor_id}/saved-queries/{saved_query_id}`](../../../../../../api-reference/harbors/saved-queries/delete).
378
+ * Unpublish is available only through the GraphQL `unpublishHarborSavedQuery`
379
+ * mutation, not a REST endpoint.
380
+ *
381
+ * ## Results
382
+ *
383
+ * The response returns a task ID with status `created`, not result rows. Poll
384
+ * [`GET /api/queries/{id}`](../../../../../../api-reference/query-runner/get-query) using a credential
385
+ * from the same Harbor profile. Query access is checked again before execution and
386
+ * result retrieval. Stop polling at `done`, `failed`, or `unknown`; `unknown` means
387
+ * execution started but no durable terminal result is available.
388
+ *
389
+ * Results and detailed failure information expire after 24 hours. Use the
390
+ * `expires` field and follow `links.next` to retrieve additional result pages.
391
+ *
392
+ * ## Harbor Activity
393
+ *
394
+ * Send a new nonzero UUID in `X-Polytomic-Activity-Request-ID`. Missing or invalid
395
+ * IDs return `400 Bad Request`. Reusing a consumed ID returns `409 Conflict` and
396
+ * does not create another execution.
397
+ *
398
+ * You may omit `X-Polytomic-Harbor-Session` for direct REST requests. If supplied,
399
+ * the session must be active and bound to your credential and Harbor.
400
+ *
401
+ * Polytomic records `query.submitted` atomically with acceptance. The event
402
+ * identifies the saved query, immutable revision, published version, and bounded
403
+ * name snapshot. SQL, parameter values and defaults, column names, and result rows
404
+ * remain outside Activity metadata. If Activity persistence is unavailable, the
405
+ * request returns `503 Service Unavailable` without accepting an execution.
406
+ *
407
+ * `query.started` records provider invocation. `query.succeeded` means results are
408
+ * available for authorized retrieval, not that you have consumed them.
409
+ *
410
+ * @param {string} harbor_id - Unique identifier of the Harbor
411
+ * @param {string} saved_query_id - Unique stable identifier of the saved query
412
+ * @param {Polytomic.harbors.ExecuteHarborSavedQueryRequest} request
413
+ * @param {SavedQueriesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
414
+ *
415
+ * @throws {@link Polytomic.BadRequestError}
416
+ * @throws {@link Polytomic.ForbiddenError}
417
+ * @throws {@link Polytomic.NotFoundError}
418
+ * @throws {@link Polytomic.ConflictError}
419
+ * @throws {@link Polytomic.UnprocessableEntityError}
420
+ * @throws {@link Polytomic.InternalServerError}
421
+ * @throws {@link Polytomic.ServiceUnavailableError}
422
+ * @throws {@link errors.PolytomicError}
423
+ * @throws {@link errors.PolytomicTimeoutError}
424
+ *
425
+ * @example
426
+ * await client.harbors.savedQueries.execute("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
427
+ */
428
+ execute(harbor_id: string, saved_query_id: string, request?: Polytomic.harbors.ExecuteHarborSavedQueryRequest, requestOptions?: SavedQueriesClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ExecuteHarborSavedQueryEnvelope>;
429
+ private __execute;
430
+ }