@seamapi/http 1.24.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 +391 -171
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +74 -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 +2 -0
- package/lib/seam/connect/routes/phones.js +7 -3
- 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 +2 -2
- 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 +10 -3
- 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 { 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',
|
|
@@ -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 { SeamHttpAcsUsersUnmanaged } from './acs-users-unmanaged.js'
|
|
@@ -136,6 +137,12 @@ export class SeamHttpAcsUsers {
|
|
|
136
137
|
return new SeamHttpAcsUsers(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> {
|
|
@@ -163,7 +170,7 @@ export class SeamHttpAcsUsers {
|
|
|
163
170
|
body?: AcsUsersAddToAccessGroupBody,
|
|
164
171
|
): SeamHttpRequest<void, undefined> {
|
|
165
172
|
return new SeamHttpRequest(this, {
|
|
166
|
-
|
|
173
|
+
pathname: '/acs/users/add_to_access_group',
|
|
167
174
|
method: 'post',
|
|
168
175
|
body,
|
|
169
176
|
responseKey: undefined,
|
|
@@ -174,7 +181,7 @@ export class SeamHttpAcsUsers {
|
|
|
174
181
|
body?: AcsUsersCreateBody,
|
|
175
182
|
): SeamHttpRequest<AcsUsersCreateResponse, 'acs_user'> {
|
|
176
183
|
return new SeamHttpRequest(this, {
|
|
177
|
-
|
|
184
|
+
pathname: '/acs/users/create',
|
|
178
185
|
method: 'post',
|
|
179
186
|
body,
|
|
180
187
|
responseKey: 'acs_user',
|
|
@@ -183,7 +190,7 @@ export class SeamHttpAcsUsers {
|
|
|
183
190
|
|
|
184
191
|
delete(body?: AcsUsersDeleteParams): SeamHttpRequest<void, undefined> {
|
|
185
192
|
return new SeamHttpRequest(this, {
|
|
186
|
-
|
|
193
|
+
pathname: '/acs/users/delete',
|
|
187
194
|
method: 'post',
|
|
188
195
|
body,
|
|
189
196
|
responseKey: undefined,
|
|
@@ -194,7 +201,7 @@ export class SeamHttpAcsUsers {
|
|
|
194
201
|
body?: AcsUsersGetParams,
|
|
195
202
|
): SeamHttpRequest<AcsUsersGetResponse, 'acs_user'> {
|
|
196
203
|
return new SeamHttpRequest(this, {
|
|
197
|
-
|
|
204
|
+
pathname: '/acs/users/get',
|
|
198
205
|
method: 'post',
|
|
199
206
|
body,
|
|
200
207
|
responseKey: 'acs_user',
|
|
@@ -205,7 +212,7 @@ export class SeamHttpAcsUsers {
|
|
|
205
212
|
body?: AcsUsersListParams,
|
|
206
213
|
): SeamHttpRequest<AcsUsersListResponse, 'acs_users'> {
|
|
207
214
|
return new SeamHttpRequest(this, {
|
|
208
|
-
|
|
215
|
+
pathname: '/acs/users/list',
|
|
209
216
|
method: 'post',
|
|
210
217
|
body,
|
|
211
218
|
responseKey: 'acs_users',
|
|
@@ -216,7 +223,7 @@ export class SeamHttpAcsUsers {
|
|
|
216
223
|
body?: AcsUsersListAccessibleEntrancesParams,
|
|
217
224
|
): SeamHttpRequest<AcsUsersListAccessibleEntrancesResponse, 'acs_entrances'> {
|
|
218
225
|
return new SeamHttpRequest(this, {
|
|
219
|
-
|
|
226
|
+
pathname: '/acs/users/list_accessible_entrances',
|
|
220
227
|
method: 'post',
|
|
221
228
|
body,
|
|
222
229
|
responseKey: 'acs_entrances',
|
|
@@ -227,7 +234,7 @@ export class SeamHttpAcsUsers {
|
|
|
227
234
|
body?: AcsUsersRemoveFromAccessGroupParams,
|
|
228
235
|
): SeamHttpRequest<void, undefined> {
|
|
229
236
|
return new SeamHttpRequest(this, {
|
|
230
|
-
|
|
237
|
+
pathname: '/acs/users/remove_from_access_group',
|
|
231
238
|
method: 'post',
|
|
232
239
|
body,
|
|
233
240
|
responseKey: undefined,
|
|
@@ -238,7 +245,7 @@ export class SeamHttpAcsUsers {
|
|
|
238
245
|
body?: AcsUsersRevokeAccessToAllEntrancesParams,
|
|
239
246
|
): SeamHttpRequest<void, undefined> {
|
|
240
247
|
return new SeamHttpRequest(this, {
|
|
241
|
-
|
|
248
|
+
pathname: '/acs/users/revoke_access_to_all_entrances',
|
|
242
249
|
method: 'post',
|
|
243
250
|
body,
|
|
244
251
|
responseKey: undefined,
|
|
@@ -247,7 +254,7 @@ export class SeamHttpAcsUsers {
|
|
|
247
254
|
|
|
248
255
|
suspend(body?: AcsUsersSuspendBody): SeamHttpRequest<void, undefined> {
|
|
249
256
|
return new SeamHttpRequest(this, {
|
|
250
|
-
|
|
257
|
+
pathname: '/acs/users/suspend',
|
|
251
258
|
method: 'post',
|
|
252
259
|
body,
|
|
253
260
|
responseKey: undefined,
|
|
@@ -256,7 +263,7 @@ export class SeamHttpAcsUsers {
|
|
|
256
263
|
|
|
257
264
|
unsuspend(body?: AcsUsersUnsuspendBody): SeamHttpRequest<void, undefined> {
|
|
258
265
|
return new SeamHttpRequest(this, {
|
|
259
|
-
|
|
266
|
+
pathname: '/acs/users/unsuspend',
|
|
260
267
|
method: 'post',
|
|
261
268
|
body,
|
|
262
269
|
responseKey: undefined,
|
|
@@ -265,7 +272,7 @@ export class SeamHttpAcsUsers {
|
|
|
265
272
|
|
|
266
273
|
update(body?: AcsUsersUpdateBody): SeamHttpRequest<void, undefined> {
|
|
267
274
|
return new SeamHttpRequest(this, {
|
|
268
|
-
|
|
275
|
+
pathname: '/acs/users/update',
|
|
269
276
|
method: 'post',
|
|
270
277
|
body,
|
|
271
278
|
responseKey: undefined,
|
|
@@ -28,6 +28,8 @@ import {
|
|
|
28
28
|
limitToSeamHttpRequestOptions,
|
|
29
29
|
parseOptions,
|
|
30
30
|
} from 'lib/seam/connect/parse-options.js'
|
|
31
|
+
import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
32
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
31
33
|
|
|
32
34
|
import { SeamHttpAcsAccessGroups } from './acs-access-groups.js'
|
|
33
35
|
import { SeamHttpAcsCredentialPools } from './acs-credential-pools.js'
|
|
@@ -139,6 +141,12 @@ export class SeamHttpAcs {
|
|
|
139
141
|
return new SeamHttpAcs(constructorOptions)
|
|
140
142
|
}
|
|
141
143
|
|
|
144
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
145
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
146
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
147
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
148
|
+
}
|
|
149
|
+
|
|
142
150
|
async updateClientSessionToken(
|
|
143
151
|
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
144
152
|
): Promise<void> {
|