@seamapi/http 1.24.0 → 1.25.1

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 (182) hide show
  1. package/README.md +87 -0
  2. package/dist/connect.cjs +391 -171
  3. package/dist/connect.cjs.map +1 -1
  4. package/dist/connect.d.cts +74 -4
  5. package/dist/index.cjs +2 -2
  6. package/dist/index.cjs.map +1 -1
  7. package/lib/seam/connect/index.d.ts +2 -0
  8. package/lib/seam/connect/index.js +2 -0
  9. package/lib/seam/connect/index.js.map +1 -1
  10. package/lib/seam/connect/routes/access-codes-simulate.d.ts +2 -0
  11. package/lib/seam/connect/routes/access-codes-simulate.js +5 -1
  12. package/lib/seam/connect/routes/access-codes-simulate.js.map +1 -1
  13. package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +2 -0
  14. package/lib/seam/connect/routes/access-codes-unmanaged.js +9 -5
  15. package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
  16. package/lib/seam/connect/routes/access-codes.d.ts +2 -0
  17. package/lib/seam/connect/routes/access-codes.js +13 -9
  18. package/lib/seam/connect/routes/access-codes.js.map +1 -1
  19. package/lib/seam/connect/routes/acs-access-groups-unmanaged.d.ts +2 -0
  20. package/lib/seam/connect/routes/acs-access-groups-unmanaged.js +6 -2
  21. package/lib/seam/connect/routes/acs-access-groups-unmanaged.js.map +1 -1
  22. package/lib/seam/connect/routes/acs-access-groups.d.ts +2 -0
  23. package/lib/seam/connect/routes/acs-access-groups.js +10 -6
  24. package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
  25. package/lib/seam/connect/routes/acs-credential-pools.d.ts +2 -0
  26. package/lib/seam/connect/routes/acs-credential-pools.js +5 -1
  27. package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -1
  28. package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +2 -0
  29. package/lib/seam/connect/routes/acs-credential-provisioning-automations.js +5 -1
  30. package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -1
  31. package/lib/seam/connect/routes/acs-credentials-unmanaged.d.ts +2 -0
  32. package/lib/seam/connect/routes/acs-credentials-unmanaged.js +6 -2
  33. package/lib/seam/connect/routes/acs-credentials-unmanaged.js.map +1 -1
  34. package/lib/seam/connect/routes/acs-credentials.d.ts +2 -0
  35. package/lib/seam/connect/routes/acs-credentials.js +13 -9
  36. package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
  37. package/lib/seam/connect/routes/acs-encoders-simulate.d.ts +2 -0
  38. package/lib/seam/connect/routes/acs-encoders-simulate.js +8 -4
  39. package/lib/seam/connect/routes/acs-encoders-simulate.js.map +1 -1
  40. package/lib/seam/connect/routes/acs-encoders.d.ts +2 -0
  41. package/lib/seam/connect/routes/acs-encoders.js +7 -3
  42. package/lib/seam/connect/routes/acs-encoders.js.map +1 -1
  43. package/lib/seam/connect/routes/acs-entrances.d.ts +2 -0
  44. package/lib/seam/connect/routes/acs-entrances.js +8 -4
  45. package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
  46. package/lib/seam/connect/routes/acs-systems.d.ts +2 -0
  47. package/lib/seam/connect/routes/acs-systems.js +7 -3
  48. package/lib/seam/connect/routes/acs-systems.js.map +1 -1
  49. package/lib/seam/connect/routes/acs-users-unmanaged.d.ts +2 -0
  50. package/lib/seam/connect/routes/acs-users-unmanaged.js +6 -2
  51. package/lib/seam/connect/routes/acs-users-unmanaged.js.map +1 -1
  52. package/lib/seam/connect/routes/acs-users.d.ts +2 -0
  53. package/lib/seam/connect/routes/acs-users.js +15 -11
  54. package/lib/seam/connect/routes/acs-users.js.map +1 -1
  55. package/lib/seam/connect/routes/acs.d.ts +3 -0
  56. package/lib/seam/connect/routes/acs.js +4 -0
  57. package/lib/seam/connect/routes/acs.js.map +1 -1
  58. package/lib/seam/connect/routes/action-attempts.d.ts +2 -0
  59. package/lib/seam/connect/routes/action-attempts.js +6 -2
  60. package/lib/seam/connect/routes/action-attempts.js.map +1 -1
  61. package/lib/seam/connect/routes/bridges.d.ts +2 -0
  62. package/lib/seam/connect/routes/bridges.js +6 -2
  63. package/lib/seam/connect/routes/bridges.js.map +1 -1
  64. package/lib/seam/connect/routes/client-sessions.d.ts +2 -0
  65. package/lib/seam/connect/routes/client-sessions.js +11 -7
  66. package/lib/seam/connect/routes/client-sessions.js.map +1 -1
  67. package/lib/seam/connect/routes/connect-webviews.d.ts +2 -0
  68. package/lib/seam/connect/routes/connect-webviews.js +8 -4
  69. package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
  70. package/lib/seam/connect/routes/connected-accounts.d.ts +2 -0
  71. package/lib/seam/connect/routes/connected-accounts.js +8 -4
  72. package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
  73. package/lib/seam/connect/routes/devices-simulate.d.ts +2 -0
  74. package/lib/seam/connect/routes/devices-simulate.js +7 -3
  75. package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
  76. package/lib/seam/connect/routes/devices-unmanaged.d.ts +2 -0
  77. package/lib/seam/connect/routes/devices-unmanaged.js +7 -3
  78. package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
  79. package/lib/seam/connect/routes/devices.d.ts +2 -0
  80. package/lib/seam/connect/routes/devices.js +9 -5
  81. package/lib/seam/connect/routes/devices.js.map +1 -1
  82. package/lib/seam/connect/routes/events.d.ts +2 -0
  83. package/lib/seam/connect/routes/events.js +6 -2
  84. package/lib/seam/connect/routes/events.js.map +1 -1
  85. package/lib/seam/connect/routes/locks.d.ts +2 -0
  86. package/lib/seam/connect/routes/locks.js +8 -4
  87. package/lib/seam/connect/routes/locks.js.map +1 -1
  88. package/lib/seam/connect/routes/networks.d.ts +2 -0
  89. package/lib/seam/connect/routes/networks.js +6 -2
  90. package/lib/seam/connect/routes/networks.js.map +1 -1
  91. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +2 -0
  92. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js +9 -5
  93. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
  94. package/lib/seam/connect/routes/noise-sensors-simulate.d.ts +2 -0
  95. package/lib/seam/connect/routes/noise-sensors-simulate.js +5 -1
  96. package/lib/seam/connect/routes/noise-sensors-simulate.js.map +1 -1
  97. package/lib/seam/connect/routes/noise-sensors.d.ts +2 -0
  98. package/lib/seam/connect/routes/noise-sensors.js +5 -1
  99. package/lib/seam/connect/routes/noise-sensors.js.map +1 -1
  100. package/lib/seam/connect/routes/phones-simulate.d.ts +2 -0
  101. package/lib/seam/connect/routes/phones-simulate.js +5 -1
  102. package/lib/seam/connect/routes/phones-simulate.js.map +1 -1
  103. package/lib/seam/connect/routes/phones.d.ts +2 -0
  104. package/lib/seam/connect/routes/phones.js +7 -3
  105. package/lib/seam/connect/routes/phones.js.map +1 -1
  106. package/lib/seam/connect/routes/thermostats-schedules.d.ts +2 -0
  107. package/lib/seam/connect/routes/thermostats-schedules.js +9 -5
  108. package/lib/seam/connect/routes/thermostats-schedules.js.map +1 -1
  109. package/lib/seam/connect/routes/thermostats-simulate.d.ts +2 -0
  110. package/lib/seam/connect/routes/thermostats-simulate.js +6 -2
  111. package/lib/seam/connect/routes/thermostats-simulate.js.map +1 -1
  112. package/lib/seam/connect/routes/thermostats.d.ts +2 -0
  113. package/lib/seam/connect/routes/thermostats.js +18 -14
  114. package/lib/seam/connect/routes/thermostats.js.map +1 -1
  115. package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +2 -0
  116. package/lib/seam/connect/routes/user-identities-enrollment-automations.js +8 -4
  117. package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
  118. package/lib/seam/connect/routes/user-identities.d.ts +2 -0
  119. package/lib/seam/connect/routes/user-identities.js +16 -12
  120. package/lib/seam/connect/routes/user-identities.js.map +1 -1
  121. package/lib/seam/connect/routes/webhooks.d.ts +2 -0
  122. package/lib/seam/connect/routes/webhooks.js +9 -5
  123. package/lib/seam/connect/routes/webhooks.js.map +1 -1
  124. package/lib/seam/connect/routes/workspaces.d.ts +2 -0
  125. package/lib/seam/connect/routes/workspaces.js +8 -4
  126. package/lib/seam/connect/routes/workspaces.js.map +1 -1
  127. package/lib/seam/connect/seam-http-request.d.ts +6 -3
  128. package/lib/seam/connect/seam-http-request.js +25 -14
  129. package/lib/seam/connect/seam-http-request.js.map +1 -1
  130. package/lib/seam/connect/seam-http.d.ts +3 -0
  131. package/lib/seam/connect/seam-http.js +4 -0
  132. package/lib/seam/connect/seam-http.js.map +1 -1
  133. package/lib/seam/connect/seam-paginator.d.ts +30 -0
  134. package/lib/seam/connect/seam-paginator.js +103 -0
  135. package/lib/seam/connect/seam-paginator.js.map +1 -0
  136. package/lib/version.d.ts +1 -1
  137. package/lib/version.js +1 -1
  138. package/package.json +3 -3
  139. package/src/lib/seam/connect/index.ts +2 -0
  140. package/src/lib/seam/connect/routes/access-codes-simulate.ts +8 -1
  141. package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +12 -5
  142. package/src/lib/seam/connect/routes/access-codes.ts +16 -9
  143. package/src/lib/seam/connect/routes/acs-access-groups-unmanaged.ts +9 -2
  144. package/src/lib/seam/connect/routes/acs-access-groups.ts +13 -6
  145. package/src/lib/seam/connect/routes/acs-credential-pools.ts +8 -1
  146. package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +8 -1
  147. package/src/lib/seam/connect/routes/acs-credentials-unmanaged.ts +9 -2
  148. package/src/lib/seam/connect/routes/acs-credentials.ts +16 -9
  149. package/src/lib/seam/connect/routes/acs-encoders-simulate.ts +11 -4
  150. package/src/lib/seam/connect/routes/acs-encoders.ts +10 -3
  151. package/src/lib/seam/connect/routes/acs-entrances.ts +11 -4
  152. package/src/lib/seam/connect/routes/acs-systems.ts +10 -3
  153. package/src/lib/seam/connect/routes/acs-users-unmanaged.ts +9 -2
  154. package/src/lib/seam/connect/routes/acs-users.ts +18 -11
  155. package/src/lib/seam/connect/routes/acs.ts +8 -0
  156. package/src/lib/seam/connect/routes/action-attempts.ts +9 -2
  157. package/src/lib/seam/connect/routes/bridges.ts +9 -2
  158. package/src/lib/seam/connect/routes/client-sessions.ts +14 -7
  159. package/src/lib/seam/connect/routes/connect-webviews.ts +11 -4
  160. package/src/lib/seam/connect/routes/connected-accounts.ts +11 -4
  161. package/src/lib/seam/connect/routes/devices-simulate.ts +10 -3
  162. package/src/lib/seam/connect/routes/devices-unmanaged.ts +10 -3
  163. package/src/lib/seam/connect/routes/devices.ts +12 -5
  164. package/src/lib/seam/connect/routes/events.ts +9 -2
  165. package/src/lib/seam/connect/routes/locks.ts +11 -4
  166. package/src/lib/seam/connect/routes/networks.ts +9 -2
  167. package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +12 -5
  168. package/src/lib/seam/connect/routes/noise-sensors-simulate.ts +8 -1
  169. package/src/lib/seam/connect/routes/noise-sensors.ts +8 -1
  170. package/src/lib/seam/connect/routes/phones-simulate.ts +8 -1
  171. package/src/lib/seam/connect/routes/phones.ts +10 -3
  172. package/src/lib/seam/connect/routes/thermostats-schedules.ts +12 -5
  173. package/src/lib/seam/connect/routes/thermostats-simulate.ts +9 -2
  174. package/src/lib/seam/connect/routes/thermostats.ts +21 -14
  175. package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +11 -4
  176. package/src/lib/seam/connect/routes/user-identities.ts +19 -12
  177. package/src/lib/seam/connect/routes/webhooks.ts +12 -5
  178. package/src/lib/seam/connect/routes/workspaces.ts +11 -4
  179. package/src/lib/seam/connect/seam-http-request.ts +45 -23
  180. package/src/lib/seam/connect/seam-http.ts +8 -0
  181. package/src/lib/seam/connect/seam-paginator.ts +155 -0
  182. 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
- path: '/acs/access_groups/add_user',
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
- path: '/acs/access_groups/get',
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
- path: '/acs/access_groups/list',
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
- path: '/acs/access_groups/list_accessible_entrances',
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
- path: '/acs/access_groups/list_users',
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
- path: '/acs/access_groups/remove_user',
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
- path: '/acs/credential_pools/list',
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
- path: '/acs/credential_provisioning_automations/launch',
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
- path: '/acs/credentials/unmanaged/get',
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
- path: '/acs/credentials/unmanaged/list',
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
- path: '/acs/credentials/assign',
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
- path: '/acs/credentials/create',
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
- path: '/acs/credentials/create_offline_code',
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
- path: '/acs/credentials/delete',
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
- path: '/acs/credentials/get',
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
- path: '/acs/credentials/list',
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
- path: '/acs/credentials/list_accessible_entrances',
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
- path: '/acs/credentials/unassign',
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
- path: '/acs/credentials/update',
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
- path: '/acs/encoders/simulate/next_credential_encode_will_fail',
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
- path: '/acs/encoders/simulate/next_credential_encode_will_succeed',
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
- path: '/acs/encoders/simulate/next_credential_scan_will_fail',
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
- path: '/acs/encoders/simulate/next_credential_scan_will_succeed',
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
- path: '/acs/encoders/encode_credential',
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
- path: '/acs/encoders/list',
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
- path: '/acs/encoders/scan_credential',
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
- path: '/acs/entrances/get',
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
- path: '/acs/entrances/grant_access',
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
- path: '/acs/entrances/list',
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
- path: '/acs/entrances/list_credentials_with_access',
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
- path: '/acs/systems/get',
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
- path: '/acs/systems/list',
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
- path: '/acs/systems/list_compatible_credential_manager_acs_systems',
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
- path: '/acs/users/unmanaged/get',
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
- path: '/acs/users/unmanaged/list',
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
- path: '/acs/users/add_to_access_group',
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
- path: '/acs/users/create',
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
- path: '/acs/users/delete',
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
- path: '/acs/users/get',
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
- path: '/acs/users/list',
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
- path: '/acs/users/list_accessible_entrances',
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
- path: '/acs/users/remove_from_access_group',
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
- path: '/acs/users/revoke_access_to_all_entrances',
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
- path: '/acs/users/suspend',
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
- path: '/acs/users/unsuspend',
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
- path: '/acs/users/update',
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> {