@seamapi/types 1.495.0 → 1.496.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.
@@ -30553,8 +30553,108 @@ declare const batch: z.ZodObject<{
30553
30553
  starts_at?: string | null | undefined;
30554
30554
  ends_at?: string | null | undefined;
30555
30555
  }>, "many">>;
30556
+ thermostat_daily_programs: z.ZodOptional<z.ZodArray<z.ZodObject<{
30557
+ thermostat_daily_program_id: z.ZodString;
30558
+ device_id: z.ZodString;
30559
+ name: z.ZodNullable<z.ZodString>;
30560
+ periods: z.ZodArray<z.ZodObject<{
30561
+ starts_at_time: z.ZodString;
30562
+ climate_preset_key: z.ZodString;
30563
+ }, "strip", z.ZodTypeAny, {
30564
+ climate_preset_key: string;
30565
+ starts_at_time: string;
30566
+ }, {
30567
+ climate_preset_key: string;
30568
+ starts_at_time: string;
30569
+ }>, "many">;
30570
+ workspace_id: z.ZodString;
30571
+ created_at: z.ZodString;
30572
+ }, "strip", z.ZodTypeAny, {
30573
+ name: string | null;
30574
+ thermostat_daily_program_id: string;
30575
+ device_id: string;
30576
+ periods: {
30577
+ climate_preset_key: string;
30578
+ starts_at_time: string;
30579
+ }[];
30580
+ workspace_id: string;
30581
+ created_at: string;
30582
+ }, {
30583
+ name: string | null;
30584
+ thermostat_daily_program_id: string;
30585
+ device_id: string;
30586
+ periods: {
30587
+ climate_preset_key: string;
30588
+ starts_at_time: string;
30589
+ }[];
30590
+ workspace_id: string;
30591
+ created_at: string;
30592
+ }>, "many">>;
30593
+ thermostat_schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
30594
+ thermostat_schedule_id: z.ZodString;
30595
+ device_id: z.ZodString;
30596
+ name: z.ZodNullable<z.ZodString>;
30597
+ climate_preset_key: z.ZodString;
30598
+ max_override_period_minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30599
+ starts_at: z.ZodString;
30600
+ is_override_allowed: z.ZodOptional<z.ZodBoolean>;
30601
+ ends_at: z.ZodString;
30602
+ workspace_id: z.ZodString;
30603
+ created_at: z.ZodString;
30604
+ errors: z.ZodArray<z.ZodObject<{
30605
+ error_code: z.ZodString;
30606
+ message: z.ZodString;
30607
+ }, "strip", z.ZodTypeAny, {
30608
+ message: string;
30609
+ error_code: string;
30610
+ }, {
30611
+ message: string;
30612
+ error_code: string;
30613
+ }>, "many">;
30614
+ }, "strip", z.ZodTypeAny, {
30615
+ climate_preset_key: string;
30616
+ name: string | null;
30617
+ device_id: string;
30618
+ workspace_id: string;
30619
+ created_at: string;
30620
+ thermostat_schedule_id: string;
30621
+ starts_at: string;
30622
+ ends_at: string;
30623
+ errors: {
30624
+ message: string;
30625
+ error_code: string;
30626
+ }[];
30627
+ max_override_period_minutes?: number | null | undefined;
30628
+ is_override_allowed?: boolean | undefined;
30629
+ }, {
30630
+ climate_preset_key: string;
30631
+ name: string | null;
30632
+ device_id: string;
30633
+ workspace_id: string;
30634
+ created_at: string;
30635
+ thermostat_schedule_id: string;
30636
+ starts_at: string;
30637
+ ends_at: string;
30638
+ errors: {
30639
+ message: string;
30640
+ error_code: string;
30641
+ }[];
30642
+ max_override_period_minutes?: number | null | undefined;
30643
+ is_override_allowed?: boolean | undefined;
30644
+ }>, "many">>;
30556
30645
  }, "strip", z.ZodTypeAny, {
30557
30646
  batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
30647
+ thermostat_daily_programs?: {
30648
+ name: string | null;
30649
+ thermostat_daily_program_id: string;
30650
+ device_id: string;
30651
+ periods: {
30652
+ climate_preset_key: string;
30653
+ starts_at_time: string;
30654
+ }[];
30655
+ workspace_id: string;
30656
+ created_at: string;
30657
+ }[] | undefined;
30558
30658
  spaces?: {
30559
30659
  name: string;
30560
30660
  display_name: string;
@@ -34356,8 +34456,35 @@ declare const batch: z.ZodObject<{
34356
34456
  starts_at?: string | null | undefined;
34357
34457
  ends_at?: string | null | undefined;
34358
34458
  }[] | undefined;
34459
+ thermostat_schedules?: {
34460
+ climate_preset_key: string;
34461
+ name: string | null;
34462
+ device_id: string;
34463
+ workspace_id: string;
34464
+ created_at: string;
34465
+ thermostat_schedule_id: string;
34466
+ starts_at: string;
34467
+ ends_at: string;
34468
+ errors: {
34469
+ message: string;
34470
+ error_code: string;
34471
+ }[];
34472
+ max_override_period_minutes?: number | null | undefined;
34473
+ is_override_allowed?: boolean | undefined;
34474
+ }[] | undefined;
34359
34475
  }, {
34360
34476
  batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
34477
+ thermostat_daily_programs?: {
34478
+ name: string | null;
34479
+ thermostat_daily_program_id: string;
34480
+ device_id: string;
34481
+ periods: {
34482
+ climate_preset_key: string;
34483
+ starts_at_time: string;
34484
+ }[];
34485
+ workspace_id: string;
34486
+ created_at: string;
34487
+ }[] | undefined;
34361
34488
  spaces?: {
34362
34489
  name: string;
34363
34490
  display_name: string;
@@ -38159,6 +38286,22 @@ declare const batch: z.ZodObject<{
38159
38286
  starts_at?: string | null | undefined;
38160
38287
  ends_at?: string | null | undefined;
38161
38288
  }[] | undefined;
38289
+ thermostat_schedules?: {
38290
+ climate_preset_key: string;
38291
+ name: string | null;
38292
+ device_id: string;
38293
+ workspace_id: string;
38294
+ created_at: string;
38295
+ thermostat_schedule_id: string;
38296
+ starts_at: string;
38297
+ ends_at: string;
38298
+ errors: {
38299
+ message: string;
38300
+ error_code: string;
38301
+ }[];
38302
+ max_override_period_minutes?: number | null | undefined;
38303
+ is_override_allowed?: boolean | undefined;
38304
+ }[] | undefined;
38162
38305
  }>;
38163
38306
  type Batch = z.infer<typeof batch>;
38164
38307
 
@@ -68919,6 +69062,18 @@ declare const _default: {
68919
69062
  };
68920
69063
  type: string;
68921
69064
  };
69065
+ thermostat_daily_programs: {
69066
+ items: {
69067
+ $ref: string;
69068
+ };
69069
+ type: string;
69070
+ };
69071
+ thermostat_schedules: {
69072
+ items: {
69073
+ $ref: string;
69074
+ };
69075
+ type: string;
69076
+ };
68922
69077
  unmanaged_access_codes: {
68923
69078
  items: {
68924
69079
  $ref: string;
@@ -69152,6 +69307,18 @@ declare const _default: {
69152
69307
  };
69153
69308
  type: string;
69154
69309
  };
69310
+ thermostat_daily_programs: {
69311
+ items: {
69312
+ $ref: string;
69313
+ };
69314
+ type: string;
69315
+ };
69316
+ thermostat_schedules: {
69317
+ items: {
69318
+ $ref: string;
69319
+ };
69320
+ type: string;
69321
+ };
69155
69322
  unmanaged_access_codes: {
69156
69323
  items: {
69157
69324
  $ref: string;
@@ -99428,6 +99595,18 @@ declare const _default: {
99428
99595
  };
99429
99596
  type: string;
99430
99597
  };
99598
+ thermostat_daily_programs: {
99599
+ items: {
99600
+ $ref: string;
99601
+ };
99602
+ type: string;
99603
+ };
99604
+ thermostat_schedules: {
99605
+ items: {
99606
+ $ref: string;
99607
+ };
99608
+ type: string;
99609
+ };
99431
99610
  unmanaged_access_codes: {
99432
99611
  items: {
99433
99612
  $ref: string;
@@ -99643,6 +99822,18 @@ declare const _default: {
99643
99822
  };
99644
99823
  type: string;
99645
99824
  };
99825
+ thermostat_daily_programs: {
99826
+ items: {
99827
+ $ref: string;
99828
+ };
99829
+ type: string;
99830
+ };
99831
+ thermostat_schedules: {
99832
+ items: {
99833
+ $ref: string;
99834
+ };
99835
+ type: string;
99836
+ };
99646
99837
  unmanaged_access_codes: {
99647
99838
  items: {
99648
99839
  $ref: string;
@@ -120368,6 +120559,54 @@ type Routes = {
120368
120559
  /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. */
120369
120560
  status: 'set';
120370
120561
  }[] | undefined;
120562
+ thermostat_daily_programs?: {
120563
+ /** ID of the thermostat daily program. */
120564
+ thermostat_daily_program_id: string;
120565
+ /** ID of the thermostat device on which the thermostat daily program is configured. */
120566
+ device_id: string;
120567
+ /** User-friendly name to identify the thermostat daily program. */
120568
+ name: string | null;
120569
+ /** Array of thermostat daily program periods. */
120570
+ periods: {
120571
+ /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
120572
+ starts_at_time: string;
120573
+ /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`. */
120574
+ climate_preset_key: string;
120575
+ }[];
120576
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program. */
120577
+ workspace_id: string;
120578
+ /** Date and time at which the thermostat daily program was created. */
120579
+ created_at: string;
120580
+ }[] | undefined;
120581
+ thermostat_schedules?: {
120582
+ /** ID of the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
120583
+ thermostat_schedule_id: string;
120584
+ /** ID of the desired [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) device. */
120585
+ device_id: string;
120586
+ /** User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
120587
+ name: string | null;
120588
+ /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
120589
+ climate_preset_key: string;
120590
+ /** Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
120591
+ max_override_period_minutes?: (number | null) | undefined;
120592
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
120593
+ starts_at: string;
120594
+ /** Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts. */
120595
+ is_override_allowed?: boolean | undefined;
120596
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
120597
+ ends_at: string;
120598
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule. */
120599
+ workspace_id: string;
120600
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */
120601
+ created_at: string;
120602
+ /** Errors associated with the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
120603
+ errors: {
120604
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
120605
+ error_code: string;
120606
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
120607
+ message: string;
120608
+ }[];
120609
+ }[] | undefined;
120371
120610
  };
120372
120611
  };
120373
120612
  };
@@ -186219,6 +186458,54 @@ type Routes = {
186219
186458
  /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. */
186220
186459
  status: 'set';
186221
186460
  }[] | undefined;
186461
+ thermostat_daily_programs?: {
186462
+ /** ID of the thermostat daily program. */
186463
+ thermostat_daily_program_id: string;
186464
+ /** ID of the thermostat device on which the thermostat daily program is configured. */
186465
+ device_id: string;
186466
+ /** User-friendly name to identify the thermostat daily program. */
186467
+ name: string | null;
186468
+ /** Array of thermostat daily program periods. */
186469
+ periods: {
186470
+ /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
186471
+ starts_at_time: string;
186472
+ /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`. */
186473
+ climate_preset_key: string;
186474
+ }[];
186475
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program. */
186476
+ workspace_id: string;
186477
+ /** Date and time at which the thermostat daily program was created. */
186478
+ created_at: string;
186479
+ }[] | undefined;
186480
+ thermostat_schedules?: {
186481
+ /** ID of the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
186482
+ thermostat_schedule_id: string;
186483
+ /** ID of the desired [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) device. */
186484
+ device_id: string;
186485
+ /** User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
186486
+ name: string | null;
186487
+ /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
186488
+ climate_preset_key: string;
186489
+ /** Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
186490
+ max_override_period_minutes?: (number | null) | undefined;
186491
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
186492
+ starts_at: string;
186493
+ /** Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts. */
186494
+ is_override_allowed?: boolean | undefined;
186495
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
186496
+ ends_at: string;
186497
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule. */
186498
+ workspace_id: string;
186499
+ /** Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */
186500
+ created_at: string;
186501
+ /** Errors associated with the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */
186502
+ errors: {
186503
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
186504
+ error_code: string;
186505
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
186506
+ message: string;
186507
+ }[];
186508
+ }[] | undefined;
186222
186509
  };
186223
186510
  };
186224
186511
  };
package/dist/index.cjs CHANGED
@@ -5337,7 +5337,9 @@ zod.z.object({
5337
5337
  events: seam_event.array().optional(),
5338
5338
  instant_keys: instant_key.array().optional(),
5339
5339
  access_codes: access_code.array().optional(),
5340
- unmanaged_access_codes: unmanaged_access_code.array().optional()
5340
+ unmanaged_access_codes: unmanaged_access_code.array().optional(),
5341
+ thermostat_daily_programs: thermostat_daily_program.array().optional(),
5342
+ thermostat_schedules: thermostat_schedule.array().optional()
5341
5343
  }).describe("A batch of workspace resources.");
5342
5344
  var batch = zod.z.object({
5343
5345
  batch_type: zod.z.enum([
@@ -5368,7 +5370,9 @@ var batch = zod.z.object({
5368
5370
  events: seam_event.array().optional(),
5369
5371
  instant_keys: instant_key.array().optional(),
5370
5372
  access_codes: access_code.array().optional(),
5371
- unmanaged_access_codes: unmanaged_access_code.array().optional()
5373
+ unmanaged_access_codes: unmanaged_access_code.array().optional(),
5374
+ thermostat_daily_programs: thermostat_daily_program.array().optional(),
5375
+ thermostat_schedules: thermostat_schedule.array().optional()
5372
5376
  }).describe("A batch of workspace resources.");
5373
5377
  var bridge = zod.z.object({
5374
5378
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -31932,6 +31936,18 @@ var openapi_default = {
31932
31936
  items: { $ref: "#/components/schemas/space" },
31933
31937
  type: "array"
31934
31938
  },
31939
+ thermostat_daily_programs: {
31940
+ items: {
31941
+ $ref: "#/components/schemas/thermostat_daily_program"
31942
+ },
31943
+ type: "array"
31944
+ },
31945
+ thermostat_schedules: {
31946
+ items: {
31947
+ $ref: "#/components/schemas/thermostat_schedule"
31948
+ },
31949
+ type: "array"
31950
+ },
31935
31951
  unmanaged_access_codes: {
31936
31952
  items: {
31937
31953
  $ref: "#/components/schemas/unmanaged_access_code"
@@ -32127,6 +32143,18 @@ var openapi_default = {
32127
32143
  items: { $ref: "#/components/schemas/space" },
32128
32144
  type: "array"
32129
32145
  },
32146
+ thermostat_daily_programs: {
32147
+ items: {
32148
+ $ref: "#/components/schemas/thermostat_daily_program"
32149
+ },
32150
+ type: "array"
32151
+ },
32152
+ thermostat_schedules: {
32153
+ items: {
32154
+ $ref: "#/components/schemas/thermostat_schedule"
32155
+ },
32156
+ type: "array"
32157
+ },
32130
32158
  unmanaged_access_codes: {
32131
32159
  items: {
32132
32160
  $ref: "#/components/schemas/unmanaged_access_code"
@@ -58053,6 +58081,18 @@ var openapi_default = {
58053
58081
  items: { $ref: "#/components/schemas/space" },
58054
58082
  type: "array"
58055
58083
  },
58084
+ thermostat_daily_programs: {
58085
+ items: {
58086
+ $ref: "#/components/schemas/thermostat_daily_program"
58087
+ },
58088
+ type: "array"
58089
+ },
58090
+ thermostat_schedules: {
58091
+ items: {
58092
+ $ref: "#/components/schemas/thermostat_schedule"
58093
+ },
58094
+ type: "array"
58095
+ },
58056
58096
  unmanaged_access_codes: {
58057
58097
  items: {
58058
58098
  $ref: "#/components/schemas/unmanaged_access_code"
@@ -58228,6 +58268,18 @@ var openapi_default = {
58228
58268
  items: { $ref: "#/components/schemas/space" },
58229
58269
  type: "array"
58230
58270
  },
58271
+ thermostat_daily_programs: {
58272
+ items: {
58273
+ $ref: "#/components/schemas/thermostat_daily_program"
58274
+ },
58275
+ type: "array"
58276
+ },
58277
+ thermostat_schedules: {
58278
+ items: {
58279
+ $ref: "#/components/schemas/thermostat_schedule"
58280
+ },
58281
+ type: "array"
58282
+ },
58231
58283
  unmanaged_access_codes: {
58232
58284
  items: {
58233
58285
  $ref: "#/components/schemas/unmanaged_access_code"