@seamapi/types 1.203.0 → 1.205.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.
@@ -4195,8 +4195,9 @@ export interface Routes {
4195
4195
  queryParams: {};
4196
4196
  jsonBody: {};
4197
4197
  commonParams: {
4198
+ /** Returns webviews that can be accessed by the provided user_identifier_key. */
4198
4199
  user_identifier_key?: string | undefined;
4199
- /** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
4200
+ /** Returns webviews whose custom_metadata contains all of the provided key/value pairs. */
4200
4201
  custom_metadata_has?: Record<string, string | boolean> | undefined;
4201
4202
  limit?: number;
4202
4203
  };
@@ -4285,7 +4286,9 @@ export interface Routes {
4285
4286
  queryParams: {};
4286
4287
  jsonBody: {};
4287
4288
  commonParams: {
4288
- /** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
4289
+ /** Returns accounts that can be accessed by the provided user_identifier_key. */
4290
+ user_identifier_key?: string | undefined;
4291
+ /** Returns accounts whose custom_metadata contains all of the provided key/value pairs. */
4289
4292
  custom_metadata_has?: Record<string, string | boolean> | undefined;
4290
4293
  };
4291
4294
  formData: {};
@@ -5448,6 +5451,13 @@ export interface Routes {
5448
5451
  display_name: string;
5449
5452
  image_url: string;
5450
5453
  provider_categories: Array<'stable' | 'consumer_smartlocks' | 'thermostats' | 'noise_sensors' | 'access_control_systems'>;
5454
+ can_remotely_unlock?: boolean | undefined;
5455
+ can_remotely_lock?: boolean | undefined;
5456
+ can_program_offline_access_codes?: boolean | undefined;
5457
+ can_program_online_access_codes?: boolean | undefined;
5458
+ can_simulate_removal?: boolean | undefined;
5459
+ can_simulate_connection?: boolean | undefined;
5460
+ can_simulate_disconnection?: boolean | undefined;
5451
5461
  }>;
5452
5462
  };
5453
5463
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.203.0",
3
+ "version": "1.205.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { device_capability_flags } from './device.js'
4
+
3
5
  export const DEVICE_PROVIDERS = {
4
6
  AKUVOX: 'akuvox',
5
7
  AUGUST: 'august',
@@ -112,11 +114,13 @@ export const PROVIDER_CATEGORIES: [ProviderCategory, ...ProviderCategory[]] =
112
114
  export const PUBLIC_PROVIDER_CATEGORIES: typeof PROVIDER_CATEGORIES =
113
115
  PROVIDER_CATEGORIES.filter((category) => category !== 'internal_beta') as any
114
116
 
115
- export const device_provider = z.object({
116
- device_provider_name: z.enum(ALL_DEVICE_PROVIDERS),
117
- display_name: z.string(),
118
- image_url: z.string(),
119
- provider_categories: z.array(z.enum(PUBLIC_PROVIDER_CATEGORIES)),
120
- })
117
+ export const device_provider = z
118
+ .object({
119
+ device_provider_name: z.enum(ALL_DEVICE_PROVIDERS),
120
+ display_name: z.string(),
121
+ image_url: z.string(),
122
+ provider_categories: z.array(z.enum(PUBLIC_PROVIDER_CATEGORIES)),
123
+ })
124
+ .extend(device_capability_flags.shape)
121
125
 
122
126
  export type DeviceProvider = z.infer<typeof device_provider>
@@ -3487,6 +3487,13 @@ export default {
3487
3487
  },
3488
3488
  device_provider: {
3489
3489
  properties: {
3490
+ can_program_offline_access_codes: { type: 'boolean' },
3491
+ can_program_online_access_codes: { type: 'boolean' },
3492
+ can_remotely_lock: { type: 'boolean' },
3493
+ can_remotely_unlock: { type: 'boolean' },
3494
+ can_simulate_connection: { type: 'boolean' },
3495
+ can_simulate_disconnection: { type: 'boolean' },
3496
+ can_simulate_removal: { type: 'boolean' },
3490
3497
  device_provider_name: {
3491
3498
  enum: [
3492
3499
  'akuvox',
@@ -8305,11 +8312,15 @@ export default {
8305
8312
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
8306
8313
  },
8307
8314
  description:
8308
- "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
8315
+ 'Returns webviews whose custom_metadata contains all of the provided key/value pairs.',
8309
8316
  type: 'object',
8310
8317
  },
8311
8318
  limit: { default: 500, format: 'float', type: 'number' },
8312
- user_identifier_key: { type: 'string' },
8319
+ user_identifier_key: {
8320
+ description:
8321
+ 'Returns webviews that can be accessed by the provided user_identifier_key.',
8322
+ type: 'string',
8323
+ },
8313
8324
  },
8314
8325
  type: 'object',
8315
8326
  },
@@ -8467,9 +8478,14 @@ export default {
8467
8478
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
8468
8479
  },
8469
8480
  description:
8470
- "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
8481
+ 'Returns accounts whose custom_metadata contains all of the provided key/value pairs.',
8471
8482
  type: 'object',
8472
8483
  },
8484
+ user_identifier_key: {
8485
+ description:
8486
+ 'Returns accounts that can be accessed by the provided user_identifier_key.',
8487
+ type: 'string',
8488
+ },
8473
8489
  },
8474
8490
  type: 'object',
8475
8491
  },
@@ -4801,8 +4801,9 @@ export interface Routes {
4801
4801
  queryParams: {}
4802
4802
  jsonBody: {}
4803
4803
  commonParams: {
4804
+ /** Returns webviews that can be accessed by the provided user_identifier_key. */
4804
4805
  user_identifier_key?: string | undefined
4805
- /** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
4806
+ /** Returns webviews whose custom_metadata contains all of the provided key/value pairs. */
4806
4807
  custom_metadata_has?: Record<string, string | boolean> | undefined
4807
4808
  limit?: number
4808
4809
  }
@@ -4895,7 +4896,9 @@ export interface Routes {
4895
4896
  queryParams: {}
4896
4897
  jsonBody: {}
4897
4898
  commonParams: {
4898
- /** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
4899
+ /** Returns accounts that can be accessed by the provided user_identifier_key. */
4900
+ user_identifier_key?: string | undefined
4901
+ /** Returns accounts whose custom_metadata contains all of the provided key/value pairs. */
4899
4902
  custom_metadata_has?: Record<string, string | boolean> | undefined
4900
4903
  }
4901
4904
  formData: {}
@@ -6694,6 +6697,13 @@ export interface Routes {
6694
6697
  | 'noise_sensors'
6695
6698
  | 'access_control_systems'
6696
6699
  >
6700
+ can_remotely_unlock?: boolean | undefined
6701
+ can_remotely_lock?: boolean | undefined
6702
+ can_program_offline_access_codes?: boolean | undefined
6703
+ can_program_online_access_codes?: boolean | undefined
6704
+ can_simulate_removal?: boolean | undefined
6705
+ can_simulate_connection?: boolean | undefined
6706
+ can_simulate_disconnection?: boolean | undefined
6697
6707
  }>
6698
6708
  }
6699
6709
  }