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
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RUNTIME = void 0;
4
+ exports.getUserAgent = getUserAgent;
4
5
  /**
5
6
  * A constant that indicates which environment and version the SDK is running in.
6
7
  */
7
8
  exports.RUNTIME = evaluateRuntime();
8
9
  function evaluateRuntime() {
9
- var _a, _b, _c, _d, _e;
10
+ var _a, _b, _c, _d, _e, _f, _g;
10
11
  /**
11
12
  * A constant that indicates whether the environment the code is running is a Web Browser.
12
13
  */
@@ -59,6 +60,8 @@ function evaluateRuntime() {
59
60
  return {
60
61
  type: "deno",
61
62
  version: Deno.version.deno,
63
+ os: (_e = Deno.build) === null || _e === void 0 ? void 0 : _e.os,
64
+ arch: (_f = Deno.build) === null || _f === void 0 ? void 0 : _f.arch,
62
65
  };
63
66
  }
64
67
  /**
@@ -69,6 +72,8 @@ function evaluateRuntime() {
69
72
  return {
70
73
  type: "bun",
71
74
  version: Bun.version,
75
+ os: typeof process !== "undefined" ? process.platform : undefined,
76
+ arch: typeof process !== "undefined" ? process.arch : undefined,
72
77
  };
73
78
  }
74
79
  /**
@@ -90,15 +95,82 @@ function evaluateRuntime() {
90
95
  * Edge Runtime warns about Node.js APIs even when they are guarded).
91
96
  */
92
97
  const _process = typeof process !== "undefined" ? process : undefined;
93
- const isNode = typeof _process !== "undefined" && typeof ((_e = _process.versions) === null || _e === void 0 ? void 0 : _e.node) === "string";
98
+ const isNode = typeof _process !== "undefined" && typeof ((_g = _process.versions) === null || _g === void 0 ? void 0 : _g.node) === "string";
94
99
  if (isNode) {
95
100
  return {
96
101
  type: "node",
97
102
  version: _process.versions.node,
98
103
  parsedVersion: Number(_process.versions.node.split(".")[0]),
104
+ os: _process.platform,
105
+ arch: _process.arch,
99
106
  };
100
107
  }
101
108
  return {
102
109
  type: "unknown",
103
110
  };
104
111
  }
112
+ /**
113
+ * Display names for the language runtimes whose version is meaningful to encode
114
+ * in a User-Agent. Environments where a version string is not useful (e.g.
115
+ * browsers, where `version` is the full navigator UA) are intentionally mapped
116
+ * to `undefined` so they are omitted from the User-Agent.
117
+ */
118
+ const RUNTIME_DISPLAY_NAMES = {
119
+ node: "Node",
120
+ deno: "Deno",
121
+ bun: "Bun",
122
+ browser: undefined,
123
+ "web-worker": undefined,
124
+ "react-native": undefined,
125
+ workerd: undefined,
126
+ "edge-runtime": undefined,
127
+ unknown: undefined,
128
+ };
129
+ /**
130
+ * CPU architecture aliases that all refer to 64-bit x86. They are normalized to
131
+ * the single canonical token `x86_64` so the User-Agent architecture label is
132
+ * consistent regardless of which runtime reports it (Node reports `x64`, others
133
+ * report `amd64` or `x86_64`).
134
+ */
135
+ const X86_64_ARCH_ALIASES = new Set(["x64", "amd64", "x86_64"]);
136
+ /**
137
+ * Normalizes a CPU architecture token, collapsing the 64-bit x86 aliases
138
+ * (`x64`, `amd64`, `x86_64`) to `x86_64`. Other architectures are returned
139
+ * unchanged.
140
+ */
141
+ function normalizeArch(arch) {
142
+ if (arch == null) {
143
+ return arch;
144
+ }
145
+ return X86_64_ARCH_ALIASES.has(arch.toLowerCase()) ? "x86_64" : arch;
146
+ }
147
+ /**
148
+ * Percent-encodes the `@` and `/` characters in an npm package name so the
149
+ * User-Agent product token stays within the RFC 7230 token grammar. The
150
+ * original scoped package name can be recovered by URL-decoding (e.g.
151
+ * `@dummy/sdk` becomes `%40dummy%2Fsdk`).
152
+ */
153
+ function encodeProductName(sdkName) {
154
+ return sdkName.replace(/@/g, "%40").replace(/\//g, "%2F");
155
+ }
156
+ /**
157
+ * Builds a structured User-Agent string of the form
158
+ * `{sdkName}/{sdkVersion} ({os}; {arch}) {runtime}/{runtimeVersion}`
159
+ * where the platform group and runtime segment are omitted gracefully when the
160
+ * underlying values cannot be determined (e.g. in a browser).
161
+ */
162
+ function getUserAgent(sdkName, sdkVersion) {
163
+ let userAgent = `${encodeProductName(sdkName)}/${sdkVersion}`;
164
+ const platform = [exports.RUNTIME.os, normalizeArch(exports.RUNTIME.arch)].filter((part) => part != null && part.length > 0);
165
+ if (platform.length > 0) {
166
+ userAgent += ` (${platform.join("; ")})`;
167
+ }
168
+ const runtimeName = RUNTIME_DISPLAY_NAMES[exports.RUNTIME.type];
169
+ if (runtimeName != null) {
170
+ userAgent += ` ${runtimeName}`;
171
+ if (exports.RUNTIME.version != null && exports.RUNTIME.version.length > 0) {
172
+ userAgent += `/${exports.RUNTIME.version}`;
173
+ }
174
+ }
175
+ return userAgent;
176
+ }
package/core/url/qs.js CHANGED
@@ -19,7 +19,7 @@ function stringifyObject(obj, prefix = "", options) {
19
19
  const parts = [];
20
20
  for (const [key, value] of Object.entries(obj)) {
21
21
  const fullKey = prefix ? `${prefix}[${key}]` : key;
22
- if (value === undefined) {
22
+ if (value == null) {
23
23
  continue;
24
24
  }
25
25
  if (Array.isArray(value)) {
@@ -39,7 +39,7 @@ function stringifyObject(obj, prefix = "", options) {
39
39
  else {
40
40
  for (let i = 0; i < value.length; i++) {
41
41
  const item = value[i];
42
- if (item === undefined) {
42
+ if (item == null) {
43
43
  continue;
44
44
  }
45
45
  if (typeof item === "object" && !Array.isArray(item) && item !== null) {
@@ -11,4 +11,5 @@ export declare class PolytomicError extends Error {
11
11
  rawResponse?: core.RawResponse;
12
12
  cause?: unknown;
13
13
  });
14
+ get requestId(): string | undefined;
14
15
  }
@@ -10,7 +10,7 @@ class PolytomicError extends Error {
10
10
  if (Error.captureStackTrace) {
11
11
  Error.captureStackTrace(this, this.constructor);
12
12
  }
13
- this.name = this.constructor.name;
13
+ this.name = "PolytomicError";
14
14
  this.statusCode = statusCode;
15
15
  this.body = body;
16
16
  this.rawResponse = rawResponse;
@@ -18,6 +18,10 @@ class PolytomicError extends Error {
18
18
  this.cause = cause;
19
19
  }
20
20
  }
21
+ get requestId() {
22
+ var _a, _b, _c;
23
+ return (_c = (_b = (_a = this.rawResponse) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.get("x-request-id")) !== null && _c !== void 0 ? _c : undefined;
24
+ }
21
25
  }
22
26
  exports.PolytomicError = PolytomicError;
23
27
  function buildMessage({ message, statusCode, body, }) {
@@ -1,5 +1,5 @@
1
- export declare class PolytomicTimeoutError extends Error {
2
- readonly cause?: unknown;
1
+ import * as errors from "./index";
2
+ export declare class PolytomicTimeoutError extends errors.PolytomicError {
3
3
  constructor(message: string, opts?: {
4
4
  cause?: unknown;
5
5
  });
@@ -1,18 +1,52 @@
1
1
  "use strict";
2
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
+ })();
3
36
  Object.defineProperty(exports, "__esModule", { value: true });
4
37
  exports.PolytomicTimeoutError = void 0;
5
- class PolytomicTimeoutError extends Error {
38
+ const errors = __importStar(require("./index"));
39
+ class PolytomicTimeoutError extends errors.PolytomicError {
6
40
  constructor(message, opts) {
7
- super(message);
41
+ super({
42
+ message: message,
43
+ cause: opts === null || opts === void 0 ? void 0 : opts.cause,
44
+ });
8
45
  Object.setPrototypeOf(this, new.target.prototype);
9
46
  if (Error.captureStackTrace) {
10
47
  Error.captureStackTrace(this, this.constructor);
11
48
  }
12
- this.name = this.constructor.name;
13
- if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
14
- this.cause = opts.cause;
15
- }
49
+ this.name = "PolytomicTimeoutError";
16
50
  }
17
51
  }
18
52
  exports.PolytomicTimeoutError = PolytomicTimeoutError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytomic",
3
- "version": "25.9.3",
3
+ "version": "25.9.5",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "ts-jest": "^29.3.4",
33
33
  "jest-environment-jsdom": "^29.7.0",
34
34
  "msw": "2.11.2",
35
- "@types/node": "^18.19.70",
35
+ "@types/node": "^20.0.0",
36
36
  "typescript": "~5.9.3",
37
37
  "@biomejs/biome": "2.4.10"
38
38
  },
package/reference.md CHANGED
@@ -1594,6 +1594,10 @@ await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d");
1594
1594
 
1595
1595
  Updates a connection's configuration.
1596
1596
 
1597
+ Connections owned by a managed Harbor return `409 Conflict`. To rename the
1598
+ Connection, [update its Harbor](../../../api-reference/harbors/update). Customer-managed
1599
+ Harbor backing Connections remain independently editable.
1600
+
1597
1601
  Updating a connection is a **full replacement** of its configuration. Any
1598
1602
  `configuration` field you omit is cleared. To make a partial change, fetch
1599
1603
  the current connection with
@@ -1687,6 +1691,12 @@ await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
1687
1691
 
1688
1692
  Deletes a connection.
1689
1693
 
1694
+ A Connection that backs any active Harbor returns `409 Conflict`, including
1695
+ when you pass `force=true`. No dependent resources are deleted in this case.
1696
+ [Delete the Harbor](../../../api-reference/harbors/delete) first. Deleting a managed
1697
+ Harbor also deletes its managed Connection; deleting a customer-managed Harbor
1698
+ preserves its backing Connection.
1699
+
1690
1700
  > 🚧 Deleting a connection that is referenced by fieldsets, syncs, bulk
1691
1701
  > syncs, or schedules returns `422 connection in use` unless you pass
1692
1702
  > `force=true`. With `force=true`, the API deletes those dependent
@@ -1917,7 +1927,7 @@ Submits a query for asynchronous execution against the connection.
1917
1927
 
1918
1928
  This endpoint returns immediately with a query task ID. It does not wait for
1919
1929
  the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
1920
- reaches `done` or `failed`.
1930
+ reaches `done`, `failed`, or `unknown`. These statuses are terminal.
1921
1931
 
1922
1932
  Only the user who created the query can fetch its results later. Query results
1923
1933
  are stored temporarily and may expire; use the `expires` field from the result
@@ -2005,6 +2015,10 @@ opaque `links.next` and `links.previous` URLs exactly as returned. Do not try to
2005
2015
  construct the `page` token yourself.
2006
2016
 
2007
2017
  If the query is still running, the response may include only status metadata.
2018
+ The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
2019
+ means execution started, but its durable terminal result was lost or expired.
2020
+ Stop polling when you receive any terminal status.
2021
+
2008
2022
  If the task is complete but the caller is not the same user that created it,
2009
2023
  the endpoint returns `404`.
2010
2024
  </dd>
@@ -5396,6 +5410,10 @@ await client.harbors.get("248df4b7-aa70-47b8-a036-33ac447e668d");
5396
5410
 
5397
5411
  Updates a Harbor's name and description.
5398
5412
 
5413
+ Renaming a managed Harbor also renames its backing Connection. Both names
5414
+ change together; a name conflict returns `409 Conflict` and leaves both
5415
+ unchanged. Renaming a customer-managed Harbor preserves its Connection's name.
5416
+
5399
5417
  This operation does not change `backing_mode` or `backing_connection_id`.
5400
5418
  </dd>
5401
5419
  </dl>
@@ -8117,6 +8135,278 @@ await client.organization.delete("248df4b7-aa70-47b8-a036-33ac447e668d");
8117
8135
  </dl>
8118
8136
 
8119
8137
 
8138
+ </dd>
8139
+ </dl>
8140
+ </details>
8141
+
8142
+ ## Activity
8143
+ <details><summary><code>client.activity.<a href="/src/api/resources/activity/client/Client.ts">list</a>({ ...params }) -> Polytomic.HarborActivityListEnvelope</code></summary>
8144
+ <dl>
8145
+ <dd>
8146
+
8147
+ #### 📝 Description
8148
+
8149
+ <dl>
8150
+ <dd>
8151
+
8152
+ <dl>
8153
+ <dd>
8154
+
8155
+ Lists Harbor Activity recorded for the caller's organization.
8156
+
8157
+ You must be an active Organization administrator to use this endpoint.
8158
+
8159
+ `start_time` is inclusive and `end_time` is exclusive. Both filter the time at
8160
+ which Polytomic recorded each event, which can differ from `occurred_at`. A
8161
+ single request can cover at most 90 days.
8162
+
8163
+ Results are ordered from newest to oldest by default. Set `order` to `asc` to
8164
+ retrieve the oldest events first. A page contains at most 100 events. Pass
8165
+ `next_page_token` from the response as `page_token` with the same time range,
8166
+ filters, order, and limit to retrieve the next page. The token expires 24 hours
8167
+ after the first page. Pagination uses a live descending cursor, so an event from
8168
+ a transaction that commits between pages can require a fresh traversal.
8169
+
8170
+ Responses include stable identities, bounded resource snapshots, schema label
8171
+ snapshots with truncation state, field counts, and row counts when available.
8172
+ They do not include internal recorded-order values, submitted SQL, raw field
8173
+ names, detailed provider errors, result rows, or raw pagination tokens.
8174
+
8175
+ > ℹ️ Activity retention
8176
+ >
8177
+ > Polytomic retains Activity events for at least 90 days. Pagination tokens
8178
+ > expire 24 hours after the first page.
8179
+ </dd>
8180
+ </dl>
8181
+ </dd>
8182
+ </dl>
8183
+
8184
+ #### 🔌 Usage
8185
+
8186
+ <dl>
8187
+ <dd>
8188
+
8189
+ <dl>
8190
+ <dd>
8191
+
8192
+ ```typescript
8193
+ await client.activity.list({
8194
+ start_time: "2024-01-15T09:30:00Z",
8195
+ end_time: "2024-01-15T09:30:00Z",
8196
+ limit: 1,
8197
+ page_token: "page_token",
8198
+ order: "asc",
8199
+ harbor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
8200
+ event_type: ["event_type"],
8201
+ outcome: ["outcome"],
8202
+ operation_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
8203
+ session_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
8204
+ actor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
8205
+ credential_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
8206
+ connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
8207
+ });
8208
+
8209
+ ```
8210
+ </dd>
8211
+ </dl>
8212
+ </dd>
8213
+ </dl>
8214
+
8215
+ #### ⚙️ Parameters
8216
+
8217
+ <dl>
8218
+ <dd>
8219
+
8220
+ <dl>
8221
+ <dd>
8222
+
8223
+ **request:** `Polytomic.ActivityListRequest`
8224
+
8225
+ </dd>
8226
+ </dl>
8227
+
8228
+ <dl>
8229
+ <dd>
8230
+
8231
+ **requestOptions:** `ActivityClient.RequestOptions`
8232
+
8233
+ </dd>
8234
+ </dl>
8235
+ </dd>
8236
+ </dl>
8237
+
8238
+
8239
+ </dd>
8240
+ </dl>
8241
+ </details>
8242
+
8243
+ <details><summary><code>client.activity.<a href="/src/api/resources/activity/client/Client.ts">getSession</a>(session_id, { ...params }) -> Polytomic.HarborActivitySessionEnvelope</code></summary>
8244
+ <dl>
8245
+ <dd>
8246
+
8247
+ #### 📝 Description
8248
+
8249
+ <dl>
8250
+ <dd>
8251
+
8252
+ <dl>
8253
+ <dd>
8254
+
8255
+ Returns one Harbor Activity session and its events.
8256
+
8257
+ You must be an active Organization administrator to use this endpoint. The
8258
+ session must belong to the Organization against which you authenticated.
8259
+
8260
+ Events are ordered from oldest to newest by default. Set `order` to `desc` to
8261
+ retrieve the newest events first. A page contains at most 100 events. Pass
8262
+ `next_page_token` from the response as `page_token` with the same order and
8263
+ limit to retrieve the next page.
8264
+
8265
+ `history_truncated` is `true` when Activity retention removed events from the
8266
+ beginning of the session. The lifecycle summary remains available while the
8267
+ session itself is retained.
8268
+
8269
+ The response uses the same event allowlist as the Activity list and detail
8270
+ endpoints. It does not include session tokens, submitted SQL, raw field names,
8271
+ detailed provider errors, result rows, or raw pagination tokens.
8272
+
8273
+ > ℹ️ Activity retention
8274
+ >
8275
+ > Polytomic retains Activity events for at least 90 days. Pagination tokens
8276
+ > expire 24 hours after the first page.
8277
+ </dd>
8278
+ </dl>
8279
+ </dd>
8280
+ </dl>
8281
+
8282
+ #### 🔌 Usage
8283
+
8284
+ <dl>
8285
+ <dd>
8286
+
8287
+ <dl>
8288
+ <dd>
8289
+
8290
+ ```typescript
8291
+ await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
8292
+ limit: 1,
8293
+ page_token: "page_token",
8294
+ order: "asc"
8295
+ });
8296
+
8297
+ ```
8298
+ </dd>
8299
+ </dl>
8300
+ </dd>
8301
+ </dl>
8302
+
8303
+ #### ⚙️ Parameters
8304
+
8305
+ <dl>
8306
+ <dd>
8307
+
8308
+ <dl>
8309
+ <dd>
8310
+
8311
+ **session_id:** `string` — Harbor Activity session ID.
8312
+
8313
+ </dd>
8314
+ </dl>
8315
+
8316
+ <dl>
8317
+ <dd>
8318
+
8319
+ **request:** `Polytomic.ActivityGetSessionRequest`
8320
+
8321
+ </dd>
8322
+ </dl>
8323
+
8324
+ <dl>
8325
+ <dd>
8326
+
8327
+ **requestOptions:** `ActivityClient.RequestOptions`
8328
+
8329
+ </dd>
8330
+ </dl>
8331
+ </dd>
8332
+ </dl>
8333
+
8334
+
8335
+ </dd>
8336
+ </dl>
8337
+ </details>
8338
+
8339
+ <details><summary><code>client.activity.<a href="/src/api/resources/activity/client/Client.ts">get</a>(event_id) -> Polytomic.HarborActivityEventEnvelope</code></summary>
8340
+ <dl>
8341
+ <dd>
8342
+
8343
+ #### 📝 Description
8344
+
8345
+ <dl>
8346
+ <dd>
8347
+
8348
+ <dl>
8349
+ <dd>
8350
+
8351
+ Returns one Harbor Activity event from the caller's organization.
8352
+
8353
+ You must be an active Organization administrator to use this endpoint. The
8354
+ event must belong to the Organization against which you authenticated.
8355
+
8356
+ The response can include stable identities, bounded resource snapshots, schema
8357
+ label snapshots with truncation state, field counts, and row counts. It does
8358
+ not include internal recorded-order values, submitted SQL, raw field names,
8359
+ detailed provider errors, result rows, or raw pagination tokens.
8360
+
8361
+ > ℹ️ Activity retention
8362
+ >
8363
+ > Polytomic retains Activity events for at least 90 days.
8364
+ </dd>
8365
+ </dl>
8366
+ </dd>
8367
+ </dl>
8368
+
8369
+ #### 🔌 Usage
8370
+
8371
+ <dl>
8372
+ <dd>
8373
+
8374
+ <dl>
8375
+ <dd>
8376
+
8377
+ ```typescript
8378
+ await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d");
8379
+
8380
+ ```
8381
+ </dd>
8382
+ </dl>
8383
+ </dd>
8384
+ </dl>
8385
+
8386
+ #### ⚙️ Parameters
8387
+
8388
+ <dl>
8389
+ <dd>
8390
+
8391
+ <dl>
8392
+ <dd>
8393
+
8394
+ **event_id:** `string` — Activity event ID.
8395
+
8396
+ </dd>
8397
+ </dl>
8398
+
8399
+ <dl>
8400
+ <dd>
8401
+
8402
+ **requestOptions:** `ActivityClient.RequestOptions`
8403
+
8404
+ </dd>
8405
+ </dl>
8406
+ </dd>
8407
+ </dl>
8408
+
8409
+
8120
8410
  </dd>
8121
8411
  </dl>
8122
8412
  </details>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "25.9.3";
1
+ export declare const SDK_VERSION = "25.9.5";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "25.9.3";
4
+ exports.SDK_VERSION = "25.9.5";