@seamapi/types 1.357.1 → 1.358.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
@@ -1,2 +1,2 @@
1
- export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
2
2
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.357.1",
3
+ "version": "1.358.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -39,6 +39,7 @@ export {
39
39
  device as managed_device,
40
40
  noise_sensor_device_type,
41
41
  noise_threshold,
42
+ pagination,
42
43
  phone,
43
44
  phone_number,
44
45
  thermostat_capability_properties,
@@ -10,6 +10,7 @@ export * from './custom-metadata.js'
10
10
  export * from './devices/index.js'
11
11
  export * from './events/index.js'
12
12
  export * from './noise-sensors/index.js'
13
+ export * from './pagination.js'
13
14
  export * from './phone-number.js'
14
15
  export * from './thermostats/index.js'
15
16
  export * from './user-identities/index.js'
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod'
2
+
3
+ export const pagination = z
4
+ .object({
5
+ next_page_cursor: z
6
+ .string()
7
+ .nullable()
8
+ .describe(
9
+ 'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.',
10
+ ),
11
+ has_next_page: z
12
+ .boolean()
13
+ .describe(
14
+ 'Indicates whether there is another page of results after this one.',
15
+ ),
16
+ next_page_url: z
17
+ .string()
18
+ .url()
19
+ .nullable()
20
+ .describe('URL to get the next page of results.'),
21
+ })
22
+ .describe('Information about the current page of results.')
@@ -11814,6 +11814,30 @@ export default {
11814
11814
  type: 'object',
11815
11815
  'x-route-path': '/noise_sensors/noise_thresholds',
11816
11816
  },
11817
+ pagination: {
11818
+ description: 'Information about the current page of results.',
11819
+ properties: {
11820
+ has_next_page: {
11821
+ description:
11822
+ 'Indicates whether there is another page of results after this one.',
11823
+ type: 'boolean',
11824
+ },
11825
+ next_page_cursor: {
11826
+ description:
11827
+ 'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.',
11828
+ nullable: true,
11829
+ type: 'string',
11830
+ },
11831
+ next_page_url: {
11832
+ description: 'URL to get the next page of results.',
11833
+ format: 'uri',
11834
+ nullable: true,
11835
+ type: 'string',
11836
+ },
11837
+ },
11838
+ required: ['next_page_cursor', 'has_next_page', 'next_page_url'],
11839
+ type: 'object',
11840
+ },
11817
11841
  phone: {
11818
11842
  description: "Represents an app user's mobile phone.",
11819
11843
  properties: {
@@ -18794,35 +18818,7 @@ export default {
18794
18818
  type: 'array',
18795
18819
  },
18796
18820
  ok: { type: 'boolean' },
18797
- pagination: {
18798
- description:
18799
- 'Information about the current page of results.',
18800
- properties: {
18801
- has_next_page: {
18802
- description:
18803
- 'Indicates whether there is another page of results after this one.',
18804
- type: 'boolean',
18805
- },
18806
- next_page_cursor: {
18807
- description:
18808
- 'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.',
18809
- nullable: true,
18810
- type: 'string',
18811
- },
18812
- next_page_url: {
18813
- description: 'URL to get the next page of results.',
18814
- format: 'uri',
18815
- nullable: true,
18816
- type: 'string',
18817
- },
18818
- },
18819
- required: [
18820
- 'next_page_cursor',
18821
- 'has_next_page',
18822
- 'next_page_url',
18823
- ],
18824
- type: 'object',
18825
- },
18821
+ pagination: { $ref: '#/components/schemas/pagination' },
18826
18822
  },
18827
18823
  required: ['acs_users', 'pagination', 'ok'],
18828
18824
  type: 'object',
@@ -19,6 +19,7 @@ export {
19
19
  device,
20
20
  device_provider,
21
21
  noise_threshold,
22
+ pagination,
22
23
  seam_event,
23
24
  thermostat_schedule,
24
25
  unmanaged_access_code,