@seamapi/types 1.1105.0 → 1.1106.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.
@@ -46633,6 +46633,8 @@ export type Routes = {
46633
46633
  customer_key: string;
46634
46634
  /** ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile. */
46635
46635
  customization_profile_id?: (string | null) | undefined;
46636
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override. */
46637
+ low_battery_alert_threshold?: (number | null) | undefined;
46636
46638
  /** List of general spaces or areas. */
46637
46639
  spaces?: {
46638
46640
  /** Your display name for this location resource. */
@@ -47042,6 +47044,8 @@ export type Routes = {
47042
47044
  customer_key: string;
47043
47045
  /** ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile. */
47044
47046
  customization_profile_id?: (string | null) | undefined;
47047
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override. */
47048
+ low_battery_alert_threshold?: (number | null) | undefined;
47045
47049
  /** List of general spaces or areas. */
47046
47050
  spaces?: {
47047
47051
  /** Your display name for this location resource. */
@@ -91419,6 +91423,8 @@ export type Routes = {
91419
91423
  created_at: string;
91420
91424
  /** ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns. */
91421
91425
  customization_profile_id: string | null;
91426
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies. */
91427
+ low_battery_alert_threshold: number | null;
91422
91428
  };
91423
91429
  };
91424
91430
  maxDuration: undefined;
@@ -91447,6 +91453,8 @@ export type Routes = {
91447
91453
  created_at: string;
91448
91454
  /** ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns. */
91449
91455
  customization_profile_id: string | null;
91456
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies. */
91457
+ low_battery_alert_threshold: number | null;
91450
91458
  }[];
91451
91459
  /** Information about the current page of results. */
91452
91460
  pagination: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1105.0",
3
+ "version": "1.1106.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -114,6 +114,15 @@ export const customer_data = z
114
114
  .describe(
115
115
  "ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.",
116
116
  ),
117
+ low_battery_alert_threshold: z
118
+ .number()
119
+ .min(0)
120
+ .max(1)
121
+ .nullable()
122
+ .optional()
123
+ .describe(
124
+ "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.",
125
+ ),
117
126
  })
118
127
  .merge(external_resources)
119
128
 
@@ -20,6 +20,12 @@ export const customer = z.object({
20
20
  .describe(
21
21
  'ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns.',
22
22
  ),
23
+ low_battery_alert_threshold: z
24
+ .number()
25
+ .nullable()
26
+ .describe(
27
+ "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies.",
28
+ ),
23
29
  }).describe(`
24
30
  ---
25
31
  route_path: /customers
@@ -14406,6 +14406,13 @@ const openapi: OpenAPISpec = {
14406
14406
  nullable: true,
14407
14407
  type: 'string',
14408
14408
  },
14409
+ low_battery_alert_threshold: {
14410
+ description:
14411
+ "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies.",
14412
+ format: 'float',
14413
+ nullable: true,
14414
+ type: 'number',
14415
+ },
14409
14416
  workspace_id: {
14410
14417
  description: 'ID of the workspace associated with the customer.',
14411
14418
  format: 'uuid',
@@ -14417,6 +14424,7 @@ const openapi: OpenAPISpec = {
14417
14424
  'workspace_id',
14418
14425
  'created_at',
14419
14426
  'customization_profile_id',
14427
+ 'low_battery_alert_threshold',
14420
14428
  ],
14421
14429
  type: 'object',
14422
14430
  'x-route-path': '/customers',
@@ -51566,6 +51574,15 @@ const openapi: OpenAPISpec = {
51566
51574
  },
51567
51575
  type: 'array',
51568
51576
  },
51577
+ low_battery_alert_threshold: {
51578
+ description:
51579
+ "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.",
51580
+ format: 'float',
51581
+ maximum: 1,
51582
+ minimum: 0,
51583
+ nullable: true,
51584
+ type: 'number',
51585
+ },
51569
51586
  properties: {
51570
51587
  description:
51571
51588
  'List of short-term rental properties.',
@@ -52750,6 +52767,15 @@ const openapi: OpenAPISpec = {
52750
52767
  },
52751
52768
  type: 'array',
52752
52769
  },
52770
+ low_battery_alert_threshold: {
52771
+ description:
52772
+ "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.",
52773
+ format: 'float',
52774
+ maximum: 1,
52775
+ minimum: 0,
52776
+ nullable: true,
52777
+ type: 'number',
52778
+ },
52753
52779
  properties: {
52754
52780
  description: 'List of short-term rental properties.',
52755
52781
  items: {
@@ -54509,6 +54509,8 @@ export type Routes = {
54509
54509
  customer_key: string
54510
54510
  /** ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile. */
54511
54511
  customization_profile_id?: (string | null) | undefined
54512
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override. */
54513
+ low_battery_alert_threshold?: (number | null) | undefined
54512
54514
  /** List of general spaces or areas. */
54513
54515
  spaces?:
54514
54516
  | {
@@ -54965,6 +54967,8 @@ export type Routes = {
54965
54967
  customer_key: string
54966
54968
  /** ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile. */
54967
54969
  customization_profile_id?: (string | null) | undefined
54970
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override. */
54971
+ low_battery_alert_threshold?: (number | null) | undefined
54968
54972
  /** List of general spaces or areas. */
54969
54973
  spaces?:
54970
54974
  | {
@@ -109261,6 +109265,8 @@ export type Routes = {
109261
109265
  created_at: string
109262
109266
  /** ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns. */
109263
109267
  customization_profile_id: string | null
109268
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies. */
109269
+ low_battery_alert_threshold: number | null
109264
109270
  }
109265
109271
  }
109266
109272
  maxDuration: undefined
@@ -109289,6 +109295,8 @@ export type Routes = {
109289
109295
  created_at: string
109290
109296
  /** ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns. */
109291
109297
  customization_profile_id: string | null
109298
+ /** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies. */
109299
+ low_battery_alert_threshold: number | null
109292
109300
  }[]
109293
109301
  /** Information about the current page of results. */
109294
109302
  pagination: {