polytomic 25.9.3 → 25.9.5

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 (183) hide show
  1. package/BaseClient.d.ts +15 -0
  2. package/BaseClient.js +17 -2
  3. package/Client.d.ts +3 -0
  4. package/Client.js +41 -36
  5. package/api/errors/BadGatewayError.d.ts +1 -0
  6. package/api/errors/BadGatewayError.js +1 -1
  7. package/api/errors/BadRequestError.d.ts +1 -0
  8. package/api/errors/BadRequestError.js +1 -1
  9. package/api/errors/ConflictError.d.ts +1 -0
  10. package/api/errors/ConflictError.js +1 -1
  11. package/api/errors/ForbiddenError.d.ts +1 -0
  12. package/api/errors/ForbiddenError.js +1 -1
  13. package/api/errors/GatewayTimeoutError.d.ts +1 -0
  14. package/api/errors/GatewayTimeoutError.js +1 -1
  15. package/api/errors/GoneError.d.ts +7 -0
  16. package/api/errors/GoneError.js +54 -0
  17. package/api/errors/InternalServerError.d.ts +1 -0
  18. package/api/errors/InternalServerError.js +1 -1
  19. package/api/errors/NotFoundError.d.ts +1 -0
  20. package/api/errors/NotFoundError.js +1 -1
  21. package/api/errors/RequestTimeoutError.d.ts +1 -0
  22. package/api/errors/RequestTimeoutError.js +1 -1
  23. package/api/errors/ServiceUnavailableError.d.ts +1 -0
  24. package/api/errors/ServiceUnavailableError.js +1 -1
  25. package/api/errors/TooManyRequestsError.d.ts +1 -0
  26. package/api/errors/TooManyRequestsError.js +1 -1
  27. package/api/errors/UnauthorizedError.d.ts +1 -0
  28. package/api/errors/UnauthorizedError.js +1 -1
  29. package/api/errors/UnprocessableEntityError.d.ts +1 -0
  30. package/api/errors/UnprocessableEntityError.js +1 -1
  31. package/api/errors/index.d.ts +1 -0
  32. package/api/errors/index.js +1 -0
  33. package/api/resources/activity/client/Client.d.ts +144 -0
  34. package/api/resources/activity/client/Client.js +359 -0
  35. package/api/resources/activity/client/index.d.ts +1 -0
  36. package/api/resources/activity/client/index.js +17 -0
  37. package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
  38. package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
  39. package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
  40. package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
  41. package/api/resources/activity/client/requests/index.d.ts +2 -0
  42. package/api/resources/activity/client/requests/index.js +2 -0
  43. package/api/resources/activity/exports.d.ts +2 -0
  44. package/api/resources/activity/exports.js +21 -0
  45. package/api/resources/activity/index.d.ts +2 -0
  46. package/api/resources/activity/index.js +18 -0
  47. package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
  48. package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
  49. package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
  50. package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
  51. package/api/resources/activity/types/index.d.ts +2 -0
  52. package/api/resources/activity/types/index.js +18 -0
  53. package/api/resources/bulkSync/client/Client.d.ts +22 -0
  54. package/api/resources/bulkSync/client/Client.js +27 -4
  55. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
  56. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
  57. package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
  58. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
  59. package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
  60. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
  61. package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
  62. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
  63. package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
  64. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  65. package/api/resources/connections/client/Client.d.ts +38 -0
  66. package/api/resources/connections/client/Client.js +48 -5
  67. package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
  68. package/api/resources/connections/resources/proxy/client/Client.js +11 -2
  69. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
  70. package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
  71. package/api/resources/entities/client/Client.d.ts +4 -0
  72. package/api/resources/entities/client/Client.js +4 -0
  73. package/api/resources/events/client/Client.d.ts +5 -0
  74. package/api/resources/events/client/Client.js +5 -0
  75. package/api/resources/harbors/client/Client.d.ts +71 -64
  76. package/api/resources/harbors/client/Client.js +81 -73
  77. package/api/resources/identity/client/Client.d.ts +2 -0
  78. package/api/resources/identity/client/Client.js +2 -0
  79. package/api/resources/index.d.ts +3 -0
  80. package/api/resources/index.js +4 -1
  81. package/api/resources/jobs/client/Client.d.ts +2 -0
  82. package/api/resources/jobs/client/Client.js +2 -0
  83. package/api/resources/modelSync/client/Client.d.ts +24 -0
  84. package/api/resources/modelSync/client/Client.js +29 -4
  85. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  86. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  87. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
  88. package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
  89. package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
  90. package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
  91. package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
  92. package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
  93. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
  94. package/api/resources/models/client/Client.d.ts +18 -0
  95. package/api/resources/models/client/Client.js +23 -4
  96. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
  97. package/api/resources/notifications/client/Client.d.ts +4 -0
  98. package/api/resources/notifications/client/Client.js +6 -1
  99. package/api/resources/organization/client/Client.d.ts +16 -0
  100. package/api/resources/organization/client/Client.js +20 -3
  101. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
  102. package/api/resources/permissions/resources/policies/client/Client.js +13 -2
  103. package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
  104. package/api/resources/permissions/resources/roles/client/Client.js +13 -2
  105. package/api/resources/queryRunner/client/Client.d.ts +15 -1
  106. package/api/resources/queryRunner/client/Client.js +35 -4
  107. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
  108. package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
  109. package/api/resources/recordViewLinks/client/Client.d.ts +6 -4
  110. package/api/resources/recordViewLinks/client/Client.js +26 -5
  111. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
  112. package/api/resources/schemas/client/Client.d.ts +18 -0
  113. package/api/resources/schemas/client/Client.js +22 -3
  114. package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
  115. package/api/resources/temporaryCredentials/client/Client.js +4 -3
  116. package/api/resources/users/client/Client.d.ts +22 -0
  117. package/api/resources/users/client/Client.js +27 -4
  118. package/api/resources/webhooks/client/Client.d.ts +14 -0
  119. package/api/resources/webhooks/client/Client.js +17 -2
  120. package/api/types/BulkSyncErrorHandling.d.ts +2 -0
  121. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  122. package/api/types/ConnectionProxyResponse.d.ts +1 -1
  123. package/api/types/Filter.d.ts +1 -0
  124. package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
  125. package/api/types/HarborActivityEventEnvelope.js +3 -0
  126. package/api/types/HarborActivityListEnvelope.d.ts +5 -0
  127. package/api/types/HarborActivityListEnvelope.js +3 -0
  128. package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
  129. package/api/types/HarborActivitySessionEnvelope.js +3 -0
  130. package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
  131. package/api/types/HarborSourceMappingResponse.d.ts +1 -1
  132. package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
  133. package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
  134. package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
  135. package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
  136. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
  137. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
  138. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
  139. package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
  140. package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
  141. package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
  142. package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
  143. package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
  144. package/api/types/ModelFilterCondition.d.ts +1 -1
  145. package/api/types/ModelFilters.d.ts +1 -1
  146. package/api/types/QueryStatus.d.ts +8 -0
  147. package/api/types/QueryStatus.js +11 -0
  148. package/api/types/RunQueryResult.d.ts +2 -2
  149. package/api/types/SchemaField.d.ts +4 -0
  150. package/api/types/SupportedFilterFunction.d.ts +12 -0
  151. package/api/types/SupportedFilterFunction.js +3 -0
  152. package/api/types/SyncSourceMetaResponse.d.ts +1 -1
  153. package/api/types/TargetField.d.ts +2 -0
  154. package/api/types/TargetFilterCondition.d.ts +2 -2
  155. package/api/types/TargetFilters.d.ts +1 -1
  156. package/api/types/index.d.ts +11 -0
  157. package/api/types/index.js +11 -0
  158. package/core/auth/AuthProvider.d.ts +1 -0
  159. package/core/auth/AuthProvider.js +7 -0
  160. package/core/auth/index.d.ts +1 -1
  161. package/core/auth/index.js +3 -1
  162. package/core/fetcher/Fetcher.js +9 -92
  163. package/core/fetcher/getResponseBody.js +11 -0
  164. package/core/fetcher/makePassthroughRequest.js +26 -4
  165. package/core/fetcher/redactUrl.d.ts +2 -0
  166. package/core/fetcher/redactUrl.js +88 -0
  167. package/core/fetcher/requestWithRetries.js +4 -1
  168. package/core/fetcher/signals.js +9 -1
  169. package/core/requestBody.d.ts +12 -0
  170. package/core/requestBody.js +26 -0
  171. package/core/runtime/index.d.ts +1 -1
  172. package/core/runtime/index.js +2 -1
  173. package/core/runtime/runtime.d.ts +19 -0
  174. package/core/runtime/runtime.js +74 -2
  175. package/core/url/qs.js +2 -2
  176. package/errors/PolytomicError.d.ts +1 -0
  177. package/errors/PolytomicError.js +5 -1
  178. package/errors/PolytomicTimeoutError.d.ts +2 -2
  179. package/errors/PolytomicTimeoutError.js +40 -6
  180. package/package.json +2 -2
  181. package/reference.md +291 -1
  182. package/version.d.ts +1 -1
  183. package/version.js +1 -1
@@ -0,0 +1,144 @@
1
+ import type { BaseClientOptions, 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 ActivityClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ActivityClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ActivityClient.Options>;
12
+ constructor(options?: ActivityClient.Options);
13
+ /**
14
+ * Lists Harbor Activity recorded for the caller's organization.
15
+ *
16
+ * You must be an active Organization administrator to use this endpoint.
17
+ *
18
+ * `start_time` is inclusive and `end_time` is exclusive. Both filter the time at
19
+ * which Polytomic recorded each event, which can differ from `occurred_at`. A
20
+ * single request can cover at most 90 days.
21
+ *
22
+ * Results are ordered from newest to oldest by default. Set `order` to `asc` to
23
+ * retrieve the oldest events first. A page contains at most 100 events. Pass
24
+ * `next_page_token` from the response as `page_token` with the same time range,
25
+ * filters, order, and limit to retrieve the next page. The token expires 24 hours
26
+ * after the first page. Pagination uses a live descending cursor, so an event from
27
+ * a transaction that commits between pages can require a fresh traversal.
28
+ *
29
+ * Responses include stable identities, bounded resource snapshots, schema label
30
+ * snapshots with truncation state, field counts, and row counts when available.
31
+ * They do not include internal recorded-order values, submitted SQL, raw field
32
+ * names, detailed provider errors, result rows, or raw pagination tokens.
33
+ *
34
+ * > ℹ️ Activity retention
35
+ * >
36
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
37
+ * > expire 24 hours after the first page.
38
+ *
39
+ * @param {Polytomic.ActivityListRequest} request
40
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link Polytomic.BadRequestError}
43
+ * @throws {@link Polytomic.UnauthorizedError}
44
+ * @throws {@link Polytomic.ForbiddenError}
45
+ * @throws {@link Polytomic.GoneError}
46
+ * @throws {@link Polytomic.UnprocessableEntityError}
47
+ * @throws {@link errors.PolytomicError}
48
+ * @throws {@link errors.PolytomicTimeoutError}
49
+ *
50
+ * @example
51
+ * await client.activity.list({
52
+ * start_time: "2024-01-15T09:30:00Z",
53
+ * end_time: "2024-01-15T09:30:00Z",
54
+ * limit: 1,
55
+ * page_token: "page_token",
56
+ * order: "asc",
57
+ * harbor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
58
+ * event_type: ["event_type"],
59
+ * outcome: ["outcome"],
60
+ * operation_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
61
+ * session_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
62
+ * actor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
63
+ * credential_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
64
+ * connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
65
+ * })
66
+ */
67
+ list(request: Polytomic.ActivityListRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityListEnvelope>;
68
+ private __list;
69
+ /**
70
+ * Returns one Harbor Activity session and its events.
71
+ *
72
+ * You must be an active Organization administrator to use this endpoint. The
73
+ * session must belong to the Organization against which you authenticated.
74
+ *
75
+ * Events are ordered from oldest to newest by default. Set `order` to `desc` to
76
+ * retrieve the newest events first. A page contains at most 100 events. Pass
77
+ * `next_page_token` from the response as `page_token` with the same order and
78
+ * limit to retrieve the next page.
79
+ *
80
+ * `history_truncated` is `true` when Activity retention removed events from the
81
+ * beginning of the session. The lifecycle summary remains available while the
82
+ * session itself is retained.
83
+ *
84
+ * The response uses the same event allowlist as the Activity list and detail
85
+ * endpoints. It does not include session tokens, submitted SQL, raw field names,
86
+ * detailed provider errors, result rows, or raw pagination tokens.
87
+ *
88
+ * > ℹ️ Activity retention
89
+ * >
90
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
91
+ * > expire 24 hours after the first page.
92
+ *
93
+ * @param {string} session_id - Harbor Activity session ID.
94
+ * @param {Polytomic.ActivityGetSessionRequest} request
95
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Polytomic.BadRequestError}
98
+ * @throws {@link Polytomic.UnauthorizedError}
99
+ * @throws {@link Polytomic.ForbiddenError}
100
+ * @throws {@link Polytomic.NotFoundError}
101
+ * @throws {@link Polytomic.GoneError}
102
+ * @throws {@link Polytomic.UnprocessableEntityError}
103
+ * @throws {@link errors.PolytomicError}
104
+ * @throws {@link errors.PolytomicTimeoutError}
105
+ *
106
+ * @example
107
+ * await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
108
+ * limit: 1,
109
+ * page_token: "page_token",
110
+ * order: "asc"
111
+ * })
112
+ */
113
+ getSession(session_id: string, request?: Polytomic.ActivityGetSessionRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivitySessionEnvelope>;
114
+ private __getSession;
115
+ /**
116
+ * Returns one Harbor Activity event from the caller's organization.
117
+ *
118
+ * You must be an active Organization administrator to use this endpoint. The
119
+ * event must belong to the Organization against which you authenticated.
120
+ *
121
+ * The response can include stable identities, bounded resource snapshots, schema
122
+ * label snapshots with truncation state, field counts, and row counts. It does
123
+ * not include internal recorded-order values, submitted SQL, raw field names,
124
+ * detailed provider errors, result rows, or raw pagination tokens.
125
+ *
126
+ * > ℹ️ Activity retention
127
+ * >
128
+ * > Polytomic retains Activity events for at least 90 days.
129
+ *
130
+ * @param {string} event_id - Activity event ID.
131
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link Polytomic.UnauthorizedError}
134
+ * @throws {@link Polytomic.ForbiddenError}
135
+ * @throws {@link Polytomic.NotFoundError}
136
+ * @throws {@link errors.PolytomicError}
137
+ * @throws {@link errors.PolytomicTimeoutError}
138
+ *
139
+ * @example
140
+ * await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
141
+ */
142
+ get(event_id: string, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityEventEnvelope>;
143
+ private __get;
144
+ }
@@ -0,0 +1,359 @@
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.ActivityClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
48
+ const core = __importStar(require("../../../../core"));
49
+ const headers_1 = require("../../../../core/headers");
50
+ const environments = __importStar(require("../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
+ const errors = __importStar(require("../../../../errors/index"));
53
+ const Polytomic = __importStar(require("../../../index"));
54
+ class ActivityClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Lists Harbor Activity recorded for the caller's organization.
60
+ *
61
+ * You must be an active Organization administrator to use this endpoint.
62
+ *
63
+ * `start_time` is inclusive and `end_time` is exclusive. Both filter the time at
64
+ * which Polytomic recorded each event, which can differ from `occurred_at`. A
65
+ * single request can cover at most 90 days.
66
+ *
67
+ * Results are ordered from newest to oldest by default. Set `order` to `asc` to
68
+ * retrieve the oldest events first. A page contains at most 100 events. Pass
69
+ * `next_page_token` from the response as `page_token` with the same time range,
70
+ * filters, order, and limit to retrieve the next page. The token expires 24 hours
71
+ * after the first page. Pagination uses a live descending cursor, so an event from
72
+ * a transaction that commits between pages can require a fresh traversal.
73
+ *
74
+ * Responses include stable identities, bounded resource snapshots, schema label
75
+ * snapshots with truncation state, field counts, and row counts when available.
76
+ * They do not include internal recorded-order values, submitted SQL, raw field
77
+ * names, detailed provider errors, result rows, or raw pagination tokens.
78
+ *
79
+ * > ℹ️ Activity retention
80
+ * >
81
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
82
+ * > expire 24 hours after the first page.
83
+ *
84
+ * @param {Polytomic.ActivityListRequest} request
85
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Polytomic.BadRequestError}
88
+ * @throws {@link Polytomic.UnauthorizedError}
89
+ * @throws {@link Polytomic.ForbiddenError}
90
+ * @throws {@link Polytomic.GoneError}
91
+ * @throws {@link Polytomic.UnprocessableEntityError}
92
+ * @throws {@link errors.PolytomicError}
93
+ * @throws {@link errors.PolytomicTimeoutError}
94
+ *
95
+ * @example
96
+ * await client.activity.list({
97
+ * start_time: "2024-01-15T09:30:00Z",
98
+ * end_time: "2024-01-15T09:30:00Z",
99
+ * limit: 1,
100
+ * page_token: "page_token",
101
+ * order: "asc",
102
+ * harbor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
103
+ * event_type: ["event_type"],
104
+ * outcome: ["outcome"],
105
+ * operation_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
106
+ * session_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
107
+ * actor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
108
+ * credential_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
109
+ * connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
110
+ * })
111
+ */
112
+ list(request, requestOptions) {
113
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
114
+ }
115
+ __list(request, requestOptions) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
118
+ const { start_time: startTime, end_time: endTime, limit, page_token: pageToken, order, harbor_id: harborId, event_type: eventType, outcome, operation_id: operationId, session_id: sessionId, actor_id: actorId, credential_id: credentialId, connection_id: connectionId, } = request;
119
+ const _queryParams = {
120
+ start_time: startTime,
121
+ end_time: endTime,
122
+ limit,
123
+ page_token: pageToken,
124
+ order: order != null ? order : undefined,
125
+ harbor_id: harborId,
126
+ event_type: eventType,
127
+ outcome,
128
+ operation_id: operationId,
129
+ session_id: sessionId,
130
+ actor_id: actorId,
131
+ credential_id: credentialId,
132
+ connection_id: connectionId,
133
+ };
134
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
135
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
136
+ "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",
137
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
138
+ const _response = yield core.fetcher({
139
+ 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/organization/harbor-activity"),
140
+ method: "GET",
141
+ headers: _headers,
142
+ queryString: core.url
143
+ .queryBuilder()
144
+ .addMany(_queryParams)
145
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
146
+ .build(),
147
+ 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,
148
+ 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,
149
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
150
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
151
+ logging: this._options.logging,
152
+ });
153
+ if (_response.ok) {
154
+ return { data: _response.body, rawResponse: _response.rawResponse };
155
+ }
156
+ if (_response.error.reason === "status-code") {
157
+ switch (_response.error.statusCode) {
158
+ case 400:
159
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
160
+ case 401:
161
+ throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
162
+ case 403:
163
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
164
+ case 410:
165
+ throw new Polytomic.GoneError(_response.error.body, _response.rawResponse);
166
+ case 422:
167
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
168
+ default:
169
+ throw new errors.PolytomicError({
170
+ statusCode: _response.error.statusCode,
171
+ body: _response.error.body,
172
+ rawResponse: _response.rawResponse,
173
+ });
174
+ }
175
+ }
176
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organization/harbor-activity");
177
+ });
178
+ }
179
+ /**
180
+ * Returns one Harbor Activity session and its events.
181
+ *
182
+ * You must be an active Organization administrator to use this endpoint. The
183
+ * session must belong to the Organization against which you authenticated.
184
+ *
185
+ * Events are ordered from oldest to newest by default. Set `order` to `desc` to
186
+ * retrieve the newest events first. A page contains at most 100 events. Pass
187
+ * `next_page_token` from the response as `page_token` with the same order and
188
+ * limit to retrieve the next page.
189
+ *
190
+ * `history_truncated` is `true` when Activity retention removed events from the
191
+ * beginning of the session. The lifecycle summary remains available while the
192
+ * session itself is retained.
193
+ *
194
+ * The response uses the same event allowlist as the Activity list and detail
195
+ * endpoints. It does not include session tokens, submitted SQL, raw field names,
196
+ * detailed provider errors, result rows, or raw pagination tokens.
197
+ *
198
+ * > ℹ️ Activity retention
199
+ * >
200
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
201
+ * > expire 24 hours after the first page.
202
+ *
203
+ * @param {string} session_id - Harbor Activity session ID.
204
+ * @param {Polytomic.ActivityGetSessionRequest} request
205
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
206
+ *
207
+ * @throws {@link Polytomic.BadRequestError}
208
+ * @throws {@link Polytomic.UnauthorizedError}
209
+ * @throws {@link Polytomic.ForbiddenError}
210
+ * @throws {@link Polytomic.NotFoundError}
211
+ * @throws {@link Polytomic.GoneError}
212
+ * @throws {@link Polytomic.UnprocessableEntityError}
213
+ * @throws {@link errors.PolytomicError}
214
+ * @throws {@link errors.PolytomicTimeoutError}
215
+ *
216
+ * @example
217
+ * await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
218
+ * limit: 1,
219
+ * page_token: "page_token",
220
+ * order: "asc"
221
+ * })
222
+ */
223
+ getSession(session_id, request = {}, requestOptions) {
224
+ return core.HttpResponsePromise.fromPromise(this.__getSession(session_id, request, requestOptions));
225
+ }
226
+ __getSession(session_id_1) {
227
+ return __awaiter(this, arguments, void 0, function* (session_id, request = {}, requestOptions) {
228
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
229
+ const { limit, page_token: pageToken, order } = request;
230
+ const _queryParams = {
231
+ limit,
232
+ page_token: pageToken,
233
+ order: order != null ? order : undefined,
234
+ };
235
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
236
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
237
+ "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",
238
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
239
+ const _response = yield core.fetcher({
240
+ 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/organization/harbor-activity/sessions/${core.url.encodePathParam(session_id)}`),
241
+ method: "GET",
242
+ headers: _headers,
243
+ queryString: core.url
244
+ .queryBuilder()
245
+ .addMany(_queryParams)
246
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
247
+ .build(),
248
+ 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,
249
+ 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,
250
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
251
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
252
+ logging: this._options.logging,
253
+ });
254
+ if (_response.ok) {
255
+ return {
256
+ data: _response.body,
257
+ rawResponse: _response.rawResponse,
258
+ };
259
+ }
260
+ if (_response.error.reason === "status-code") {
261
+ switch (_response.error.statusCode) {
262
+ case 400:
263
+ throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
264
+ case 401:
265
+ throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
266
+ case 403:
267
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
268
+ case 404:
269
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
270
+ case 410:
271
+ throw new Polytomic.GoneError(_response.error.body, _response.rawResponse);
272
+ case 422:
273
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
274
+ default:
275
+ throw new errors.PolytomicError({
276
+ statusCode: _response.error.statusCode,
277
+ body: _response.error.body,
278
+ rawResponse: _response.rawResponse,
279
+ });
280
+ }
281
+ }
282
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organization/harbor-activity/sessions/{session_id}");
283
+ });
284
+ }
285
+ /**
286
+ * Returns one Harbor Activity event from the caller's organization.
287
+ *
288
+ * You must be an active Organization administrator to use this endpoint. The
289
+ * event must belong to the Organization against which you authenticated.
290
+ *
291
+ * The response can include stable identities, bounded resource snapshots, schema
292
+ * label snapshots with truncation state, field counts, and row counts. It does
293
+ * not include internal recorded-order values, submitted SQL, raw field names,
294
+ * detailed provider errors, result rows, or raw pagination tokens.
295
+ *
296
+ * > ℹ️ Activity retention
297
+ * >
298
+ * > Polytomic retains Activity events for at least 90 days.
299
+ *
300
+ * @param {string} event_id - Activity event ID.
301
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
302
+ *
303
+ * @throws {@link Polytomic.UnauthorizedError}
304
+ * @throws {@link Polytomic.ForbiddenError}
305
+ * @throws {@link Polytomic.NotFoundError}
306
+ * @throws {@link errors.PolytomicError}
307
+ * @throws {@link errors.PolytomicTimeoutError}
308
+ *
309
+ * @example
310
+ * await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
311
+ */
312
+ get(event_id, requestOptions) {
313
+ return core.HttpResponsePromise.fromPromise(this.__get(event_id, requestOptions));
314
+ }
315
+ __get(event_id, requestOptions) {
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
318
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
319
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
320
+ "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",
321
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
322
+ const _response = yield core.fetcher({
323
+ 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/organization/harbor-activity/${core.url.encodePathParam(event_id)}`),
324
+ method: "GET",
325
+ headers: _headers,
326
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
327
+ 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,
328
+ 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,
329
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
330
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
331
+ logging: this._options.logging,
332
+ });
333
+ if (_response.ok) {
334
+ return {
335
+ data: _response.body,
336
+ rawResponse: _response.rawResponse,
337
+ };
338
+ }
339
+ if (_response.error.reason === "status-code") {
340
+ switch (_response.error.statusCode) {
341
+ case 401:
342
+ throw new Polytomic.UnauthorizedError(_response.error.body, _response.rawResponse);
343
+ case 403:
344
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
345
+ case 404:
346
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
347
+ default:
348
+ throw new errors.PolytomicError({
349
+ statusCode: _response.error.statusCode,
350
+ body: _response.error.body,
351
+ rawResponse: _response.rawResponse,
352
+ });
353
+ }
354
+ }
355
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/organization/harbor-activity/{event_id}");
356
+ });
357
+ }
358
+ }
359
+ exports.ActivityClient = ActivityClient;
@@ -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);
@@ -0,0 +1,17 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * limit: 1,
6
+ * page_token: "page_token",
7
+ * order: "asc"
8
+ * }
9
+ */
10
+ export interface ActivityGetSessionRequest {
11
+ /** Maximum number of events to return. Defaults to 50 and cannot exceed 100. */
12
+ limit?: number;
13
+ /** Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page. */
14
+ page_token?: string;
15
+ /** Order in which events were recorded. Defaults to asc. */
16
+ order?: Polytomic.ActivityGetSessionRequestOrder;
17
+ }
@@ -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,47 @@
1
+ import type * as Polytomic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * start_time: "2024-01-15T09:30:00Z",
6
+ * end_time: "2024-01-15T09:30:00Z",
7
+ * limit: 1,
8
+ * page_token: "page_token",
9
+ * order: "asc",
10
+ * harbor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
11
+ * event_type: ["event_type"],
12
+ * outcome: ["outcome"],
13
+ * operation_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
14
+ * session_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
15
+ * actor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
16
+ * credential_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
17
+ * connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
18
+ * }
19
+ */
20
+ export interface ActivityListRequest {
21
+ /** Inclusive start of the event recorded-time range. */
22
+ start_time: string;
23
+ /** Exclusive end of the event recorded-time range. The range can span at most 90 days. */
24
+ end_time: string;
25
+ /** Maximum number of events to return. Defaults to 50 and cannot exceed 100. */
26
+ limit?: number;
27
+ /** Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page. */
28
+ page_token?: string;
29
+ /** Order in which events were recorded. Defaults to desc. */
30
+ order?: Polytomic.ActivityListRequestOrder;
31
+ /** Return events for these Harbors. Repeat the parameter to filter by multiple IDs. */
32
+ harbor_id?: string | string[];
33
+ /** Return events with these event types. Repeat the parameter to filter by multiple types. */
34
+ event_type?: string | string[];
35
+ /** Return events with these outcomes. Repeat the parameter to filter by multiple outcomes. */
36
+ outcome?: string | string[];
37
+ /** Return events for these operation IDs. */
38
+ operation_id?: string | string[];
39
+ /** Return events for these session IDs. */
40
+ session_id?: string | string[];
41
+ /** Return events for these actor IDs. */
42
+ actor_id?: string | string[];
43
+ /** Return events for these credential IDs. */
44
+ credential_id?: string | string[];
45
+ /** Return events for these Connection IDs. */
46
+ connection_id?: string | string[];
47
+ }
@@ -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 { ActivityGetSessionRequest } from "./ActivityGetSessionRequest";
2
+ export type { ActivityListRequest } from "./ActivityListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ActivityClient } 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.ActivityClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "ActivityClient", { enumerable: true, get: function () { return Client_1.ActivityClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -0,0 +1,18 @@
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);
18
+ __exportStar(require("./types"), exports);