polytomic 1.14.4 → 1.16.0

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 (106) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  3. package/api/resources/bulkSync/client/Client.d.ts +13 -0
  4. package/api/resources/bulkSync/client/Client.js +72 -10
  5. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +14 -0
  6. package/api/resources/bulkSync/resources/executions/client/Client.js +68 -5
  7. package/api/resources/bulkSync/resources/schedules/client/Client.js +5 -5
  8. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +14 -0
  9. package/api/resources/bulkSync/resources/schemas/client/Client.js +67 -4
  10. package/api/resources/connections/client/Client.js +10 -10
  11. package/api/resources/events/client/Client.js +2 -2
  12. package/api/resources/identity/client/Client.js +1 -1
  13. package/api/resources/index.d.ts +2 -0
  14. package/api/resources/index.js +3 -1
  15. package/api/resources/jobs/client/Client.js +1 -1
  16. package/api/resources/modelSync/client/Client.js +12 -12
  17. package/api/resources/modelSync/resources/executions/client/Client.js +5 -5
  18. package/api/resources/modelSync/resources/targets/client/Client.js +4 -4
  19. package/api/resources/models/client/Client.js +9 -9
  20. package/api/resources/notifications/client/Client.d.ts +55 -0
  21. package/api/resources/notifications/client/Client.js +182 -0
  22. package/api/resources/notifications/client/index.d.ts +1 -0
  23. package/api/resources/notifications/client/index.js +17 -0
  24. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +10 -0
  25. package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +5 -0
  26. package/api/resources/notifications/client/requests/index.d.ts +1 -0
  27. package/api/resources/notifications/client/requests/index.js +2 -0
  28. package/api/resources/notifications/index.d.ts +1 -0
  29. package/api/resources/notifications/index.js +17 -0
  30. package/api/resources/organization/client/Client.js +5 -5
  31. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  32. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  33. package/api/resources/queryRunner/client/Client.js +2 -2
  34. package/api/resources/schemas/client/Client.js +8 -8
  35. package/api/resources/users/client/Client.d.ts +5 -20
  36. package/api/resources/users/client/Client.js +21 -26
  37. package/api/resources/webhooks/client/Client.js +7 -7
  38. package/api/types/BackendConnectionCapabilities.d.ts +4 -4
  39. package/api/types/BulkBulkSyncSchedule.d.ts +2 -0
  40. package/api/types/BulkScheduleSyncMode.d.ts +10 -0
  41. package/api/types/BulkScheduleSyncMode.js +12 -0
  42. package/api/types/CancelBulkSyncResponse.d.ts +6 -0
  43. package/api/types/CancelBulkSyncResponse.js +5 -0
  44. package/api/types/CancelBulkSyncResponseEnvelope.d.ts +7 -0
  45. package/api/types/CancelBulkSyncResponseEnvelope.js +5 -0
  46. package/api/types/ConnectionType.d.ts +1 -1
  47. package/api/types/V4GlobalErrorSubscribersResponse.d.ts +6 -0
  48. package/api/types/V4GlobalErrorSubscribersResponse.js +5 -0
  49. package/api/types/index.d.ts +4 -0
  50. package/api/types/index.js +4 -0
  51. package/dist/Client.d.ts +3 -0
  52. package/dist/Client.js +13 -8
  53. package/dist/api/resources/bulkSync/client/Client.d.ts +13 -0
  54. package/dist/api/resources/bulkSync/client/Client.js +72 -10
  55. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +14 -0
  56. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +68 -5
  57. package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +5 -5
  58. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +14 -0
  59. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +67 -4
  60. package/dist/api/resources/connections/client/Client.js +10 -10
  61. package/dist/api/resources/events/client/Client.js +2 -2
  62. package/dist/api/resources/identity/client/Client.js +1 -1
  63. package/dist/api/resources/index.d.ts +2 -0
  64. package/dist/api/resources/index.js +3 -1
  65. package/dist/api/resources/jobs/client/Client.js +1 -1
  66. package/dist/api/resources/modelSync/client/Client.js +12 -12
  67. package/dist/api/resources/modelSync/resources/executions/client/Client.js +5 -5
  68. package/dist/api/resources/modelSync/resources/targets/client/Client.js +4 -4
  69. package/dist/api/resources/models/client/Client.js +9 -9
  70. package/dist/api/resources/notifications/client/Client.d.ts +55 -0
  71. package/dist/api/resources/notifications/client/Client.js +182 -0
  72. package/dist/api/resources/notifications/client/index.d.ts +1 -0
  73. package/dist/api/resources/notifications/client/index.js +17 -0
  74. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +10 -0
  75. package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +5 -0
  76. package/dist/api/resources/notifications/client/requests/index.d.ts +1 -0
  77. package/dist/api/resources/notifications/client/requests/index.js +2 -0
  78. package/dist/api/resources/notifications/index.d.ts +1 -0
  79. package/dist/api/resources/notifications/index.js +17 -0
  80. package/dist/api/resources/organization/client/Client.js +5 -5
  81. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  82. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  83. package/dist/api/resources/queryRunner/client/Client.js +2 -2
  84. package/dist/api/resources/schemas/client/Client.js +8 -8
  85. package/dist/api/resources/users/client/Client.d.ts +5 -20
  86. package/dist/api/resources/users/client/Client.js +21 -26
  87. package/dist/api/resources/webhooks/client/Client.js +7 -7
  88. package/dist/api/types/BackendConnectionCapabilities.d.ts +4 -4
  89. package/dist/api/types/BulkBulkSyncSchedule.d.ts +2 -0
  90. package/dist/api/types/BulkScheduleSyncMode.d.ts +10 -0
  91. package/dist/api/types/BulkScheduleSyncMode.js +12 -0
  92. package/dist/api/types/CancelBulkSyncResponse.d.ts +6 -0
  93. package/dist/api/types/CancelBulkSyncResponse.js +5 -0
  94. package/dist/api/types/CancelBulkSyncResponseEnvelope.d.ts +7 -0
  95. package/dist/api/types/CancelBulkSyncResponseEnvelope.js +5 -0
  96. package/dist/api/types/ConnectionType.d.ts +1 -1
  97. package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +6 -0
  98. package/dist/api/types/V4GlobalErrorSubscribersResponse.js +5 -0
  99. package/dist/api/types/index.d.ts +4 -0
  100. package/dist/api/types/index.js +4 -0
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/package.json +1 -1
  104. package/reference.md +250 -85
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Notifications = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const Polytomic = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Notifications {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Polytomic.UnauthorizedError}
65
+ * @throws {@link Polytomic.InternalServerError}
66
+ *
67
+ * @example
68
+ * await client.notifications.getGlobalErrorSubscribers()
69
+ */
70
+ getGlobalErrorSubscribers(requestOptions) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ var _a, _b;
73
+ const _response = yield core.fetcher({
74
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/notifications/global-error-subscribers"),
75
+ method: "GET",
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
77
+ ? yield core.Supplier.get(this._options.version)
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return _response.body;
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ switch (_response.error.statusCode) {
90
+ case 401:
91
+ throw new Polytomic.UnauthorizedError(_response.error.body);
92
+ case 500:
93
+ throw new Polytomic.InternalServerError(_response.error.body);
94
+ default:
95
+ throw new errors.PolytomicError({
96
+ statusCode: _response.error.statusCode,
97
+ body: _response.error.body,
98
+ });
99
+ }
100
+ }
101
+ switch (_response.error.reason) {
102
+ case "non-json":
103
+ throw new errors.PolytomicError({
104
+ statusCode: _response.error.statusCode,
105
+ body: _response.error.rawBody,
106
+ });
107
+ case "timeout":
108
+ throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/notifications/global-error-subscribers.");
109
+ case "unknown":
110
+ throw new errors.PolytomicError({
111
+ message: _response.error.errorMessage,
112
+ });
113
+ }
114
+ });
115
+ }
116
+ /**
117
+ * @param {Polytomic.V4GlobalErrorSubscribersRequest} request
118
+ * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Polytomic.BadRequestError}
121
+ * @throws {@link Polytomic.UnauthorizedError}
122
+ * @throws {@link Polytomic.InternalServerError}
123
+ *
124
+ * @example
125
+ * await client.notifications.setGlobalErrorSubscribers()
126
+ */
127
+ setGlobalErrorSubscribers() {
128
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
129
+ var _a, _b;
130
+ const _response = yield core.fetcher({
131
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/notifications/global-error-subscribers"),
132
+ method: "PUT",
133
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
134
+ ? yield core.Supplier.get(this._options.version)
135
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
+ contentType: "application/json",
137
+ requestType: "json",
138
+ body: request,
139
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
140
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
141
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
142
+ });
143
+ if (_response.ok) {
144
+ return _response.body;
145
+ }
146
+ if (_response.error.reason === "status-code") {
147
+ switch (_response.error.statusCode) {
148
+ case 400:
149
+ throw new Polytomic.BadRequestError(_response.error.body);
150
+ case 401:
151
+ throw new Polytomic.UnauthorizedError(_response.error.body);
152
+ case 500:
153
+ throw new Polytomic.InternalServerError(_response.error.body);
154
+ default:
155
+ throw new errors.PolytomicError({
156
+ statusCode: _response.error.statusCode,
157
+ body: _response.error.body,
158
+ });
159
+ }
160
+ }
161
+ switch (_response.error.reason) {
162
+ case "non-json":
163
+ throw new errors.PolytomicError({
164
+ statusCode: _response.error.statusCode,
165
+ body: _response.error.rawBody,
166
+ });
167
+ case "timeout":
168
+ throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/notifications/global-error-subscribers.");
169
+ case "unknown":
170
+ throw new errors.PolytomicError({
171
+ message: _response.error.errorMessage,
172
+ });
173
+ }
174
+ });
175
+ }
176
+ _getAuthorizationHeader() {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
179
+ });
180
+ }
181
+ }
182
+ exports.Notifications = Notifications;
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface V4GlobalErrorSubscribersRequest {
9
+ emails?: string[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type V4GlobalErrorSubscribersRequest } from "./V4GlobalErrorSubscribersRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -79,7 +79,7 @@ class Organization {
79
79
  method: "GET",
80
80
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
81
81
  ? yield core.Supplier.get(this._options.version)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class Organization {
143
143
  method: "POST",
144
144
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
145
145
  ? yield core.Supplier.get(this._options.version)
146
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: request,
@@ -208,7 +208,7 @@ class Organization {
208
208
  method: "GET",
209
209
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
210
210
  ? yield core.Supplier.get(this._options.version)
211
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -273,7 +273,7 @@ class Organization {
273
273
  method: "PUT",
274
274
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
275
275
  ? yield core.Supplier.get(this._options.version)
276
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
277
277
  contentType: "application/json",
278
278
  requestType: "json",
279
279
  body: request,
@@ -339,7 +339,7 @@ class Organization {
339
339
  method: "DELETE",
340
340
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
341
341
  ? yield core.Supplier.get(this._options.version)
342
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
342
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
343
  contentType: "application/json",
344
344
  requestType: "json",
345
345
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -75,7 +75,7 @@ class Policies {
75
75
  method: "GET",
76
76
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
77
77
  ? yield core.Supplier.get(this._options.version)
78
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -136,7 +136,7 @@ class Policies {
136
136
  method: "POST",
137
137
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
138
138
  ? yield core.Supplier.get(this._options.version)
139
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  body: request,
@@ -200,7 +200,7 @@ class Policies {
200
200
  method: "GET",
201
201
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
202
202
  ? yield core.Supplier.get(this._options.version)
203
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
203
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
204
  contentType: "application/json",
205
205
  requestType: "json",
206
206
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -264,7 +264,7 @@ class Policies {
264
264
  method: "PUT",
265
265
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
266
266
  ? yield core.Supplier.get(this._options.version)
267
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
267
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  body: request,
@@ -329,7 +329,7 @@ class Policies {
329
329
  method: "DELETE",
330
330
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
331
331
  ? yield core.Supplier.get(this._options.version)
332
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
333
333
  contentType: "application/json",
334
334
  requestType: "json",
335
335
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -75,7 +75,7 @@ class Roles {
75
75
  method: "GET",
76
76
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
77
77
  ? yield core.Supplier.get(this._options.version)
78
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -136,7 +136,7 @@ class Roles {
136
136
  method: "POST",
137
137
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
138
138
  ? yield core.Supplier.get(this._options.version)
139
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  body: request,
@@ -199,7 +199,7 @@ class Roles {
199
199
  method: "GET",
200
200
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
201
201
  ? yield core.Supplier.get(this._options.version)
202
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
202
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
203
203
  contentType: "application/json",
204
204
  requestType: "json",
205
205
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -261,7 +261,7 @@ class Roles {
261
261
  method: "PUT",
262
262
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
263
263
  ? yield core.Supplier.get(this._options.version)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: request,
@@ -326,7 +326,7 @@ class Roles {
326
326
  method: "DELETE",
327
327
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
328
328
  ? yield core.Supplier.get(this._options.version)
329
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
330
330
  contentType: "application/json",
331
331
  requestType: "json",
332
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,7 +97,7 @@ class QueryRunner {
97
97
  method: "POST",
98
98
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
99
99
  ? yield core.Supplier.get(this._options.version)
100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -167,7 +167,7 @@ class QueryRunner {
167
167
  method: "GET",
168
168
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
169
169
  ? yield core.Supplier.get(this._options.version)
170
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  queryParameters: _queryParams,
173
173
  requestType: "json",
@@ -80,7 +80,7 @@ class Schemas {
80
80
  method: "POST",
81
81
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
82
82
  ? yield core.Supplier.get(this._options.version)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: request,
@@ -145,7 +145,7 @@ class Schemas {
145
145
  method: "DELETE",
146
146
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
147
147
  ? yield core.Supplier.get(this._options.version)
148
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -209,7 +209,7 @@ class Schemas {
209
209
  method: "PUT",
210
210
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
211
211
  ? yield core.Supplier.get(this._options.version)
212
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: request,
@@ -275,7 +275,7 @@ class Schemas {
275
275
  method: "DELETE",
276
276
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
277
277
  ? yield core.Supplier.get(this._options.version)
278
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -337,7 +337,7 @@ class Schemas {
337
337
  method: "POST",
338
338
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
339
339
  ? yield core.Supplier.get(this._options.version)
340
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
341
  contentType: "application/json",
342
342
  requestType: "json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -401,7 +401,7 @@ class Schemas {
401
401
  method: "GET",
402
402
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
403
403
  ? yield core.Supplier.get(this._options.version)
404
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
404
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
405
405
  contentType: "application/json",
406
406
  requestType: "json",
407
407
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -464,7 +464,7 @@ class Schemas {
464
464
  method: "GET",
465
465
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
466
466
  ? yield core.Supplier.get(this._options.version)
467
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
468
468
  contentType: "application/json",
469
469
  requestType: "json",
470
470
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -528,7 +528,7 @@ class Schemas {
528
528
  method: "GET",
529
529
  headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
530
530
  ? yield core.Supplier.get(this._options.version)
531
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.4", "User-Agent": "polytomic/1.14.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
531
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
532
532
  contentType: "application/json",
533
533
  requestType: "json",
534
534
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -30,14 +30,11 @@ export declare class Users {
30
30
  protected readonly _options: Users.Options;
31
31
  constructor(_options: Users.Options);
32
32
  /**
33
- * > 🚧 Requires partner key
34
- * >
35
- * > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
36
- *
37
33
  * @param {string} orgId
38
34
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
39
35
  *
40
36
  * @throws {@link Polytomic.UnauthorizedError}
37
+ * @throws {@link Polytomic.ForbiddenError}
41
38
  * @throws {@link Polytomic.NotFoundError}
42
39
  *
43
40
  * @example
@@ -45,15 +42,12 @@ export declare class Users {
45
42
  */
46
43
  list(orgId: string, requestOptions?: Users.RequestOptions): Promise<Polytomic.ListUsersEnvelope>;
47
44
  /**
48
- * > 🚧 Requires partner key
49
- * >
50
- * > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
51
- *
52
45
  * @param {string} orgId
53
46
  * @param {Polytomic.CreateUserRequestSchema} request
54
47
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
55
48
  *
56
49
  * @throws {@link Polytomic.UnauthorizedError}
50
+ * @throws {@link Polytomic.ForbiddenError}
57
51
  * @throws {@link Polytomic.UnprocessableEntityError}
58
52
  * @throws {@link Polytomic.InternalServerError}
59
53
  *
@@ -64,15 +58,12 @@ export declare class Users {
64
58
  */
65
59
  create(orgId: string, request: Polytomic.CreateUserRequestSchema, requestOptions?: Users.RequestOptions): Promise<Polytomic.UserEnvelope>;
66
60
  /**
67
- * > 🚧 Requires partner key
68
- * >
69
- * > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
70
- *
71
61
  * @param {string} id
72
62
  * @param {string} orgId
73
63
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
74
64
  *
75
65
  * @throws {@link Polytomic.UnauthorizedError}
66
+ * @throws {@link Polytomic.ForbiddenError}
76
67
  * @throws {@link Polytomic.NotFoundError}
77
68
  * @throws {@link Polytomic.InternalServerError}
78
69
  *
@@ -81,16 +72,13 @@ export declare class Users {
81
72
  */
82
73
  get(id: string, orgId: string, requestOptions?: Users.RequestOptions): Promise<Polytomic.UserEnvelope>;
83
74
  /**
84
- * > 🚧 Requires partner key
85
- * >
86
- * > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
87
- *
88
75
  * @param {string} id
89
76
  * @param {string} orgId
90
77
  * @param {Polytomic.UpdateUserRequestSchema} request
91
78
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
92
79
  *
93
80
  * @throws {@link Polytomic.UnauthorizedError}
81
+ * @throws {@link Polytomic.ForbiddenError}
94
82
  * @throws {@link Polytomic.UnprocessableEntityError}
95
83
  * @throws {@link Polytomic.InternalServerError}
96
84
  *
@@ -101,15 +89,12 @@ export declare class Users {
101
89
  */
102
90
  update(id: string, orgId: string, request: Polytomic.UpdateUserRequestSchema, requestOptions?: Users.RequestOptions): Promise<Polytomic.UserEnvelope>;
103
91
  /**
104
- * > 🚧 Requires partner key
105
- * >
106
- * > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
107
- *
108
92
  * @param {string} id
109
93
  * @param {string} orgId
110
94
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
111
95
  *
112
96
  * @throws {@link Polytomic.UnauthorizedError}
97
+ * @throws {@link Polytomic.ForbiddenError}
113
98
  * @throws {@link Polytomic.NotFoundError}
114
99
  * @throws {@link Polytomic.InternalServerError}
115
100
  *