polytomic 0.2.0 → 1.0.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/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/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 +1 -21
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +0 -2
- package/api/resources/models/client/Client.js +5 -7
- package/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -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/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/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 +1 -21
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +0 -2
- package/dist/api/resources/models/client/Client.js +5 -7
- package/dist/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -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/package.json +2 -2
|
@@ -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": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.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": "0.
|
|
131
|
+
"X-Fern-SDK-Version": "1.0.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": "0.
|
|
196
|
+
"X-Fern-SDK-Version": "1.0.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": "0.
|
|
260
|
+
"X-Fern-SDK-Version": "1.0.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": "0.
|
|
326
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
335
327
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
336
328
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
337
329
|
},
|
package/dist/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/dist/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 {
|
|
@@ -66,7 +66,7 @@ class Roles {
|
|
|
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": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -128,7 +128,7 @@ class Roles {
|
|
|
128
128
|
"X-Polytomic-Version": "2024-02-08",
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "polytomic",
|
|
131
|
-
"X-Fern-SDK-Version": "0.
|
|
131
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
132
132
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
133
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
134
|
},
|
|
@@ -192,7 +192,7 @@ class Roles {
|
|
|
192
192
|
"X-Polytomic-Version": "2024-02-08",
|
|
193
193
|
"X-Fern-Language": "JavaScript",
|
|
194
194
|
"X-Fern-SDK-Name": "polytomic",
|
|
195
|
-
"X-Fern-SDK-Version": "0.
|
|
195
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
196
196
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
197
197
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
198
198
|
},
|
|
@@ -254,7 +254,7 @@ class Roles {
|
|
|
254
254
|
"X-Polytomic-Version": "2024-02-08",
|
|
255
255
|
"X-Fern-Language": "JavaScript",
|
|
256
256
|
"X-Fern-SDK-Name": "polytomic",
|
|
257
|
-
"X-Fern-SDK-Version": "0.
|
|
257
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
258
258
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
259
259
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
260
260
|
},
|
|
@@ -320,7 +320,7 @@ class Roles {
|
|
|
320
320
|
"X-Polytomic-Version": "2024-02-08",
|
|
321
321
|
"X-Fern-Language": "JavaScript",
|
|
322
322
|
"X-Fern-SDK-Name": "polytomic",
|
|
323
|
-
"X-Fern-SDK-Version": "0.
|
|
323
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
324
324
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
325
325
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
326
326
|
},
|
|
@@ -68,7 +68,7 @@ class Schemas {
|
|
|
68
68
|
"X-Polytomic-Version": "2024-02-08",
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "polytomic",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
},
|
|
@@ -131,7 +131,7 @@ class Schemas {
|
|
|
131
131
|
"X-Polytomic-Version": "2024-02-08",
|
|
132
132
|
"X-Fern-Language": "JavaScript",
|
|
133
133
|
"X-Fern-SDK-Name": "polytomic",
|
|
134
|
-
"X-Fern-SDK-Version": "0.
|
|
134
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
135
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
137
|
},
|
|
@@ -194,7 +194,7 @@ class Schemas {
|
|
|
194
194
|
"X-Polytomic-Version": "2024-02-08",
|
|
195
195
|
"X-Fern-Language": "JavaScript",
|
|
196
196
|
"X-Fern-SDK-Name": "polytomic",
|
|
197
|
-
"X-Fern-SDK-Version": "0.
|
|
197
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
198
198
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
199
199
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
200
200
|
},
|
|
@@ -258,7 +258,7 @@ class Schemas {
|
|
|
258
258
|
"X-Polytomic-Version": "2024-02-08",
|
|
259
259
|
"X-Fern-Language": "JavaScript",
|
|
260
260
|
"X-Fern-SDK-Name": "polytomic",
|
|
261
|
-
"X-Fern-SDK-Version": "0.
|
|
261
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
262
262
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
263
263
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
264
264
|
},
|
|
@@ -20,7 +20,7 @@ export declare class Users {
|
|
|
20
20
|
/**
|
|
21
21
|
* > 🚧 Requires partner key
|
|
22
22
|
* >
|
|
23
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
23
|
+
* > User 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.NotFoundError}
|
|
26
26
|
*
|
|
@@ -31,22 +31,21 @@ export declare class Users {
|
|
|
31
31
|
/**
|
|
32
32
|
* > 🚧 Requires partner key
|
|
33
33
|
* >
|
|
34
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
34
|
+
* > User 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.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
41
|
-
* email: "mail@example.com"
|
|
42
|
-
* role: "admin"
|
|
41
|
+
* email: "mail@example.com"
|
|
43
42
|
* })
|
|
44
43
|
*/
|
|
45
44
|
create(orgId: string, request: Polytomic.CreateUserRequestSchema, requestOptions?: Users.RequestOptions): Promise<Polytomic.UserEnvelope>;
|
|
46
45
|
/**
|
|
47
46
|
* > 🚧 Requires partner key
|
|
48
47
|
* >
|
|
49
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
48
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
50
49
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
51
50
|
* @throws {@link Polytomic.NotFoundError}
|
|
52
51
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -58,22 +57,21 @@ export declare class Users {
|
|
|
58
57
|
/**
|
|
59
58
|
* > 🚧 Requires partner key
|
|
60
59
|
* >
|
|
61
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
60
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
62
61
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
63
62
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
64
63
|
* @throws {@link Polytomic.InternalServerError}
|
|
65
64
|
*
|
|
66
65
|
* @example
|
|
67
66
|
* await polytomic.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
68
|
-
* email: "mail@example.com"
|
|
69
|
-
* role: "admin"
|
|
67
|
+
* email: "mail@example.com"
|
|
70
68
|
* })
|
|
71
69
|
*/
|
|
72
70
|
update(id: string, orgId: string, request: Polytomic.UpdateUserRequestSchema, requestOptions?: Users.RequestOptions): Promise<Polytomic.UserEnvelope>;
|
|
73
71
|
/**
|
|
74
72
|
* > 🚧 Requires partner key
|
|
75
73
|
* >
|
|
76
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
74
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
77
75
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
78
76
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
77
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -85,7 +83,7 @@ export declare class Users {
|
|
|
85
83
|
/**
|
|
86
84
|
* > 🚧 Requires partner key
|
|
87
85
|
* >
|
|
88
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
86
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
89
87
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
90
88
|
* @throws {@link Polytomic.NotFoundError}
|
|
91
89
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -51,7 +51,7 @@ class Users {
|
|
|
51
51
|
/**
|
|
52
52
|
* > 🚧 Requires partner key
|
|
53
53
|
* >
|
|
54
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
54
|
+
* > User 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.NotFoundError}
|
|
57
57
|
*
|
|
@@ -69,7 +69,7 @@ class Users {
|
|
|
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": "0.
|
|
72
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -111,15 +111,14 @@ class Users {
|
|
|
111
111
|
/**
|
|
112
112
|
* > 🚧 Requires partner key
|
|
113
113
|
* >
|
|
114
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
114
|
+
* > User 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.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
121
|
-
* email: "mail@example.com"
|
|
122
|
-
* role: "admin"
|
|
121
|
+
* email: "mail@example.com"
|
|
123
122
|
* })
|
|
124
123
|
*/
|
|
125
124
|
create(orgId, request, requestOptions) {
|
|
@@ -133,7 +132,7 @@ class Users {
|
|
|
133
132
|
"X-Polytomic-Version": "2024-02-08",
|
|
134
133
|
"X-Fern-Language": "JavaScript",
|
|
135
134
|
"X-Fern-SDK-Name": "polytomic",
|
|
136
|
-
"X-Fern-SDK-Version": "0.
|
|
135
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
137
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
138
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
139
138
|
},
|
|
@@ -178,7 +177,7 @@ class Users {
|
|
|
178
177
|
/**
|
|
179
178
|
* > 🚧 Requires partner key
|
|
180
179
|
* >
|
|
181
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
180
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
182
181
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
183
182
|
* @throws {@link Polytomic.NotFoundError}
|
|
184
183
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -197,7 +196,7 @@ class Users {
|
|
|
197
196
|
"X-Polytomic-Version": "2024-02-08",
|
|
198
197
|
"X-Fern-Language": "JavaScript",
|
|
199
198
|
"X-Fern-SDK-Name": "polytomic",
|
|
200
|
-
"X-Fern-SDK-Version": "0.
|
|
199
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
201
200
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
202
201
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
203
202
|
},
|
|
@@ -241,15 +240,14 @@ class Users {
|
|
|
241
240
|
/**
|
|
242
241
|
* > 🚧 Requires partner key
|
|
243
242
|
* >
|
|
244
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
243
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
245
244
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
246
245
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
247
246
|
* @throws {@link Polytomic.InternalServerError}
|
|
248
247
|
*
|
|
249
248
|
* @example
|
|
250
249
|
* await polytomic.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
251
|
-
* email: "mail@example.com"
|
|
252
|
-
* role: "admin"
|
|
250
|
+
* email: "mail@example.com"
|
|
253
251
|
* })
|
|
254
252
|
*/
|
|
255
253
|
update(id, orgId, request, requestOptions) {
|
|
@@ -263,7 +261,7 @@ class Users {
|
|
|
263
261
|
"X-Polytomic-Version": "2024-02-08",
|
|
264
262
|
"X-Fern-Language": "JavaScript",
|
|
265
263
|
"X-Fern-SDK-Name": "polytomic",
|
|
266
|
-
"X-Fern-SDK-Version": "0.
|
|
264
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
267
265
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
268
266
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
269
267
|
},
|
|
@@ -308,7 +306,7 @@ class Users {
|
|
|
308
306
|
/**
|
|
309
307
|
* > 🚧 Requires partner key
|
|
310
308
|
* >
|
|
311
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
309
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
312
310
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
313
311
|
* @throws {@link Polytomic.NotFoundError}
|
|
314
312
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -327,7 +325,7 @@ class Users {
|
|
|
327
325
|
"X-Polytomic-Version": "2024-02-08",
|
|
328
326
|
"X-Fern-Language": "JavaScript",
|
|
329
327
|
"X-Fern-SDK-Name": "polytomic",
|
|
330
|
-
"X-Fern-SDK-Version": "0.
|
|
328
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
331
329
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
332
330
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
333
331
|
},
|
|
@@ -371,7 +369,7 @@ class Users {
|
|
|
371
369
|
/**
|
|
372
370
|
* > 🚧 Requires partner key
|
|
373
371
|
* >
|
|
374
|
-
* > User endpoints are only accessible using [partner keys](https://
|
|
372
|
+
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
375
373
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
376
374
|
* @throws {@link Polytomic.NotFoundError}
|
|
377
375
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -397,7 +395,7 @@ class Users {
|
|
|
397
395
|
"X-Polytomic-Version": "2024-02-08",
|
|
398
396
|
"X-Fern-Language": "JavaScript",
|
|
399
397
|
"X-Fern-SDK-Name": "polytomic",
|
|
400
|
-
"X-Fern-SDK-Version": "0.
|
|
398
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
401
399
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
402
400
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
403
401
|
},
|
|
@@ -22,7 +22,7 @@ export declare class Webhooks {
|
|
|
22
22
|
* webhook may be created per organization. The webhook will be called for events
|
|
23
23
|
* in that organization.
|
|
24
24
|
*
|
|
25
|
-
* Consult the [Events documentation](https://
|
|
25
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
26
26
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
27
27
|
* @throws {@link Polytomic.InternalServerError}
|
|
28
28
|
*
|
|
@@ -35,7 +35,7 @@ export declare class Webhooks {
|
|
|
35
35
|
* webhook may be created per organization. The webhook will be called for events
|
|
36
36
|
* in that organization.
|
|
37
37
|
*
|
|
38
|
-
* Consult the [Events documentation](https://
|
|
38
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
39
39
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
40
40
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
41
41
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -52,7 +52,7 @@ export declare class Webhooks {
|
|
|
52
52
|
* webhook may be created per organization. The webhook will be called for events
|
|
53
53
|
* in that organization.
|
|
54
54
|
*
|
|
55
|
-
* Consult the [Events documentation](https://
|
|
55
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
56
56
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
57
57
|
* @throws {@link Polytomic.NotFoundError}
|
|
58
58
|
*
|
|
@@ -65,7 +65,7 @@ export declare class Webhooks {
|
|
|
65
65
|
* webhook may be created per organization. The webhook will be called for events
|
|
66
66
|
* in that organization.
|
|
67
67
|
*
|
|
68
|
-
* Consult the [Events documentation](https://
|
|
68
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
69
69
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
70
70
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
71
71
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -53,7 +53,7 @@ class Webhooks {
|
|
|
53
53
|
* webhook may be created per organization. The webhook will be called for events
|
|
54
54
|
* in that organization.
|
|
55
55
|
*
|
|
56
|
-
* Consult the [Events documentation](https://
|
|
56
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
57
57
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
58
58
|
* @throws {@link Polytomic.InternalServerError}
|
|
59
59
|
*
|
|
@@ -71,7 +71,7 @@ class Webhooks {
|
|
|
71
71
|
"X-Polytomic-Version": "2024-02-08",
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "polytomic",
|
|
74
|
-
"X-Fern-SDK-Version": "0.
|
|
74
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
75
75
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
76
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
77
|
},
|
|
@@ -115,7 +115,7 @@ class Webhooks {
|
|
|
115
115
|
* webhook may be created per organization. The webhook will be called for events
|
|
116
116
|
* in that organization.
|
|
117
117
|
*
|
|
118
|
-
* Consult the [Events documentation](https://
|
|
118
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
119
119
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
120
120
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
121
121
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -137,7 +137,7 @@ class Webhooks {
|
|
|
137
137
|
"X-Polytomic-Version": "2024-02-08",
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "polytomic",
|
|
140
|
-
"X-Fern-SDK-Version": "0.
|
|
140
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
141
141
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
142
142
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
143
143
|
},
|
|
@@ -184,7 +184,7 @@ class Webhooks {
|
|
|
184
184
|
* webhook may be created per organization. The webhook will be called for events
|
|
185
185
|
* in that organization.
|
|
186
186
|
*
|
|
187
|
-
* Consult the [Events documentation](https://
|
|
187
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
188
188
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
189
189
|
* @throws {@link Polytomic.NotFoundError}
|
|
190
190
|
*
|
|
@@ -202,7 +202,7 @@ class Webhooks {
|
|
|
202
202
|
"X-Polytomic-Version": "2024-02-08",
|
|
203
203
|
"X-Fern-Language": "JavaScript",
|
|
204
204
|
"X-Fern-SDK-Name": "polytomic",
|
|
205
|
-
"X-Fern-SDK-Version": "0.
|
|
205
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
206
206
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
207
207
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
208
208
|
},
|
|
@@ -246,7 +246,7 @@ class Webhooks {
|
|
|
246
246
|
* webhook may be created per organization. The webhook will be called for events
|
|
247
247
|
* in that organization.
|
|
248
248
|
*
|
|
249
|
-
* Consult the [Events documentation](https://
|
|
249
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/getting-started/events) for more information.
|
|
250
250
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
251
251
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
252
252
|
* @throws {@link Polytomic.InternalServerError}
|
|
@@ -268,7 +268,7 @@ class Webhooks {
|
|
|
268
268
|
"X-Polytomic-Version": "2024-02-08",
|
|
269
269
|
"X-Fern-Language": "JavaScript",
|
|
270
270
|
"X-Fern-SDK-Name": "polytomic",
|
|
271
|
-
"X-Fern-SDK-Version": "0.
|
|
271
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
272
272
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
273
273
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
274
274
|
},
|
|
@@ -329,7 +329,7 @@ class Webhooks {
|
|
|
329
329
|
"X-Polytomic-Version": "2024-02-08",
|
|
330
330
|
"X-Fern-Language": "JavaScript",
|
|
331
331
|
"X-Fern-SDK-Name": "polytomic",
|
|
332
|
-
"X-Fern-SDK-Version": "0.
|
|
332
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
333
333
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
334
334
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
335
335
|
},
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polytomic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"repository": "https://github.com/polytomic/polytomic-typescript
|
|
5
|
+
"repository": "https://github.com/polytomic/polytomic-typescript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|