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
package/BaseClient.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BearerAuthProvider } from "./auth/BearerAuthProvider";
2
2
  import * as core from "./core";
3
3
  import type * as environments from "./environments";
4
+ export type AuthOption = false | core.AuthProvider["getAuthRequest"] | core.AuthProvider | BearerAuthProvider.AuthOptions;
4
5
  export type BaseClientOptions = {
5
6
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
6
7
  /** Specify a custom URL to connect the client to. */
@@ -17,6 +18,13 @@ export type BaseClientOptions = {
17
18
  fetch?: typeof fetch;
18
19
  /** Configure logging for the client. */
19
20
  logging?: core.logging.LogConfig | core.logging.Logger;
21
+ /** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
22
+ stream?: {
23
+ reconnectionEnabled?: boolean;
24
+ maxReconnectionAttempts?: number;
25
+ };
26
+ /** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
27
+ auth?: AuthOption;
20
28
  } & BearerAuthProvider.AuthOptions;
21
29
  export interface BaseRequestOptions {
22
30
  /** The maximum time to wait for a response in seconds. */
@@ -29,8 +37,15 @@ export interface BaseRequestOptions {
29
37
  version?: string | undefined;
30
38
  /** Additional query string parameters to include in the request. */
31
39
  queryParams?: Record<string, unknown>;
40
+ /** A dictionary containing additional parameters to spread into the request's body. */
41
+ additionalBodyParameters?: Record<string, unknown>;
32
42
  /** Additional headers to include in the request. */
33
43
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
44
+ /** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
45
+ stream?: {
46
+ reconnectionEnabled?: boolean;
47
+ maxReconnectionAttempts?: number;
48
+ };
34
49
  }
35
50
  export interface BaseIdempotentRequestOptions {
36
51
  idempotencyKey?: string | undefined;
package/BaseClient.js CHANGED
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "polytomic",
47
- "X-Fern-SDK-Version": "25.9.3",
48
- "User-Agent": "polytomic/25.9.3",
47
+ "X-Fern-SDK-Version": "25.9.5",
48
+ "User-Agent": "polytomic/25.9.5",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Polytomic-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-09-18",
@@ -55,6 +55,21 @@ function normalizeClientOptions(options) {
55
55
  function normalizeClientOptionsWithAuth(options) {
56
56
  var _a;
57
57
  const normalized = normalizeClientOptions(options);
58
+ if (options.auth === false) {
59
+ normalized.authProvider = new core.NoOpAuthProvider();
60
+ return normalized;
61
+ }
62
+ if (options.auth != null) {
63
+ if (typeof options.auth === "function") {
64
+ normalized.authProvider = { getAuthRequest: options.auth };
65
+ return normalized;
66
+ }
67
+ if (core.isAuthProvider(options.auth)) {
68
+ normalized.authProvider = options.auth;
69
+ return normalized;
70
+ }
71
+ Object.assign(normalized, options.auth);
72
+ }
58
73
  const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
59
74
  (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider_1.BearerAuthProvider(normalizedWithNoOpAuthProvider));
60
75
  return normalized;
package/Client.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ActivityClient } from "./api/resources/activity/client/Client";
1
2
  import { BulkSyncClient } from "./api/resources/bulkSync/client/Client";
2
3
  import { ConnectionsClient } from "./api/resources/connections/client/Client";
3
4
  import { EntitiesClient } from "./api/resources/entities/client/Client";
@@ -39,6 +40,7 @@ export declare class PolytomicClient {
39
40
  protected _identity: IdentityClient | undefined;
40
41
  protected _notifications: NotificationsClient | undefined;
41
42
  protected _organization: OrganizationClient | undefined;
43
+ protected _activity: ActivityClient | undefined;
42
44
  protected _users: UsersClient | undefined;
43
45
  protected _recordViewLinks: RecordViewLinksClient | undefined;
44
46
  protected _temporaryCredentials: TemporaryCredentialsClient | undefined;
@@ -58,6 +60,7 @@ export declare class PolytomicClient {
58
60
  get identity(): IdentityClient;
59
61
  get notifications(): NotificationsClient;
60
62
  get organization(): OrganizationClient;
63
+ get activity(): ActivityClient;
61
64
  get users(): UsersClient;
62
65
  get recordViewLinks(): RecordViewLinksClient;
63
66
  get temporaryCredentials(): TemporaryCredentialsClient;
package/Client.js CHANGED
@@ -44,24 +44,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.PolytomicClient = void 0;
47
- const Client_1 = require("./api/resources/bulkSync/client/Client");
48
- const Client_2 = require("./api/resources/connections/client/Client");
49
- const Client_3 = require("./api/resources/entities/client/Client");
50
- const Client_4 = require("./api/resources/events/client/Client");
51
- const Client_5 = require("./api/resources/harbors/client/Client");
52
- const Client_6 = require("./api/resources/identity/client/Client");
53
- const Client_7 = require("./api/resources/jobs/client/Client");
54
- const Client_8 = require("./api/resources/modelSync/client/Client");
55
- const Client_9 = require("./api/resources/models/client/Client");
56
- const Client_10 = require("./api/resources/notifications/client/Client");
57
- const Client_11 = require("./api/resources/organization/client/Client");
58
- const Client_12 = require("./api/resources/permissions/client/Client");
59
- const Client_13 = require("./api/resources/queryRunner/client/Client");
60
- const Client_14 = require("./api/resources/recordViewLinks/client/Client");
61
- const Client_15 = require("./api/resources/schemas/client/Client");
62
- const Client_16 = require("./api/resources/temporaryCredentials/client/Client");
63
- const Client_17 = require("./api/resources/users/client/Client");
64
- const Client_18 = require("./api/resources/webhooks/client/Client");
47
+ const Client_1 = require("./api/resources/activity/client/Client");
48
+ const Client_2 = require("./api/resources/bulkSync/client/Client");
49
+ const Client_3 = require("./api/resources/connections/client/Client");
50
+ const Client_4 = require("./api/resources/entities/client/Client");
51
+ const Client_5 = require("./api/resources/events/client/Client");
52
+ const Client_6 = require("./api/resources/harbors/client/Client");
53
+ const Client_7 = require("./api/resources/identity/client/Client");
54
+ const Client_8 = require("./api/resources/jobs/client/Client");
55
+ const Client_9 = require("./api/resources/modelSync/client/Client");
56
+ const Client_10 = require("./api/resources/models/client/Client");
57
+ const Client_11 = require("./api/resources/notifications/client/Client");
58
+ const Client_12 = require("./api/resources/organization/client/Client");
59
+ const Client_13 = require("./api/resources/permissions/client/Client");
60
+ const Client_14 = require("./api/resources/queryRunner/client/Client");
61
+ const Client_15 = require("./api/resources/recordViewLinks/client/Client");
62
+ const Client_16 = require("./api/resources/schemas/client/Client");
63
+ const Client_17 = require("./api/resources/temporaryCredentials/client/Client");
64
+ const Client_18 = require("./api/resources/users/client/Client");
65
+ const Client_19 = require("./api/resources/webhooks/client/Client");
65
66
  const BaseClient_1 = require("./BaseClient");
66
67
  const core = __importStar(require("./core"));
67
68
  class PolytomicClient {
@@ -70,75 +71,79 @@ class PolytomicClient {
70
71
  }
71
72
  get bulkSync() {
72
73
  var _a;
73
- return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new Client_1.BulkSyncClient(this._options)));
74
+ return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new Client_2.BulkSyncClient(this._options)));
74
75
  }
75
76
  get connections() {
76
77
  var _a;
77
- return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_2.ConnectionsClient(this._options)));
78
+ return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_3.ConnectionsClient(this._options)));
78
79
  }
79
80
  get queryRunner() {
80
81
  var _a;
81
- return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_13.QueryRunnerClient(this._options)));
82
+ return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_14.QueryRunnerClient(this._options)));
82
83
  }
83
84
  get schemas() {
84
85
  var _a;
85
- return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_15.SchemasClient(this._options)));
86
+ return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_16.SchemasClient(this._options)));
86
87
  }
87
88
  get models() {
88
89
  var _a;
89
- return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_9.ModelsClient(this._options)));
90
+ return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_10.ModelsClient(this._options)));
90
91
  }
91
92
  get modelSync() {
92
93
  var _a;
93
- return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_8.ModelSyncClient(this._options)));
94
+ return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_9.ModelSyncClient(this._options)));
94
95
  }
95
96
  get entities() {
96
97
  var _a;
97
- return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_3.EntitiesClient(this._options)));
98
+ return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_4.EntitiesClient(this._options)));
98
99
  }
99
100
  get events() {
100
101
  var _a;
101
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_4.EventsClient(this._options)));
102
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_5.EventsClient(this._options)));
102
103
  }
103
104
  get harbors() {
104
105
  var _a;
105
- return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_5.HarborsClient(this._options)));
106
+ return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_6.HarborsClient(this._options)));
106
107
  }
107
108
  get jobs() {
108
109
  var _a;
109
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.JobsClient(this._options)));
110
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_8.JobsClient(this._options)));
110
111
  }
111
112
  get identity() {
112
113
  var _a;
113
- return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_6.IdentityClient(this._options)));
114
+ return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_7.IdentityClient(this._options)));
114
115
  }
115
116
  get notifications() {
116
117
  var _a;
117
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_10.NotificationsClient(this._options)));
118
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_11.NotificationsClient(this._options)));
118
119
  }
119
120
  get organization() {
120
121
  var _a;
121
- return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_11.OrganizationClient(this._options)));
122
+ return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_12.OrganizationClient(this._options)));
123
+ }
124
+ get activity() {
125
+ var _a;
126
+ return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_1.ActivityClient(this._options)));
122
127
  }
123
128
  get users() {
124
129
  var _a;
125
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
130
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_18.UsersClient(this._options)));
126
131
  }
127
132
  get recordViewLinks() {
128
133
  var _a;
129
- return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_14.RecordViewLinksClient(this._options)));
134
+ return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_15.RecordViewLinksClient(this._options)));
130
135
  }
131
136
  get temporaryCredentials() {
132
137
  var _a;
133
- return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_16.TemporaryCredentialsClient(this._options)));
138
+ return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_17.TemporaryCredentialsClient(this._options)));
134
139
  }
135
140
  get webhooks() {
136
141
  var _a;
137
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_18.WebhooksClient(this._options)));
142
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_19.WebhooksClient(this._options)));
138
143
  }
139
144
  get permissions() {
140
145
  var _a;
141
- return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_12.PermissionsClient(this._options)));
146
+ return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_13.PermissionsClient(this._options)));
142
147
  }
143
148
  /**
144
149
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class BadGatewayError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class BadGatewayError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadGatewayError";
52
52
  }
53
53
  }
54
54
  exports.BadGatewayError = BadGatewayError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class BadRequestError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class BadRequestError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class ConflictError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class ConflictError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ConflictError";
52
52
  }
53
53
  }
54
54
  exports.ConflictError = ConflictError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class ForbiddenError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ForbiddenError";
52
52
  }
53
53
  }
54
54
  exports.ForbiddenError = ForbiddenError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class GatewayTimeoutError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class GatewayTimeoutError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "GatewayTimeoutError";
52
52
  }
53
53
  }
54
54
  exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -0,0 +1,7 @@
1
+ import type * as core from "../../core";
2
+ import * as errors from "../../errors/index";
3
+ import type * as Polytomic from "../index";
4
+ export declare class GoneError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
6
+ constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
7
+ }
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GoneError = void 0;
38
+ const errors = __importStar(require("../../errors/index"));
39
+ class GoneError extends errors.PolytomicError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GoneError",
43
+ statusCode: 410,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = "GoneError";
52
+ }
53
+ }
54
+ exports.GoneError = GoneError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class InternalServerError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class InternalServerError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InternalServerError";
52
52
  }
53
53
  }
54
54
  exports.InternalServerError = InternalServerError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class NotFoundError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class NotFoundError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class RequestTimeoutError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class RequestTimeoutError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "RequestTimeoutError";
52
52
  }
53
53
  }
54
54
  exports.RequestTimeoutError = RequestTimeoutError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class ServiceUnavailableError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class ServiceUnavailableError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ServiceUnavailableError";
52
52
  }
53
53
  }
54
54
  exports.ServiceUnavailableError = ServiceUnavailableError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class TooManyRequestsError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "TooManyRequestsError";
52
52
  }
53
53
  }
54
54
  exports.TooManyRequestsError = TooManyRequestsError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class UnauthorizedError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Polytomic from "../index";
4
4
  export declare class UnprocessableEntityError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
5
6
  constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class UnprocessableEntityError extends errors.PolytomicError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnprocessableEntityError";
52
52
  }
53
53
  }
54
54
  exports.UnprocessableEntityError = UnprocessableEntityError;
@@ -3,6 +3,7 @@ export * from "./BadRequestError";
3
3
  export * from "./ConflictError";
4
4
  export * from "./ForbiddenError";
5
5
  export * from "./GatewayTimeoutError";
6
+ export * from "./GoneError";
6
7
  export * from "./InternalServerError";
7
8
  export * from "./NotFoundError";
8
9
  export * from "./RequestTimeoutError";
@@ -19,6 +19,7 @@ __exportStar(require("./BadRequestError"), exports);
19
19
  __exportStar(require("./ConflictError"), exports);
20
20
  __exportStar(require("./ForbiddenError"), exports);
21
21
  __exportStar(require("./GatewayTimeoutError"), exports);
22
+ __exportStar(require("./GoneError"), exports);
22
23
  __exportStar(require("./InternalServerError"), exports);
23
24
  __exportStar(require("./NotFoundError"), exports);
24
25
  __exportStar(require("./RequestTimeoutError"), exports);