@seamapi/types 1.634.0 → 1.636.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.
@@ -12067,8 +12067,6 @@ export type Routes = {
12067
12067
  access_grant_id: string;
12068
12068
  /** Reservation key for the access grant. */
12069
12069
  reservation_key?: string | undefined;
12070
- /** ID of user identity to which the Access Grant gives access. */
12071
- user_identity_id: string;
12072
12070
  /**
12073
12071
  * @deprecated Use `space_ids`.*/
12074
12072
  location_ids: string[];
@@ -12108,6 +12106,8 @@ export type Routes = {
12108
12106
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
12109
12107
  warning_code: 'being_deleted';
12110
12108
  }[];
12109
+ /** ID of user identity to which the Access Grant gives access. */
12110
+ user_identity_id?: string | undefined;
12111
12111
  };
12112
12112
  };
12113
12113
  };
@@ -12135,8 +12135,6 @@ export type Routes = {
12135
12135
  access_grant_id: string;
12136
12136
  /** Reservation key for the access grant. */
12137
12137
  reservation_key?: string | undefined;
12138
- /** ID of user identity to which the Access Grant gives access. */
12139
- user_identity_id: string;
12140
12138
  /**
12141
12139
  * @deprecated Use `space_ids`.*/
12142
12140
  location_ids: string[];
@@ -12176,6 +12174,8 @@ export type Routes = {
12176
12174
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
12177
12175
  warning_code: 'being_deleted';
12178
12176
  }[];
12177
+ /** ID of user identity to which the Access Grant gives access. */
12178
+ user_identity_id?: string | undefined;
12179
12179
  }[];
12180
12180
  };
12181
12181
  };
@@ -57344,13 +57344,22 @@ export type Routes = {
57344
57344
  rules: {
57345
57345
  reservation_created?: {
57346
57346
  occupied_preset_key?: string | undefined;
57347
- fallback_preset?: {
57347
+ automated_occupied_preset?: {
57348
+ mode: 'heat' | 'cool' | 'auto';
57349
+ temperature: number;
57350
+ temperature_unit: 'celsius' | 'fahrenheit';
57351
+ fan_mode: 'on' | 'auto' | 'circulate';
57352
+ is_override_allowed: boolean;
57353
+ max_override_period_minutes: number;
57354
+ } | undefined;
57355
+ unoccupied_preset_key?: string | undefined;
57356
+ automated_unoccupied_preset?: {
57348
57357
  mode: 'heat' | 'cool' | 'auto';
57349
57358
  temperature: number;
57350
57359
  temperature_unit: 'celsius' | 'fahrenheit';
57351
57360
  fan_mode: 'on' | 'auto' | 'circulate';
57352
57361
  is_override_allowed: boolean;
57353
- override_period_minutes: number;
57362
+ max_override_period_minutes: number;
57354
57363
  } | undefined;
57355
57364
  } | undefined;
57356
57365
  reservation_time_updated?: {} | undefined;
@@ -57403,13 +57412,22 @@ export type Routes = {
57403
57412
  rules?: {
57404
57413
  reservation_created?: {
57405
57414
  occupied_preset_key?: string | undefined;
57406
- fallback_preset?: {
57415
+ automated_occupied_preset?: {
57416
+ mode: 'heat' | 'cool' | 'auto';
57417
+ temperature: number;
57418
+ temperature_unit: 'celsius' | 'fahrenheit';
57419
+ fan_mode: 'on' | 'auto' | 'circulate';
57420
+ is_override_allowed: boolean;
57421
+ max_override_period_minutes: number;
57422
+ } | undefined;
57423
+ unoccupied_preset_key?: string | undefined;
57424
+ automated_unoccupied_preset?: {
57407
57425
  mode: 'heat' | 'cool' | 'auto';
57408
57426
  temperature: number;
57409
57427
  temperature_unit: 'celsius' | 'fahrenheit';
57410
57428
  fan_mode: 'on' | 'auto' | 'circulate';
57411
57429
  is_override_allowed: boolean;
57412
- override_period_minutes: number;
57430
+ max_override_period_minutes: number;
57413
57431
  } | undefined;
57414
57432
  } | undefined;
57415
57433
  reservation_time_updated?: {} | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.634.0",
3
+ "version": "1.636.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -125,12 +125,17 @@ export const access_grant = z.object({
125
125
  export type AccessGrant = z.infer<typeof access_grant>
126
126
 
127
127
  // Unmanaged access grant schema - excludes client sessions, instant keys, customization profiles, and keys
128
- export const unmanaged_access_grant = access_grant.omit({
129
- client_session_token: true,
130
- instant_key_url: true,
131
- customization_profile_id: true,
132
- access_grant_key: true,
133
- }).describe(`
128
+ export const unmanaged_access_grant = access_grant
129
+ .omit({
130
+ client_session_token: true,
131
+ instant_key_url: true,
132
+ customization_profile_id: true,
133
+ access_grant_key: true,
134
+ user_identity_id: true,
135
+ })
136
+ .extend({
137
+ user_identity_id: access_grant.shape.user_identity_id.optional(),
138
+ }).describe(`
134
139
  ---
135
140
  draft: Early access.
136
141
  route_path: /access_grants/unmanaged
@@ -29787,7 +29787,6 @@ export default {
29787
29787
  required: [
29788
29788
  'workspace_id',
29789
29789
  'access_grant_id',
29790
- 'user_identity_id',
29791
29790
  'location_ids',
29792
29791
  'space_ids',
29793
29792
  'requested_access_methods',
@@ -30021,7 +30020,6 @@ export default {
30021
30020
  required: [
30022
30021
  'workspace_id',
30023
30022
  'access_grant_id',
30024
- 'user_identity_id',
30025
30023
  'location_ids',
30026
30024
  'space_ids',
30027
30025
  'requested_access_methods',
@@ -30281,7 +30279,6 @@ export default {
30281
30279
  required: [
30282
30280
  'workspace_id',
30283
30281
  'access_grant_id',
30284
- 'user_identity_id',
30285
30282
  'location_ids',
30286
30283
  'space_ids',
30287
30284
  'requested_access_methods',
@@ -30535,7 +30532,6 @@ export default {
30535
30532
  required: [
30536
30533
  'workspace_id',
30537
30534
  'access_grant_id',
30538
- 'user_identity_id',
30539
30535
  'location_ids',
30540
30536
  'space_ids',
30541
30537
  'requested_access_methods',
@@ -51875,21 +51871,55 @@ export default {
51875
51871
  properties: {
51876
51872
  reservation_created: {
51877
51873
  properties: {
51878
- fallback_preset: {
51874
+ automated_occupied_preset: {
51879
51875
  properties: {
51880
51876
  fan_mode: {
51881
51877
  enum: ['on', 'auto', 'circulate'],
51882
51878
  type: 'string',
51883
51879
  },
51884
51880
  is_override_allowed: { type: 'boolean' },
51881
+ max_override_period_minutes: {
51882
+ format: 'float',
51883
+ type: 'number',
51884
+ },
51885
51885
  mode: {
51886
51886
  enum: ['heat', 'cool', 'auto'],
51887
51887
  type: 'string',
51888
51888
  },
51889
- override_period_minutes: {
51889
+ temperature: {
51890
+ format: 'float',
51891
+ type: 'number',
51892
+ },
51893
+ temperature_unit: {
51894
+ enum: ['celsius', 'fahrenheit'],
51895
+ type: 'string',
51896
+ },
51897
+ },
51898
+ required: [
51899
+ 'mode',
51900
+ 'temperature',
51901
+ 'temperature_unit',
51902
+ 'fan_mode',
51903
+ 'is_override_allowed',
51904
+ 'max_override_period_minutes',
51905
+ ],
51906
+ type: 'object',
51907
+ },
51908
+ automated_unoccupied_preset: {
51909
+ properties: {
51910
+ fan_mode: {
51911
+ enum: ['on', 'auto', 'circulate'],
51912
+ type: 'string',
51913
+ },
51914
+ is_override_allowed: { type: 'boolean' },
51915
+ max_override_period_minutes: {
51890
51916
  format: 'float',
51891
51917
  type: 'number',
51892
51918
  },
51919
+ mode: {
51920
+ enum: ['heat', 'cool', 'auto'],
51921
+ type: 'string',
51922
+ },
51893
51923
  temperature: {
51894
51924
  format: 'float',
51895
51925
  type: 'number',
@@ -51905,11 +51935,12 @@ export default {
51905
51935
  'temperature_unit',
51906
51936
  'fan_mode',
51907
51937
  'is_override_allowed',
51908
- 'override_period_minutes',
51938
+ 'max_override_period_minutes',
51909
51939
  ],
51910
51940
  type: 'object',
51911
51941
  },
51912
51942
  occupied_preset_key: { type: 'string' },
51943
+ unoccupied_preset_key: { type: 'string' },
51913
51944
  },
51914
51945
  type: 'object',
51915
51946
  },
@@ -52085,21 +52116,55 @@ export default {
52085
52116
  properties: {
52086
52117
  reservation_created: {
52087
52118
  properties: {
52088
- fallback_preset: {
52119
+ automated_occupied_preset: {
52089
52120
  properties: {
52090
52121
  fan_mode: {
52091
52122
  enum: ['on', 'auto', 'circulate'],
52092
52123
  type: 'string',
52093
52124
  },
52094
52125
  is_override_allowed: { type: 'boolean' },
52126
+ max_override_period_minutes: {
52127
+ format: 'float',
52128
+ type: 'number',
52129
+ },
52095
52130
  mode: {
52096
52131
  enum: ['heat', 'cool', 'auto'],
52097
52132
  type: 'string',
52098
52133
  },
52099
- override_period_minutes: {
52134
+ temperature: {
52135
+ format: 'float',
52136
+ type: 'number',
52137
+ },
52138
+ temperature_unit: {
52139
+ enum: ['celsius', 'fahrenheit'],
52140
+ type: 'string',
52141
+ },
52142
+ },
52143
+ required: [
52144
+ 'mode',
52145
+ 'temperature',
52146
+ 'temperature_unit',
52147
+ 'fan_mode',
52148
+ 'is_override_allowed',
52149
+ 'max_override_period_minutes',
52150
+ ],
52151
+ type: 'object',
52152
+ },
52153
+ automated_unoccupied_preset: {
52154
+ properties: {
52155
+ fan_mode: {
52156
+ enum: ['on', 'auto', 'circulate'],
52157
+ type: 'string',
52158
+ },
52159
+ is_override_allowed: { type: 'boolean' },
52160
+ max_override_period_minutes: {
52100
52161
  format: 'float',
52101
52162
  type: 'number',
52102
52163
  },
52164
+ mode: {
52165
+ enum: ['heat', 'cool', 'auto'],
52166
+ type: 'string',
52167
+ },
52103
52168
  temperature: {
52104
52169
  format: 'float',
52105
52170
  type: 'number',
@@ -52115,11 +52180,12 @@ export default {
52115
52180
  'temperature_unit',
52116
52181
  'fan_mode',
52117
52182
  'is_override_allowed',
52118
- 'override_period_minutes',
52183
+ 'max_override_period_minutes',
52119
52184
  ],
52120
52185
  type: 'object',
52121
52186
  },
52122
52187
  occupied_preset_key: { type: 'string' },
52188
+ unoccupied_preset_key: { type: 'string' },
52123
52189
  },
52124
52190
  type: 'object',
52125
52191
  },
@@ -52286,21 +52352,55 @@ export default {
52286
52352
  properties: {
52287
52353
  reservation_created: {
52288
52354
  properties: {
52289
- fallback_preset: {
52355
+ automated_occupied_preset: {
52290
52356
  properties: {
52291
52357
  fan_mode: {
52292
52358
  enum: ['on', 'auto', 'circulate'],
52293
52359
  type: 'string',
52294
52360
  },
52295
52361
  is_override_allowed: { type: 'boolean' },
52362
+ max_override_period_minutes: {
52363
+ format: 'float',
52364
+ type: 'number',
52365
+ },
52296
52366
  mode: {
52297
52367
  enum: ['heat', 'cool', 'auto'],
52298
52368
  type: 'string',
52299
52369
  },
52300
- override_period_minutes: {
52370
+ temperature: {
52371
+ format: 'float',
52372
+ type: 'number',
52373
+ },
52374
+ temperature_unit: {
52375
+ enum: ['celsius', 'fahrenheit'],
52376
+ type: 'string',
52377
+ },
52378
+ },
52379
+ required: [
52380
+ 'mode',
52381
+ 'temperature',
52382
+ 'temperature_unit',
52383
+ 'fan_mode',
52384
+ 'is_override_allowed',
52385
+ 'max_override_period_minutes',
52386
+ ],
52387
+ type: 'object',
52388
+ },
52389
+ automated_unoccupied_preset: {
52390
+ properties: {
52391
+ fan_mode: {
52392
+ enum: ['on', 'auto', 'circulate'],
52393
+ type: 'string',
52394
+ },
52395
+ is_override_allowed: { type: 'boolean' },
52396
+ max_override_period_minutes: {
52301
52397
  format: 'float',
52302
52398
  type: 'number',
52303
52399
  },
52400
+ mode: {
52401
+ enum: ['heat', 'cool', 'auto'],
52402
+ type: 'string',
52403
+ },
52304
52404
  temperature: {
52305
52405
  format: 'float',
52306
52406
  type: 'number',
@@ -52316,11 +52416,12 @@ export default {
52316
52416
  'temperature_unit',
52317
52417
  'fan_mode',
52318
52418
  'is_override_allowed',
52319
- 'override_period_minutes',
52419
+ 'max_override_period_minutes',
52320
52420
  ],
52321
52421
  type: 'object',
52322
52422
  },
52323
52423
  occupied_preset_key: { type: 'string' },
52424
+ unoccupied_preset_key: { type: 'string' },
52324
52425
  },
52325
52426
  type: 'object',
52326
52427
  },
@@ -52496,21 +52597,55 @@ export default {
52496
52597
  properties: {
52497
52598
  reservation_created: {
52498
52599
  properties: {
52499
- fallback_preset: {
52600
+ automated_occupied_preset: {
52500
52601
  properties: {
52501
52602
  fan_mode: {
52502
52603
  enum: ['on', 'auto', 'circulate'],
52503
52604
  type: 'string',
52504
52605
  },
52505
52606
  is_override_allowed: { type: 'boolean' },
52607
+ max_override_period_minutes: {
52608
+ format: 'float',
52609
+ type: 'number',
52610
+ },
52506
52611
  mode: {
52507
52612
  enum: ['heat', 'cool', 'auto'],
52508
52613
  type: 'string',
52509
52614
  },
52510
- override_period_minutes: {
52615
+ temperature: {
52616
+ format: 'float',
52617
+ type: 'number',
52618
+ },
52619
+ temperature_unit: {
52620
+ enum: ['celsius', 'fahrenheit'],
52621
+ type: 'string',
52622
+ },
52623
+ },
52624
+ required: [
52625
+ 'mode',
52626
+ 'temperature',
52627
+ 'temperature_unit',
52628
+ 'fan_mode',
52629
+ 'is_override_allowed',
52630
+ 'max_override_period_minutes',
52631
+ ],
52632
+ type: 'object',
52633
+ },
52634
+ automated_unoccupied_preset: {
52635
+ properties: {
52636
+ fan_mode: {
52637
+ enum: ['on', 'auto', 'circulate'],
52638
+ type: 'string',
52639
+ },
52640
+ is_override_allowed: { type: 'boolean' },
52641
+ max_override_period_minutes: {
52511
52642
  format: 'float',
52512
52643
  type: 'number',
52513
52644
  },
52645
+ mode: {
52646
+ enum: ['heat', 'cool', 'auto'],
52647
+ type: 'string',
52648
+ },
52514
52649
  temperature: {
52515
52650
  format: 'float',
52516
52651
  type: 'number',
@@ -52526,11 +52661,12 @@ export default {
52526
52661
  'temperature_unit',
52527
52662
  'fan_mode',
52528
52663
  'is_override_allowed',
52529
- 'override_period_minutes',
52664
+ 'max_override_period_minutes',
52530
52665
  ],
52531
52666
  type: 'object',
52532
52667
  },
52533
52668
  occupied_preset_key: { type: 'string' },
52669
+ unoccupied_preset_key: { type: 'string' },
52534
52670
  },
52535
52671
  type: 'object',
52536
52672
  },
@@ -13816,8 +13816,6 @@ export type Routes = {
13816
13816
  access_grant_id: string
13817
13817
  /** Reservation key for the access grant. */
13818
13818
  reservation_key?: string | undefined
13819
- /** ID of user identity to which the Access Grant gives access. */
13820
- user_identity_id: string
13821
13819
  /**
13822
13820
  * @deprecated Use `space_ids`.*/
13823
13821
  location_ids: string[]
@@ -13857,6 +13855,8 @@ export type Routes = {
13857
13855
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13858
13856
  warning_code: 'being_deleted'
13859
13857
  }[]
13858
+ /** ID of user identity to which the Access Grant gives access. */
13859
+ user_identity_id?: string | undefined
13860
13860
  }
13861
13861
  }
13862
13862
  }
@@ -13884,8 +13884,6 @@ export type Routes = {
13884
13884
  access_grant_id: string
13885
13885
  /** Reservation key for the access grant. */
13886
13886
  reservation_key?: string | undefined
13887
- /** ID of user identity to which the Access Grant gives access. */
13888
- user_identity_id: string
13889
13887
  /**
13890
13888
  * @deprecated Use `space_ids`.*/
13891
13889
  location_ids: string[]
@@ -13925,6 +13923,8 @@ export type Routes = {
13925
13923
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13926
13924
  warning_code: 'being_deleted'
13927
13925
  }[]
13926
+ /** ID of user identity to which the Access Grant gives access. */
13927
+ user_identity_id?: string | undefined
13928
13928
  }[]
13929
13929
  }
13930
13930
  }
@@ -68134,14 +68134,25 @@ export type Routes = {
68134
68134
  reservation_created?:
68135
68135
  | {
68136
68136
  occupied_preset_key?: string | undefined
68137
- fallback_preset?:
68137
+ automated_occupied_preset?:
68138
+ | {
68139
+ mode: 'heat' | 'cool' | 'auto'
68140
+ temperature: number
68141
+ temperature_unit: 'celsius' | 'fahrenheit'
68142
+ fan_mode: 'on' | 'auto' | 'circulate'
68143
+ is_override_allowed: boolean
68144
+ max_override_period_minutes: number
68145
+ }
68146
+ | undefined
68147
+ unoccupied_preset_key?: string | undefined
68148
+ automated_unoccupied_preset?:
68138
68149
  | {
68139
68150
  mode: 'heat' | 'cool' | 'auto'
68140
68151
  temperature: number
68141
68152
  temperature_unit: 'celsius' | 'fahrenheit'
68142
68153
  fan_mode: 'on' | 'auto' | 'circulate'
68143
68154
  is_override_allowed: boolean
68144
- override_period_minutes: number
68155
+ max_override_period_minutes: number
68145
68156
  }
68146
68157
  | undefined
68147
68158
  }
@@ -68219,14 +68230,25 @@ export type Routes = {
68219
68230
  reservation_created?:
68220
68231
  | {
68221
68232
  occupied_preset_key?: string | undefined
68222
- fallback_preset?:
68233
+ automated_occupied_preset?:
68234
+ | {
68235
+ mode: 'heat' | 'cool' | 'auto'
68236
+ temperature: number
68237
+ temperature_unit: 'celsius' | 'fahrenheit'
68238
+ fan_mode: 'on' | 'auto' | 'circulate'
68239
+ is_override_allowed: boolean
68240
+ max_override_period_minutes: number
68241
+ }
68242
+ | undefined
68243
+ unoccupied_preset_key?: string | undefined
68244
+ automated_unoccupied_preset?:
68223
68245
  | {
68224
68246
  mode: 'heat' | 'cool' | 'auto'
68225
68247
  temperature: number
68226
68248
  temperature_unit: 'celsius' | 'fahrenheit'
68227
68249
  fan_mode: 'on' | 'auto' | 'circulate'
68228
68250
  is_override_allowed: boolean
68229
- override_period_minutes: number
68251
+ max_override_period_minutes: number
68230
68252
  }
68231
68253
  | undefined
68232
68254
  }