polytomic 0.2.0 → 1.2.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.
- package/Client.d.ts +3 -3
- package/Client.js +11 -11
- package/api/errors/index.d.ts +2 -2
- package/api/errors/index.js +2 -2
- package/api/resources/bulkSync/client/Client.d.ts +4 -19
- package/api/resources/bulkSync/client/Client.js +14 -29
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/api/resources/connections/client/Client.d.ts +3 -10
- package/api/resources/connections/client/Client.js +12 -19
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- package/api/resources/events/client/Client.js +2 -2
- package/api/resources/identity/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +5 -42
- package/api/resources/modelSync/client/Client.js +18 -55
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
- package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +31 -5
- package/api/resources/models/client/Client.js +150 -10
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
- package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
- package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
- package/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/api/resources/models/client/requests/index.d.ts +3 -1
- package/api/resources/organization/client/Client.d.ts +7 -17
- package/api/resources/organization/client/Client.js +12 -22
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/api/resources/schemas/client/Client.js +4 -4
- package/api/resources/users/client/Client.d.ts +8 -10
- package/api/resources/users/client/Client.js +14 -16
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/ConnectionResponseSchema.d.ts +2 -0
- package/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
- package/api/types/CreateModelRequest.js +5 -0
- package/api/types/Enrichment.d.ts +13 -0
- package/api/types/Enrichment.js +5 -0
- package/api/types/ModelResponse.d.ts +1 -0
- package/api/types/V2EnricherConfiguration.d.ts +7 -0
- package/api/types/V2EnricherConfiguration.js +5 -0
- package/api/types/V2EnricherMapping.d.ts +7 -0
- package/api/types/V2EnricherMapping.js +5 -0
- package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
- package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +11 -11
- package/dist/api/errors/index.d.ts +2 -2
- package/dist/api/errors/index.js +2 -2
- package/dist/api/resources/bulkSync/client/Client.d.ts +4 -19
- package/dist/api/resources/bulkSync/client/Client.js +14 -29
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/dist/api/resources/connections/client/Client.d.ts +3 -10
- package/dist/api/resources/connections/client/Client.js +12 -19
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- package/dist/api/resources/events/client/Client.js +2 -2
- package/dist/api/resources/identity/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.d.ts +5 -42
- package/dist/api/resources/modelSync/client/Client.js +18 -55
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +31 -5
- package/dist/api/resources/models/client/Client.js +150 -10
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +5 -0
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +5 -0
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/index.d.ts +3 -1
- package/dist/api/resources/organization/client/Client.d.ts +7 -17
- package/dist/api/resources/organization/client/Client.js +12 -22
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/dist/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/dist/api/resources/schemas/client/Client.js +4 -4
- package/dist/api/resources/users/client/Client.d.ts +8 -10
- package/dist/api/resources/users/client/Client.js +14 -16
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/ConnectionResponseSchema.d.ts +2 -0
- package/dist/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
- package/dist/api/types/CreateModelRequest.js +5 -0
- package/dist/api/types/Enrichment.d.ts +13 -0
- package/dist/api/types/Enrichment.js +5 -0
- package/dist/api/types/ModelResponse.d.ts +1 -0
- package/dist/api/types/V2EnricherConfiguration.d.ts +7 -0
- package/dist/api/types/V2EnricherConfiguration.js +5 -0
- package/dist/api/types/V2EnricherMapping.d.ts +7 -0
- package/dist/api/types/V2EnricherMapping.js +5 -0
- package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
- package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/package.json +2 -2
- /package/api/resources/models/client/requests/{CreateModelRequest.js → GetEnrichmentInputFieldsRequest.js} +0 -0
- /package/{dist/api/resources/models/client/requests/CreateModelRequest.js → api/resources/models/client/requests/ModelsCreateRequest.js} +0 -0
|
@@ -59,6 +59,146 @@ class Models {
|
|
|
59
59
|
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* For a given connection and enrichment configuration, provides the valid sets of input fields.
|
|
64
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
65
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
66
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
67
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await polytomic.models.post("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
71
|
+
*/
|
|
72
|
+
post(connectionId, request = {}, requestOptions) {
|
|
73
|
+
var _a;
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const _response = yield core.fetcher({
|
|
76
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/enrichment/${connectionId}/inputfields`),
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers: {
|
|
79
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
80
|
+
"X-Polytomic-Version": "2024-02-08",
|
|
81
|
+
"X-Fern-Language": "JavaScript",
|
|
82
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
83
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
84
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
|
+
},
|
|
87
|
+
contentType: "application/json",
|
|
88
|
+
body: request,
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return _response.body;
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 401:
|
|
98
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
99
|
+
case 403:
|
|
100
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
101
|
+
case 404:
|
|
102
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
103
|
+
case 500:
|
|
104
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
105
|
+
default:
|
|
106
|
+
throw new errors.PolytomicError({
|
|
107
|
+
statusCode: _response.error.statusCode,
|
|
108
|
+
body: _response.error.body,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
switch (_response.error.reason) {
|
|
113
|
+
case "non-json":
|
|
114
|
+
throw new errors.PolytomicError({
|
|
115
|
+
statusCode: _response.error.statusCode,
|
|
116
|
+
body: _response.error.rawBody,
|
|
117
|
+
});
|
|
118
|
+
case "timeout":
|
|
119
|
+
throw new errors.PolytomicTimeoutError();
|
|
120
|
+
case "unknown":
|
|
121
|
+
throw new errors.PolytomicError({
|
|
122
|
+
message: _response.error.errorMessage,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
129
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
130
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
131
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* await polytomic.models.preview({
|
|
135
|
+
* body: {
|
|
136
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
137
|
+
* name: "Users"
|
|
138
|
+
* }
|
|
139
|
+
* })
|
|
140
|
+
*/
|
|
141
|
+
preview(request, requestOptions) {
|
|
142
|
+
var _a;
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const { async, body: _body } = request;
|
|
145
|
+
const _queryParams = {};
|
|
146
|
+
if (async != null) {
|
|
147
|
+
_queryParams["async"] = async.toString();
|
|
148
|
+
}
|
|
149
|
+
const _response = yield core.fetcher({
|
|
150
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/model-preview"),
|
|
151
|
+
method: "POST",
|
|
152
|
+
headers: {
|
|
153
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
154
|
+
"X-Polytomic-Version": "2024-02-08",
|
|
155
|
+
"X-Fern-Language": "JavaScript",
|
|
156
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
157
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
158
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
159
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
160
|
+
},
|
|
161
|
+
contentType: "application/json",
|
|
162
|
+
queryParameters: _queryParams,
|
|
163
|
+
body: _body,
|
|
164
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
|
+
});
|
|
167
|
+
if (_response.ok) {
|
|
168
|
+
return _response.body;
|
|
169
|
+
}
|
|
170
|
+
if (_response.error.reason === "status-code") {
|
|
171
|
+
switch (_response.error.statusCode) {
|
|
172
|
+
case 400:
|
|
173
|
+
throw new Polytomic.BadRequestError(_response.error.body);
|
|
174
|
+
case 401:
|
|
175
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
176
|
+
case 404:
|
|
177
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
178
|
+
case 500:
|
|
179
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
180
|
+
default:
|
|
181
|
+
throw new errors.PolytomicError({
|
|
182
|
+
statusCode: _response.error.statusCode,
|
|
183
|
+
body: _response.error.body,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
switch (_response.error.reason) {
|
|
188
|
+
case "non-json":
|
|
189
|
+
throw new errors.PolytomicError({
|
|
190
|
+
statusCode: _response.error.statusCode,
|
|
191
|
+
body: _response.error.rawBody,
|
|
192
|
+
});
|
|
193
|
+
case "timeout":
|
|
194
|
+
throw new errors.PolytomicTimeoutError();
|
|
195
|
+
case "unknown":
|
|
196
|
+
throw new errors.PolytomicError({
|
|
197
|
+
message: _response.error.errorMessage,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
62
202
|
/**
|
|
63
203
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
64
204
|
* @throws {@link Polytomic.NotFoundError}
|
|
@@ -77,7 +217,7 @@ class Models {
|
|
|
77
217
|
"X-Polytomic-Version": "2024-02-08",
|
|
78
218
|
"X-Fern-Language": "JavaScript",
|
|
79
219
|
"X-Fern-SDK-Name": "polytomic",
|
|
80
|
-
"X-Fern-SDK-Version": "
|
|
220
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
81
221
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
222
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
223
|
},
|
|
@@ -124,15 +264,16 @@ class Models {
|
|
|
124
264
|
*
|
|
125
265
|
* @example
|
|
126
266
|
* await polytomic.models.create({
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
267
|
+
* body: {
|
|
268
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
269
|
+
* name: "Users"
|
|
270
|
+
* }
|
|
130
271
|
* })
|
|
131
272
|
*/
|
|
132
273
|
create(request, requestOptions) {
|
|
133
274
|
var _a;
|
|
134
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
const { async
|
|
276
|
+
const { async, body: _body } = request;
|
|
136
277
|
const _queryParams = {};
|
|
137
278
|
if (async != null) {
|
|
138
279
|
_queryParams["async"] = async.toString();
|
|
@@ -145,7 +286,7 @@ class Models {
|
|
|
145
286
|
"X-Polytomic-Version": "2024-02-08",
|
|
146
287
|
"X-Fern-Language": "JavaScript",
|
|
147
288
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "
|
|
289
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
149
290
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
291
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
292
|
},
|
|
@@ -209,7 +350,7 @@ class Models {
|
|
|
209
350
|
"X-Polytomic-Version": "2024-02-08",
|
|
210
351
|
"X-Fern-Language": "JavaScript",
|
|
211
352
|
"X-Fern-SDK-Name": "polytomic",
|
|
212
|
-
"X-Fern-SDK-Version": "
|
|
353
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
213
354
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
214
355
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
215
356
|
},
|
|
@@ -260,7 +401,6 @@ class Models {
|
|
|
260
401
|
* await polytomic.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
261
402
|
* async: false,
|
|
262
403
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
263
|
-
* identifier: "id",
|
|
264
404
|
* name: "Users"
|
|
265
405
|
* })
|
|
266
406
|
*/
|
|
@@ -280,7 +420,7 @@ class Models {
|
|
|
280
420
|
"X-Polytomic-Version": "2024-02-08",
|
|
281
421
|
"X-Fern-Language": "JavaScript",
|
|
282
422
|
"X-Fern-SDK-Name": "polytomic",
|
|
283
|
-
"X-Fern-SDK-Version": "
|
|
423
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
284
424
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
285
425
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
286
426
|
},
|
|
@@ -345,7 +485,7 @@ class Models {
|
|
|
345
485
|
"X-Polytomic-Version": "2024-02-08",
|
|
346
486
|
"X-Fern-Language": "JavaScript",
|
|
347
487
|
"X-Fern-SDK-Name": "polytomic",
|
|
348
|
-
"X-Fern-SDK-Version": "
|
|
488
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
349
489
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
350
490
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
351
491
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* body: {
|
|
9
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
10
|
+
* name: "Users"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ModelsCreateRequest {
|
|
15
|
+
async?: boolean;
|
|
16
|
+
body: Polytomic.CreateModelRequest;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* body: {
|
|
9
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
10
|
+
* name: "Users"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ModelsPreviewRequest {
|
|
15
|
+
async?: boolean;
|
|
16
|
+
body: Polytomic.CreateModelRequest;
|
|
17
|
+
}
|
|
@@ -7,7 +7,6 @@ import * as Polytomic from "../../../..";
|
|
|
7
7
|
* {
|
|
8
8
|
* async: false,
|
|
9
9
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
10
|
-
* identifier: "id",
|
|
11
10
|
* name: "Users"
|
|
12
11
|
* }
|
|
13
12
|
*/
|
|
@@ -16,6 +15,7 @@ export interface UpdateModelRequest {
|
|
|
16
15
|
additional_fields?: Polytomic.ModelModelFieldRequest[];
|
|
17
16
|
configuration?: Record<string, unknown>;
|
|
18
17
|
connection_id: string;
|
|
18
|
+
enricher?: Polytomic.Enrichment;
|
|
19
19
|
fields?: string[];
|
|
20
20
|
identifier?: string;
|
|
21
21
|
labels?: string[];
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { GetEnrichmentInputFieldsRequest } from "./GetEnrichmentInputFieldsRequest";
|
|
2
|
+
export { ModelsPreviewRequest } from "./ModelsPreviewRequest";
|
|
3
|
+
export { ModelsCreateRequest } from "./ModelsCreateRequest";
|
|
2
4
|
export { UpdateModelRequest } from "./UpdateModelRequest";
|
|
@@ -20,7 +20,7 @@ export declare class Organization {
|
|
|
20
20
|
/**
|
|
21
21
|
* > 🚧 Requires partner key
|
|
22
22
|
* >
|
|
23
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
23
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
24
24
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
25
25
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
26
|
*
|
|
@@ -31,26 +31,21 @@ export declare class Organization {
|
|
|
31
31
|
/**
|
|
32
32
|
* > 🚧 Requires partner key
|
|
33
33
|
* >
|
|
34
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
34
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
35
35
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
36
36
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
37
37
|
* @throws {@link Polytomic.InternalServerError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* await polytomic.organization.create({
|
|
41
|
-
*
|
|
42
|
-
* client_secret: "client_secret",
|
|
43
|
-
* issuer: "https://example.com",
|
|
44
|
-
* name: "My Organization",
|
|
45
|
-
* sso_domain: "example.com",
|
|
46
|
-
* sso_org_id: "123456"
|
|
41
|
+
* name: "My Organization"
|
|
47
42
|
* })
|
|
48
43
|
*/
|
|
49
44
|
create(request: Polytomic.CreateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
50
45
|
/**
|
|
51
46
|
* > 🚧 Requires partner key
|
|
52
47
|
* >
|
|
53
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
48
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
54
49
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
50
|
* @throws {@link Polytomic.NotFoundError}
|
|
56
51
|
*
|
|
@@ -61,26 +56,21 @@ export declare class Organization {
|
|
|
61
56
|
/**
|
|
62
57
|
* > 🚧 Requires partner key
|
|
63
58
|
* >
|
|
64
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
59
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
65
60
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
66
61
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
67
62
|
* @throws {@link Polytomic.InternalServerError}
|
|
68
63
|
*
|
|
69
64
|
* @example
|
|
70
65
|
* await polytomic.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
71
|
-
*
|
|
72
|
-
* client_secret: "client_secret",
|
|
73
|
-
* issuer: "https://example.com",
|
|
74
|
-
* name: "My Organization",
|
|
75
|
-
* sso_domain: "example.com",
|
|
76
|
-
* sso_org_id: "123456"
|
|
66
|
+
* name: "My Organization"
|
|
77
67
|
* })
|
|
78
68
|
*/
|
|
79
69
|
update(id: string, request: Polytomic.UpdateOrganizationRequestSchema, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
80
70
|
/**
|
|
81
71
|
* > 🚧 Requires partner key
|
|
82
72
|
* >
|
|
83
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
73
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
84
74
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
85
75
|
* @throws {@link Polytomic.NotFoundError}
|
|
86
76
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -51,7 +51,7 @@ class Organization {
|
|
|
51
51
|
/**
|
|
52
52
|
* > 🚧 Requires partner key
|
|
53
53
|
* >
|
|
54
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
54
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
55
55
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
56
|
* @throws {@link Polytomic.InternalServerError}
|
|
57
57
|
*
|
|
@@ -69,7 +69,7 @@ class Organization {
|
|
|
69
69
|
"X-Polytomic-Version": "2024-02-08",
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "polytomic",
|
|
72
|
-
"X-Fern-SDK-Version": "
|
|
72
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -111,19 +111,14 @@ class Organization {
|
|
|
111
111
|
/**
|
|
112
112
|
* > 🚧 Requires partner key
|
|
113
113
|
* >
|
|
114
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
114
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
115
115
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
116
116
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
117
117
|
* @throws {@link Polytomic.InternalServerError}
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* await polytomic.organization.create({
|
|
121
|
-
*
|
|
122
|
-
* client_secret: "client_secret",
|
|
123
|
-
* issuer: "https://example.com",
|
|
124
|
-
* name: "My Organization",
|
|
125
|
-
* sso_domain: "example.com",
|
|
126
|
-
* sso_org_id: "123456"
|
|
121
|
+
* name: "My Organization"
|
|
127
122
|
* })
|
|
128
123
|
*/
|
|
129
124
|
create(request, requestOptions) {
|
|
@@ -137,7 +132,7 @@ class Organization {
|
|
|
137
132
|
"X-Polytomic-Version": "2024-02-08",
|
|
138
133
|
"X-Fern-Language": "JavaScript",
|
|
139
134
|
"X-Fern-SDK-Name": "polytomic",
|
|
140
|
-
"X-Fern-SDK-Version": "
|
|
135
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
141
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
142
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
143
138
|
},
|
|
@@ -182,7 +177,7 @@ class Organization {
|
|
|
182
177
|
/**
|
|
183
178
|
* > 🚧 Requires partner key
|
|
184
179
|
* >
|
|
185
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
180
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
186
181
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
187
182
|
* @throws {@link Polytomic.NotFoundError}
|
|
188
183
|
*
|
|
@@ -200,7 +195,7 @@ class Organization {
|
|
|
200
195
|
"X-Polytomic-Version": "2024-02-08",
|
|
201
196
|
"X-Fern-Language": "JavaScript",
|
|
202
197
|
"X-Fern-SDK-Name": "polytomic",
|
|
203
|
-
"X-Fern-SDK-Version": "
|
|
198
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
204
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
205
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
206
201
|
},
|
|
@@ -242,19 +237,14 @@ class Organization {
|
|
|
242
237
|
/**
|
|
243
238
|
* > 🚧 Requires partner key
|
|
244
239
|
* >
|
|
245
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
240
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
246
241
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
247
242
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
248
243
|
* @throws {@link Polytomic.InternalServerError}
|
|
249
244
|
*
|
|
250
245
|
* @example
|
|
251
246
|
* await polytomic.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
252
|
-
*
|
|
253
|
-
* client_secret: "client_secret",
|
|
254
|
-
* issuer: "https://example.com",
|
|
255
|
-
* name: "My Organization",
|
|
256
|
-
* sso_domain: "example.com",
|
|
257
|
-
* sso_org_id: "123456"
|
|
247
|
+
* name: "My Organization"
|
|
258
248
|
* })
|
|
259
249
|
*/
|
|
260
250
|
update(id, request, requestOptions) {
|
|
@@ -268,7 +258,7 @@ class Organization {
|
|
|
268
258
|
"X-Polytomic-Version": "2024-02-08",
|
|
269
259
|
"X-Fern-Language": "JavaScript",
|
|
270
260
|
"X-Fern-SDK-Name": "polytomic",
|
|
271
|
-
"X-Fern-SDK-Version": "
|
|
261
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
272
262
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
273
263
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
274
264
|
},
|
|
@@ -313,7 +303,7 @@ class Organization {
|
|
|
313
303
|
/**
|
|
314
304
|
* > 🚧 Requires partner key
|
|
315
305
|
* >
|
|
316
|
-
* > Organization endpoints are only accessible using [partner keys](https://
|
|
306
|
+
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
317
307
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
318
308
|
* @throws {@link Polytomic.NotFoundError}
|
|
319
309
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -332,7 +322,7 @@ class Organization {
|
|
|
332
322
|
"X-Polytomic-Version": "2024-02-08",
|
|
333
323
|
"X-Fern-Language": "JavaScript",
|
|
334
324
|
"X-Fern-SDK-Name": "polytomic",
|
|
335
|
-
"X-Fern-SDK-Version": "
|
|
325
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
336
326
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
327
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
338
328
|
},
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
* client_secret: "client_secret",
|
|
9
|
-
* issuer: "https://example.com",
|
|
10
|
-
* name: "My Organization",
|
|
11
|
-
* sso_domain: "example.com",
|
|
12
|
-
* sso_org_id: "123456"
|
|
7
|
+
* name: "My Organization"
|
|
13
8
|
* }
|
|
14
9
|
*/
|
|
15
10
|
export interface CreateOrganizationRequestSchema {
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
* client_secret: "client_secret",
|
|
9
|
-
* issuer: "https://example.com",
|
|
10
|
-
* name: "My Organization",
|
|
11
|
-
* sso_domain: "example.com",
|
|
12
|
-
* sso_org_id: "123456"
|
|
7
|
+
* name: "My Organization"
|
|
13
8
|
* }
|
|
14
9
|
*/
|
|
15
10
|
export interface UpdateOrganizationRequestSchema {
|
|
@@ -34,11 +34,7 @@ export declare class Policies {
|
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* await polytomic.permissions.policies.create({
|
|
37
|
-
* name: "Custom"
|
|
38
|
-
* policy_actions: [{
|
|
39
|
-
* action: "read",
|
|
40
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
41
|
-
* }]
|
|
37
|
+
* name: "Custom"
|
|
42
38
|
* })
|
|
43
39
|
*/
|
|
44
40
|
create(request: Polytomic.permissions.CreatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
@@ -60,11 +56,7 @@ export declare class Policies {
|
|
|
60
56
|
*
|
|
61
57
|
* @example
|
|
62
58
|
* await polytomic.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
63
|
-
* name: "Custom"
|
|
64
|
-
* policy_actions: [{
|
|
65
|
-
* action: "read",
|
|
66
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
67
|
-
* }]
|
|
59
|
+
* name: "Custom"
|
|
68
60
|
* })
|
|
69
61
|
*/
|
|
70
62
|
update(id: string, request: Polytomic.permissions.UpdatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
@@ -66,7 +66,7 @@ class Policies {
|
|
|
66
66
|
"X-Polytomic-Version": "2024-02-08",
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "
|
|
69
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -114,11 +114,7 @@ class Policies {
|
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* await polytomic.permissions.policies.create({
|
|
117
|
-
* name: "Custom"
|
|
118
|
-
* policy_actions: [{
|
|
119
|
-
* action: "read",
|
|
120
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
121
|
-
* }]
|
|
117
|
+
* name: "Custom"
|
|
122
118
|
* })
|
|
123
119
|
*/
|
|
124
120
|
create(request, requestOptions) {
|
|
@@ -132,7 +128,7 @@ class Policies {
|
|
|
132
128
|
"X-Polytomic-Version": "2024-02-08",
|
|
133
129
|
"X-Fern-Language": "JavaScript",
|
|
134
130
|
"X-Fern-SDK-Name": "polytomic",
|
|
135
|
-
"X-Fern-SDK-Version": "
|
|
131
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
136
132
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
133
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
134
|
},
|
|
@@ -197,7 +193,7 @@ class Policies {
|
|
|
197
193
|
"X-Polytomic-Version": "2024-02-08",
|
|
198
194
|
"X-Fern-Language": "JavaScript",
|
|
199
195
|
"X-Fern-SDK-Name": "polytomic",
|
|
200
|
-
"X-Fern-SDK-Version": "
|
|
196
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
201
197
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
202
198
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
203
199
|
},
|
|
@@ -247,11 +243,7 @@ class Policies {
|
|
|
247
243
|
*
|
|
248
244
|
* @example
|
|
249
245
|
* await polytomic.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
250
|
-
* name: "Custom"
|
|
251
|
-
* policy_actions: [{
|
|
252
|
-
* action: "read",
|
|
253
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
254
|
-
* }]
|
|
246
|
+
* name: "Custom"
|
|
255
247
|
* })
|
|
256
248
|
*/
|
|
257
249
|
update(id, request, requestOptions) {
|
|
@@ -265,7 +257,7 @@ class Policies {
|
|
|
265
257
|
"X-Polytomic-Version": "2024-02-08",
|
|
266
258
|
"X-Fern-Language": "JavaScript",
|
|
267
259
|
"X-Fern-SDK-Name": "polytomic",
|
|
268
|
-
"X-Fern-SDK-Version": "
|
|
260
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
269
261
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
270
262
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
271
263
|
},
|
|
@@ -331,7 +323,7 @@ class Policies {
|
|
|
331
323
|
"X-Polytomic-Version": "2024-02-08",
|
|
332
324
|
"X-Fern-Language": "JavaScript",
|
|
333
325
|
"X-Fern-SDK-Name": "polytomic",
|
|
334
|
-
"X-Fern-SDK-Version": "
|
|
326
|
+
"X-Fern-SDK-Version": "1.2.0",
|
|
335
327
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
336
328
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
337
329
|
},
|
package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts
CHANGED
|
@@ -5,11 +5,7 @@ import * as Polytomic from "../../../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* name: "Custom"
|
|
9
|
-
* policy_actions: [{
|
|
10
|
-
* action: "read",
|
|
11
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
12
|
-
* }]
|
|
8
|
+
* name: "Custom"
|
|
13
9
|
* }
|
|
14
10
|
*/
|
|
15
11
|
export interface CreatePolicyRequest {
|
package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts
CHANGED
|
@@ -5,11 +5,7 @@ import * as Polytomic from "../../../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* name: "Custom"
|
|
9
|
-
* policy_actions: [{
|
|
10
|
-
* action: "read",
|
|
11
|
-
* role_ids: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
|
|
12
|
-
* }]
|
|
8
|
+
* name: "Custom"
|
|
13
9
|
* }
|
|
14
10
|
*/
|
|
15
11
|
export interface UpdatePolicyRequest {
|