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.
Files changed (139) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +11 -11
  3. package/api/errors/index.d.ts +2 -2
  4. package/api/errors/index.js +2 -2
  5. package/api/resources/bulkSync/client/Client.d.ts +4 -19
  6. package/api/resources/bulkSync/client/Client.js +14 -29
  7. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
  8. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
  9. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
  10. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  11. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
  12. package/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
  13. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  14. package/api/resources/connections/client/Client.d.ts +3 -10
  15. package/api/resources/connections/client/Client.js +12 -19
  16. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
  17. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
  18. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  19. package/api/resources/events/client/Client.js +2 -2
  20. package/api/resources/identity/client/Client.js +1 -1
  21. package/api/resources/index.d.ts +2 -2
  22. package/api/resources/index.js +3 -3
  23. package/api/resources/jobs/client/Client.js +1 -1
  24. package/api/resources/modelSync/client/Client.d.ts +5 -42
  25. package/api/resources/modelSync/client/Client.js +18 -55
  26. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
  27. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  28. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
  29. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  30. package/api/resources/models/client/Client.d.ts +31 -5
  31. package/api/resources/models/client/Client.js +150 -10
  32. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  33. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  34. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  35. package/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  36. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  37. package/api/resources/models/client/requests/index.d.ts +3 -1
  38. package/api/resources/organization/client/Client.d.ts +7 -17
  39. package/api/resources/organization/client/Client.js +12 -22
  40. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  41. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  42. package/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
  43. package/api/resources/permissions/resources/policies/client/Client.js +7 -15
  44. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  45. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  46. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  47. package/api/resources/schemas/client/Client.js +4 -4
  48. package/api/resources/users/client/Client.d.ts +8 -10
  49. package/api/resources/users/client/Client.js +14 -16
  50. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  51. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  52. package/api/resources/webhooks/client/Client.d.ts +4 -4
  53. package/api/resources/webhooks/client/Client.js +9 -9
  54. package/api/types/ConnectionResponseSchema.d.ts +2 -0
  55. package/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
  56. package/api/types/CreateModelRequest.js +5 -0
  57. package/api/types/Enrichment.d.ts +13 -0
  58. package/api/types/Enrichment.js +5 -0
  59. package/api/types/ModelResponse.d.ts +1 -0
  60. package/api/types/V2EnricherConfiguration.d.ts +7 -0
  61. package/api/types/V2EnricherConfiguration.js +5 -0
  62. package/api/types/V2EnricherMapping.d.ts +7 -0
  63. package/api/types/V2EnricherMapping.js +5 -0
  64. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  65. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  66. package/api/types/index.d.ts +5 -0
  67. package/api/types/index.js +5 -0
  68. package/dist/Client.d.ts +3 -3
  69. package/dist/Client.js +11 -11
  70. package/dist/api/errors/index.d.ts +2 -2
  71. package/dist/api/errors/index.js +2 -2
  72. package/dist/api/resources/bulkSync/client/Client.d.ts +4 -19
  73. package/dist/api/resources/bulkSync/client/Client.js +14 -29
  74. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
  75. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
  76. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
  77. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  78. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
  79. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
  80. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  81. package/dist/api/resources/connections/client/Client.d.ts +3 -10
  82. package/dist/api/resources/connections/client/Client.js +12 -19
  83. package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
  84. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
  85. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  86. package/dist/api/resources/events/client/Client.js +2 -2
  87. package/dist/api/resources/identity/client/Client.js +1 -1
  88. package/dist/api/resources/index.d.ts +2 -2
  89. package/dist/api/resources/index.js +3 -3
  90. package/dist/api/resources/jobs/client/Client.js +1 -1
  91. package/dist/api/resources/modelSync/client/Client.d.ts +5 -42
  92. package/dist/api/resources/modelSync/client/Client.js +18 -55
  93. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
  94. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  95. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
  96. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  97. package/dist/api/resources/models/client/Client.d.ts +31 -5
  98. package/dist/api/resources/models/client/Client.js +150 -10
  99. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  100. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +5 -0
  101. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  102. package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +5 -0
  103. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  104. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  105. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  106. package/dist/api/resources/models/client/requests/index.d.ts +3 -1
  107. package/dist/api/resources/organization/client/Client.d.ts +7 -17
  108. package/dist/api/resources/organization/client/Client.js +12 -22
  109. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  110. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  111. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
  112. package/dist/api/resources/permissions/resources/policies/client/Client.js +7 -15
  113. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  114. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  115. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  116. package/dist/api/resources/schemas/client/Client.js +4 -4
  117. package/dist/api/resources/users/client/Client.d.ts +8 -10
  118. package/dist/api/resources/users/client/Client.js +14 -16
  119. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  120. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  121. package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
  122. package/dist/api/resources/webhooks/client/Client.js +9 -9
  123. package/dist/api/types/ConnectionResponseSchema.d.ts +2 -0
  124. package/dist/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
  125. package/dist/api/types/CreateModelRequest.js +5 -0
  126. package/dist/api/types/Enrichment.d.ts +13 -0
  127. package/dist/api/types/Enrichment.js +5 -0
  128. package/dist/api/types/ModelResponse.d.ts +1 -0
  129. package/dist/api/types/V2EnricherConfiguration.d.ts +7 -0
  130. package/dist/api/types/V2EnricherConfiguration.js +5 -0
  131. package/dist/api/types/V2EnricherMapping.d.ts +7 -0
  132. package/dist/api/types/V2EnricherMapping.js +5 -0
  133. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  134. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  135. package/dist/api/types/index.d.ts +5 -0
  136. package/dist/api/types/index.js +5 -0
  137. package/package.json +2 -2
  138. /package/api/resources/models/client/requests/{CreateModelRequest.js → GetEnrichmentInputFieldsRequest.js} +0 -0
  139. /package/{dist/api/resources/models/client/requests/CreateModelRequest.js → api/resources/models/client/requests/ModelsCreateRequest.js} +0 -0
@@ -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.2.0",
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
  },
@@ -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.2.0",
131
+ "X-Fern-SDK-Version": "1.2.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.2.0",
195
+ "X-Fern-SDK-Version": "1.2.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.2.0",
257
+ "X-Fern-SDK-Version": "1.2.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.2.0",
323
+ "X-Fern-SDK-Version": "1.2.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.2.0",
71
+ "X-Fern-SDK-Version": "1.2.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.2.0",
134
+ "X-Fern-SDK-Version": "1.2.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.2.0",
197
+ "X-Fern-SDK-Version": "1.2.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.2.0",
261
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
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,15 +111,14 @@ class Users {
111
111
  /**
112
112
  * > 🚧 Requires partner key
113
113
  * >
114
- * > User endpoints are only accessible using [partner keys](https://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
135
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
199
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
264
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
328
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/authentication#partner-keys)
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.2.0",
398
+ "X-Fern-SDK-Version": "1.2.0",
401
399
  "X-Fern-Runtime": core.RUNTIME.type,
402
400
  "X-Fern-Runtime-Version": core.RUNTIME.version,
403
401
  },
@@ -4,8 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * email: "mail@example.com",
8
- * role: "admin"
7
+ * email: "mail@example.com"
9
8
  * }
10
9
  */
11
10
  export interface CreateUserRequestSchema {
@@ -4,8 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * email: "mail@example.com",
8
- * role: "admin"
7
+ * email: "mail@example.com"
9
8
  * }
10
9
  */
11
10
  export interface UpdateUserRequestSchema {
@@ -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://docs.polytomic.com/reference/events) for more information.
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://docs.polytomic.com/reference/events) for more information.
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://docs.polytomic.com/reference/events) for more information.
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://docs.polytomic.com/reference/events) for more information.
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://docs.polytomic.com/reference/events) for more information.
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.2.0",
74
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/events) for more information.
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.2.0",
140
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/events) for more information.
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.2.0",
205
+ "X-Fern-SDK-Version": "1.2.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://docs.polytomic.com/reference/events) for more information.
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.2.0",
271
+ "X-Fern-SDK-Version": "1.2.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.2.0",
332
+ "X-Fern-SDK-Version": "1.2.0",
333
333
  "X-Fern-Runtime": core.RUNTIME.type,
334
334
  "X-Fern-Runtime-Version": core.RUNTIME.version,
335
335
  },
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as Polytomic from "..";
5
5
  export interface ConnectionResponseSchema {
6
+ /** API calls made to service in the last 24h (supported integrations only). */
7
+ api_calls_last_24_hours?: number;
6
8
  configuration?: Record<string, unknown>;
7
9
  id?: string;
8
10
  name?: string;
@@ -1,20 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
- import * as Polytomic from "../../../..";
5
- /**
6
- * @example
7
- * {
8
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
9
- * identifier: "id",
10
- * name: "Users"
11
- * }
12
- */
4
+ import * as Polytomic from "..";
13
5
  export interface CreateModelRequest {
14
- async?: boolean;
15
6
  additional_fields?: Polytomic.ModelModelFieldRequest[];
16
7
  configuration?: Record<string, unknown>;
17
8
  connection_id: string;
9
+ enricher?: Polytomic.Enrichment;
18
10
  fields?: string[];
19
11
  identifier?: string;
20
12
  labels?: string[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "..";
5
+ export interface Enrichment {
6
+ configuration?: Polytomic.V2EnricherConfiguration;
7
+ connection_id?: string;
8
+ /** Must be provided to update an existing enrichment */
9
+ enricher_id?: string;
10
+ /** If not provided, all fields will be enabled. */
11
+ fields?: Polytomic.ModelField[];
12
+ mappings?: Polytomic.V2EnricherMapping;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ import * as Polytomic from "..";
5
5
  export interface ModelResponse {
6
6
  configuration?: Record<string, unknown>;
7
7
  connection_id?: string;
8
+ enricher?: Polytomic.Enrichment;
8
9
  fields?: Polytomic.ModelField[];
9
10
  id?: string;
10
11
  identifier?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * Similar to a model configuration, this configures the enricher. For example, if you wanted to use Apollo to enrich people, you would send `{"object": "people"}` as the configuration. Each enricher configuration can be found in the connection configuration docs.
6
+ */
7
+ export declare type V2EnricherConfiguration = Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * A map of parent model Source Name to child model Source Name. For example, if your model has a field called `work_email` and the enricher accepts a field called `email`, you'd send a map of `{"work_email":"email"}`. The set of required input mappings varies based on the configuration of the enrichment. You can use the `enrichment/{connection_id}/inputfields` API to discover available input field combinations for a given configuration.
6
+ */
7
+ export declare type V2EnricherMapping = Record<string, string>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export interface V2GetEnrichmentInputFieldsResponseEnvelope {
5
+ data?: string[][];
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,10 @@ export * from "./ConnectionTypeResponseEnvelope";
41
41
  export * from "./ConnectionTypeSchema";
42
42
  export * from "./CreateConnectionResponseEnvelope";
43
43
  export * from "./CreateConnectionResponseSchema";
44
+ export * from "./CreateModelRequest";
45
+ export * from "./V2EnricherConfiguration";
46
+ export * from "./V2EnricherMapping";
47
+ export * from "./Enrichment";
44
48
  export * from "./Event";
45
49
  export * from "./EventTypesEnvelope";
46
50
  export * from "./EventsEnvelope";
@@ -49,6 +53,7 @@ export * from "./ExecutionLogResponse";
49
53
  export * from "./ExecutionLogsResponseEnvelope";
50
54
  export * from "./Filter";
51
55
  export * from "./GetConnectionMetaEnvelope";
56
+ export * from "./V2GetEnrichmentInputFieldsResponseEnvelope";
52
57
  export * from "./GetExecutionResponseEnvelope";
53
58
  export * from "./GetExecutionResponseSchema";
54
59
  export * from "./GetIdentityResponseEnvelope";
@@ -57,6 +57,10 @@ __exportStar(require("./ConnectionTypeResponseEnvelope"), exports);
57
57
  __exportStar(require("./ConnectionTypeSchema"), exports);
58
58
  __exportStar(require("./CreateConnectionResponseEnvelope"), exports);
59
59
  __exportStar(require("./CreateConnectionResponseSchema"), exports);
60
+ __exportStar(require("./CreateModelRequest"), exports);
61
+ __exportStar(require("./V2EnricherConfiguration"), exports);
62
+ __exportStar(require("./V2EnricherMapping"), exports);
63
+ __exportStar(require("./Enrichment"), exports);
60
64
  __exportStar(require("./Event"), exports);
61
65
  __exportStar(require("./EventTypesEnvelope"), exports);
62
66
  __exportStar(require("./EventsEnvelope"), exports);
@@ -65,6 +69,7 @@ __exportStar(require("./ExecutionLogResponse"), exports);
65
69
  __exportStar(require("./ExecutionLogsResponseEnvelope"), exports);
66
70
  __exportStar(require("./Filter"), exports);
67
71
  __exportStar(require("./GetConnectionMetaEnvelope"), exports);
72
+ __exportStar(require("./V2GetEnrichmentInputFieldsResponseEnvelope"), exports);
68
73
  __exportStar(require("./GetExecutionResponseEnvelope"), exports);
69
74
  __exportStar(require("./GetExecutionResponseSchema"), exports);
70
75
  __exportStar(require("./GetIdentityResponseEnvelope"), exports);
package/dist/Client.d.ts CHANGED
@@ -7,10 +7,10 @@ import { BulkSync } from "./api/resources/bulkSync/client/Client";
7
7
  import { Connections } from "./api/resources/connections/client/Client";
8
8
  import { ModelSync } from "./api/resources/modelSync/client/Client";
9
9
  import { Schemas } from "./api/resources/schemas/client/Client";
10
+ import { Models } from "./api/resources/models/client/Client";
10
11
  import { Events } from "./api/resources/events/client/Client";
11
12
  import { Jobs } from "./api/resources/jobs/client/Client";
12
13
  import { Identity } from "./api/resources/identity/client/Client";
13
- import { Models } from "./api/resources/models/client/Client";
14
14
  import { Organization } from "./api/resources/organization/client/Client";
15
15
  import { Users } from "./api/resources/users/client/Client";
16
16
  import { Permissions } from "./api/resources/permissions/client/Client";
@@ -36,14 +36,14 @@ export declare class PolytomicClient {
36
36
  get modelSync(): ModelSync;
37
37
  protected _schemas: Schemas | undefined;
38
38
  get schemas(): Schemas;
39
+ protected _models: Models | undefined;
40
+ get models(): Models;
39
41
  protected _events: Events | undefined;
40
42
  get events(): Events;
41
43
  protected _jobs: Jobs | undefined;
42
44
  get jobs(): Jobs;
43
45
  protected _identity: Identity | undefined;
44
46
  get identity(): Identity;
45
- protected _models: Models | undefined;
46
- get models(): Models;
47
47
  protected _organization: Organization | undefined;
48
48
  get organization(): Organization;
49
49
  protected _users: Users | undefined;