@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
package/dist/connect.cjs CHANGED
@@ -18,6 +18,7 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
18
18
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
19
19
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
20
20
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
21
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
21
22
 
22
23
  // src/lib/lts-version.ts
23
24
  var seamApiLtsVersion = "1.0.0";
@@ -649,46 +650,55 @@ var SeamHttpRequest = class {
649
650
  }
650
651
  get url() {
651
652
  const { client } = __privateGet(this, _parent);
652
- const { params } = __privateGet(this, _config);
653
653
  const serializer = typeof client.defaults.paramsSerializer === "function" ? client.defaults.paramsSerializer : urlSearchParamsSerializer.serializeUrlSearchParams;
654
654
  const origin = getUrlPrefix(client.defaults.baseURL ?? "");
655
- const pathname = __privateGet(this, _config).path.startsWith("/") ? __privateGet(this, _config).path : `/${__privateGet(this, _config).path}`;
656
- const path = params == null ? pathname : `${pathname}?${serializer(params)}`;
655
+ const path = this.params == null ? this.pathname : `${this.pathname}?${serializer(this.params)}`;
657
656
  return new URL(`${origin}${path}`);
658
657
  }
658
+ get pathname() {
659
+ return __privateGet(this, _config).pathname.startsWith("/") ? __privateGet(this, _config).pathname : `/${__privateGet(this, _config).pathname}`;
660
+ }
659
661
  get method() {
660
662
  return __privateGet(this, _config).method;
661
663
  }
664
+ get params() {
665
+ return __privateGet(this, _config).params;
666
+ }
662
667
  get body() {
663
668
  return __privateGet(this, _config).body;
664
669
  }
665
670
  async execute() {
666
- const { client } = __privateGet(this, _parent);
667
- const response = await client.request({
668
- url: __privateGet(this, _config).path,
669
- method: __privateGet(this, _config).method,
670
- data: __privateGet(this, _config).body,
671
- params: __privateGet(this, _config).params
672
- });
671
+ const response = await this.fetchResponse();
673
672
  if (this.responseKey === void 0) {
674
673
  return void 0;
675
674
  }
676
- const data = response.data[this.responseKey];
675
+ const data = response[this.responseKey];
677
676
  if (this.responseKey === "action_attempt") {
678
677
  const waitForActionAttempt = __privateGet(this, _config).options?.waitForActionAttempt ?? __privateGet(this, _parent).defaults.waitForActionAttempt;
679
678
  if (waitForActionAttempt !== false) {
680
- return await resolveActionAttempt(
679
+ const actionAttempt = await resolveActionAttempt(
681
680
  data,
682
- SeamHttpActionAttempts.fromClient(client, {
681
+ SeamHttpActionAttempts.fromClient(__privateGet(this, _parent).client, {
683
682
  ...__privateGet(this, _parent).defaults,
684
683
  waitForActionAttempt: false
685
684
  }),
686
685
  typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
687
686
  );
687
+ return actionAttempt;
688
688
  }
689
689
  }
690
690
  return data;
691
691
  }
692
+ async fetchResponse() {
693
+ const { client } = __privateGet(this, _parent);
694
+ const response = await client.request({
695
+ url: this.pathname,
696
+ method: this.method,
697
+ data: this.body,
698
+ params: this.params
699
+ });
700
+ return response.data;
701
+ }
692
702
  async then(onfulfilled, onrejected) {
693
703
  return await this.execute().then(onfulfilled, onrejected);
694
704
  }
@@ -723,6 +733,95 @@ var canParseUrl = (input) => {
723
733
  }
724
734
  };
725
735
 
736
+ // src/lib/seam/connect/seam-paginator.ts
737
+ var _request, _parent2, _SeamPaginator_instances, fetch_fn;
738
+ var SeamPaginator = class {
739
+ constructor(parent, request) {
740
+ __privateAdd(this, _SeamPaginator_instances);
741
+ __privateAdd(this, _request);
742
+ __privateAdd(this, _parent2);
743
+ if (request.responseKey == null) {
744
+ throw new Error(
745
+ `The ${request.pathname} endpoint does not support pagination`
746
+ );
747
+ }
748
+ __privateSet(this, _parent2, parent);
749
+ __privateSet(this, _request, request);
750
+ }
751
+ async firstPage() {
752
+ return await __privateMethod(this, _SeamPaginator_instances, fetch_fn).call(this);
753
+ }
754
+ async nextPage(nextPageCursor) {
755
+ if (nextPageCursor == null) {
756
+ throw new Error("Cannot get the next page with a null nextPageCursor");
757
+ }
758
+ return await __privateMethod(this, _SeamPaginator_instances, fetch_fn).call(this, nextPageCursor);
759
+ }
760
+ async flattenToArray() {
761
+ const items = [];
762
+ let [current, pagination] = await this.firstPage();
763
+ items.push(...current);
764
+ while (pagination.hasNextPage) {
765
+ [current, pagination] = await this.nextPage(pagination.nextPageCursor);
766
+ items.push(...current);
767
+ }
768
+ return items;
769
+ }
770
+ async *flatten() {
771
+ let [current, pagination] = await this.firstPage();
772
+ for (const item of current) {
773
+ yield item;
774
+ }
775
+ while (pagination.hasNextPage) {
776
+ [current, pagination] = await this.nextPage(pagination.nextPageCursor);
777
+ for (const item of current) {
778
+ yield item;
779
+ }
780
+ }
781
+ }
782
+ async *[Symbol.asyncIterator]() {
783
+ let [current, pagination] = await this.firstPage();
784
+ yield current;
785
+ while (pagination.hasNextPage) {
786
+ [current, pagination] = await this.nextPage(pagination.nextPageCursor);
787
+ yield current;
788
+ }
789
+ }
790
+ };
791
+ _request = new WeakMap();
792
+ _parent2 = new WeakMap();
793
+ _SeamPaginator_instances = new WeakSet();
794
+ fetch_fn = async function(nextPageCursor) {
795
+ const responseKey = __privateGet(this, _request).responseKey;
796
+ if (responseKey == null) {
797
+ throw new Error("Cannot paginate a response without a responseKey");
798
+ }
799
+ const request = new SeamHttpRequest(__privateGet(this, _parent2), {
800
+ pathname: __privateGet(this, _request).pathname,
801
+ method: __privateGet(this, _request).method,
802
+ responseKey,
803
+ params: __privateGet(this, _request).params != null ? { ...__privateGet(this, _request).params, page_cursor: nextPageCursor } : void 0,
804
+ body: __privateGet(this, _request).body != null ? { ...__privateGet(this, _request).body, page_cursor: nextPageCursor } : void 0
805
+ });
806
+ const response = await request.fetchResponse();
807
+ const data = response[responseKey];
808
+ const paginationData = response != null && typeof response === "object" && "pagination" in response ? response.pagination : null;
809
+ const pagination = {
810
+ hasNextPage: paginationData?.has_next_page ?? false,
811
+ nextPageCursor: paginationData?.next_page_cursor ?? null,
812
+ nextPageUrl: paginationData?.next_page_url ?? null
813
+ };
814
+ if (!Array.isArray(data)) {
815
+ throw new Error(
816
+ `Expected an array response for ${String(responseKey)} but got ${String(typeof data)}`
817
+ );
818
+ }
819
+ return [
820
+ data,
821
+ pagination
822
+ ];
823
+ };
824
+
726
825
  // src/lib/seam/connect/routes/client-sessions.ts
727
826
  var SeamHttpClientSessions = class _SeamHttpClientSessions {
728
827
  constructor(apiKeyOrOptions = {}) {
@@ -784,6 +883,9 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
784
883
  }
785
884
  return new _SeamHttpClientSessions(constructorOptions);
786
885
  }
886
+ createPaginator(request) {
887
+ return new SeamPaginator(this, request);
888
+ }
787
889
  async updateClientSessionToken(clientSessionToken) {
788
890
  const { headers } = this.client.defaults;
789
891
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -802,7 +904,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
802
904
  }
803
905
  create(body) {
804
906
  return new SeamHttpRequest(this, {
805
- path: "/client_sessions/create",
907
+ pathname: "/client_sessions/create",
806
908
  method: "post",
807
909
  body,
808
910
  responseKey: "client_session"
@@ -810,7 +912,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
810
912
  }
811
913
  delete(body) {
812
914
  return new SeamHttpRequest(this, {
813
- path: "/client_sessions/delete",
915
+ pathname: "/client_sessions/delete",
814
916
  method: "post",
815
917
  body,
816
918
  responseKey: void 0
@@ -818,7 +920,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
818
920
  }
819
921
  get(body) {
820
922
  return new SeamHttpRequest(this, {
821
- path: "/client_sessions/get",
923
+ pathname: "/client_sessions/get",
822
924
  method: "post",
823
925
  body,
824
926
  responseKey: "client_session"
@@ -826,7 +928,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
826
928
  }
827
929
  getOrCreate(body) {
828
930
  return new SeamHttpRequest(this, {
829
- path: "/client_sessions/get_or_create",
931
+ pathname: "/client_sessions/get_or_create",
830
932
  method: "post",
831
933
  body,
832
934
  responseKey: "client_session"
@@ -834,7 +936,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
834
936
  }
835
937
  grantAccess(body) {
836
938
  return new SeamHttpRequest(this, {
837
- path: "/client_sessions/grant_access",
939
+ pathname: "/client_sessions/grant_access",
838
940
  method: "post",
839
941
  body,
840
942
  responseKey: void 0
@@ -842,7 +944,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
842
944
  }
843
945
  list(body) {
844
946
  return new SeamHttpRequest(this, {
845
- path: "/client_sessions/list",
947
+ pathname: "/client_sessions/list",
846
948
  method: "post",
847
949
  body,
848
950
  responseKey: "client_sessions"
@@ -850,7 +952,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
850
952
  }
851
953
  revoke(body) {
852
954
  return new SeamHttpRequest(this, {
853
- path: "/client_sessions/revoke",
955
+ pathname: "/client_sessions/revoke",
854
956
  method: "post",
855
957
  body,
856
958
  responseKey: void 0
@@ -919,6 +1021,9 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
919
1021
  }
920
1022
  return new _SeamHttpAccessCodesSimulate(constructorOptions);
921
1023
  }
1024
+ createPaginator(request) {
1025
+ return new SeamPaginator(this, request);
1026
+ }
922
1027
  async updateClientSessionToken(clientSessionToken) {
923
1028
  const { headers } = this.client.defaults;
924
1029
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -937,7 +1042,7 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
937
1042
  }
938
1043
  createUnmanagedAccessCode(body) {
939
1044
  return new SeamHttpRequest(this, {
940
- path: "/access_codes/simulate/create_unmanaged_access_code",
1045
+ pathname: "/access_codes/simulate/create_unmanaged_access_code",
941
1046
  method: "post",
942
1047
  body,
943
1048
  responseKey: "access_code"
@@ -1006,6 +1111,9 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1006
1111
  }
1007
1112
  return new _SeamHttpAccessCodesUnmanaged(constructorOptions);
1008
1113
  }
1114
+ createPaginator(request) {
1115
+ return new SeamPaginator(this, request);
1116
+ }
1009
1117
  async updateClientSessionToken(clientSessionToken) {
1010
1118
  const { headers } = this.client.defaults;
1011
1119
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1024,7 +1132,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1024
1132
  }
1025
1133
  convertToManaged(body) {
1026
1134
  return new SeamHttpRequest(this, {
1027
- path: "/access_codes/unmanaged/convert_to_managed",
1135
+ pathname: "/access_codes/unmanaged/convert_to_managed",
1028
1136
  method: "post",
1029
1137
  body,
1030
1138
  responseKey: void 0
@@ -1032,7 +1140,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1032
1140
  }
1033
1141
  delete(body) {
1034
1142
  return new SeamHttpRequest(this, {
1035
- path: "/access_codes/unmanaged/delete",
1143
+ pathname: "/access_codes/unmanaged/delete",
1036
1144
  method: "post",
1037
1145
  body,
1038
1146
  responseKey: void 0
@@ -1040,7 +1148,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1040
1148
  }
1041
1149
  get(body) {
1042
1150
  return new SeamHttpRequest(this, {
1043
- path: "/access_codes/unmanaged/get",
1151
+ pathname: "/access_codes/unmanaged/get",
1044
1152
  method: "post",
1045
1153
  body,
1046
1154
  responseKey: "access_code"
@@ -1048,7 +1156,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1048
1156
  }
1049
1157
  list(body) {
1050
1158
  return new SeamHttpRequest(this, {
1051
- path: "/access_codes/unmanaged/list",
1159
+ pathname: "/access_codes/unmanaged/list",
1052
1160
  method: "post",
1053
1161
  body,
1054
1162
  responseKey: "access_codes"
@@ -1056,7 +1164,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1056
1164
  }
1057
1165
  update(body) {
1058
1166
  return new SeamHttpRequest(this, {
1059
- path: "/access_codes/unmanaged/update",
1167
+ pathname: "/access_codes/unmanaged/update",
1060
1168
  method: "post",
1061
1169
  body,
1062
1170
  responseKey: void 0
@@ -1125,6 +1233,9 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1125
1233
  }
1126
1234
  return new _SeamHttpAccessCodes(constructorOptions);
1127
1235
  }
1236
+ createPaginator(request) {
1237
+ return new SeamPaginator(this, request);
1238
+ }
1128
1239
  async updateClientSessionToken(clientSessionToken) {
1129
1240
  const { headers } = this.client.defaults;
1130
1241
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1149,7 +1260,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1149
1260
  }
1150
1261
  create(body) {
1151
1262
  return new SeamHttpRequest(this, {
1152
- path: "/access_codes/create",
1263
+ pathname: "/access_codes/create",
1153
1264
  method: "post",
1154
1265
  body,
1155
1266
  responseKey: "access_code"
@@ -1157,7 +1268,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1157
1268
  }
1158
1269
  createMultiple(body) {
1159
1270
  return new SeamHttpRequest(this, {
1160
- path: "/access_codes/create_multiple",
1271
+ pathname: "/access_codes/create_multiple",
1161
1272
  method: "post",
1162
1273
  body,
1163
1274
  responseKey: "access_codes"
@@ -1165,7 +1276,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1165
1276
  }
1166
1277
  delete(body) {
1167
1278
  return new SeamHttpRequest(this, {
1168
- path: "/access_codes/delete",
1279
+ pathname: "/access_codes/delete",
1169
1280
  method: "post",
1170
1281
  body,
1171
1282
  responseKey: void 0
@@ -1173,7 +1284,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1173
1284
  }
1174
1285
  generateCode(body) {
1175
1286
  return new SeamHttpRequest(this, {
1176
- path: "/access_codes/generate_code",
1287
+ pathname: "/access_codes/generate_code",
1177
1288
  method: "post",
1178
1289
  body,
1179
1290
  responseKey: "generated_code"
@@ -1181,7 +1292,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1181
1292
  }
1182
1293
  get(body) {
1183
1294
  return new SeamHttpRequest(this, {
1184
- path: "/access_codes/get",
1295
+ pathname: "/access_codes/get",
1185
1296
  method: "post",
1186
1297
  body,
1187
1298
  responseKey: "access_code"
@@ -1189,7 +1300,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1189
1300
  }
1190
1301
  list(body) {
1191
1302
  return new SeamHttpRequest(this, {
1192
- path: "/access_codes/list",
1303
+ pathname: "/access_codes/list",
1193
1304
  method: "post",
1194
1305
  body,
1195
1306
  responseKey: "access_codes"
@@ -1197,7 +1308,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1197
1308
  }
1198
1309
  pullBackupAccessCode(body) {
1199
1310
  return new SeamHttpRequest(this, {
1200
- path: "/access_codes/pull_backup_access_code",
1311
+ pathname: "/access_codes/pull_backup_access_code",
1201
1312
  method: "post",
1202
1313
  body,
1203
1314
  responseKey: "access_code"
@@ -1205,7 +1316,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1205
1316
  }
1206
1317
  update(body) {
1207
1318
  return new SeamHttpRequest(this, {
1208
- path: "/access_codes/update",
1319
+ pathname: "/access_codes/update",
1209
1320
  method: "post",
1210
1321
  body,
1211
1322
  responseKey: void 0
@@ -1213,7 +1324,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1213
1324
  }
1214
1325
  updateMultiple(body) {
1215
1326
  return new SeamHttpRequest(this, {
1216
- path: "/access_codes/update_multiple",
1327
+ pathname: "/access_codes/update_multiple",
1217
1328
  method: "post",
1218
1329
  body,
1219
1330
  responseKey: void 0
@@ -1285,6 +1396,9 @@ var SeamHttpAcsAccessGroupsUnmanaged = class _SeamHttpAcsAccessGroupsUnmanaged {
1285
1396
  }
1286
1397
  return new _SeamHttpAcsAccessGroupsUnmanaged(constructorOptions);
1287
1398
  }
1399
+ createPaginator(request) {
1400
+ return new SeamPaginator(this, request);
1401
+ }
1288
1402
  async updateClientSessionToken(clientSessionToken) {
1289
1403
  const { headers } = this.client.defaults;
1290
1404
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1303,7 +1417,7 @@ var SeamHttpAcsAccessGroupsUnmanaged = class _SeamHttpAcsAccessGroupsUnmanaged {
1303
1417
  }
1304
1418
  get(body) {
1305
1419
  return new SeamHttpRequest(this, {
1306
- path: "/acs/access_groups/unmanaged/get",
1420
+ pathname: "/acs/access_groups/unmanaged/get",
1307
1421
  method: "post",
1308
1422
  body,
1309
1423
  responseKey: "acs_access_group"
@@ -1311,7 +1425,7 @@ var SeamHttpAcsAccessGroupsUnmanaged = class _SeamHttpAcsAccessGroupsUnmanaged {
1311
1425
  }
1312
1426
  list(body) {
1313
1427
  return new SeamHttpRequest(this, {
1314
- path: "/acs/access_groups/unmanaged/list",
1428
+ pathname: "/acs/access_groups/unmanaged/list",
1315
1429
  method: "post",
1316
1430
  body,
1317
1431
  responseKey: "acs_access_groups"
@@ -1380,6 +1494,9 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1380
1494
  }
1381
1495
  return new _SeamHttpAcsAccessGroups(constructorOptions);
1382
1496
  }
1497
+ createPaginator(request) {
1498
+ return new SeamPaginator(this, request);
1499
+ }
1383
1500
  async updateClientSessionToken(clientSessionToken) {
1384
1501
  const { headers } = this.client.defaults;
1385
1502
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1404,7 +1521,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1404
1521
  }
1405
1522
  addUser(body) {
1406
1523
  return new SeamHttpRequest(this, {
1407
- path: "/acs/access_groups/add_user",
1524
+ pathname: "/acs/access_groups/add_user",
1408
1525
  method: "post",
1409
1526
  body,
1410
1527
  responseKey: void 0
@@ -1412,7 +1529,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1412
1529
  }
1413
1530
  get(body) {
1414
1531
  return new SeamHttpRequest(this, {
1415
- path: "/acs/access_groups/get",
1532
+ pathname: "/acs/access_groups/get",
1416
1533
  method: "post",
1417
1534
  body,
1418
1535
  responseKey: "acs_access_group"
@@ -1420,7 +1537,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1420
1537
  }
1421
1538
  list(body) {
1422
1539
  return new SeamHttpRequest(this, {
1423
- path: "/acs/access_groups/list",
1540
+ pathname: "/acs/access_groups/list",
1424
1541
  method: "post",
1425
1542
  body,
1426
1543
  responseKey: "acs_access_groups"
@@ -1428,7 +1545,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1428
1545
  }
1429
1546
  listAccessibleEntrances(body) {
1430
1547
  return new SeamHttpRequest(this, {
1431
- path: "/acs/access_groups/list_accessible_entrances",
1548
+ pathname: "/acs/access_groups/list_accessible_entrances",
1432
1549
  method: "post",
1433
1550
  body,
1434
1551
  responseKey: "acs_entrances"
@@ -1436,7 +1553,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1436
1553
  }
1437
1554
  listUsers(body) {
1438
1555
  return new SeamHttpRequest(this, {
1439
- path: "/acs/access_groups/list_users",
1556
+ pathname: "/acs/access_groups/list_users",
1440
1557
  method: "post",
1441
1558
  body,
1442
1559
  responseKey: "acs_users"
@@ -1444,7 +1561,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1444
1561
  }
1445
1562
  removeUser(body) {
1446
1563
  return new SeamHttpRequest(this, {
1447
- path: "/acs/access_groups/remove_user",
1564
+ pathname: "/acs/access_groups/remove_user",
1448
1565
  method: "post",
1449
1566
  body,
1450
1567
  responseKey: void 0
@@ -1513,6 +1630,9 @@ var SeamHttpAcsCredentialPools = class _SeamHttpAcsCredentialPools {
1513
1630
  }
1514
1631
  return new _SeamHttpAcsCredentialPools(constructorOptions);
1515
1632
  }
1633
+ createPaginator(request) {
1634
+ return new SeamPaginator(this, request);
1635
+ }
1516
1636
  async updateClientSessionToken(clientSessionToken) {
1517
1637
  const { headers } = this.client.defaults;
1518
1638
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1531,7 +1651,7 @@ var SeamHttpAcsCredentialPools = class _SeamHttpAcsCredentialPools {
1531
1651
  }
1532
1652
  list(body) {
1533
1653
  return new SeamHttpRequest(this, {
1534
- path: "/acs/credential_pools/list",
1654
+ pathname: "/acs/credential_pools/list",
1535
1655
  method: "post",
1536
1656
  body,
1537
1657
  responseKey: "acs_credential_pools"
@@ -1603,6 +1723,9 @@ var SeamHttpAcsCredentialProvisioningAutomations = class _SeamHttpAcsCredentialP
1603
1723
  }
1604
1724
  return new _SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
1605
1725
  }
1726
+ createPaginator(request) {
1727
+ return new SeamPaginator(this, request);
1728
+ }
1606
1729
  async updateClientSessionToken(clientSessionToken) {
1607
1730
  const { headers } = this.client.defaults;
1608
1731
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1621,7 +1744,7 @@ var SeamHttpAcsCredentialProvisioningAutomations = class _SeamHttpAcsCredentialP
1621
1744
  }
1622
1745
  launch(body) {
1623
1746
  return new SeamHttpRequest(this, {
1624
- path: "/acs/credential_provisioning_automations/launch",
1747
+ pathname: "/acs/credential_provisioning_automations/launch",
1625
1748
  method: "post",
1626
1749
  body,
1627
1750
  responseKey: "acs_credential_provisioning_automation"
@@ -1693,6 +1816,9 @@ var SeamHttpAcsCredentialsUnmanaged = class _SeamHttpAcsCredentialsUnmanaged {
1693
1816
  }
1694
1817
  return new _SeamHttpAcsCredentialsUnmanaged(constructorOptions);
1695
1818
  }
1819
+ createPaginator(request) {
1820
+ return new SeamPaginator(this, request);
1821
+ }
1696
1822
  async updateClientSessionToken(clientSessionToken) {
1697
1823
  const { headers } = this.client.defaults;
1698
1824
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1711,7 +1837,7 @@ var SeamHttpAcsCredentialsUnmanaged = class _SeamHttpAcsCredentialsUnmanaged {
1711
1837
  }
1712
1838
  get(body) {
1713
1839
  return new SeamHttpRequest(this, {
1714
- path: "/acs/credentials/unmanaged/get",
1840
+ pathname: "/acs/credentials/unmanaged/get",
1715
1841
  method: "post",
1716
1842
  body,
1717
1843
  responseKey: "acs_credential"
@@ -1719,7 +1845,7 @@ var SeamHttpAcsCredentialsUnmanaged = class _SeamHttpAcsCredentialsUnmanaged {
1719
1845
  }
1720
1846
  list(body) {
1721
1847
  return new SeamHttpRequest(this, {
1722
- path: "/acs/credentials/unmanaged/list",
1848
+ pathname: "/acs/credentials/unmanaged/list",
1723
1849
  method: "post",
1724
1850
  body,
1725
1851
  responseKey: "acs_credentials"
@@ -1788,6 +1914,9 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1788
1914
  }
1789
1915
  return new _SeamHttpAcsCredentials(constructorOptions);
1790
1916
  }
1917
+ createPaginator(request) {
1918
+ return new SeamPaginator(this, request);
1919
+ }
1791
1920
  async updateClientSessionToken(clientSessionToken) {
1792
1921
  const { headers } = this.client.defaults;
1793
1922
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1812,7 +1941,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1812
1941
  }
1813
1942
  assign(body) {
1814
1943
  return new SeamHttpRequest(this, {
1815
- path: "/acs/credentials/assign",
1944
+ pathname: "/acs/credentials/assign",
1816
1945
  method: "post",
1817
1946
  body,
1818
1947
  responseKey: void 0
@@ -1820,7 +1949,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1820
1949
  }
1821
1950
  create(body) {
1822
1951
  return new SeamHttpRequest(this, {
1823
- path: "/acs/credentials/create",
1952
+ pathname: "/acs/credentials/create",
1824
1953
  method: "post",
1825
1954
  body,
1826
1955
  responseKey: "acs_credential"
@@ -1828,7 +1957,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1828
1957
  }
1829
1958
  createOfflineCode(body) {
1830
1959
  return new SeamHttpRequest(this, {
1831
- path: "/acs/credentials/create_offline_code",
1960
+ pathname: "/acs/credentials/create_offline_code",
1832
1961
  method: "post",
1833
1962
  body,
1834
1963
  responseKey: "acs_credential"
@@ -1836,7 +1965,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1836
1965
  }
1837
1966
  delete(body) {
1838
1967
  return new SeamHttpRequest(this, {
1839
- path: "/acs/credentials/delete",
1968
+ pathname: "/acs/credentials/delete",
1840
1969
  method: "post",
1841
1970
  body,
1842
1971
  responseKey: void 0
@@ -1844,7 +1973,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1844
1973
  }
1845
1974
  get(body) {
1846
1975
  return new SeamHttpRequest(this, {
1847
- path: "/acs/credentials/get",
1976
+ pathname: "/acs/credentials/get",
1848
1977
  method: "post",
1849
1978
  body,
1850
1979
  responseKey: "acs_credential"
@@ -1852,7 +1981,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1852
1981
  }
1853
1982
  list(body) {
1854
1983
  return new SeamHttpRequest(this, {
1855
- path: "/acs/credentials/list",
1984
+ pathname: "/acs/credentials/list",
1856
1985
  method: "post",
1857
1986
  body,
1858
1987
  responseKey: "acs_credentials"
@@ -1860,7 +1989,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1860
1989
  }
1861
1990
  listAccessibleEntrances(body) {
1862
1991
  return new SeamHttpRequest(this, {
1863
- path: "/acs/credentials/list_accessible_entrances",
1992
+ pathname: "/acs/credentials/list_accessible_entrances",
1864
1993
  method: "post",
1865
1994
  body,
1866
1995
  responseKey: "acs_entrances"
@@ -1868,7 +1997,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1868
1997
  }
1869
1998
  unassign(body) {
1870
1999
  return new SeamHttpRequest(this, {
1871
- path: "/acs/credentials/unassign",
2000
+ pathname: "/acs/credentials/unassign",
1872
2001
  method: "post",
1873
2002
  body,
1874
2003
  responseKey: void 0
@@ -1876,7 +2005,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1876
2005
  }
1877
2006
  update(body) {
1878
2007
  return new SeamHttpRequest(this, {
1879
- path: "/acs/credentials/update",
2008
+ pathname: "/acs/credentials/update",
1880
2009
  method: "post",
1881
2010
  body,
1882
2011
  responseKey: void 0
@@ -1945,6 +2074,9 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1945
2074
  }
1946
2075
  return new _SeamHttpAcsEncodersSimulate(constructorOptions);
1947
2076
  }
2077
+ createPaginator(request) {
2078
+ return new SeamPaginator(this, request);
2079
+ }
1948
2080
  async updateClientSessionToken(clientSessionToken) {
1949
2081
  const { headers } = this.client.defaults;
1950
2082
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -1963,7 +2095,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1963
2095
  }
1964
2096
  nextCredentialEncodeWillFail(body) {
1965
2097
  return new SeamHttpRequest(this, {
1966
- path: "/acs/encoders/simulate/next_credential_encode_will_fail",
2098
+ pathname: "/acs/encoders/simulate/next_credential_encode_will_fail",
1967
2099
  method: "post",
1968
2100
  body,
1969
2101
  responseKey: void 0
@@ -1971,7 +2103,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1971
2103
  }
1972
2104
  nextCredentialEncodeWillSucceed(body) {
1973
2105
  return new SeamHttpRequest(this, {
1974
- path: "/acs/encoders/simulate/next_credential_encode_will_succeed",
2106
+ pathname: "/acs/encoders/simulate/next_credential_encode_will_succeed",
1975
2107
  method: "post",
1976
2108
  body,
1977
2109
  responseKey: void 0
@@ -1979,7 +2111,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1979
2111
  }
1980
2112
  nextCredentialScanWillFail(body) {
1981
2113
  return new SeamHttpRequest(this, {
1982
- path: "/acs/encoders/simulate/next_credential_scan_will_fail",
2114
+ pathname: "/acs/encoders/simulate/next_credential_scan_will_fail",
1983
2115
  method: "post",
1984
2116
  body,
1985
2117
  responseKey: void 0
@@ -1987,7 +2119,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1987
2119
  }
1988
2120
  nextCredentialScanWillSucceed(body) {
1989
2121
  return new SeamHttpRequest(this, {
1990
- path: "/acs/encoders/simulate/next_credential_scan_will_succeed",
2122
+ pathname: "/acs/encoders/simulate/next_credential_scan_will_succeed",
1991
2123
  method: "post",
1992
2124
  body,
1993
2125
  responseKey: void 0
@@ -2056,6 +2188,9 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2056
2188
  }
2057
2189
  return new _SeamHttpAcsEncoders(constructorOptions);
2058
2190
  }
2191
+ createPaginator(request) {
2192
+ return new SeamPaginator(this, request);
2193
+ }
2059
2194
  async updateClientSessionToken(clientSessionToken) {
2060
2195
  const { headers } = this.client.defaults;
2061
2196
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2077,7 +2212,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2077
2212
  }
2078
2213
  encodeCredential(body, options = {}) {
2079
2214
  return new SeamHttpRequest(this, {
2080
- path: "/acs/encoders/encode_credential",
2215
+ pathname: "/acs/encoders/encode_credential",
2081
2216
  method: "post",
2082
2217
  body,
2083
2218
  responseKey: "action_attempt",
@@ -2086,7 +2221,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2086
2221
  }
2087
2222
  list(body) {
2088
2223
  return new SeamHttpRequest(this, {
2089
- path: "/acs/encoders/list",
2224
+ pathname: "/acs/encoders/list",
2090
2225
  method: "post",
2091
2226
  body,
2092
2227
  responseKey: "acs_encoders"
@@ -2094,7 +2229,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2094
2229
  }
2095
2230
  scanCredential(body, options = {}) {
2096
2231
  return new SeamHttpRequest(this, {
2097
- path: "/acs/encoders/scan_credential",
2232
+ pathname: "/acs/encoders/scan_credential",
2098
2233
  method: "post",
2099
2234
  body,
2100
2235
  responseKey: "action_attempt",
@@ -2164,6 +2299,9 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2164
2299
  }
2165
2300
  return new _SeamHttpAcsEntrances(constructorOptions);
2166
2301
  }
2302
+ createPaginator(request) {
2303
+ return new SeamPaginator(this, request);
2304
+ }
2167
2305
  async updateClientSessionToken(clientSessionToken) {
2168
2306
  const { headers } = this.client.defaults;
2169
2307
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2182,7 +2320,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2182
2320
  }
2183
2321
  get(body) {
2184
2322
  return new SeamHttpRequest(this, {
2185
- path: "/acs/entrances/get",
2323
+ pathname: "/acs/entrances/get",
2186
2324
  method: "post",
2187
2325
  body,
2188
2326
  responseKey: "acs_entrance"
@@ -2190,7 +2328,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2190
2328
  }
2191
2329
  grantAccess(body) {
2192
2330
  return new SeamHttpRequest(this, {
2193
- path: "/acs/entrances/grant_access",
2331
+ pathname: "/acs/entrances/grant_access",
2194
2332
  method: "post",
2195
2333
  body,
2196
2334
  responseKey: void 0
@@ -2198,7 +2336,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2198
2336
  }
2199
2337
  list(body) {
2200
2338
  return new SeamHttpRequest(this, {
2201
- path: "/acs/entrances/list",
2339
+ pathname: "/acs/entrances/list",
2202
2340
  method: "post",
2203
2341
  body,
2204
2342
  responseKey: "acs_entrances"
@@ -2206,7 +2344,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2206
2344
  }
2207
2345
  listCredentialsWithAccess(body) {
2208
2346
  return new SeamHttpRequest(this, {
2209
- path: "/acs/entrances/list_credentials_with_access",
2347
+ pathname: "/acs/entrances/list_credentials_with_access",
2210
2348
  method: "post",
2211
2349
  body,
2212
2350
  responseKey: "acs_credentials"
@@ -2275,6 +2413,9 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2275
2413
  }
2276
2414
  return new _SeamHttpAcsSystems(constructorOptions);
2277
2415
  }
2416
+ createPaginator(request) {
2417
+ return new SeamPaginator(this, request);
2418
+ }
2278
2419
  async updateClientSessionToken(clientSessionToken) {
2279
2420
  const { headers } = this.client.defaults;
2280
2421
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2293,7 +2434,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2293
2434
  }
2294
2435
  get(body) {
2295
2436
  return new SeamHttpRequest(this, {
2296
- path: "/acs/systems/get",
2437
+ pathname: "/acs/systems/get",
2297
2438
  method: "post",
2298
2439
  body,
2299
2440
  responseKey: "acs_system"
@@ -2301,7 +2442,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2301
2442
  }
2302
2443
  list(body) {
2303
2444
  return new SeamHttpRequest(this, {
2304
- path: "/acs/systems/list",
2445
+ pathname: "/acs/systems/list",
2305
2446
  method: "post",
2306
2447
  body,
2307
2448
  responseKey: "acs_systems"
@@ -2309,7 +2450,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2309
2450
  }
2310
2451
  listCompatibleCredentialManagerAcsSystems(body) {
2311
2452
  return new SeamHttpRequest(this, {
2312
- path: "/acs/systems/list_compatible_credential_manager_acs_systems",
2453
+ pathname: "/acs/systems/list_compatible_credential_manager_acs_systems",
2313
2454
  method: "post",
2314
2455
  body,
2315
2456
  responseKey: "acs_systems"
@@ -2378,6 +2519,9 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
2378
2519
  }
2379
2520
  return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
2380
2521
  }
2522
+ createPaginator(request) {
2523
+ return new SeamPaginator(this, request);
2524
+ }
2381
2525
  async updateClientSessionToken(clientSessionToken) {
2382
2526
  const { headers } = this.client.defaults;
2383
2527
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2396,7 +2540,7 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
2396
2540
  }
2397
2541
  get(body) {
2398
2542
  return new SeamHttpRequest(this, {
2399
- path: "/acs/users/unmanaged/get",
2543
+ pathname: "/acs/users/unmanaged/get",
2400
2544
  method: "post",
2401
2545
  body,
2402
2546
  responseKey: "acs_user"
@@ -2404,7 +2548,7 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
2404
2548
  }
2405
2549
  list(body) {
2406
2550
  return new SeamHttpRequest(this, {
2407
- path: "/acs/users/unmanaged/list",
2551
+ pathname: "/acs/users/unmanaged/list",
2408
2552
  method: "post",
2409
2553
  body,
2410
2554
  responseKey: "acs_users"
@@ -2473,6 +2617,9 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2473
2617
  }
2474
2618
  return new _SeamHttpAcsUsers(constructorOptions);
2475
2619
  }
2620
+ createPaginator(request) {
2621
+ return new SeamPaginator(this, request);
2622
+ }
2476
2623
  async updateClientSessionToken(clientSessionToken) {
2477
2624
  const { headers } = this.client.defaults;
2478
2625
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2494,7 +2641,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2494
2641
  }
2495
2642
  addToAccessGroup(body) {
2496
2643
  return new SeamHttpRequest(this, {
2497
- path: "/acs/users/add_to_access_group",
2644
+ pathname: "/acs/users/add_to_access_group",
2498
2645
  method: "post",
2499
2646
  body,
2500
2647
  responseKey: void 0
@@ -2502,7 +2649,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2502
2649
  }
2503
2650
  create(body) {
2504
2651
  return new SeamHttpRequest(this, {
2505
- path: "/acs/users/create",
2652
+ pathname: "/acs/users/create",
2506
2653
  method: "post",
2507
2654
  body,
2508
2655
  responseKey: "acs_user"
@@ -2510,7 +2657,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2510
2657
  }
2511
2658
  delete(body) {
2512
2659
  return new SeamHttpRequest(this, {
2513
- path: "/acs/users/delete",
2660
+ pathname: "/acs/users/delete",
2514
2661
  method: "post",
2515
2662
  body,
2516
2663
  responseKey: void 0
@@ -2518,7 +2665,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2518
2665
  }
2519
2666
  get(body) {
2520
2667
  return new SeamHttpRequest(this, {
2521
- path: "/acs/users/get",
2668
+ pathname: "/acs/users/get",
2522
2669
  method: "post",
2523
2670
  body,
2524
2671
  responseKey: "acs_user"
@@ -2526,7 +2673,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2526
2673
  }
2527
2674
  list(body) {
2528
2675
  return new SeamHttpRequest(this, {
2529
- path: "/acs/users/list",
2676
+ pathname: "/acs/users/list",
2530
2677
  method: "post",
2531
2678
  body,
2532
2679
  responseKey: "acs_users"
@@ -2534,7 +2681,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2534
2681
  }
2535
2682
  listAccessibleEntrances(body) {
2536
2683
  return new SeamHttpRequest(this, {
2537
- path: "/acs/users/list_accessible_entrances",
2684
+ pathname: "/acs/users/list_accessible_entrances",
2538
2685
  method: "post",
2539
2686
  body,
2540
2687
  responseKey: "acs_entrances"
@@ -2542,7 +2689,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2542
2689
  }
2543
2690
  removeFromAccessGroup(body) {
2544
2691
  return new SeamHttpRequest(this, {
2545
- path: "/acs/users/remove_from_access_group",
2692
+ pathname: "/acs/users/remove_from_access_group",
2546
2693
  method: "post",
2547
2694
  body,
2548
2695
  responseKey: void 0
@@ -2550,7 +2697,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2550
2697
  }
2551
2698
  revokeAccessToAllEntrances(body) {
2552
2699
  return new SeamHttpRequest(this, {
2553
- path: "/acs/users/revoke_access_to_all_entrances",
2700
+ pathname: "/acs/users/revoke_access_to_all_entrances",
2554
2701
  method: "post",
2555
2702
  body,
2556
2703
  responseKey: void 0
@@ -2558,7 +2705,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2558
2705
  }
2559
2706
  suspend(body) {
2560
2707
  return new SeamHttpRequest(this, {
2561
- path: "/acs/users/suspend",
2708
+ pathname: "/acs/users/suspend",
2562
2709
  method: "post",
2563
2710
  body,
2564
2711
  responseKey: void 0
@@ -2566,7 +2713,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2566
2713
  }
2567
2714
  unsuspend(body) {
2568
2715
  return new SeamHttpRequest(this, {
2569
- path: "/acs/users/unsuspend",
2716
+ pathname: "/acs/users/unsuspend",
2570
2717
  method: "post",
2571
2718
  body,
2572
2719
  responseKey: void 0
@@ -2574,7 +2721,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2574
2721
  }
2575
2722
  update(body) {
2576
2723
  return new SeamHttpRequest(this, {
2577
- path: "/acs/users/update",
2724
+ pathname: "/acs/users/update",
2578
2725
  method: "post",
2579
2726
  body,
2580
2727
  responseKey: void 0
@@ -2643,6 +2790,9 @@ var SeamHttpAcs = class _SeamHttpAcs {
2643
2790
  }
2644
2791
  return new _SeamHttpAcs(constructorOptions);
2645
2792
  }
2793
+ createPaginator(request) {
2794
+ return new SeamPaginator(this, request);
2795
+ }
2646
2796
  async updateClientSessionToken(clientSessionToken) {
2647
2797
  const { headers } = this.client.defaults;
2648
2798
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2749,6 +2899,9 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2749
2899
  }
2750
2900
  return new _SeamHttpActionAttempts(constructorOptions);
2751
2901
  }
2902
+ createPaginator(request) {
2903
+ return new SeamPaginator(this, request);
2904
+ }
2752
2905
  async updateClientSessionToken(clientSessionToken) {
2753
2906
  const { headers } = this.client.defaults;
2754
2907
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2767,7 +2920,7 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2767
2920
  }
2768
2921
  get(body, options = {}) {
2769
2922
  return new SeamHttpRequest(this, {
2770
- path: "/action_attempts/get",
2923
+ pathname: "/action_attempts/get",
2771
2924
  method: "post",
2772
2925
  body,
2773
2926
  responseKey: "action_attempt",
@@ -2776,7 +2929,7 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2776
2929
  }
2777
2930
  list(body) {
2778
2931
  return new SeamHttpRequest(this, {
2779
- path: "/action_attempts/list",
2932
+ pathname: "/action_attempts/list",
2780
2933
  method: "post",
2781
2934
  body,
2782
2935
  responseKey: "action_attempts"
@@ -2845,6 +2998,9 @@ var SeamHttpBridges = class _SeamHttpBridges {
2845
2998
  }
2846
2999
  return new _SeamHttpBridges(constructorOptions);
2847
3000
  }
3001
+ createPaginator(request) {
3002
+ return new SeamPaginator(this, request);
3003
+ }
2848
3004
  async updateClientSessionToken(clientSessionToken) {
2849
3005
  const { headers } = this.client.defaults;
2850
3006
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2863,7 +3019,7 @@ var SeamHttpBridges = class _SeamHttpBridges {
2863
3019
  }
2864
3020
  get(body) {
2865
3021
  return new SeamHttpRequest(this, {
2866
- path: "/bridges/get",
3022
+ pathname: "/bridges/get",
2867
3023
  method: "post",
2868
3024
  body,
2869
3025
  responseKey: "bridge"
@@ -2871,7 +3027,7 @@ var SeamHttpBridges = class _SeamHttpBridges {
2871
3027
  }
2872
3028
  list(body) {
2873
3029
  return new SeamHttpRequest(this, {
2874
- path: "/bridges/list",
3030
+ pathname: "/bridges/list",
2875
3031
  method: "post",
2876
3032
  body,
2877
3033
  responseKey: "bridges"
@@ -2940,6 +3096,9 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2940
3096
  }
2941
3097
  return new _SeamHttpConnectWebviews(constructorOptions);
2942
3098
  }
3099
+ createPaginator(request) {
3100
+ return new SeamPaginator(this, request);
3101
+ }
2943
3102
  async updateClientSessionToken(clientSessionToken) {
2944
3103
  const { headers } = this.client.defaults;
2945
3104
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -2958,7 +3117,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2958
3117
  }
2959
3118
  create(body) {
2960
3119
  return new SeamHttpRequest(this, {
2961
- path: "/connect_webviews/create",
3120
+ pathname: "/connect_webviews/create",
2962
3121
  method: "post",
2963
3122
  body,
2964
3123
  responseKey: "connect_webview"
@@ -2966,7 +3125,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2966
3125
  }
2967
3126
  delete(body) {
2968
3127
  return new SeamHttpRequest(this, {
2969
- path: "/connect_webviews/delete",
3128
+ pathname: "/connect_webviews/delete",
2970
3129
  method: "post",
2971
3130
  body,
2972
3131
  responseKey: void 0
@@ -2974,7 +3133,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2974
3133
  }
2975
3134
  get(body) {
2976
3135
  return new SeamHttpRequest(this, {
2977
- path: "/connect_webviews/get",
3136
+ pathname: "/connect_webviews/get",
2978
3137
  method: "post",
2979
3138
  body,
2980
3139
  responseKey: "connect_webview"
@@ -2982,7 +3141,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2982
3141
  }
2983
3142
  list(body) {
2984
3143
  return new SeamHttpRequest(this, {
2985
- path: "/connect_webviews/list",
3144
+ pathname: "/connect_webviews/list",
2986
3145
  method: "post",
2987
3146
  body,
2988
3147
  responseKey: "connect_webviews"
@@ -3051,6 +3210,9 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3051
3210
  }
3052
3211
  return new _SeamHttpConnectedAccounts(constructorOptions);
3053
3212
  }
3213
+ createPaginator(request) {
3214
+ return new SeamPaginator(this, request);
3215
+ }
3054
3216
  async updateClientSessionToken(clientSessionToken) {
3055
3217
  const { headers } = this.client.defaults;
3056
3218
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3069,7 +3231,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3069
3231
  }
3070
3232
  delete(body) {
3071
3233
  return new SeamHttpRequest(this, {
3072
- path: "/connected_accounts/delete",
3234
+ pathname: "/connected_accounts/delete",
3073
3235
  method: "post",
3074
3236
  body,
3075
3237
  responseKey: void 0
@@ -3077,7 +3239,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3077
3239
  }
3078
3240
  get(body) {
3079
3241
  return new SeamHttpRequest(this, {
3080
- path: "/connected_accounts/get",
3242
+ pathname: "/connected_accounts/get",
3081
3243
  method: "post",
3082
3244
  body,
3083
3245
  responseKey: "connected_account"
@@ -3085,7 +3247,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3085
3247
  }
3086
3248
  list(body) {
3087
3249
  return new SeamHttpRequest(this, {
3088
- path: "/connected_accounts/list",
3250
+ pathname: "/connected_accounts/list",
3089
3251
  method: "post",
3090
3252
  body,
3091
3253
  responseKey: "connected_accounts"
@@ -3093,7 +3255,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3093
3255
  }
3094
3256
  update(body) {
3095
3257
  return new SeamHttpRequest(this, {
3096
- path: "/connected_accounts/update",
3258
+ pathname: "/connected_accounts/update",
3097
3259
  method: "post",
3098
3260
  body,
3099
3261
  responseKey: void 0
@@ -3162,6 +3324,9 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
3162
3324
  }
3163
3325
  return new _SeamHttpDevicesSimulate(constructorOptions);
3164
3326
  }
3327
+ createPaginator(request) {
3328
+ return new SeamPaginator(this, request);
3329
+ }
3165
3330
  async updateClientSessionToken(clientSessionToken) {
3166
3331
  const { headers } = this.client.defaults;
3167
3332
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3180,7 +3345,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
3180
3345
  }
3181
3346
  connect(body) {
3182
3347
  return new SeamHttpRequest(this, {
3183
- path: "/devices/simulate/connect",
3348
+ pathname: "/devices/simulate/connect",
3184
3349
  method: "post",
3185
3350
  body,
3186
3351
  responseKey: void 0
@@ -3188,7 +3353,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
3188
3353
  }
3189
3354
  disconnect(body) {
3190
3355
  return new SeamHttpRequest(this, {
3191
- path: "/devices/simulate/disconnect",
3356
+ pathname: "/devices/simulate/disconnect",
3192
3357
  method: "post",
3193
3358
  body,
3194
3359
  responseKey: void 0
@@ -3196,7 +3361,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
3196
3361
  }
3197
3362
  remove(body) {
3198
3363
  return new SeamHttpRequest(this, {
3199
- path: "/devices/simulate/remove",
3364
+ pathname: "/devices/simulate/remove",
3200
3365
  method: "post",
3201
3366
  body,
3202
3367
  responseKey: void 0
@@ -3265,6 +3430,9 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
3265
3430
  }
3266
3431
  return new _SeamHttpDevicesUnmanaged(constructorOptions);
3267
3432
  }
3433
+ createPaginator(request) {
3434
+ return new SeamPaginator(this, request);
3435
+ }
3268
3436
  async updateClientSessionToken(clientSessionToken) {
3269
3437
  const { headers } = this.client.defaults;
3270
3438
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3283,7 +3451,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
3283
3451
  }
3284
3452
  get(body) {
3285
3453
  return new SeamHttpRequest(this, {
3286
- path: "/devices/unmanaged/get",
3454
+ pathname: "/devices/unmanaged/get",
3287
3455
  method: "post",
3288
3456
  body,
3289
3457
  responseKey: "device"
@@ -3291,7 +3459,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
3291
3459
  }
3292
3460
  list(body) {
3293
3461
  return new SeamHttpRequest(this, {
3294
- path: "/devices/unmanaged/list",
3462
+ pathname: "/devices/unmanaged/list",
3295
3463
  method: "post",
3296
3464
  body,
3297
3465
  responseKey: "devices"
@@ -3299,7 +3467,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
3299
3467
  }
3300
3468
  update(body) {
3301
3469
  return new SeamHttpRequest(this, {
3302
- path: "/devices/unmanaged/update",
3470
+ pathname: "/devices/unmanaged/update",
3303
3471
  method: "post",
3304
3472
  body,
3305
3473
  responseKey: void 0
@@ -3368,6 +3536,9 @@ var SeamHttpDevices = class _SeamHttpDevices {
3368
3536
  }
3369
3537
  return new _SeamHttpDevices(constructorOptions);
3370
3538
  }
3539
+ createPaginator(request) {
3540
+ return new SeamPaginator(this, request);
3541
+ }
3371
3542
  async updateClientSessionToken(clientSessionToken) {
3372
3543
  const { headers } = this.client.defaults;
3373
3544
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3392,7 +3563,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
3392
3563
  }
3393
3564
  delete(body) {
3394
3565
  return new SeamHttpRequest(this, {
3395
- path: "/devices/delete",
3566
+ pathname: "/devices/delete",
3396
3567
  method: "post",
3397
3568
  body,
3398
3569
  responseKey: void 0
@@ -3400,7 +3571,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
3400
3571
  }
3401
3572
  get(body) {
3402
3573
  return new SeamHttpRequest(this, {
3403
- path: "/devices/get",
3574
+ pathname: "/devices/get",
3404
3575
  method: "post",
3405
3576
  body,
3406
3577
  responseKey: "device"
@@ -3408,7 +3579,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
3408
3579
  }
3409
3580
  list(body) {
3410
3581
  return new SeamHttpRequest(this, {
3411
- path: "/devices/list",
3582
+ pathname: "/devices/list",
3412
3583
  method: "post",
3413
3584
  body,
3414
3585
  responseKey: "devices"
@@ -3416,7 +3587,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
3416
3587
  }
3417
3588
  listDeviceProviders(body) {
3418
3589
  return new SeamHttpRequest(this, {
3419
- path: "/devices/list_device_providers",
3590
+ pathname: "/devices/list_device_providers",
3420
3591
  method: "post",
3421
3592
  body,
3422
3593
  responseKey: "device_providers"
@@ -3424,7 +3595,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
3424
3595
  }
3425
3596
  update(body) {
3426
3597
  return new SeamHttpRequest(this, {
3427
- path: "/devices/update",
3598
+ pathname: "/devices/update",
3428
3599
  method: "post",
3429
3600
  body,
3430
3601
  responseKey: void 0
@@ -3493,6 +3664,9 @@ var SeamHttpEvents = class _SeamHttpEvents {
3493
3664
  }
3494
3665
  return new _SeamHttpEvents(constructorOptions);
3495
3666
  }
3667
+ createPaginator(request) {
3668
+ return new SeamPaginator(this, request);
3669
+ }
3496
3670
  async updateClientSessionToken(clientSessionToken) {
3497
3671
  const { headers } = this.client.defaults;
3498
3672
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3511,7 +3685,7 @@ var SeamHttpEvents = class _SeamHttpEvents {
3511
3685
  }
3512
3686
  get(body) {
3513
3687
  return new SeamHttpRequest(this, {
3514
- path: "/events/get",
3688
+ pathname: "/events/get",
3515
3689
  method: "post",
3516
3690
  body,
3517
3691
  responseKey: "event"
@@ -3519,7 +3693,7 @@ var SeamHttpEvents = class _SeamHttpEvents {
3519
3693
  }
3520
3694
  list(body) {
3521
3695
  return new SeamHttpRequest(this, {
3522
- path: "/events/list",
3696
+ pathname: "/events/list",
3523
3697
  method: "post",
3524
3698
  body,
3525
3699
  responseKey: "events"
@@ -3588,6 +3762,9 @@ var SeamHttpLocks = class _SeamHttpLocks {
3588
3762
  }
3589
3763
  return new _SeamHttpLocks(constructorOptions);
3590
3764
  }
3765
+ createPaginator(request) {
3766
+ return new SeamPaginator(this, request);
3767
+ }
3591
3768
  async updateClientSessionToken(clientSessionToken) {
3592
3769
  const { headers } = this.client.defaults;
3593
3770
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3606,7 +3783,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
3606
3783
  }
3607
3784
  get(body) {
3608
3785
  return new SeamHttpRequest(this, {
3609
- path: "/locks/get",
3786
+ pathname: "/locks/get",
3610
3787
  method: "post",
3611
3788
  body,
3612
3789
  responseKey: "device"
@@ -3614,7 +3791,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
3614
3791
  }
3615
3792
  list(body) {
3616
3793
  return new SeamHttpRequest(this, {
3617
- path: "/locks/list",
3794
+ pathname: "/locks/list",
3618
3795
  method: "post",
3619
3796
  body,
3620
3797
  responseKey: "devices"
@@ -3622,7 +3799,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
3622
3799
  }
3623
3800
  lockDoor(body, options = {}) {
3624
3801
  return new SeamHttpRequest(this, {
3625
- path: "/locks/lock_door",
3802
+ pathname: "/locks/lock_door",
3626
3803
  method: "post",
3627
3804
  body,
3628
3805
  responseKey: "action_attempt",
@@ -3631,7 +3808,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
3631
3808
  }
3632
3809
  unlockDoor(body, options = {}) {
3633
3810
  return new SeamHttpRequest(this, {
3634
- path: "/locks/unlock_door",
3811
+ pathname: "/locks/unlock_door",
3635
3812
  method: "post",
3636
3813
  body,
3637
3814
  responseKey: "action_attempt",
@@ -3701,6 +3878,9 @@ var SeamHttpNetworks = class _SeamHttpNetworks {
3701
3878
  }
3702
3879
  return new _SeamHttpNetworks(constructorOptions);
3703
3880
  }
3881
+ createPaginator(request) {
3882
+ return new SeamPaginator(this, request);
3883
+ }
3704
3884
  async updateClientSessionToken(clientSessionToken) {
3705
3885
  const { headers } = this.client.defaults;
3706
3886
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3719,7 +3899,7 @@ var SeamHttpNetworks = class _SeamHttpNetworks {
3719
3899
  }
3720
3900
  get(body) {
3721
3901
  return new SeamHttpRequest(this, {
3722
- path: "/networks/get",
3902
+ pathname: "/networks/get",
3723
3903
  method: "post",
3724
3904
  body,
3725
3905
  responseKey: "network"
@@ -3727,7 +3907,7 @@ var SeamHttpNetworks = class _SeamHttpNetworks {
3727
3907
  }
3728
3908
  list(body) {
3729
3909
  return new SeamHttpRequest(this, {
3730
- path: "/networks/list",
3910
+ pathname: "/networks/list",
3731
3911
  method: "post",
3732
3912
  body,
3733
3913
  responseKey: "networks"
@@ -3799,6 +3979,9 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3799
3979
  }
3800
3980
  return new _SeamHttpNoiseSensorsNoiseThresholds(constructorOptions);
3801
3981
  }
3982
+ createPaginator(request) {
3983
+ return new SeamPaginator(this, request);
3984
+ }
3802
3985
  async updateClientSessionToken(clientSessionToken) {
3803
3986
  const { headers } = this.client.defaults;
3804
3987
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3817,7 +4000,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3817
4000
  }
3818
4001
  create(body) {
3819
4002
  return new SeamHttpRequest(this, {
3820
- path: "/noise_sensors/noise_thresholds/create",
4003
+ pathname: "/noise_sensors/noise_thresholds/create",
3821
4004
  method: "post",
3822
4005
  body,
3823
4006
  responseKey: "noise_threshold"
@@ -3825,7 +4008,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3825
4008
  }
3826
4009
  delete(body) {
3827
4010
  return new SeamHttpRequest(this, {
3828
- path: "/noise_sensors/noise_thresholds/delete",
4011
+ pathname: "/noise_sensors/noise_thresholds/delete",
3829
4012
  method: "post",
3830
4013
  body,
3831
4014
  responseKey: void 0
@@ -3833,7 +4016,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3833
4016
  }
3834
4017
  get(body) {
3835
4018
  return new SeamHttpRequest(this, {
3836
- path: "/noise_sensors/noise_thresholds/get",
4019
+ pathname: "/noise_sensors/noise_thresholds/get",
3837
4020
  method: "post",
3838
4021
  body,
3839
4022
  responseKey: "noise_threshold"
@@ -3841,7 +4024,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3841
4024
  }
3842
4025
  list(body) {
3843
4026
  return new SeamHttpRequest(this, {
3844
- path: "/noise_sensors/noise_thresholds/list",
4027
+ pathname: "/noise_sensors/noise_thresholds/list",
3845
4028
  method: "post",
3846
4029
  body,
3847
4030
  responseKey: "noise_thresholds"
@@ -3849,7 +4032,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3849
4032
  }
3850
4033
  update(body) {
3851
4034
  return new SeamHttpRequest(this, {
3852
- path: "/noise_sensors/noise_thresholds/update",
4035
+ pathname: "/noise_sensors/noise_thresholds/update",
3853
4036
  method: "post",
3854
4037
  body,
3855
4038
  responseKey: void 0
@@ -3918,6 +4101,9 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3918
4101
  }
3919
4102
  return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
3920
4103
  }
4104
+ createPaginator(request) {
4105
+ return new SeamPaginator(this, request);
4106
+ }
3921
4107
  async updateClientSessionToken(clientSessionToken) {
3922
4108
  const { headers } = this.client.defaults;
3923
4109
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -3936,7 +4122,7 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3936
4122
  }
3937
4123
  triggerNoiseThreshold(body) {
3938
4124
  return new SeamHttpRequest(this, {
3939
- path: "/noise_sensors/simulate/trigger_noise_threshold",
4125
+ pathname: "/noise_sensors/simulate/trigger_noise_threshold",
3940
4126
  method: "post",
3941
4127
  body,
3942
4128
  responseKey: void 0
@@ -4005,6 +4191,9 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
4005
4191
  }
4006
4192
  return new _SeamHttpNoiseSensors(constructorOptions);
4007
4193
  }
4194
+ createPaginator(request) {
4195
+ return new SeamPaginator(this, request);
4196
+ }
4008
4197
  async updateClientSessionToken(clientSessionToken) {
4009
4198
  const { headers } = this.client.defaults;
4010
4199
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4032,7 +4221,7 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
4032
4221
  }
4033
4222
  list(body) {
4034
4223
  return new SeamHttpRequest(this, {
4035
- path: "/noise_sensors/list",
4224
+ pathname: "/noise_sensors/list",
4036
4225
  method: "post",
4037
4226
  body,
4038
4227
  responseKey: "devices"
@@ -4101,6 +4290,9 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
4101
4290
  }
4102
4291
  return new _SeamHttpPhonesSimulate(constructorOptions);
4103
4292
  }
4293
+ createPaginator(request) {
4294
+ return new SeamPaginator(this, request);
4295
+ }
4104
4296
  async updateClientSessionToken(clientSessionToken) {
4105
4297
  const { headers } = this.client.defaults;
4106
4298
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4119,7 +4311,7 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
4119
4311
  }
4120
4312
  createSandboxPhone(body) {
4121
4313
  return new SeamHttpRequest(this, {
4122
- path: "/phones/simulate/create_sandbox_phone",
4314
+ pathname: "/phones/simulate/create_sandbox_phone",
4123
4315
  method: "post",
4124
4316
  body,
4125
4317
  responseKey: "phone"
@@ -4188,6 +4380,9 @@ var SeamHttpPhones = class _SeamHttpPhones {
4188
4380
  }
4189
4381
  return new _SeamHttpPhones(constructorOptions);
4190
4382
  }
4383
+ createPaginator(request) {
4384
+ return new SeamPaginator(this, request);
4385
+ }
4191
4386
  async updateClientSessionToken(clientSessionToken) {
4192
4387
  const { headers } = this.client.defaults;
4193
4388
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4209,7 +4404,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
4209
4404
  }
4210
4405
  deactivate(body) {
4211
4406
  return new SeamHttpRequest(this, {
4212
- path: "/phones/deactivate",
4407
+ pathname: "/phones/deactivate",
4213
4408
  method: "post",
4214
4409
  body,
4215
4410
  responseKey: void 0
@@ -4217,7 +4412,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
4217
4412
  }
4218
4413
  get(body) {
4219
4414
  return new SeamHttpRequest(this, {
4220
- path: "/phones/get",
4415
+ pathname: "/phones/get",
4221
4416
  method: "post",
4222
4417
  body,
4223
4418
  responseKey: "phone"
@@ -4225,7 +4420,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
4225
4420
  }
4226
4421
  list(body) {
4227
4422
  return new SeamHttpRequest(this, {
4228
- path: "/phones/list",
4423
+ pathname: "/phones/list",
4229
4424
  method: "post",
4230
4425
  body,
4231
4426
  responseKey: "phones"
@@ -4294,6 +4489,9 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4294
4489
  }
4295
4490
  return new _SeamHttpThermostatsSchedules(constructorOptions);
4296
4491
  }
4492
+ createPaginator(request) {
4493
+ return new SeamPaginator(this, request);
4494
+ }
4297
4495
  async updateClientSessionToken(clientSessionToken) {
4298
4496
  const { headers } = this.client.defaults;
4299
4497
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4312,7 +4510,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4312
4510
  }
4313
4511
  create(body) {
4314
4512
  return new SeamHttpRequest(this, {
4315
- path: "/thermostats/schedules/create",
4513
+ pathname: "/thermostats/schedules/create",
4316
4514
  method: "post",
4317
4515
  body,
4318
4516
  responseKey: "thermostat_schedule"
@@ -4320,7 +4518,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4320
4518
  }
4321
4519
  delete(body) {
4322
4520
  return new SeamHttpRequest(this, {
4323
- path: "/thermostats/schedules/delete",
4521
+ pathname: "/thermostats/schedules/delete",
4324
4522
  method: "post",
4325
4523
  body,
4326
4524
  responseKey: void 0
@@ -4328,7 +4526,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4328
4526
  }
4329
4527
  get(body) {
4330
4528
  return new SeamHttpRequest(this, {
4331
- path: "/thermostats/schedules/get",
4529
+ pathname: "/thermostats/schedules/get",
4332
4530
  method: "post",
4333
4531
  body,
4334
4532
  responseKey: "thermostat_schedule"
@@ -4336,7 +4534,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4336
4534
  }
4337
4535
  list(body) {
4338
4536
  return new SeamHttpRequest(this, {
4339
- path: "/thermostats/schedules/list",
4537
+ pathname: "/thermostats/schedules/list",
4340
4538
  method: "post",
4341
4539
  body,
4342
4540
  responseKey: "thermostat_schedules"
@@ -4344,7 +4542,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4344
4542
  }
4345
4543
  update(body) {
4346
4544
  return new SeamHttpRequest(this, {
4347
- path: "/thermostats/schedules/update",
4545
+ pathname: "/thermostats/schedules/update",
4348
4546
  method: "post",
4349
4547
  body,
4350
4548
  responseKey: void 0
@@ -4413,6 +4611,9 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4413
4611
  }
4414
4612
  return new _SeamHttpThermostatsSimulate(constructorOptions);
4415
4613
  }
4614
+ createPaginator(request) {
4615
+ return new SeamPaginator(this, request);
4616
+ }
4416
4617
  async updateClientSessionToken(clientSessionToken) {
4417
4618
  const { headers } = this.client.defaults;
4418
4619
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4431,7 +4632,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4431
4632
  }
4432
4633
  hvacModeAdjusted(body) {
4433
4634
  return new SeamHttpRequest(this, {
4434
- path: "/thermostats/simulate/hvac_mode_adjusted",
4635
+ pathname: "/thermostats/simulate/hvac_mode_adjusted",
4435
4636
  method: "post",
4436
4637
  body,
4437
4638
  responseKey: void 0
@@ -4439,7 +4640,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4439
4640
  }
4440
4641
  temperatureReached(body) {
4441
4642
  return new SeamHttpRequest(this, {
4442
- path: "/thermostats/simulate/temperature_reached",
4643
+ pathname: "/thermostats/simulate/temperature_reached",
4443
4644
  method: "post",
4444
4645
  body,
4445
4646
  responseKey: void 0
@@ -4508,6 +4709,9 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4508
4709
  }
4509
4710
  return new _SeamHttpThermostats(constructorOptions);
4510
4711
  }
4712
+ createPaginator(request) {
4713
+ return new SeamPaginator(this, request);
4714
+ }
4511
4715
  async updateClientSessionToken(clientSessionToken) {
4512
4716
  const { headers } = this.client.defaults;
4513
4717
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4532,7 +4736,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4532
4736
  }
4533
4737
  activateClimatePreset(body, options = {}) {
4534
4738
  return new SeamHttpRequest(this, {
4535
- path: "/thermostats/activate_climate_preset",
4739
+ pathname: "/thermostats/activate_climate_preset",
4536
4740
  method: "post",
4537
4741
  body,
4538
4742
  responseKey: "action_attempt",
@@ -4541,7 +4745,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4541
4745
  }
4542
4746
  cool(body, options = {}) {
4543
4747
  return new SeamHttpRequest(this, {
4544
- path: "/thermostats/cool",
4748
+ pathname: "/thermostats/cool",
4545
4749
  method: "post",
4546
4750
  body,
4547
4751
  responseKey: "action_attempt",
@@ -4550,7 +4754,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4550
4754
  }
4551
4755
  createClimatePreset(body) {
4552
4756
  return new SeamHttpRequest(this, {
4553
- path: "/thermostats/create_climate_preset",
4757
+ pathname: "/thermostats/create_climate_preset",
4554
4758
  method: "post",
4555
4759
  body,
4556
4760
  responseKey: void 0
@@ -4558,7 +4762,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4558
4762
  }
4559
4763
  deleteClimatePreset(body) {
4560
4764
  return new SeamHttpRequest(this, {
4561
- path: "/thermostats/delete_climate_preset",
4765
+ pathname: "/thermostats/delete_climate_preset",
4562
4766
  method: "post",
4563
4767
  body,
4564
4768
  responseKey: void 0
@@ -4566,7 +4770,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4566
4770
  }
4567
4771
  get(body) {
4568
4772
  return new SeamHttpRequest(this, {
4569
- path: "/thermostats/get",
4773
+ pathname: "/thermostats/get",
4570
4774
  method: "post",
4571
4775
  body,
4572
4776
  responseKey: "thermostat"
@@ -4574,7 +4778,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4574
4778
  }
4575
4779
  heat(body, options = {}) {
4576
4780
  return new SeamHttpRequest(this, {
4577
- path: "/thermostats/heat",
4781
+ pathname: "/thermostats/heat",
4578
4782
  method: "post",
4579
4783
  body,
4580
4784
  responseKey: "action_attempt",
@@ -4583,7 +4787,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4583
4787
  }
4584
4788
  heatCool(body, options = {}) {
4585
4789
  return new SeamHttpRequest(this, {
4586
- path: "/thermostats/heat_cool",
4790
+ pathname: "/thermostats/heat_cool",
4587
4791
  method: "post",
4588
4792
  body,
4589
4793
  responseKey: "action_attempt",
@@ -4592,7 +4796,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4592
4796
  }
4593
4797
  list(body) {
4594
4798
  return new SeamHttpRequest(this, {
4595
- path: "/thermostats/list",
4799
+ pathname: "/thermostats/list",
4596
4800
  method: "post",
4597
4801
  body,
4598
4802
  responseKey: "devices"
@@ -4600,7 +4804,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4600
4804
  }
4601
4805
  off(body, options = {}) {
4602
4806
  return new SeamHttpRequest(this, {
4603
- path: "/thermostats/off",
4807
+ pathname: "/thermostats/off",
4604
4808
  method: "post",
4605
4809
  body,
4606
4810
  responseKey: "action_attempt",
@@ -4609,7 +4813,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4609
4813
  }
4610
4814
  setFallbackClimatePreset(body) {
4611
4815
  return new SeamHttpRequest(this, {
4612
- path: "/thermostats/set_fallback_climate_preset",
4816
+ pathname: "/thermostats/set_fallback_climate_preset",
4613
4817
  method: "post",
4614
4818
  body,
4615
4819
  responseKey: void 0
@@ -4617,7 +4821,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4617
4821
  }
4618
4822
  setFanMode(body, options = {}) {
4619
4823
  return new SeamHttpRequest(this, {
4620
- path: "/thermostats/set_fan_mode",
4824
+ pathname: "/thermostats/set_fan_mode",
4621
4825
  method: "post",
4622
4826
  body,
4623
4827
  responseKey: "action_attempt",
@@ -4626,7 +4830,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4626
4830
  }
4627
4831
  setHvacMode(body, options = {}) {
4628
4832
  return new SeamHttpRequest(this, {
4629
- path: "/thermostats/set_hvac_mode",
4833
+ pathname: "/thermostats/set_hvac_mode",
4630
4834
  method: "post",
4631
4835
  body,
4632
4836
  responseKey: "action_attempt",
@@ -4635,7 +4839,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4635
4839
  }
4636
4840
  setTemperatureThreshold(body) {
4637
4841
  return new SeamHttpRequest(this, {
4638
- path: "/thermostats/set_temperature_threshold",
4842
+ pathname: "/thermostats/set_temperature_threshold",
4639
4843
  method: "post",
4640
4844
  body,
4641
4845
  responseKey: void 0
@@ -4643,7 +4847,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4643
4847
  }
4644
4848
  updateClimatePreset(body) {
4645
4849
  return new SeamHttpRequest(this, {
4646
- path: "/thermostats/update_climate_preset",
4850
+ pathname: "/thermostats/update_climate_preset",
4647
4851
  method: "post",
4648
4852
  body,
4649
4853
  responseKey: void 0
@@ -4715,6 +4919,9 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4715
4919
  }
4716
4920
  return new _SeamHttpUserIdentitiesEnrollmentAutomations(constructorOptions);
4717
4921
  }
4922
+ createPaginator(request) {
4923
+ return new SeamPaginator(this, request);
4924
+ }
4718
4925
  async updateClientSessionToken(clientSessionToken) {
4719
4926
  const { headers } = this.client.defaults;
4720
4927
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4733,7 +4940,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4733
4940
  }
4734
4941
  delete(body) {
4735
4942
  return new SeamHttpRequest(this, {
4736
- path: "/user_identities/enrollment_automations/delete",
4943
+ pathname: "/user_identities/enrollment_automations/delete",
4737
4944
  method: "post",
4738
4945
  body,
4739
4946
  responseKey: void 0
@@ -4741,7 +4948,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4741
4948
  }
4742
4949
  get(body) {
4743
4950
  return new SeamHttpRequest(this, {
4744
- path: "/user_identities/enrollment_automations/get",
4951
+ pathname: "/user_identities/enrollment_automations/get",
4745
4952
  method: "post",
4746
4953
  body,
4747
4954
  responseKey: "enrollment_automation"
@@ -4749,7 +4956,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4749
4956
  }
4750
4957
  launch(body) {
4751
4958
  return new SeamHttpRequest(this, {
4752
- path: "/user_identities/enrollment_automations/launch",
4959
+ pathname: "/user_identities/enrollment_automations/launch",
4753
4960
  method: "post",
4754
4961
  body,
4755
4962
  responseKey: "enrollment_automation"
@@ -4757,7 +4964,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4757
4964
  }
4758
4965
  list(body) {
4759
4966
  return new SeamHttpRequest(this, {
4760
- path: "/user_identities/enrollment_automations/list",
4967
+ pathname: "/user_identities/enrollment_automations/list",
4761
4968
  method: "post",
4762
4969
  body,
4763
4970
  responseKey: "enrollment_automations"
@@ -4826,6 +5033,9 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4826
5033
  }
4827
5034
  return new _SeamHttpUserIdentities(constructorOptions);
4828
5035
  }
5036
+ createPaginator(request) {
5037
+ return new SeamPaginator(this, request);
5038
+ }
4829
5039
  async updateClientSessionToken(clientSessionToken) {
4830
5040
  const { headers } = this.client.defaults;
4831
5041
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -4850,7 +5060,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4850
5060
  }
4851
5061
  addAcsUser(body) {
4852
5062
  return new SeamHttpRequest(this, {
4853
- path: "/user_identities/add_acs_user",
5063
+ pathname: "/user_identities/add_acs_user",
4854
5064
  method: "post",
4855
5065
  body,
4856
5066
  responseKey: void 0
@@ -4858,7 +5068,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4858
5068
  }
4859
5069
  create(body) {
4860
5070
  return new SeamHttpRequest(this, {
4861
- path: "/user_identities/create",
5071
+ pathname: "/user_identities/create",
4862
5072
  method: "post",
4863
5073
  body,
4864
5074
  responseKey: "user_identity"
@@ -4866,7 +5076,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4866
5076
  }
4867
5077
  delete(body) {
4868
5078
  return new SeamHttpRequest(this, {
4869
- path: "/user_identities/delete",
5079
+ pathname: "/user_identities/delete",
4870
5080
  method: "post",
4871
5081
  body,
4872
5082
  responseKey: void 0
@@ -4874,7 +5084,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4874
5084
  }
4875
5085
  get(body) {
4876
5086
  return new SeamHttpRequest(this, {
4877
- path: "/user_identities/get",
5087
+ pathname: "/user_identities/get",
4878
5088
  method: "post",
4879
5089
  body,
4880
5090
  responseKey: "user_identity"
@@ -4882,7 +5092,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4882
5092
  }
4883
5093
  grantAccessToDevice(body) {
4884
5094
  return new SeamHttpRequest(this, {
4885
- path: "/user_identities/grant_access_to_device",
5095
+ pathname: "/user_identities/grant_access_to_device",
4886
5096
  method: "post",
4887
5097
  body,
4888
5098
  responseKey: void 0
@@ -4890,7 +5100,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4890
5100
  }
4891
5101
  list(body) {
4892
5102
  return new SeamHttpRequest(this, {
4893
- path: "/user_identities/list",
5103
+ pathname: "/user_identities/list",
4894
5104
  method: "post",
4895
5105
  body,
4896
5106
  responseKey: "user_identities"
@@ -4898,7 +5108,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4898
5108
  }
4899
5109
  listAccessibleDevices(body) {
4900
5110
  return new SeamHttpRequest(this, {
4901
- path: "/user_identities/list_accessible_devices",
5111
+ pathname: "/user_identities/list_accessible_devices",
4902
5112
  method: "post",
4903
5113
  body,
4904
5114
  responseKey: "devices"
@@ -4906,7 +5116,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4906
5116
  }
4907
5117
  listAcsSystems(body) {
4908
5118
  return new SeamHttpRequest(this, {
4909
- path: "/user_identities/list_acs_systems",
5119
+ pathname: "/user_identities/list_acs_systems",
4910
5120
  method: "post",
4911
5121
  body,
4912
5122
  responseKey: "acs_systems"
@@ -4914,7 +5124,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4914
5124
  }
4915
5125
  listAcsUsers(body) {
4916
5126
  return new SeamHttpRequest(this, {
4917
- path: "/user_identities/list_acs_users",
5127
+ pathname: "/user_identities/list_acs_users",
4918
5128
  method: "post",
4919
5129
  body,
4920
5130
  responseKey: "acs_users"
@@ -4922,7 +5132,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4922
5132
  }
4923
5133
  removeAcsUser(body) {
4924
5134
  return new SeamHttpRequest(this, {
4925
- path: "/user_identities/remove_acs_user",
5135
+ pathname: "/user_identities/remove_acs_user",
4926
5136
  method: "post",
4927
5137
  body,
4928
5138
  responseKey: void 0
@@ -4930,7 +5140,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4930
5140
  }
4931
5141
  revokeAccessToDevice(body) {
4932
5142
  return new SeamHttpRequest(this, {
4933
- path: "/user_identities/revoke_access_to_device",
5143
+ pathname: "/user_identities/revoke_access_to_device",
4934
5144
  method: "post",
4935
5145
  body,
4936
5146
  responseKey: void 0
@@ -4938,7 +5148,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4938
5148
  }
4939
5149
  update(body) {
4940
5150
  return new SeamHttpRequest(this, {
4941
- path: "/user_identities/update",
5151
+ pathname: "/user_identities/update",
4942
5152
  method: "post",
4943
5153
  body,
4944
5154
  responseKey: void 0
@@ -5007,6 +5217,9 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5007
5217
  }
5008
5218
  return new _SeamHttpWebhooks(constructorOptions);
5009
5219
  }
5220
+ createPaginator(request) {
5221
+ return new SeamPaginator(this, request);
5222
+ }
5010
5223
  async updateClientSessionToken(clientSessionToken) {
5011
5224
  const { headers } = this.client.defaults;
5012
5225
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -5025,7 +5238,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5025
5238
  }
5026
5239
  create(body) {
5027
5240
  return new SeamHttpRequest(this, {
5028
- path: "/webhooks/create",
5241
+ pathname: "/webhooks/create",
5029
5242
  method: "post",
5030
5243
  body,
5031
5244
  responseKey: "webhook"
@@ -5033,7 +5246,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5033
5246
  }
5034
5247
  delete(body) {
5035
5248
  return new SeamHttpRequest(this, {
5036
- path: "/webhooks/delete",
5249
+ pathname: "/webhooks/delete",
5037
5250
  method: "post",
5038
5251
  body,
5039
5252
  responseKey: void 0
@@ -5041,7 +5254,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5041
5254
  }
5042
5255
  get(body) {
5043
5256
  return new SeamHttpRequest(this, {
5044
- path: "/webhooks/get",
5257
+ pathname: "/webhooks/get",
5045
5258
  method: "post",
5046
5259
  body,
5047
5260
  responseKey: "webhook"
@@ -5049,7 +5262,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5049
5262
  }
5050
5263
  list(body) {
5051
5264
  return new SeamHttpRequest(this, {
5052
- path: "/webhooks/list",
5265
+ pathname: "/webhooks/list",
5053
5266
  method: "post",
5054
5267
  body,
5055
5268
  responseKey: "webhooks"
@@ -5057,7 +5270,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
5057
5270
  }
5058
5271
  update(body) {
5059
5272
  return new SeamHttpRequest(this, {
5060
- path: "/webhooks/update",
5273
+ pathname: "/webhooks/update",
5061
5274
  method: "post",
5062
5275
  body,
5063
5276
  responseKey: void 0
@@ -5126,6 +5339,9 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5126
5339
  }
5127
5340
  return new _SeamHttpWorkspaces(constructorOptions);
5128
5341
  }
5342
+ createPaginator(request) {
5343
+ return new SeamPaginator(this, request);
5344
+ }
5129
5345
  async updateClientSessionToken(clientSessionToken) {
5130
5346
  const { headers } = this.client.defaults;
5131
5347
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -5144,7 +5360,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5144
5360
  }
5145
5361
  create(body) {
5146
5362
  return new SeamHttpRequest(this, {
5147
- path: "/workspaces/create",
5363
+ pathname: "/workspaces/create",
5148
5364
  method: "post",
5149
5365
  body,
5150
5366
  responseKey: "workspace"
@@ -5152,7 +5368,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5152
5368
  }
5153
5369
  get(body) {
5154
5370
  return new SeamHttpRequest(this, {
5155
- path: "/workspaces/get",
5371
+ pathname: "/workspaces/get",
5156
5372
  method: "post",
5157
5373
  body,
5158
5374
  responseKey: "workspace"
@@ -5160,7 +5376,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5160
5376
  }
5161
5377
  list(body) {
5162
5378
  return new SeamHttpRequest(this, {
5163
- path: "/workspaces/list",
5379
+ pathname: "/workspaces/list",
5164
5380
  method: "post",
5165
5381
  body,
5166
5382
  responseKey: "workspaces"
@@ -5168,7 +5384,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5168
5384
  }
5169
5385
  resetSandbox(body, options = {}) {
5170
5386
  return new SeamHttpRequest(this, {
5171
- path: "/workspaces/reset_sandbox",
5387
+ pathname: "/workspaces/reset_sandbox",
5172
5388
  method: "post",
5173
5389
  body,
5174
5390
  responseKey: "action_attempt",
@@ -5239,6 +5455,9 @@ var _SeamHttp = class _SeamHttp {
5239
5455
  }
5240
5456
  return new _SeamHttp(constructorOptions);
5241
5457
  }
5458
+ createPaginator(request) {
5459
+ return new SeamPaginator(this, request);
5460
+ }
5242
5461
  async updateClientSessionToken(clientSessionToken) {
5243
5462
  const { headers } = this.client.defaults;
5244
5463
  const authHeaders = getAuthHeadersForClientSessionToken({
@@ -5399,6 +5618,7 @@ exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
5399
5618
  exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
5400
5619
  exports.SeamHttpWebhooks = SeamHttpWebhooks;
5401
5620
  exports.SeamHttpWorkspaces = SeamHttpWorkspaces;
5621
+ exports.SeamPaginator = SeamPaginator;
5402
5622
  exports.errorInterceptor = errorInterceptor;
5403
5623
  exports.getOpenapiSchema = getOpenapiSchema;
5404
5624
  exports.isApiKey = isApiKey;