@seamapi/http 1.23.0 → 1.25.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/README.md +61 -0
- package/dist/connect.cjs +398 -170
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +78 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/index.d.ts +2 -0
- package/lib/seam/connect/index.js +2 -0
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/routes/access-codes-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/access-codes-simulate.js +5 -1
- package/lib/seam/connect/routes/access-codes-simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +2 -0
- package/lib/seam/connect/routes/access-codes-unmanaged.js +9 -5
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +2 -0
- package/lib/seam/connect/routes/access-codes.js +13 -9
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups-unmanaged.d.ts +2 -0
- package/lib/seam/connect/routes/acs-access-groups-unmanaged.js +6 -2
- package/lib/seam/connect/routes/acs-access-groups-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups.d.ts +2 -0
- package/lib/seam/connect/routes/acs-access-groups.js +10 -6
- package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-pools.d.ts +2 -0
- package/lib/seam/connect/routes/acs-credential-pools.js +5 -1
- package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +2 -0
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js +5 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials-unmanaged.d.ts +2 -0
- package/lib/seam/connect/routes/acs-credentials-unmanaged.js +6 -2
- package/lib/seam/connect/routes/acs-credentials-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials.d.ts +2 -0
- package/lib/seam/connect/routes/acs-credentials.js +13 -9
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-encoders-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/acs-encoders-simulate.js +8 -4
- package/lib/seam/connect/routes/acs-encoders-simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs-encoders.d.ts +2 -0
- package/lib/seam/connect/routes/acs-encoders.js +7 -3
- package/lib/seam/connect/routes/acs-encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs-entrances.d.ts +2 -0
- package/lib/seam/connect/routes/acs-entrances.js +8 -4
- package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs-systems.d.ts +2 -0
- package/lib/seam/connect/routes/acs-systems.js +7 -3
- package/lib/seam/connect/routes/acs-systems.js.map +1 -1
- package/lib/seam/connect/routes/acs-users-unmanaged.d.ts +2 -0
- package/lib/seam/connect/routes/acs-users-unmanaged.js +6 -2
- package/lib/seam/connect/routes/acs-users-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs-users.d.ts +2 -0
- package/lib/seam/connect/routes/acs-users.js +15 -11
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/acs.d.ts +3 -0
- package/lib/seam/connect/routes/acs.js +4 -0
- package/lib/seam/connect/routes/acs.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts.d.ts +2 -0
- package/lib/seam/connect/routes/action-attempts.js +6 -2
- package/lib/seam/connect/routes/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/bridges.d.ts +2 -0
- package/lib/seam/connect/routes/bridges.js +6 -2
- package/lib/seam/connect/routes/bridges.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions.d.ts +2 -0
- package/lib/seam/connect/routes/client-sessions.js +11 -7
- package/lib/seam/connect/routes/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews.d.ts +2 -0
- package/lib/seam/connect/routes/connect-webviews.js +8 -4
- package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +2 -0
- package/lib/seam/connect/routes/connected-accounts.js +8 -4
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/devices-simulate.js +7 -3
- package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +2 -0
- package/lib/seam/connect/routes/devices-unmanaged.js +7 -3
- package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/devices.d.ts +2 -0
- package/lib/seam/connect/routes/devices.js +9 -5
- package/lib/seam/connect/routes/devices.js.map +1 -1
- package/lib/seam/connect/routes/events.d.ts +2 -0
- package/lib/seam/connect/routes/events.js +6 -2
- package/lib/seam/connect/routes/events.js.map +1 -1
- package/lib/seam/connect/routes/locks.d.ts +2 -0
- package/lib/seam/connect/routes/locks.js +8 -4
- package/lib/seam/connect/routes/locks.js.map +1 -1
- package/lib/seam/connect/routes/networks.d.ts +2 -0
- package/lib/seam/connect/routes/networks.js +6 -2
- package/lib/seam/connect/routes/networks.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +2 -0
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js +9 -5
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/noise-sensors-simulate.js +5 -1
- package/lib/seam/connect/routes/noise-sensors-simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors.d.ts +2 -0
- package/lib/seam/connect/routes/noise-sensors.js +5 -1
- package/lib/seam/connect/routes/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/phones-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/phones-simulate.js +5 -1
- package/lib/seam/connect/routes/phones-simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones.d.ts +6 -0
- package/lib/seam/connect/routes/phones.js +14 -2
- package/lib/seam/connect/routes/phones.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-schedules.d.ts +2 -0
- package/lib/seam/connect/routes/thermostats-schedules.js +9 -5
- package/lib/seam/connect/routes/thermostats-schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-simulate.d.ts +2 -0
- package/lib/seam/connect/routes/thermostats-simulate.js +6 -2
- package/lib/seam/connect/routes/thermostats-simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +2 -0
- package/lib/seam/connect/routes/thermostats.js +18 -14
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +2 -0
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js +8 -4
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +2 -0
- package/lib/seam/connect/routes/user-identities.js +16 -12
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.d.ts +2 -0
- package/lib/seam/connect/routes/webhooks.js +9 -5
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +2 -0
- package/lib/seam/connect/routes/workspaces.js +8 -4
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/seam/connect/seam-http-request.d.ts +6 -3
- package/lib/seam/connect/seam-http-request.js +25 -14
- package/lib/seam/connect/seam-http-request.js.map +1 -1
- package/lib/seam/connect/seam-http.d.ts +3 -0
- package/lib/seam/connect/seam-http.js +4 -0
- package/lib/seam/connect/seam-http.js.map +1 -1
- package/lib/seam/connect/seam-paginator.d.ts +30 -0
- package/lib/seam/connect/seam-paginator.js +103 -0
- package/lib/seam/connect/seam-paginator.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/index.ts +2 -0
- package/src/lib/seam/connect/routes/access-codes-simulate.ts +8 -1
- package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +12 -5
- package/src/lib/seam/connect/routes/access-codes.ts +16 -9
- package/src/lib/seam/connect/routes/acs-access-groups-unmanaged.ts +9 -2
- package/src/lib/seam/connect/routes/acs-access-groups.ts +13 -6
- package/src/lib/seam/connect/routes/acs-credential-pools.ts +8 -1
- package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +8 -1
- package/src/lib/seam/connect/routes/acs-credentials-unmanaged.ts +9 -2
- package/src/lib/seam/connect/routes/acs-credentials.ts +16 -9
- package/src/lib/seam/connect/routes/acs-encoders-simulate.ts +11 -4
- package/src/lib/seam/connect/routes/acs-encoders.ts +10 -3
- package/src/lib/seam/connect/routes/acs-entrances.ts +11 -4
- package/src/lib/seam/connect/routes/acs-systems.ts +10 -3
- package/src/lib/seam/connect/routes/acs-users-unmanaged.ts +9 -2
- package/src/lib/seam/connect/routes/acs-users.ts +18 -11
- package/src/lib/seam/connect/routes/acs.ts +8 -0
- package/src/lib/seam/connect/routes/action-attempts.ts +9 -2
- package/src/lib/seam/connect/routes/bridges.ts +9 -2
- package/src/lib/seam/connect/routes/client-sessions.ts +14 -7
- package/src/lib/seam/connect/routes/connect-webviews.ts +11 -4
- package/src/lib/seam/connect/routes/connected-accounts.ts +11 -4
- package/src/lib/seam/connect/routes/devices-simulate.ts +10 -3
- package/src/lib/seam/connect/routes/devices-unmanaged.ts +10 -3
- package/src/lib/seam/connect/routes/devices.ts +12 -5
- package/src/lib/seam/connect/routes/events.ts +9 -2
- package/src/lib/seam/connect/routes/locks.ts +11 -4
- package/src/lib/seam/connect/routes/networks.ts +9 -2
- package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +12 -5
- package/src/lib/seam/connect/routes/noise-sensors-simulate.ts +8 -1
- package/src/lib/seam/connect/routes/noise-sensors.ts +8 -1
- package/src/lib/seam/connect/routes/phones-simulate.ts +8 -1
- package/src/lib/seam/connect/routes/phones.ts +26 -2
- package/src/lib/seam/connect/routes/thermostats-schedules.ts +12 -5
- package/src/lib/seam/connect/routes/thermostats-simulate.ts +9 -2
- package/src/lib/seam/connect/routes/thermostats.ts +21 -14
- package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +11 -4
- package/src/lib/seam/connect/routes/user-identities.ts +19 -12
- package/src/lib/seam/connect/routes/webhooks.ts +12 -5
- package/src/lib/seam/connect/routes/workspaces.ts +11 -4
- package/src/lib/seam/connect/seam-http-request.ts +45 -23
- package/src/lib/seam/connect/seam-http.ts +8 -0
- package/src/lib/seam/connect/seam-paginator.ts +155 -0
- package/src/lib/version.ts +1 -1
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpAccessCodesSimulate } from './access-codes-simulate.js'
|
|
@@ -137,6 +138,12 @@ export class SeamHttpAccessCodes {
|
|
|
137
138
|
return new SeamHttpAccessCodes(constructorOptions)
|
|
138
139
|
}
|
|
139
140
|
|
|
141
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
142
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
143
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
144
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
145
|
+
}
|
|
146
|
+
|
|
140
147
|
async updateClientSessionToken(
|
|
141
148
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
142
149
|
): Promise<void> {
|
|
@@ -168,7 +175,7 @@ export class SeamHttpAccessCodes {
|
|
|
168
175
|
body?: AccessCodesCreateBody,
|
|
169
176
|
): SeamHttpRequest<AccessCodesCreateResponse, 'access_code'> {
|
|
170
177
|
return new SeamHttpRequest(this, {
|
|
171
|
-
|
|
178
|
+
pathname: '/access_codes/create',
|
|
172
179
|
method: 'post',
|
|
173
180
|
body,
|
|
174
181
|
responseKey: 'access_code',
|
|
@@ -179,7 +186,7 @@ export class SeamHttpAccessCodes {
|
|
|
179
186
|
body?: AccessCodesCreateMultipleBody,
|
|
180
187
|
): SeamHttpRequest<AccessCodesCreateMultipleResponse, 'access_codes'> {
|
|
181
188
|
return new SeamHttpRequest(this, {
|
|
182
|
-
|
|
189
|
+
pathname: '/access_codes/create_multiple',
|
|
183
190
|
method: 'post',
|
|
184
191
|
body,
|
|
185
192
|
responseKey: 'access_codes',
|
|
@@ -188,7 +195,7 @@ export class SeamHttpAccessCodes {
|
|
|
188
195
|
|
|
189
196
|
delete(body?: AccessCodesDeleteParams): SeamHttpRequest<void, undefined> {
|
|
190
197
|
return new SeamHttpRequest(this, {
|
|
191
|
-
|
|
198
|
+
pathname: '/access_codes/delete',
|
|
192
199
|
method: 'post',
|
|
193
200
|
body,
|
|
194
201
|
responseKey: undefined,
|
|
@@ -199,7 +206,7 @@ export class SeamHttpAccessCodes {
|
|
|
199
206
|
body?: AccessCodesGenerateCodeBody,
|
|
200
207
|
): SeamHttpRequest<AccessCodesGenerateCodeResponse, 'generated_code'> {
|
|
201
208
|
return new SeamHttpRequest(this, {
|
|
202
|
-
|
|
209
|
+
pathname: '/access_codes/generate_code',
|
|
203
210
|
method: 'post',
|
|
204
211
|
body,
|
|
205
212
|
responseKey: 'generated_code',
|
|
@@ -210,7 +217,7 @@ export class SeamHttpAccessCodes {
|
|
|
210
217
|
body?: AccessCodesGetParams,
|
|
211
218
|
): SeamHttpRequest<AccessCodesGetResponse, 'access_code'> {
|
|
212
219
|
return new SeamHttpRequest(this, {
|
|
213
|
-
|
|
220
|
+
pathname: '/access_codes/get',
|
|
214
221
|
method: 'post',
|
|
215
222
|
body,
|
|
216
223
|
responseKey: 'access_code',
|
|
@@ -221,7 +228,7 @@ export class SeamHttpAccessCodes {
|
|
|
221
228
|
body?: AccessCodesListParams,
|
|
222
229
|
): SeamHttpRequest<AccessCodesListResponse, 'access_codes'> {
|
|
223
230
|
return new SeamHttpRequest(this, {
|
|
224
|
-
|
|
231
|
+
pathname: '/access_codes/list',
|
|
225
232
|
method: 'post',
|
|
226
233
|
body,
|
|
227
234
|
responseKey: 'access_codes',
|
|
@@ -232,7 +239,7 @@ export class SeamHttpAccessCodes {
|
|
|
232
239
|
body?: AccessCodesPullBackupAccessCodeBody,
|
|
233
240
|
): SeamHttpRequest<AccessCodesPullBackupAccessCodeResponse, 'access_code'> {
|
|
234
241
|
return new SeamHttpRequest(this, {
|
|
235
|
-
|
|
242
|
+
pathname: '/access_codes/pull_backup_access_code',
|
|
236
243
|
method: 'post',
|
|
237
244
|
body,
|
|
238
245
|
responseKey: 'access_code',
|
|
@@ -241,7 +248,7 @@ export class SeamHttpAccessCodes {
|
|
|
241
248
|
|
|
242
249
|
update(body?: AccessCodesUpdateBody): SeamHttpRequest<void, undefined> {
|
|
243
250
|
return new SeamHttpRequest(this, {
|
|
244
|
-
|
|
251
|
+
pathname: '/access_codes/update',
|
|
245
252
|
method: 'post',
|
|
246
253
|
body,
|
|
247
254
|
responseKey: undefined,
|
|
@@ -252,7 +259,7 @@ export class SeamHttpAccessCodes {
|
|
|
252
259
|
body?: AccessCodesUpdateMultipleBody,
|
|
253
260
|
): SeamHttpRequest<void, undefined> {
|
|
254
261
|
return new SeamHttpRequest(this, {
|
|
255
|
-
|
|
262
|
+
pathname: '/access_codes/update_multiple',
|
|
256
263
|
method: 'post',
|
|
257
264
|
body,
|
|
258
265
|
responseKey: undefined,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -138,6 +139,12 @@ export class SeamHttpAcsAccessGroupsUnmanaged {
|
|
|
138
139
|
return new SeamHttpAcsAccessGroupsUnmanaged(constructorOptions)
|
|
139
140
|
}
|
|
140
141
|
|
|
142
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
143
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
144
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
145
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
146
|
+
}
|
|
147
|
+
|
|
141
148
|
async updateClientSessionToken(
|
|
142
149
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
143
150
|
): Promise<void> {
|
|
@@ -161,7 +168,7 @@ export class SeamHttpAcsAccessGroupsUnmanaged {
|
|
|
161
168
|
body?: AcsAccessGroupsUnmanagedGetParams,
|
|
162
169
|
): SeamHttpRequest<AcsAccessGroupsUnmanagedGetResponse, 'acs_access_group'> {
|
|
163
170
|
return new SeamHttpRequest(this, {
|
|
164
|
-
|
|
171
|
+
pathname: '/acs/access_groups/unmanaged/get',
|
|
165
172
|
method: 'post',
|
|
166
173
|
body,
|
|
167
174
|
responseKey: 'acs_access_group',
|
|
@@ -175,7 +182,7 @@ export class SeamHttpAcsAccessGroupsUnmanaged {
|
|
|
175
182
|
'acs_access_groups'
|
|
176
183
|
> {
|
|
177
184
|
return new SeamHttpRequest(this, {
|
|
178
|
-
|
|
185
|
+
pathname: '/acs/access_groups/unmanaged/list',
|
|
179
186
|
method: 'post',
|
|
180
187
|
body,
|
|
181
188
|
responseKey: 'acs_access_groups',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpAcsAccessGroupsUnmanaged } from './acs-access-groups-unmanaged.js'
|
|
@@ -136,6 +137,12 @@ export class SeamHttpAcsAccessGroups {
|
|
|
136
137
|
return new SeamHttpAcsAccessGroups(constructorOptions)
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
141
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
142
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
143
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
async updateClientSessionToken(
|
|
140
147
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
141
148
|
): Promise<void> {
|
|
@@ -164,7 +171,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
164
171
|
|
|
165
172
|
addUser(body?: AcsAccessGroupsAddUserBody): SeamHttpRequest<void, undefined> {
|
|
166
173
|
return new SeamHttpRequest(this, {
|
|
167
|
-
|
|
174
|
+
pathname: '/acs/access_groups/add_user',
|
|
168
175
|
method: 'post',
|
|
169
176
|
body,
|
|
170
177
|
responseKey: undefined,
|
|
@@ -175,7 +182,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
175
182
|
body?: AcsAccessGroupsGetParams,
|
|
176
183
|
): SeamHttpRequest<AcsAccessGroupsGetResponse, 'acs_access_group'> {
|
|
177
184
|
return new SeamHttpRequest(this, {
|
|
178
|
-
|
|
185
|
+
pathname: '/acs/access_groups/get',
|
|
179
186
|
method: 'post',
|
|
180
187
|
body,
|
|
181
188
|
responseKey: 'acs_access_group',
|
|
@@ -186,7 +193,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
186
193
|
body?: AcsAccessGroupsListParams,
|
|
187
194
|
): SeamHttpRequest<AcsAccessGroupsListResponse, 'acs_access_groups'> {
|
|
188
195
|
return new SeamHttpRequest(this, {
|
|
189
|
-
|
|
196
|
+
pathname: '/acs/access_groups/list',
|
|
190
197
|
method: 'post',
|
|
191
198
|
body,
|
|
192
199
|
responseKey: 'acs_access_groups',
|
|
@@ -200,7 +207,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
200
207
|
'acs_entrances'
|
|
201
208
|
> {
|
|
202
209
|
return new SeamHttpRequest(this, {
|
|
203
|
-
|
|
210
|
+
pathname: '/acs/access_groups/list_accessible_entrances',
|
|
204
211
|
method: 'post',
|
|
205
212
|
body,
|
|
206
213
|
responseKey: 'acs_entrances',
|
|
@@ -211,7 +218,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
211
218
|
body?: AcsAccessGroupsListUsersParams,
|
|
212
219
|
): SeamHttpRequest<AcsAccessGroupsListUsersResponse, 'acs_users'> {
|
|
213
220
|
return new SeamHttpRequest(this, {
|
|
214
|
-
|
|
221
|
+
pathname: '/acs/access_groups/list_users',
|
|
215
222
|
method: 'post',
|
|
216
223
|
body,
|
|
217
224
|
responseKey: 'acs_users',
|
|
@@ -222,7 +229,7 @@ export class SeamHttpAcsAccessGroups {
|
|
|
222
229
|
body?: AcsAccessGroupsRemoveUserParams,
|
|
223
230
|
): SeamHttpRequest<void, undefined> {
|
|
224
231
|
return new SeamHttpRequest(this, {
|
|
225
|
-
|
|
232
|
+
pathname: '/acs/access_groups/remove_user',
|
|
226
233
|
method: 'post',
|
|
227
234
|
body,
|
|
228
235
|
responseKey: undefined,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -135,6 +136,12 @@ export class SeamHttpAcsCredentialPools {
|
|
|
135
136
|
return new SeamHttpAcsCredentialPools(constructorOptions)
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
async updateClientSessionToken(
|
|
139
146
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
140
147
|
): Promise<void> {
|
|
@@ -158,7 +165,7 @@ export class SeamHttpAcsCredentialPools {
|
|
|
158
165
|
body?: AcsCredentialPoolsListParams,
|
|
159
166
|
): SeamHttpRequest<AcsCredentialPoolsListResponse, 'acs_credential_pools'> {
|
|
160
167
|
return new SeamHttpRequest(this, {
|
|
161
|
-
|
|
168
|
+
pathname: '/acs/credential_pools/list',
|
|
162
169
|
method: 'post',
|
|
163
170
|
body,
|
|
164
171
|
responseKey: 'acs_credential_pools',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -138,6 +139,12 @@ export class SeamHttpAcsCredentialProvisioningAutomations {
|
|
|
138
139
|
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions)
|
|
139
140
|
}
|
|
140
141
|
|
|
142
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
143
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
144
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
145
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
146
|
+
}
|
|
147
|
+
|
|
141
148
|
async updateClientSessionToken(
|
|
142
149
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
143
150
|
): Promise<void> {
|
|
@@ -164,7 +171,7 @@ export class SeamHttpAcsCredentialProvisioningAutomations {
|
|
|
164
171
|
'acs_credential_provisioning_automation'
|
|
165
172
|
> {
|
|
166
173
|
return new SeamHttpRequest(this, {
|
|
167
|
-
|
|
174
|
+
pathname: '/acs/credential_provisioning_automations/launch',
|
|
168
175
|
method: 'post',
|
|
169
176
|
body,
|
|
170
177
|
responseKey: 'acs_credential_provisioning_automation',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -138,6 +139,12 @@ export class SeamHttpAcsCredentialsUnmanaged {
|
|
|
138
139
|
return new SeamHttpAcsCredentialsUnmanaged(constructorOptions)
|
|
139
140
|
}
|
|
140
141
|
|
|
142
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
143
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
144
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
145
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
146
|
+
}
|
|
147
|
+
|
|
141
148
|
async updateClientSessionToken(
|
|
142
149
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
143
150
|
): Promise<void> {
|
|
@@ -161,7 +168,7 @@ export class SeamHttpAcsCredentialsUnmanaged {
|
|
|
161
168
|
body?: AcsCredentialsUnmanagedGetParams,
|
|
162
169
|
): SeamHttpRequest<AcsCredentialsUnmanagedGetResponse, 'acs_credential'> {
|
|
163
170
|
return new SeamHttpRequest(this, {
|
|
164
|
-
|
|
171
|
+
pathname: '/acs/credentials/unmanaged/get',
|
|
165
172
|
method: 'post',
|
|
166
173
|
body,
|
|
167
174
|
responseKey: 'acs_credential',
|
|
@@ -172,7 +179,7 @@ export class SeamHttpAcsCredentialsUnmanaged {
|
|
|
172
179
|
body?: AcsCredentialsUnmanagedListParams,
|
|
173
180
|
): SeamHttpRequest<AcsCredentialsUnmanagedListResponse, 'acs_credentials'> {
|
|
174
181
|
return new SeamHttpRequest(this, {
|
|
175
|
-
|
|
182
|
+
pathname: '/acs/credentials/unmanaged/list',
|
|
176
183
|
method: 'post',
|
|
177
184
|
body,
|
|
178
185
|
responseKey: 'acs_credentials',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpAcsCredentialsUnmanaged } from './acs-credentials-unmanaged.js'
|
|
@@ -136,6 +137,12 @@ export class SeamHttpAcsCredentials {
|
|
|
136
137
|
return new SeamHttpAcsCredentials(constructorOptions)
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
141
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
142
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
143
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
async updateClientSessionToken(
|
|
140
147
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
141
148
|
): Promise<void> {
|
|
@@ -164,7 +171,7 @@ export class SeamHttpAcsCredentials {
|
|
|
164
171
|
|
|
165
172
|
assign(body?: AcsCredentialsAssignBody): SeamHttpRequest<void, undefined> {
|
|
166
173
|
return new SeamHttpRequest(this, {
|
|
167
|
-
|
|
174
|
+
pathname: '/acs/credentials/assign',
|
|
168
175
|
method: 'post',
|
|
169
176
|
body,
|
|
170
177
|
responseKey: undefined,
|
|
@@ -175,7 +182,7 @@ export class SeamHttpAcsCredentials {
|
|
|
175
182
|
body?: AcsCredentialsCreateBody,
|
|
176
183
|
): SeamHttpRequest<AcsCredentialsCreateResponse, 'acs_credential'> {
|
|
177
184
|
return new SeamHttpRequest(this, {
|
|
178
|
-
|
|
185
|
+
pathname: '/acs/credentials/create',
|
|
179
186
|
method: 'post',
|
|
180
187
|
body,
|
|
181
188
|
responseKey: 'acs_credential',
|
|
@@ -189,7 +196,7 @@ export class SeamHttpAcsCredentials {
|
|
|
189
196
|
'acs_credential'
|
|
190
197
|
> {
|
|
191
198
|
return new SeamHttpRequest(this, {
|
|
192
|
-
|
|
199
|
+
pathname: '/acs/credentials/create_offline_code',
|
|
193
200
|
method: 'post',
|
|
194
201
|
body,
|
|
195
202
|
responseKey: 'acs_credential',
|
|
@@ -198,7 +205,7 @@ export class SeamHttpAcsCredentials {
|
|
|
198
205
|
|
|
199
206
|
delete(body?: AcsCredentialsDeleteParams): SeamHttpRequest<void, undefined> {
|
|
200
207
|
return new SeamHttpRequest(this, {
|
|
201
|
-
|
|
208
|
+
pathname: '/acs/credentials/delete',
|
|
202
209
|
method: 'post',
|
|
203
210
|
body,
|
|
204
211
|
responseKey: undefined,
|
|
@@ -209,7 +216,7 @@ export class SeamHttpAcsCredentials {
|
|
|
209
216
|
body?: AcsCredentialsGetParams,
|
|
210
217
|
): SeamHttpRequest<AcsCredentialsGetResponse, 'acs_credential'> {
|
|
211
218
|
return new SeamHttpRequest(this, {
|
|
212
|
-
|
|
219
|
+
pathname: '/acs/credentials/get',
|
|
213
220
|
method: 'post',
|
|
214
221
|
body,
|
|
215
222
|
responseKey: 'acs_credential',
|
|
@@ -220,7 +227,7 @@ export class SeamHttpAcsCredentials {
|
|
|
220
227
|
body?: AcsCredentialsListParams,
|
|
221
228
|
): SeamHttpRequest<AcsCredentialsListResponse, 'acs_credentials'> {
|
|
222
229
|
return new SeamHttpRequest(this, {
|
|
223
|
-
|
|
230
|
+
pathname: '/acs/credentials/list',
|
|
224
231
|
method: 'post',
|
|
225
232
|
body,
|
|
226
233
|
responseKey: 'acs_credentials',
|
|
@@ -234,7 +241,7 @@ export class SeamHttpAcsCredentials {
|
|
|
234
241
|
'acs_entrances'
|
|
235
242
|
> {
|
|
236
243
|
return new SeamHttpRequest(this, {
|
|
237
|
-
|
|
244
|
+
pathname: '/acs/credentials/list_accessible_entrances',
|
|
238
245
|
method: 'post',
|
|
239
246
|
body,
|
|
240
247
|
responseKey: 'acs_entrances',
|
|
@@ -245,7 +252,7 @@ export class SeamHttpAcsCredentials {
|
|
|
245
252
|
body?: AcsCredentialsUnassignBody,
|
|
246
253
|
): SeamHttpRequest<void, undefined> {
|
|
247
254
|
return new SeamHttpRequest(this, {
|
|
248
|
-
|
|
255
|
+
pathname: '/acs/credentials/unassign',
|
|
249
256
|
method: 'post',
|
|
250
257
|
body,
|
|
251
258
|
responseKey: undefined,
|
|
@@ -254,7 +261,7 @@ export class SeamHttpAcsCredentials {
|
|
|
254
261
|
|
|
255
262
|
update(body?: AcsCredentialsUpdateBody): SeamHttpRequest<void, undefined> {
|
|
256
263
|
return new SeamHttpRequest(this, {
|
|
257
|
-
|
|
264
|
+
pathname: '/acs/credentials/update',
|
|
258
265
|
method: 'post',
|
|
259
266
|
body,
|
|
260
267
|
responseKey: undefined,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -135,6 +136,12 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
135
136
|
return new SeamHttpAcsEncodersSimulate(constructorOptions)
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
async updateClientSessionToken(
|
|
139
146
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
140
147
|
): Promise<void> {
|
|
@@ -158,7 +165,7 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
158
165
|
body?: AcsEncodersSimulateNextCredentialEncodeWillFailBody,
|
|
159
166
|
): SeamHttpRequest<void, undefined> {
|
|
160
167
|
return new SeamHttpRequest(this, {
|
|
161
|
-
|
|
168
|
+
pathname: '/acs/encoders/simulate/next_credential_encode_will_fail',
|
|
162
169
|
method: 'post',
|
|
163
170
|
body,
|
|
164
171
|
responseKey: undefined,
|
|
@@ -169,7 +176,7 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
169
176
|
body?: AcsEncodersSimulateNextCredentialEncodeWillSucceedBody,
|
|
170
177
|
): SeamHttpRequest<void, undefined> {
|
|
171
178
|
return new SeamHttpRequest(this, {
|
|
172
|
-
|
|
179
|
+
pathname: '/acs/encoders/simulate/next_credential_encode_will_succeed',
|
|
173
180
|
method: 'post',
|
|
174
181
|
body,
|
|
175
182
|
responseKey: undefined,
|
|
@@ -180,7 +187,7 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
180
187
|
body?: AcsEncodersSimulateNextCredentialScanWillFailBody,
|
|
181
188
|
): SeamHttpRequest<void, undefined> {
|
|
182
189
|
return new SeamHttpRequest(this, {
|
|
183
|
-
|
|
190
|
+
pathname: '/acs/encoders/simulate/next_credential_scan_will_fail',
|
|
184
191
|
method: 'post',
|
|
185
192
|
body,
|
|
186
193
|
responseKey: undefined,
|
|
@@ -191,7 +198,7 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
191
198
|
body?: AcsEncodersSimulateNextCredentialScanWillSucceedBody,
|
|
192
199
|
): SeamHttpRequest<void, undefined> {
|
|
193
200
|
return new SeamHttpRequest(this, {
|
|
194
|
-
|
|
201
|
+
pathname: '/acs/encoders/simulate/next_credential_scan_will_succeed',
|
|
195
202
|
method: 'post',
|
|
196
203
|
body,
|
|
197
204
|
responseKey: undefined,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpAcsEncodersSimulate } from './acs-encoders-simulate.js'
|
|
@@ -136,6 +137,12 @@ export class SeamHttpAcsEncoders {
|
|
|
136
137
|
return new SeamHttpAcsEncoders(constructorOptions)
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
141
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
142
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
143
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
async updateClientSessionToken(
|
|
140
147
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
141
148
|
): Promise<void> {
|
|
@@ -164,7 +171,7 @@ export class SeamHttpAcsEncoders {
|
|
|
164
171
|
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
165
172
|
): SeamHttpRequest<AcsEncodersEncodeCredentialResponse, 'action_attempt'> {
|
|
166
173
|
return new SeamHttpRequest(this, {
|
|
167
|
-
|
|
174
|
+
pathname: '/acs/encoders/encode_credential',
|
|
168
175
|
method: 'post',
|
|
169
176
|
body,
|
|
170
177
|
responseKey: 'action_attempt',
|
|
@@ -176,7 +183,7 @@ export class SeamHttpAcsEncoders {
|
|
|
176
183
|
body?: AcsEncodersListParams,
|
|
177
184
|
): SeamHttpRequest<AcsEncodersListResponse, 'acs_encoders'> {
|
|
178
185
|
return new SeamHttpRequest(this, {
|
|
179
|
-
|
|
186
|
+
pathname: '/acs/encoders/list',
|
|
180
187
|
method: 'post',
|
|
181
188
|
body,
|
|
182
189
|
responseKey: 'acs_encoders',
|
|
@@ -188,7 +195,7 @@ export class SeamHttpAcsEncoders {
|
|
|
188
195
|
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
189
196
|
): SeamHttpRequest<AcsEncodersScanCredentialResponse, 'action_attempt'> {
|
|
190
197
|
return new SeamHttpRequest(this, {
|
|
191
|
-
|
|
198
|
+
pathname: '/acs/encoders/scan_credential',
|
|
192
199
|
method: 'post',
|
|
193
200
|
body,
|
|
194
201
|
responseKey: 'action_attempt',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -135,6 +136,12 @@ export class SeamHttpAcsEntrances {
|
|
|
135
136
|
return new SeamHttpAcsEntrances(constructorOptions)
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
async updateClientSessionToken(
|
|
139
146
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
140
147
|
): Promise<void> {
|
|
@@ -158,7 +165,7 @@ export class SeamHttpAcsEntrances {
|
|
|
158
165
|
body?: AcsEntrancesGetParams,
|
|
159
166
|
): SeamHttpRequest<AcsEntrancesGetResponse, 'acs_entrance'> {
|
|
160
167
|
return new SeamHttpRequest(this, {
|
|
161
|
-
|
|
168
|
+
pathname: '/acs/entrances/get',
|
|
162
169
|
method: 'post',
|
|
163
170
|
body,
|
|
164
171
|
responseKey: 'acs_entrance',
|
|
@@ -169,7 +176,7 @@ export class SeamHttpAcsEntrances {
|
|
|
169
176
|
body?: AcsEntrancesGrantAccessBody,
|
|
170
177
|
): SeamHttpRequest<void, undefined> {
|
|
171
178
|
return new SeamHttpRequest(this, {
|
|
172
|
-
|
|
179
|
+
pathname: '/acs/entrances/grant_access',
|
|
173
180
|
method: 'post',
|
|
174
181
|
body,
|
|
175
182
|
responseKey: undefined,
|
|
@@ -180,7 +187,7 @@ export class SeamHttpAcsEntrances {
|
|
|
180
187
|
body?: AcsEntrancesListParams,
|
|
181
188
|
): SeamHttpRequest<AcsEntrancesListResponse, 'acs_entrances'> {
|
|
182
189
|
return new SeamHttpRequest(this, {
|
|
183
|
-
|
|
190
|
+
pathname: '/acs/entrances/list',
|
|
184
191
|
method: 'post',
|
|
185
192
|
body,
|
|
186
193
|
responseKey: 'acs_entrances',
|
|
@@ -194,7 +201,7 @@ export class SeamHttpAcsEntrances {
|
|
|
194
201
|
'acs_credentials'
|
|
195
202
|
> {
|
|
196
203
|
return new SeamHttpRequest(this, {
|
|
197
|
-
|
|
204
|
+
pathname: '/acs/entrances/list_credentials_with_access',
|
|
198
205
|
method: 'post',
|
|
199
206
|
body,
|
|
200
207
|
responseKey: 'acs_credentials',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -135,6 +136,12 @@ export class SeamHttpAcsSystems {
|
|
|
135
136
|
return new SeamHttpAcsSystems(constructorOptions)
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
async updateClientSessionToken(
|
|
139
146
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
140
147
|
): Promise<void> {
|
|
@@ -158,7 +165,7 @@ export class SeamHttpAcsSystems {
|
|
|
158
165
|
body?: AcsSystemsGetParams,
|
|
159
166
|
): SeamHttpRequest<AcsSystemsGetResponse, 'acs_system'> {
|
|
160
167
|
return new SeamHttpRequest(this, {
|
|
161
|
-
|
|
168
|
+
pathname: '/acs/systems/get',
|
|
162
169
|
method: 'post',
|
|
163
170
|
body,
|
|
164
171
|
responseKey: 'acs_system',
|
|
@@ -169,7 +176,7 @@ export class SeamHttpAcsSystems {
|
|
|
169
176
|
body?: AcsSystemsListParams,
|
|
170
177
|
): SeamHttpRequest<AcsSystemsListResponse, 'acs_systems'> {
|
|
171
178
|
return new SeamHttpRequest(this, {
|
|
172
|
-
|
|
179
|
+
pathname: '/acs/systems/list',
|
|
173
180
|
method: 'post',
|
|
174
181
|
body,
|
|
175
182
|
responseKey: 'acs_systems',
|
|
@@ -183,7 +190,7 @@ export class SeamHttpAcsSystems {
|
|
|
183
190
|
'acs_systems'
|
|
184
191
|
> {
|
|
185
192
|
return new SeamHttpRequest(this, {
|
|
186
|
-
|
|
193
|
+
pathname: '/acs/systems/list_compatible_credential_manager_acs_systems',
|
|
187
194
|
method: 'post',
|
|
188
195
|
body,
|
|
189
196
|
responseKey: 'acs_systems',
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
parseOptions,
|
|
32
32
|
} from 'lib/seam/connect/parse-options.js'
|
|
33
33
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
34
35
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
36
|
|
|
36
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
@@ -135,6 +136,12 @@ export class SeamHttpAcsUsersUnmanaged {
|
|
|
135
136
|
return new SeamHttpAcsUsersUnmanaged(constructorOptions)
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
async updateClientSessionToken(
|
|
139
146
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
140
147
|
): Promise<void> {
|
|
@@ -158,7 +165,7 @@ export class SeamHttpAcsUsersUnmanaged {
|
|
|
158
165
|
body?: AcsUsersUnmanagedGetParams,
|
|
159
166
|
): SeamHttpRequest<AcsUsersUnmanagedGetResponse, 'acs_user'> {
|
|
160
167
|
return new SeamHttpRequest(this, {
|
|
161
|
-
|
|
168
|
+
pathname: '/acs/users/unmanaged/get',
|
|
162
169
|
method: 'post',
|
|
163
170
|
body,
|
|
164
171
|
responseKey: 'acs_user',
|
|
@@ -169,7 +176,7 @@ export class SeamHttpAcsUsersUnmanaged {
|
|
|
169
176
|
body?: AcsUsersUnmanagedListParams,
|
|
170
177
|
): SeamHttpRequest<AcsUsersUnmanagedListResponse, 'acs_users'> {
|
|
171
178
|
return new SeamHttpRequest(this, {
|
|
172
|
-
|
|
179
|
+
pathname: '/acs/users/unmanaged/list',
|
|
173
180
|
method: 'post',
|
|
174
181
|
body,
|
|
175
182
|
responseKey: 'acs_users',
|