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
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -1,4 +1,4 @@
1
- import type * as Polytomic from "../../../../index";
1
+ import type * as Polytomic from "../../../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -1,4 +1,4 @@
1
- import type * as Polytomic from "../../../../index";
1
+ import type * as Polytomic from "../../../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface SavedQueriesGetRequest {
6
+ /** Harbor session token; when supplied, the session must be active and bound to this credential and Harbor. */
7
+ "X-Polytomic-Harbor-Session"?: string;
8
+ /** New nonzero UUID for each request, required for scoped credentials; a reused value is rejected. */
9
+ "X-Polytomic-Activity-Request-ID"?: string;
10
+ }
@@ -5,7 +5,7 @@
5
5
  * page_token: "page_token"
6
6
  * }
7
7
  */
8
- export interface HarborsListSavedQueryDraftsRequest {
8
+ export interface SavedQueriesListDraftsRequest {
9
9
  /** Maximum number of saved-query drafts to return */
10
10
  limit?: number;
11
11
  /** Opaque pagination cursor returned by the previous request */
@@ -5,7 +5,7 @@
5
5
  * page_token: "page_token"
6
6
  * }
7
7
  */
8
- export interface HarborsListSavedQueriesRequest {
8
+ export interface SavedQueriesListRequest {
9
9
  /** Maximum number of saved queries to return */
10
10
  limit?: number;
11
11
  /** Opaque pagination cursor returned by the previous request */
@@ -0,0 +1,6 @@
1
+ export type { CreateHarborSavedQueryDraftRequest } from "./CreateHarborSavedQueryDraftRequest";
2
+ export type { ExecuteHarborSavedQueryRequest } from "./ExecuteHarborSavedQueryRequest";
3
+ export type { SavedQueriesGetRequest } from "./SavedQueriesGetRequest";
4
+ export type { SavedQueriesListDraftsRequest } from "./SavedQueriesListDraftsRequest";
5
+ export type { SavedQueriesListRequest } from "./SavedQueriesListRequest";
6
+ export type { SaveHarborSavedQueryDraftRequest } from "./SaveHarborSavedQueryDraftRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { SavedQueriesClient } 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.SavedQueriesClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "SavedQueriesClient", { enumerable: true, get: function () { return Client_1.SavedQueriesClient; } });
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,105 @@
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 UsersClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ export declare class UsersClient {
13
+ protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
14
+ constructor(options?: UsersClient.Options);
15
+ /**
16
+ * Lists Harbor-only users assigned to a Harbor.
17
+ *
18
+ * The response contains only Harbor-only users currently assigned to this Harbor.
19
+ *
20
+ * @param {string} harbor_id - Unique identifier of the Harbor
21
+ * @param {Polytomic.harbors.UsersListRequest} request
22
+ * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Polytomic.ForbiddenError}
25
+ * @throws {@link Polytomic.NotFoundError}
26
+ * @throws {@link Polytomic.UnprocessableEntityError}
27
+ * @throws {@link Polytomic.InternalServerError}
28
+ * @throws {@link errors.PolytomicError}
29
+ * @throws {@link errors.PolytomicTimeoutError}
30
+ *
31
+ * @example
32
+ * await client.harbors.users.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
33
+ * limit: 50,
34
+ * page_token: "page_token"
35
+ * })
36
+ */
37
+ list(harbor_id: string, request?: Polytomic.harbors.UsersListRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborUserListEnvelope>;
38
+ private __list;
39
+ /**
40
+ * Invites and assigns a new Harbor-only user.
41
+ *
42
+ * The invited account is restricted to assigned Harbors and does not receive regular Polytomic application access.
43
+ *
44
+ * @param {string} harbor_id - Unique identifier of the Harbor
45
+ * @param {Polytomic.harbors.InviteHarborUserRequest} request
46
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link Polytomic.ForbiddenError}
49
+ * @throws {@link Polytomic.NotFoundError}
50
+ * @throws {@link Polytomic.ConflictError}
51
+ * @throws {@link Polytomic.UnprocessableEntityError}
52
+ * @throws {@link Polytomic.InternalServerError}
53
+ * @throws {@link errors.PolytomicError}
54
+ * @throws {@link errors.PolytomicTimeoutError}
55
+ *
56
+ * @example
57
+ * await client.harbors.users.invite("248df4b7-aa70-47b8-a036-33ac447e668d", {
58
+ * email: "analyst@example.com"
59
+ * })
60
+ */
61
+ invite(harbor_id: string, request: Polytomic.harbors.InviteHarborUserRequest, requestOptions?: UsersClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborUserEnvelope>;
62
+ private __invite;
63
+ /**
64
+ * Assigns an existing Harbor-only user to a Harbor.
65
+ *
66
+ * The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.
67
+ *
68
+ * @param {string} harbor_id - Unique identifier of the Harbor
69
+ * @param {string} user_id - Unique identifier of the Harbor-only user
70
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Polytomic.ForbiddenError}
73
+ * @throws {@link Polytomic.NotFoundError}
74
+ * @throws {@link Polytomic.UnprocessableEntityError}
75
+ * @throws {@link Polytomic.InternalServerError}
76
+ * @throws {@link errors.PolytomicError}
77
+ * @throws {@link errors.PolytomicTimeoutError}
78
+ *
79
+ * @example
80
+ * await client.harbors.users.assign("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
81
+ */
82
+ assign(harbor_id: string, user_id: string, requestOptions?: UsersClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.HarborUserEnvelope>;
83
+ private __assign;
84
+ /**
85
+ * Removes a Harbor assignment without deleting the user.
86
+ *
87
+ * This removes only the Harbor assignment. The organization user remains available and may retain assignments to other Harbors.
88
+ *
89
+ * @param {string} harbor_id - Unique identifier of the Harbor
90
+ * @param {string} user_id - Unique identifier of the Harbor-only user
91
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Polytomic.ForbiddenError}
94
+ * @throws {@link Polytomic.NotFoundError}
95
+ * @throws {@link Polytomic.UnprocessableEntityError}
96
+ * @throws {@link Polytomic.InternalServerError}
97
+ * @throws {@link errors.PolytomicError}
98
+ * @throws {@link errors.PolytomicTimeoutError}
99
+ *
100
+ * @example
101
+ * await client.harbors.users.unassign("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
102
+ */
103
+ unassign(harbor_id: string, user_id: string, requestOptions?: UsersClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.UnassignedHarborUserEnvelope>;
104
+ private __unassign;
105
+ }
@@ -0,0 +1,342 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.UsersClient = void 0;
47
+ const BaseClient_1 = require("../../../../../../BaseClient");
48
+ const core = __importStar(require("../../../../../../core"));
49
+ const headers_1 = require("../../../../../../core/headers");
50
+ const requestBody_1 = require("../../../../../../core/requestBody");
51
+ const environments = __importStar(require("../../../../../../environments"));
52
+ const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
53
+ const errors = __importStar(require("../../../../../../errors/index"));
54
+ const Polytomic = __importStar(require("../../../../../index"));
55
+ class UsersClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
58
+ }
59
+ /**
60
+ * Lists Harbor-only users assigned to a Harbor.
61
+ *
62
+ * The response contains only Harbor-only users currently assigned to this Harbor.
63
+ *
64
+ * @param {string} harbor_id - Unique identifier of the Harbor
65
+ * @param {Polytomic.harbors.UsersListRequest} request
66
+ * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Polytomic.ForbiddenError}
69
+ * @throws {@link Polytomic.NotFoundError}
70
+ * @throws {@link Polytomic.UnprocessableEntityError}
71
+ * @throws {@link Polytomic.InternalServerError}
72
+ * @throws {@link errors.PolytomicError}
73
+ * @throws {@link errors.PolytomicTimeoutError}
74
+ *
75
+ * @example
76
+ * await client.harbors.users.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
77
+ * limit: 50,
78
+ * page_token: "page_token"
79
+ * })
80
+ */
81
+ list(harbor_id, request = {}, requestOptions) {
82
+ return core.HttpResponsePromise.fromPromise(this.__list(harbor_id, request, requestOptions));
83
+ }
84
+ __list(harbor_id_1) {
85
+ return __awaiter(this, arguments, void 0, function* (harbor_id, request = {}, requestOptions) {
86
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
87
+ const { limit, page_token: pageToken } = request;
88
+ const _queryParams = {
89
+ limit,
90
+ page_token: pageToken,
91
+ };
92
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
93
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
94
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
95
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
+ const _response = yield core.fetcher({
97
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/users`),
98
+ method: "GET",
99
+ headers: _headers,
100
+ queryString: core.url
101
+ .queryBuilder()
102
+ .addMany(_queryParams)
103
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
104
+ .build(),
105
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
106
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
107
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
108
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
109
+ logging: this._options.logging,
110
+ });
111
+ if (_response.ok) {
112
+ return { data: _response.body, rawResponse: _response.rawResponse };
113
+ }
114
+ if (_response.error.reason === "status-code") {
115
+ switch (_response.error.statusCode) {
116
+ case 403:
117
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
118
+ case 404:
119
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
120
+ case 422:
121
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
122
+ case 500:
123
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
124
+ default:
125
+ throw new errors.PolytomicError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ }
132
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/users");
133
+ });
134
+ }
135
+ /**
136
+ * Invites and assigns a new Harbor-only user.
137
+ *
138
+ * The invited account is restricted to assigned Harbors and does not receive regular Polytomic application access.
139
+ *
140
+ * @param {string} harbor_id - Unique identifier of the Harbor
141
+ * @param {Polytomic.harbors.InviteHarborUserRequest} request
142
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link Polytomic.ForbiddenError}
145
+ * @throws {@link Polytomic.NotFoundError}
146
+ * @throws {@link Polytomic.ConflictError}
147
+ * @throws {@link Polytomic.UnprocessableEntityError}
148
+ * @throws {@link Polytomic.InternalServerError}
149
+ * @throws {@link errors.PolytomicError}
150
+ * @throws {@link errors.PolytomicTimeoutError}
151
+ *
152
+ * @example
153
+ * await client.harbors.users.invite("248df4b7-aa70-47b8-a036-33ac447e668d", {
154
+ * email: "analyst@example.com"
155
+ * })
156
+ */
157
+ invite(harbor_id, request, requestOptions) {
158
+ return core.HttpResponsePromise.fromPromise(this.__invite(harbor_id, request, requestOptions));
159
+ }
160
+ __invite(harbor_id, request, requestOptions) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
163
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
164
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
165
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
166
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
167
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
168
+ const _response = yield core.fetcher({
169
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/users`),
170
+ method: "POST",
171
+ headers: _headers,
172
+ contentType: "application/json",
173
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
174
+ requestType: "json",
175
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
176
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
177
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
178
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
179
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
180
+ logging: this._options.logging,
181
+ });
182
+ if (_response.ok) {
183
+ return { data: _response.body, rawResponse: _response.rawResponse };
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ switch (_response.error.statusCode) {
187
+ case 403:
188
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
189
+ case 404:
190
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
191
+ case 409:
192
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
193
+ case 422:
194
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
195
+ case 500:
196
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
197
+ default:
198
+ throw new errors.PolytomicError({
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.body,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ }
204
+ }
205
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/harbors/{harbor_id}/users");
206
+ });
207
+ }
208
+ /**
209
+ * Assigns an existing Harbor-only user to a Harbor.
210
+ *
211
+ * The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.
212
+ *
213
+ * @param {string} harbor_id - Unique identifier of the Harbor
214
+ * @param {string} user_id - Unique identifier of the Harbor-only user
215
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
216
+ *
217
+ * @throws {@link Polytomic.ForbiddenError}
218
+ * @throws {@link Polytomic.NotFoundError}
219
+ * @throws {@link Polytomic.UnprocessableEntityError}
220
+ * @throws {@link Polytomic.InternalServerError}
221
+ * @throws {@link errors.PolytomicError}
222
+ * @throws {@link errors.PolytomicTimeoutError}
223
+ *
224
+ * @example
225
+ * await client.harbors.users.assign("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
226
+ */
227
+ assign(harbor_id, user_id, requestOptions) {
228
+ return core.HttpResponsePromise.fromPromise(this.__assign(harbor_id, user_id, requestOptions));
229
+ }
230
+ __assign(harbor_id, user_id, requestOptions) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
233
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
234
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
235
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
236
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
237
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
238
+ const _response = yield core.fetcher({
239
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/users/${core.url.encodePathParam(user_id)}`),
240
+ method: "PUT",
241
+ headers: _headers,
242
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
243
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
244
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
247
+ logging: this._options.logging,
248
+ });
249
+ if (_response.ok) {
250
+ return { data: _response.body, rawResponse: _response.rawResponse };
251
+ }
252
+ if (_response.error.reason === "status-code") {
253
+ switch (_response.error.statusCode) {
254
+ case 403:
255
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
256
+ case 404:
257
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
258
+ case 422:
259
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
260
+ case 500:
261
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
262
+ default:
263
+ throw new errors.PolytomicError({
264
+ statusCode: _response.error.statusCode,
265
+ body: _response.error.body,
266
+ rawResponse: _response.rawResponse,
267
+ });
268
+ }
269
+ }
270
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/harbors/{harbor_id}/users/{user_id}");
271
+ });
272
+ }
273
+ /**
274
+ * Removes a Harbor assignment without deleting the user.
275
+ *
276
+ * This removes only the Harbor assignment. The organization user remains available and may retain assignments to other Harbors.
277
+ *
278
+ * @param {string} harbor_id - Unique identifier of the Harbor
279
+ * @param {string} user_id - Unique identifier of the Harbor-only user
280
+ * @param {UsersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @throws {@link Polytomic.ForbiddenError}
283
+ * @throws {@link Polytomic.NotFoundError}
284
+ * @throws {@link Polytomic.UnprocessableEntityError}
285
+ * @throws {@link Polytomic.InternalServerError}
286
+ * @throws {@link errors.PolytomicError}
287
+ * @throws {@link errors.PolytomicTimeoutError}
288
+ *
289
+ * @example
290
+ * await client.harbors.users.unassign("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
291
+ */
292
+ unassign(harbor_id, user_id, requestOptions) {
293
+ return core.HttpResponsePromise.fromPromise(this.__unassign(harbor_id, user_id, requestOptions));
294
+ }
295
+ __unassign(harbor_id, user_id, requestOptions) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
298
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
299
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
300
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
301
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
302
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
303
+ const _response = yield core.fetcher({
304
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/users/${core.url.encodePathParam(user_id)}`),
305
+ method: "DELETE",
306
+ headers: _headers,
307
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
308
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
309
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
310
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
312
+ logging: this._options.logging,
313
+ });
314
+ if (_response.ok) {
315
+ return {
316
+ data: _response.body,
317
+ rawResponse: _response.rawResponse,
318
+ };
319
+ }
320
+ if (_response.error.reason === "status-code") {
321
+ switch (_response.error.statusCode) {
322
+ case 403:
323
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
324
+ case 404:
325
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
326
+ case 422:
327
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
328
+ case 500:
329
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
330
+ default:
331
+ throw new errors.PolytomicError({
332
+ statusCode: _response.error.statusCode,
333
+ body: _response.error.body,
334
+ rawResponse: _response.rawResponse,
335
+ });
336
+ }
337
+ }
338
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/users/{user_id}");
339
+ });
340
+ }
341
+ }
342
+ exports.UsersClient = UsersClient;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -5,7 +5,7 @@
5
5
  * page_token: "page_token"
6
6
  * }
7
7
  */
8
- export interface HarborsListUsersRequest {
8
+ export interface UsersListRequest {
9
9
  /** Maximum number of assigned users to return. Defaults to 50 and cannot exceed 50. */
10
10
  limit?: number;
11
11
  /** Opaque pagination cursor returned by the previous request */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export type { InviteHarborUserRequest } from "./InviteHarborUserRequest";
2
+ export type { UsersListRequest } from "./UsersListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { UsersClient } from "./client/Client";
2
+ export * from "./client/index";