@seamapi/types 1.738.0 → 1.739.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.
@@ -62784,6 +62784,1224 @@ export default {
62784
62784
  'x-undocumented': 'Internal endpoint for Console.',
62785
62785
  },
62786
62786
  },
62787
+ '/seam/customer/v1/customers/automations/get': {
62788
+ get: {
62789
+ description:
62790
+ 'Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
62791
+ operationId: 'seamCustomerV1CustomersAutomationsGetGet',
62792
+ parameters: [
62793
+ {
62794
+ in: 'query',
62795
+ name: 'customer_key',
62796
+ required: true,
62797
+ schema: { description: 'Key of the customer.', type: 'string' },
62798
+ },
62799
+ ],
62800
+ responses: {
62801
+ 200: {
62802
+ content: {
62803
+ 'application/json': {
62804
+ schema: {
62805
+ properties: {
62806
+ automation: {
62807
+ properties: {
62808
+ access_rules: {
62809
+ properties: {
62810
+ reservation_created: {
62811
+ properties: {
62812
+ config: {
62813
+ properties: {
62814
+ access_methods: {
62815
+ items: {
62816
+ enum: ['card', 'mobile_key', 'code'],
62817
+ type: 'string',
62818
+ },
62819
+ minItems: 1,
62820
+ type: 'array',
62821
+ },
62822
+ card_count_on_reservation_create: {
62823
+ minimum: 0,
62824
+ type: 'integer',
62825
+ },
62826
+ code_count_on_reservation_create: {
62827
+ minimum: 0,
62828
+ type: 'integer',
62829
+ },
62830
+ instant_key_max_use_count: {
62831
+ minimum: 1,
62832
+ type: 'integer',
62833
+ },
62834
+ method_issuance_strategy: {
62835
+ enum: [
62836
+ 'first_available',
62837
+ 'first_two_available',
62838
+ 'all_available',
62839
+ ],
62840
+ type: 'string',
62841
+ },
62842
+ },
62843
+ required: [
62844
+ 'access_methods',
62845
+ 'method_issuance_strategy',
62846
+ ],
62847
+ type: 'object',
62848
+ },
62849
+ rule: {
62850
+ enum: ['reservation_created'],
62851
+ type: 'string',
62852
+ },
62853
+ },
62854
+ required: ['rule', 'config'],
62855
+ type: 'object',
62856
+ },
62857
+ reservation_deleted: {
62858
+ properties: {
62859
+ config: {
62860
+ $ref: '#/components/schemas/access_code',
62861
+ },
62862
+ rule: {
62863
+ enum: ['reservation_deleted'],
62864
+ type: 'string',
62865
+ },
62866
+ },
62867
+ required: ['rule'],
62868
+ type: 'object',
62869
+ },
62870
+ reservation_spaces_updated: {
62871
+ properties: {
62872
+ config: {
62873
+ $ref: '#/components/schemas/access_code',
62874
+ },
62875
+ rule: {
62876
+ enum: ['reservation_spaces_updated'],
62877
+ type: 'string',
62878
+ },
62879
+ },
62880
+ required: ['rule'],
62881
+ type: 'object',
62882
+ },
62883
+ reservation_time_updated: {
62884
+ properties: {
62885
+ config: {
62886
+ $ref: '#/components/schemas/access_code',
62887
+ },
62888
+ rule: {
62889
+ enum: ['reservation_time_updated'],
62890
+ type: 'string',
62891
+ },
62892
+ },
62893
+ required: ['rule'],
62894
+ type: 'object',
62895
+ },
62896
+ space_name_updated: {
62897
+ properties: {
62898
+ config: {
62899
+ $ref: '#/components/schemas/access_code',
62900
+ },
62901
+ rule: {
62902
+ enum: ['space_name_updated'],
62903
+ type: 'string',
62904
+ },
62905
+ },
62906
+ required: ['rule'],
62907
+ type: 'object',
62908
+ },
62909
+ staff_member_created: {
62910
+ properties: {
62911
+ config: {
62912
+ $ref: '#/components/schemas/access_code',
62913
+ },
62914
+ rule: {
62915
+ enum: ['staff_member_created'],
62916
+ type: 'string',
62917
+ },
62918
+ },
62919
+ required: ['rule', 'config'],
62920
+ type: 'object',
62921
+ },
62922
+ staff_member_name_updated: {
62923
+ properties: {
62924
+ config: {
62925
+ $ref: '#/components/schemas/access_code',
62926
+ },
62927
+ rule: {
62928
+ enum: ['staff_member_name_updated'],
62929
+ type: 'string',
62930
+ },
62931
+ },
62932
+ required: ['rule'],
62933
+ type: 'object',
62934
+ },
62935
+ user_identity_name_updated: {
62936
+ properties: {
62937
+ config: {
62938
+ $ref: '#/components/schemas/access_code',
62939
+ },
62940
+ rule: {
62941
+ enum: ['user_identity_name_updated'],
62942
+ type: 'string',
62943
+ },
62944
+ },
62945
+ required: ['rule'],
62946
+ type: 'object',
62947
+ },
62948
+ },
62949
+ type: 'object',
62950
+ },
62951
+ climate_rules: {
62952
+ properties: {
62953
+ rules: {
62954
+ properties: {
62955
+ reservation_created: {
62956
+ properties: {
62957
+ automated_occupied_preset: {
62958
+ properties: {
62959
+ cooling_set_point_celsius: {
62960
+ format: 'float',
62961
+ type: 'number',
62962
+ },
62963
+ cooling_set_point_fahrenheit: {
62964
+ format: 'float',
62965
+ type: 'number',
62966
+ },
62967
+ fan_mode: {
62968
+ enum: ['on', 'auto', 'circulate'],
62969
+ type: 'string',
62970
+ },
62971
+ heating_set_point_celsius: {
62972
+ format: 'float',
62973
+ type: 'number',
62974
+ },
62975
+ heating_set_point_fahrenheit: {
62976
+ format: 'float',
62977
+ type: 'number',
62978
+ },
62979
+ is_override_allowed: {
62980
+ type: 'boolean',
62981
+ },
62982
+ max_override_period_minutes: {
62983
+ format: 'float',
62984
+ type: 'number',
62985
+ },
62986
+ mode: {
62987
+ enum: ['heat', 'cool', 'auto'],
62988
+ type: 'string',
62989
+ },
62990
+ },
62991
+ required: [
62992
+ 'mode',
62993
+ 'fan_mode',
62994
+ 'is_override_allowed',
62995
+ 'max_override_period_minutes',
62996
+ ],
62997
+ type: 'object',
62998
+ },
62999
+ automated_unoccupied_preset: {
63000
+ properties: {
63001
+ cooling_set_point_celsius: {
63002
+ format: 'float',
63003
+ type: 'number',
63004
+ },
63005
+ cooling_set_point_fahrenheit: {
63006
+ format: 'float',
63007
+ type: 'number',
63008
+ },
63009
+ fan_mode: {
63010
+ enum: ['on', 'auto', 'circulate'],
63011
+ type: 'string',
63012
+ },
63013
+ heating_set_point_celsius: {
63014
+ format: 'float',
63015
+ type: 'number',
63016
+ },
63017
+ heating_set_point_fahrenheit: {
63018
+ format: 'float',
63019
+ type: 'number',
63020
+ },
63021
+ is_override_allowed: {
63022
+ type: 'boolean',
63023
+ },
63024
+ max_override_period_minutes: {
63025
+ format: 'float',
63026
+ type: 'number',
63027
+ },
63028
+ mode: {
63029
+ enum: ['heat', 'cool', 'auto'],
63030
+ type: 'string',
63031
+ },
63032
+ },
63033
+ required: [
63034
+ 'mode',
63035
+ 'fan_mode',
63036
+ 'is_override_allowed',
63037
+ 'max_override_period_minutes',
63038
+ ],
63039
+ type: 'object',
63040
+ },
63041
+ occupied_preset_key: { type: 'string' },
63042
+ precondition_minutes_before_reservation: {
63043
+ format: 'float',
63044
+ type: 'number',
63045
+ },
63046
+ unoccupied_preset_key: { type: 'string' },
63047
+ },
63048
+ type: 'object',
63049
+ },
63050
+ reservation_deleted: {
63051
+ $ref: '#/components/schemas/access_code',
63052
+ },
63053
+ reservation_time_updated: {
63054
+ $ref: '#/components/schemas/access_code',
63055
+ },
63056
+ },
63057
+ type: 'object',
63058
+ },
63059
+ },
63060
+ required: ['rules'],
63061
+ type: 'object',
63062
+ },
63063
+ },
63064
+ type: 'object',
63065
+ },
63066
+ ok: { type: 'boolean' },
63067
+ },
63068
+ required: ['automation', 'ok'],
63069
+ type: 'object',
63070
+ },
63071
+ },
63072
+ },
63073
+ description: 'OK',
63074
+ },
63075
+ 400: { description: 'Bad Request' },
63076
+ 401: { description: 'Unauthorized' },
63077
+ },
63078
+ security: [
63079
+ { pat_with_workspace: [] },
63080
+ { console_session_with_workspace: [] },
63081
+ { api_key: [] },
63082
+ ],
63083
+ summary: '/seam/customer/v1/customers/automations/get',
63084
+ tags: [],
63085
+ 'x-fern-sdk-group-name': [
63086
+ 'seam',
63087
+ 'customer',
63088
+ 'v1',
63089
+ 'customers',
63090
+ 'automations',
63091
+ ],
63092
+ 'x-fern-sdk-method-name': 'get',
63093
+ 'x-fern-sdk-return-value': 'automation',
63094
+ 'x-response-key': 'automation',
63095
+ 'x-title': 'Get Customer Automation Configuration',
63096
+ },
63097
+ post: {
63098
+ description:
63099
+ 'Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
63100
+ operationId: 'seamCustomerV1CustomersAutomationsGetPost',
63101
+ requestBody: {
63102
+ content: {
63103
+ 'application/json': {
63104
+ schema: {
63105
+ properties: {
63106
+ customer_key: {
63107
+ description: 'Key of the customer.',
63108
+ type: 'string',
63109
+ },
63110
+ },
63111
+ required: ['customer_key'],
63112
+ type: 'object',
63113
+ },
63114
+ },
63115
+ },
63116
+ },
63117
+ responses: {
63118
+ 200: {
63119
+ content: {
63120
+ 'application/json': {
63121
+ schema: {
63122
+ properties: {
63123
+ automation: {
63124
+ properties: {
63125
+ access_rules: {
63126
+ properties: {
63127
+ reservation_created: {
63128
+ properties: {
63129
+ config: {
63130
+ properties: {
63131
+ access_methods: {
63132
+ items: {
63133
+ enum: ['card', 'mobile_key', 'code'],
63134
+ type: 'string',
63135
+ },
63136
+ minItems: 1,
63137
+ type: 'array',
63138
+ },
63139
+ card_count_on_reservation_create: {
63140
+ minimum: 0,
63141
+ type: 'integer',
63142
+ },
63143
+ code_count_on_reservation_create: {
63144
+ minimum: 0,
63145
+ type: 'integer',
63146
+ },
63147
+ instant_key_max_use_count: {
63148
+ minimum: 1,
63149
+ type: 'integer',
63150
+ },
63151
+ method_issuance_strategy: {
63152
+ enum: [
63153
+ 'first_available',
63154
+ 'first_two_available',
63155
+ 'all_available',
63156
+ ],
63157
+ type: 'string',
63158
+ },
63159
+ },
63160
+ required: [
63161
+ 'access_methods',
63162
+ 'method_issuance_strategy',
63163
+ ],
63164
+ type: 'object',
63165
+ },
63166
+ rule: {
63167
+ enum: ['reservation_created'],
63168
+ type: 'string',
63169
+ },
63170
+ },
63171
+ required: ['rule', 'config'],
63172
+ type: 'object',
63173
+ },
63174
+ reservation_deleted: {
63175
+ properties: {
63176
+ config: {
63177
+ $ref: '#/components/schemas/access_code',
63178
+ },
63179
+ rule: {
63180
+ enum: ['reservation_deleted'],
63181
+ type: 'string',
63182
+ },
63183
+ },
63184
+ required: ['rule'],
63185
+ type: 'object',
63186
+ },
63187
+ reservation_spaces_updated: {
63188
+ properties: {
63189
+ config: {
63190
+ $ref: '#/components/schemas/access_code',
63191
+ },
63192
+ rule: {
63193
+ enum: ['reservation_spaces_updated'],
63194
+ type: 'string',
63195
+ },
63196
+ },
63197
+ required: ['rule'],
63198
+ type: 'object',
63199
+ },
63200
+ reservation_time_updated: {
63201
+ properties: {
63202
+ config: {
63203
+ $ref: '#/components/schemas/access_code',
63204
+ },
63205
+ rule: {
63206
+ enum: ['reservation_time_updated'],
63207
+ type: 'string',
63208
+ },
63209
+ },
63210
+ required: ['rule'],
63211
+ type: 'object',
63212
+ },
63213
+ space_name_updated: {
63214
+ properties: {
63215
+ config: {
63216
+ $ref: '#/components/schemas/access_code',
63217
+ },
63218
+ rule: {
63219
+ enum: ['space_name_updated'],
63220
+ type: 'string',
63221
+ },
63222
+ },
63223
+ required: ['rule'],
63224
+ type: 'object',
63225
+ },
63226
+ staff_member_created: {
63227
+ properties: {
63228
+ config: {
63229
+ $ref: '#/components/schemas/access_code',
63230
+ },
63231
+ rule: {
63232
+ enum: ['staff_member_created'],
63233
+ type: 'string',
63234
+ },
63235
+ },
63236
+ required: ['rule', 'config'],
63237
+ type: 'object',
63238
+ },
63239
+ staff_member_name_updated: {
63240
+ properties: {
63241
+ config: {
63242
+ $ref: '#/components/schemas/access_code',
63243
+ },
63244
+ rule: {
63245
+ enum: ['staff_member_name_updated'],
63246
+ type: 'string',
63247
+ },
63248
+ },
63249
+ required: ['rule'],
63250
+ type: 'object',
63251
+ },
63252
+ user_identity_name_updated: {
63253
+ properties: {
63254
+ config: {
63255
+ $ref: '#/components/schemas/access_code',
63256
+ },
63257
+ rule: {
63258
+ enum: ['user_identity_name_updated'],
63259
+ type: 'string',
63260
+ },
63261
+ },
63262
+ required: ['rule'],
63263
+ type: 'object',
63264
+ },
63265
+ },
63266
+ type: 'object',
63267
+ },
63268
+ climate_rules: {
63269
+ properties: {
63270
+ rules: {
63271
+ properties: {
63272
+ reservation_created: {
63273
+ properties: {
63274
+ automated_occupied_preset: {
63275
+ properties: {
63276
+ cooling_set_point_celsius: {
63277
+ format: 'float',
63278
+ type: 'number',
63279
+ },
63280
+ cooling_set_point_fahrenheit: {
63281
+ format: 'float',
63282
+ type: 'number',
63283
+ },
63284
+ fan_mode: {
63285
+ enum: ['on', 'auto', 'circulate'],
63286
+ type: 'string',
63287
+ },
63288
+ heating_set_point_celsius: {
63289
+ format: 'float',
63290
+ type: 'number',
63291
+ },
63292
+ heating_set_point_fahrenheit: {
63293
+ format: 'float',
63294
+ type: 'number',
63295
+ },
63296
+ is_override_allowed: {
63297
+ type: 'boolean',
63298
+ },
63299
+ max_override_period_minutes: {
63300
+ format: 'float',
63301
+ type: 'number',
63302
+ },
63303
+ mode: {
63304
+ enum: ['heat', 'cool', 'auto'],
63305
+ type: 'string',
63306
+ },
63307
+ },
63308
+ required: [
63309
+ 'mode',
63310
+ 'fan_mode',
63311
+ 'is_override_allowed',
63312
+ 'max_override_period_minutes',
63313
+ ],
63314
+ type: 'object',
63315
+ },
63316
+ automated_unoccupied_preset: {
63317
+ properties: {
63318
+ cooling_set_point_celsius: {
63319
+ format: 'float',
63320
+ type: 'number',
63321
+ },
63322
+ cooling_set_point_fahrenheit: {
63323
+ format: 'float',
63324
+ type: 'number',
63325
+ },
63326
+ fan_mode: {
63327
+ enum: ['on', 'auto', 'circulate'],
63328
+ type: 'string',
63329
+ },
63330
+ heating_set_point_celsius: {
63331
+ format: 'float',
63332
+ type: 'number',
63333
+ },
63334
+ heating_set_point_fahrenheit: {
63335
+ format: 'float',
63336
+ type: 'number',
63337
+ },
63338
+ is_override_allowed: {
63339
+ type: 'boolean',
63340
+ },
63341
+ max_override_period_minutes: {
63342
+ format: 'float',
63343
+ type: 'number',
63344
+ },
63345
+ mode: {
63346
+ enum: ['heat', 'cool', 'auto'],
63347
+ type: 'string',
63348
+ },
63349
+ },
63350
+ required: [
63351
+ 'mode',
63352
+ 'fan_mode',
63353
+ 'is_override_allowed',
63354
+ 'max_override_period_minutes',
63355
+ ],
63356
+ type: 'object',
63357
+ },
63358
+ occupied_preset_key: { type: 'string' },
63359
+ precondition_minutes_before_reservation: {
63360
+ format: 'float',
63361
+ type: 'number',
63362
+ },
63363
+ unoccupied_preset_key: { type: 'string' },
63364
+ },
63365
+ type: 'object',
63366
+ },
63367
+ reservation_deleted: {
63368
+ $ref: '#/components/schemas/access_code',
63369
+ },
63370
+ reservation_time_updated: {
63371
+ $ref: '#/components/schemas/access_code',
63372
+ },
63373
+ },
63374
+ type: 'object',
63375
+ },
63376
+ },
63377
+ required: ['rules'],
63378
+ type: 'object',
63379
+ },
63380
+ },
63381
+ type: 'object',
63382
+ },
63383
+ ok: { type: 'boolean' },
63384
+ },
63385
+ required: ['automation', 'ok'],
63386
+ type: 'object',
63387
+ },
63388
+ },
63389
+ },
63390
+ description: 'OK',
63391
+ },
63392
+ 400: { description: 'Bad Request' },
63393
+ 401: { description: 'Unauthorized' },
63394
+ },
63395
+ security: [
63396
+ { pat_with_workspace: [] },
63397
+ { console_session_with_workspace: [] },
63398
+ { api_key: [] },
63399
+ ],
63400
+ summary: '/seam/customer/v1/customers/automations/get',
63401
+ tags: [],
63402
+ 'x-fern-sdk-group-name': [
63403
+ 'seam',
63404
+ 'customer',
63405
+ 'v1',
63406
+ 'customers',
63407
+ 'automations',
63408
+ ],
63409
+ 'x-fern-sdk-method-name': 'get',
63410
+ 'x-fern-sdk-return-value': 'automation',
63411
+ 'x-response-key': 'automation',
63412
+ 'x-title': 'Get Customer Automation Configuration',
63413
+ },
63414
+ },
63415
+ '/seam/customer/v1/customers/automations/update': {
63416
+ patch: {
63417
+ description:
63418
+ 'Updates the automation configuration for a specific customer.\nCreates a customer-level override if one does not already exist.',
63419
+ operationId: 'seamCustomerV1CustomersAutomationsUpdatePatch',
63420
+ requestBody: {
63421
+ content: {
63422
+ 'application/json': {
63423
+ schema: {
63424
+ properties: {
63425
+ access_rules: {
63426
+ description: 'Access automation rules configuration.',
63427
+ properties: {
63428
+ reservation_created: {
63429
+ properties: {
63430
+ config: {
63431
+ properties: {
63432
+ access_methods: {
63433
+ items: {
63434
+ enum: ['card', 'mobile_key', 'code'],
63435
+ type: 'string',
63436
+ },
63437
+ minItems: 1,
63438
+ type: 'array',
63439
+ },
63440
+ card_count_on_reservation_create: {
63441
+ minimum: 0,
63442
+ type: 'integer',
63443
+ },
63444
+ code_count_on_reservation_create: {
63445
+ minimum: 0,
63446
+ type: 'integer',
63447
+ },
63448
+ instant_key_max_use_count: {
63449
+ minimum: 1,
63450
+ type: 'integer',
63451
+ },
63452
+ method_issuance_strategy: {
63453
+ enum: [
63454
+ 'first_available',
63455
+ 'first_two_available',
63456
+ 'all_available',
63457
+ ],
63458
+ type: 'string',
63459
+ },
63460
+ },
63461
+ required: [
63462
+ 'access_methods',
63463
+ 'method_issuance_strategy',
63464
+ ],
63465
+ type: 'object',
63466
+ },
63467
+ rule: {
63468
+ enum: ['reservation_created'],
63469
+ type: 'string',
63470
+ },
63471
+ },
63472
+ required: ['rule', 'config'],
63473
+ type: 'object',
63474
+ },
63475
+ reservation_deleted: {
63476
+ properties: {
63477
+ config: { properties: {}, type: 'object' },
63478
+ rule: {
63479
+ enum: ['reservation_deleted'],
63480
+ type: 'string',
63481
+ },
63482
+ },
63483
+ required: ['rule'],
63484
+ type: 'object',
63485
+ },
63486
+ reservation_spaces_updated: {
63487
+ properties: {
63488
+ config: { properties: {}, type: 'object' },
63489
+ rule: {
63490
+ enum: ['reservation_spaces_updated'],
63491
+ type: 'string',
63492
+ },
63493
+ },
63494
+ required: ['rule'],
63495
+ type: 'object',
63496
+ },
63497
+ reservation_time_updated: {
63498
+ properties: {
63499
+ config: { properties: {}, type: 'object' },
63500
+ rule: {
63501
+ enum: ['reservation_time_updated'],
63502
+ type: 'string',
63503
+ },
63504
+ },
63505
+ required: ['rule'],
63506
+ type: 'object',
63507
+ },
63508
+ space_name_updated: {
63509
+ properties: {
63510
+ config: { properties: {}, type: 'object' },
63511
+ rule: {
63512
+ enum: ['space_name_updated'],
63513
+ type: 'string',
63514
+ },
63515
+ },
63516
+ required: ['rule'],
63517
+ type: 'object',
63518
+ },
63519
+ staff_member_created: {
63520
+ properties: {
63521
+ config: { properties: {}, type: 'object' },
63522
+ rule: {
63523
+ enum: ['staff_member_created'],
63524
+ type: 'string',
63525
+ },
63526
+ },
63527
+ required: ['rule', 'config'],
63528
+ type: 'object',
63529
+ },
63530
+ staff_member_name_updated: {
63531
+ properties: {
63532
+ config: { properties: {}, type: 'object' },
63533
+ rule: {
63534
+ enum: ['staff_member_name_updated'],
63535
+ type: 'string',
63536
+ },
63537
+ },
63538
+ required: ['rule'],
63539
+ type: 'object',
63540
+ },
63541
+ user_identity_name_updated: {
63542
+ properties: {
63543
+ config: { properties: {}, type: 'object' },
63544
+ rule: {
63545
+ enum: ['user_identity_name_updated'],
63546
+ type: 'string',
63547
+ },
63548
+ },
63549
+ required: ['rule'],
63550
+ type: 'object',
63551
+ },
63552
+ },
63553
+ type: 'object',
63554
+ },
63555
+ climate_rules: {
63556
+ description: 'Climate automation rules configuration.',
63557
+ properties: {
63558
+ rules: {
63559
+ properties: {
63560
+ reservation_created: {
63561
+ properties: {
63562
+ automated_occupied_preset: {
63563
+ properties: {
63564
+ cooling_set_point_celsius: {
63565
+ format: 'float',
63566
+ type: 'number',
63567
+ },
63568
+ cooling_set_point_fahrenheit: {
63569
+ format: 'float',
63570
+ type: 'number',
63571
+ },
63572
+ fan_mode: {
63573
+ enum: ['on', 'auto', 'circulate'],
63574
+ type: 'string',
63575
+ },
63576
+ heating_set_point_celsius: {
63577
+ format: 'float',
63578
+ type: 'number',
63579
+ },
63580
+ heating_set_point_fahrenheit: {
63581
+ format: 'float',
63582
+ type: 'number',
63583
+ },
63584
+ is_override_allowed: { type: 'boolean' },
63585
+ max_override_period_minutes: {
63586
+ format: 'float',
63587
+ type: 'number',
63588
+ },
63589
+ mode: {
63590
+ enum: ['heat', 'cool', 'auto'],
63591
+ type: 'string',
63592
+ },
63593
+ },
63594
+ required: [
63595
+ 'mode',
63596
+ 'fan_mode',
63597
+ 'is_override_allowed',
63598
+ 'max_override_period_minutes',
63599
+ ],
63600
+ type: 'object',
63601
+ },
63602
+ automated_unoccupied_preset: {
63603
+ properties: {
63604
+ cooling_set_point_celsius: {
63605
+ format: 'float',
63606
+ type: 'number',
63607
+ },
63608
+ cooling_set_point_fahrenheit: {
63609
+ format: 'float',
63610
+ type: 'number',
63611
+ },
63612
+ fan_mode: {
63613
+ enum: ['on', 'auto', 'circulate'],
63614
+ type: 'string',
63615
+ },
63616
+ heating_set_point_celsius: {
63617
+ format: 'float',
63618
+ type: 'number',
63619
+ },
63620
+ heating_set_point_fahrenheit: {
63621
+ format: 'float',
63622
+ type: 'number',
63623
+ },
63624
+ is_override_allowed: { type: 'boolean' },
63625
+ max_override_period_minutes: {
63626
+ format: 'float',
63627
+ type: 'number',
63628
+ },
63629
+ mode: {
63630
+ enum: ['heat', 'cool', 'auto'],
63631
+ type: 'string',
63632
+ },
63633
+ },
63634
+ required: [
63635
+ 'mode',
63636
+ 'fan_mode',
63637
+ 'is_override_allowed',
63638
+ 'max_override_period_minutes',
63639
+ ],
63640
+ type: 'object',
63641
+ },
63642
+ occupied_preset_key: { type: 'string' },
63643
+ precondition_minutes_before_reservation: {
63644
+ format: 'float',
63645
+ type: 'number',
63646
+ },
63647
+ unoccupied_preset_key: { type: 'string' },
63648
+ },
63649
+ type: 'object',
63650
+ },
63651
+ reservation_deleted: {
63652
+ properties: {},
63653
+ type: 'object',
63654
+ },
63655
+ reservation_time_updated: {
63656
+ properties: {},
63657
+ type: 'object',
63658
+ },
63659
+ },
63660
+ type: 'object',
63661
+ },
63662
+ },
63663
+ type: 'object',
63664
+ },
63665
+ customer_key: {
63666
+ description: 'Key of the customer.',
63667
+ type: 'string',
63668
+ },
63669
+ },
63670
+ required: ['customer_key'],
63671
+ type: 'object',
63672
+ },
63673
+ },
63674
+ },
63675
+ },
63676
+ responses: {
63677
+ 200: {
63678
+ content: {
63679
+ 'application/json': {
63680
+ schema: {
63681
+ properties: { ok: { type: 'boolean' } },
63682
+ required: ['ok'],
63683
+ type: 'object',
63684
+ },
63685
+ },
63686
+ },
63687
+ description: 'OK',
63688
+ },
63689
+ 400: { description: 'Bad Request' },
63690
+ 401: { description: 'Unauthorized' },
63691
+ },
63692
+ security: [
63693
+ { pat_with_workspace: [] },
63694
+ { console_session_with_workspace: [] },
63695
+ { api_key: [] },
63696
+ ],
63697
+ summary: '/seam/customer/v1/customers/automations/update',
63698
+ tags: [],
63699
+ 'x-fern-sdk-group-name': [
63700
+ 'seam',
63701
+ 'customer',
63702
+ 'v1',
63703
+ 'customers',
63704
+ 'automations',
63705
+ ],
63706
+ 'x-fern-sdk-method-name': 'update',
63707
+ 'x-response-key': null,
63708
+ 'x-title': 'Update Customer Automation Configuration',
63709
+ },
63710
+ post: {
63711
+ description:
63712
+ 'Updates the automation configuration for a specific customer.\nCreates a customer-level override if one does not already exist.',
63713
+ operationId: 'seamCustomerV1CustomersAutomationsUpdatePost',
63714
+ requestBody: {
63715
+ content: {
63716
+ 'application/json': {
63717
+ schema: {
63718
+ properties: {
63719
+ access_rules: {
63720
+ description: 'Access automation rules configuration.',
63721
+ properties: {
63722
+ reservation_created: {
63723
+ properties: {
63724
+ config: {
63725
+ properties: {
63726
+ access_methods: {
63727
+ items: {
63728
+ enum: ['card', 'mobile_key', 'code'],
63729
+ type: 'string',
63730
+ },
63731
+ minItems: 1,
63732
+ type: 'array',
63733
+ },
63734
+ card_count_on_reservation_create: {
63735
+ minimum: 0,
63736
+ type: 'integer',
63737
+ },
63738
+ code_count_on_reservation_create: {
63739
+ minimum: 0,
63740
+ type: 'integer',
63741
+ },
63742
+ instant_key_max_use_count: {
63743
+ minimum: 1,
63744
+ type: 'integer',
63745
+ },
63746
+ method_issuance_strategy: {
63747
+ enum: [
63748
+ 'first_available',
63749
+ 'first_two_available',
63750
+ 'all_available',
63751
+ ],
63752
+ type: 'string',
63753
+ },
63754
+ },
63755
+ required: [
63756
+ 'access_methods',
63757
+ 'method_issuance_strategy',
63758
+ ],
63759
+ type: 'object',
63760
+ },
63761
+ rule: {
63762
+ enum: ['reservation_created'],
63763
+ type: 'string',
63764
+ },
63765
+ },
63766
+ required: ['rule', 'config'],
63767
+ type: 'object',
63768
+ },
63769
+ reservation_deleted: {
63770
+ properties: {
63771
+ config: { properties: {}, type: 'object' },
63772
+ rule: {
63773
+ enum: ['reservation_deleted'],
63774
+ type: 'string',
63775
+ },
63776
+ },
63777
+ required: ['rule'],
63778
+ type: 'object',
63779
+ },
63780
+ reservation_spaces_updated: {
63781
+ properties: {
63782
+ config: { properties: {}, type: 'object' },
63783
+ rule: {
63784
+ enum: ['reservation_spaces_updated'],
63785
+ type: 'string',
63786
+ },
63787
+ },
63788
+ required: ['rule'],
63789
+ type: 'object',
63790
+ },
63791
+ reservation_time_updated: {
63792
+ properties: {
63793
+ config: { properties: {}, type: 'object' },
63794
+ rule: {
63795
+ enum: ['reservation_time_updated'],
63796
+ type: 'string',
63797
+ },
63798
+ },
63799
+ required: ['rule'],
63800
+ type: 'object',
63801
+ },
63802
+ space_name_updated: {
63803
+ properties: {
63804
+ config: { properties: {}, type: 'object' },
63805
+ rule: {
63806
+ enum: ['space_name_updated'],
63807
+ type: 'string',
63808
+ },
63809
+ },
63810
+ required: ['rule'],
63811
+ type: 'object',
63812
+ },
63813
+ staff_member_created: {
63814
+ properties: {
63815
+ config: { properties: {}, type: 'object' },
63816
+ rule: {
63817
+ enum: ['staff_member_created'],
63818
+ type: 'string',
63819
+ },
63820
+ },
63821
+ required: ['rule', 'config'],
63822
+ type: 'object',
63823
+ },
63824
+ staff_member_name_updated: {
63825
+ properties: {
63826
+ config: { properties: {}, type: 'object' },
63827
+ rule: {
63828
+ enum: ['staff_member_name_updated'],
63829
+ type: 'string',
63830
+ },
63831
+ },
63832
+ required: ['rule'],
63833
+ type: 'object',
63834
+ },
63835
+ user_identity_name_updated: {
63836
+ properties: {
63837
+ config: { properties: {}, type: 'object' },
63838
+ rule: {
63839
+ enum: ['user_identity_name_updated'],
63840
+ type: 'string',
63841
+ },
63842
+ },
63843
+ required: ['rule'],
63844
+ type: 'object',
63845
+ },
63846
+ },
63847
+ type: 'object',
63848
+ },
63849
+ climate_rules: {
63850
+ description: 'Climate automation rules configuration.',
63851
+ properties: {
63852
+ rules: {
63853
+ properties: {
63854
+ reservation_created: {
63855
+ properties: {
63856
+ automated_occupied_preset: {
63857
+ properties: {
63858
+ cooling_set_point_celsius: {
63859
+ format: 'float',
63860
+ type: 'number',
63861
+ },
63862
+ cooling_set_point_fahrenheit: {
63863
+ format: 'float',
63864
+ type: 'number',
63865
+ },
63866
+ fan_mode: {
63867
+ enum: ['on', 'auto', 'circulate'],
63868
+ type: 'string',
63869
+ },
63870
+ heating_set_point_celsius: {
63871
+ format: 'float',
63872
+ type: 'number',
63873
+ },
63874
+ heating_set_point_fahrenheit: {
63875
+ format: 'float',
63876
+ type: 'number',
63877
+ },
63878
+ is_override_allowed: { type: 'boolean' },
63879
+ max_override_period_minutes: {
63880
+ format: 'float',
63881
+ type: 'number',
63882
+ },
63883
+ mode: {
63884
+ enum: ['heat', 'cool', 'auto'],
63885
+ type: 'string',
63886
+ },
63887
+ },
63888
+ required: [
63889
+ 'mode',
63890
+ 'fan_mode',
63891
+ 'is_override_allowed',
63892
+ 'max_override_period_minutes',
63893
+ ],
63894
+ type: 'object',
63895
+ },
63896
+ automated_unoccupied_preset: {
63897
+ properties: {
63898
+ cooling_set_point_celsius: {
63899
+ format: 'float',
63900
+ type: 'number',
63901
+ },
63902
+ cooling_set_point_fahrenheit: {
63903
+ format: 'float',
63904
+ type: 'number',
63905
+ },
63906
+ fan_mode: {
63907
+ enum: ['on', 'auto', 'circulate'],
63908
+ type: 'string',
63909
+ },
63910
+ heating_set_point_celsius: {
63911
+ format: 'float',
63912
+ type: 'number',
63913
+ },
63914
+ heating_set_point_fahrenheit: {
63915
+ format: 'float',
63916
+ type: 'number',
63917
+ },
63918
+ is_override_allowed: { type: 'boolean' },
63919
+ max_override_period_minutes: {
63920
+ format: 'float',
63921
+ type: 'number',
63922
+ },
63923
+ mode: {
63924
+ enum: ['heat', 'cool', 'auto'],
63925
+ type: 'string',
63926
+ },
63927
+ },
63928
+ required: [
63929
+ 'mode',
63930
+ 'fan_mode',
63931
+ 'is_override_allowed',
63932
+ 'max_override_period_minutes',
63933
+ ],
63934
+ type: 'object',
63935
+ },
63936
+ occupied_preset_key: { type: 'string' },
63937
+ precondition_minutes_before_reservation: {
63938
+ format: 'float',
63939
+ type: 'number',
63940
+ },
63941
+ unoccupied_preset_key: { type: 'string' },
63942
+ },
63943
+ type: 'object',
63944
+ },
63945
+ reservation_deleted: {
63946
+ properties: {},
63947
+ type: 'object',
63948
+ },
63949
+ reservation_time_updated: {
63950
+ properties: {},
63951
+ type: 'object',
63952
+ },
63953
+ },
63954
+ type: 'object',
63955
+ },
63956
+ },
63957
+ type: 'object',
63958
+ },
63959
+ customer_key: {
63960
+ description: 'Key of the customer.',
63961
+ type: 'string',
63962
+ },
63963
+ },
63964
+ required: ['customer_key'],
63965
+ type: 'object',
63966
+ },
63967
+ },
63968
+ },
63969
+ },
63970
+ responses: {
63971
+ 200: {
63972
+ content: {
63973
+ 'application/json': {
63974
+ schema: {
63975
+ properties: { ok: { type: 'boolean' } },
63976
+ required: ['ok'],
63977
+ type: 'object',
63978
+ },
63979
+ },
63980
+ },
63981
+ description: 'OK',
63982
+ },
63983
+ 400: { description: 'Bad Request' },
63984
+ 401: { description: 'Unauthorized' },
63985
+ },
63986
+ security: [
63987
+ { pat_with_workspace: [] },
63988
+ { console_session_with_workspace: [] },
63989
+ { api_key: [] },
63990
+ ],
63991
+ summary: '/seam/customer/v1/customers/automations/update',
63992
+ tags: [],
63993
+ 'x-fern-sdk-group-name': [
63994
+ 'seam',
63995
+ 'customer',
63996
+ 'v1',
63997
+ 'customers',
63998
+ 'automations',
63999
+ ],
64000
+ 'x-fern-sdk-method-name': 'update',
64001
+ 'x-response-key': null,
64002
+ 'x-title': 'Update Customer Automation Configuration',
64003
+ },
64004
+ },
62787
64005
  '/seam/customer/v1/customers/list': {
62788
64006
  get: {
62789
64007
  description: 'Returns a list of all customers within the workspace.',