@seamapi/types 1.627.0 → 1.629.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.
@@ -47546,14 +47546,8 @@ export default {
47546
47546
  properties: {
47547
47547
  rules: {
47548
47548
  properties: {
47549
- delete_on_reservation_end: {
47550
- properties: { enabled: { type: 'boolean' } },
47551
- required: ['enabled'],
47552
- type: 'object',
47553
- },
47554
47549
  reservation_created: {
47555
47550
  properties: {
47556
- enabled: { type: 'boolean' },
47557
47551
  fallback_preset: {
47558
47552
  properties: {
47559
47553
  fan_mode: {
@@ -47590,13 +47584,13 @@ export default {
47590
47584
  },
47591
47585
  occupied_preset_key: { type: 'string' },
47592
47586
  },
47593
- required: ['enabled'],
47594
47587
  type: 'object',
47595
47588
  },
47596
- update_on_time_change: {
47597
- properties: { enabled: { type: 'boolean' } },
47598
- required: ['enabled'],
47599
- type: 'object',
47589
+ reservation_deleted: {
47590
+ $ref: '#/components/schemas/access_code',
47591
+ },
47592
+ reservation_time_updated: {
47593
+ $ref: '#/components/schemas/access_code',
47600
47594
  },
47601
47595
  },
47602
47596
  type: 'object',
@@ -47761,14 +47755,8 @@ export default {
47761
47755
  properties: {
47762
47756
  rules: {
47763
47757
  properties: {
47764
- delete_on_reservation_end: {
47765
- properties: { enabled: { type: 'boolean' } },
47766
- required: ['enabled'],
47767
- type: 'object',
47768
- },
47769
47758
  reservation_created: {
47770
47759
  properties: {
47771
- enabled: { type: 'boolean' },
47772
47760
  fallback_preset: {
47773
47761
  properties: {
47774
47762
  fan_mode: {
@@ -47805,13 +47793,13 @@ export default {
47805
47793
  },
47806
47794
  occupied_preset_key: { type: 'string' },
47807
47795
  },
47808
- required: ['enabled'],
47809
47796
  type: 'object',
47810
47797
  },
47811
- update_on_time_change: {
47812
- properties: { enabled: { type: 'boolean' } },
47813
- required: ['enabled'],
47814
- type: 'object',
47798
+ reservation_deleted: {
47799
+ $ref: '#/components/schemas/access_code',
47800
+ },
47801
+ reservation_time_updated: {
47802
+ $ref: '#/components/schemas/access_code',
47815
47803
  },
47816
47804
  },
47817
47805
  type: 'object',
@@ -47967,14 +47955,8 @@ export default {
47967
47955
  properties: {
47968
47956
  rules: {
47969
47957
  properties: {
47970
- delete_on_reservation_end: {
47971
- properties: { enabled: { type: 'boolean' } },
47972
- required: ['enabled'],
47973
- type: 'object',
47974
- },
47975
47958
  reservation_created: {
47976
47959
  properties: {
47977
- enabled: { type: 'boolean' },
47978
47960
  fallback_preset: {
47979
47961
  properties: {
47980
47962
  fan_mode: {
@@ -48011,12 +47993,14 @@ export default {
48011
47993
  },
48012
47994
  occupied_preset_key: { type: 'string' },
48013
47995
  },
48014
- required: ['enabled'],
48015
47996
  type: 'object',
48016
47997
  },
48017
- update_on_time_change: {
48018
- properties: { enabled: { type: 'boolean' } },
48019
- required: ['enabled'],
47998
+ reservation_deleted: {
47999
+ properties: {},
48000
+ type: 'object',
48001
+ },
48002
+ reservation_time_updated: {
48003
+ properties: {},
48020
48004
  type: 'object',
48021
48005
  },
48022
48006
  },
@@ -48180,14 +48164,8 @@ export default {
48180
48164
  properties: {
48181
48165
  rules: {
48182
48166
  properties: {
48183
- delete_on_reservation_end: {
48184
- properties: { enabled: { type: 'boolean' } },
48185
- required: ['enabled'],
48186
- type: 'object',
48187
- },
48188
48167
  reservation_created: {
48189
48168
  properties: {
48190
- enabled: { type: 'boolean' },
48191
48169
  fallback_preset: {
48192
48170
  properties: {
48193
48171
  fan_mode: {
@@ -48224,12 +48202,14 @@ export default {
48224
48202
  },
48225
48203
  occupied_preset_key: { type: 'string' },
48226
48204
  },
48227
- required: ['enabled'],
48228
48205
  type: 'object',
48229
48206
  },
48230
- update_on_time_change: {
48231
- properties: { enabled: { type: 'boolean' } },
48232
- required: ['enabled'],
48207
+ reservation_deleted: {
48208
+ properties: {},
48209
+ type: 'object',
48210
+ },
48211
+ reservation_time_updated: {
48212
+ properties: {},
48233
48213
  type: 'object',
48234
48214
  },
48235
48215
  },
@@ -48390,6 +48370,69 @@ export default {
48390
48370
  'x-undocumented': 'Internal endpoint for Console.',
48391
48371
  },
48392
48372
  },
48373
+ '/seam/customer/v1/connectors/delete': {
48374
+ post: {
48375
+ description: 'Deletes a connector from a workspace. The connector must already be assigned to a workspace.\nThis will remove the connector row from the database and deactivate any active connections.',
48376
+ operationId: 'seamCustomerV1ConnectorsDeletePost',
48377
+ requestBody: {
48378
+ content: {
48379
+ 'application/json': {
48380
+ schema: {
48381
+ properties: {
48382
+ connector_id: {
48383
+ description: 'ID of the connector to delete',
48384
+ minLength: 1,
48385
+ type: 'string',
48386
+ },
48387
+ },
48388
+ required: ['connector_id'],
48389
+ type: 'object',
48390
+ },
48391
+ },
48392
+ },
48393
+ },
48394
+ responses: {
48395
+ 200: {
48396
+ content: {
48397
+ 'application/json': {
48398
+ schema: {
48399
+ properties: {
48400
+ connector: {
48401
+ properties: {
48402
+ connector_id: { type: 'string' },
48403
+ connector_type: { type: 'string' },
48404
+ status: { enum: ['deleted'], type: 'string' },
48405
+ },
48406
+ required: ['connector_id', 'connector_type', 'status'],
48407
+ type: 'object',
48408
+ },
48409
+ ok: { type: 'boolean' },
48410
+ },
48411
+ required: ['connector', 'ok'],
48412
+ type: 'object',
48413
+ },
48414
+ },
48415
+ },
48416
+ description: 'OK',
48417
+ },
48418
+ 400: { description: 'Bad Request' },
48419
+ 401: { description: 'Unauthorized' },
48420
+ },
48421
+ security: [
48422
+ { api_key: [] },
48423
+ { client_session_with_customer: [] },
48424
+ { console_session_with_workspace: [] },
48425
+ ],
48426
+ summary: '/seam/customer/v1/connectors/delete',
48427
+ tags: [],
48428
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
48429
+ 'x-fern-sdk-method-name': 'delete',
48430
+ 'x-fern-sdk-return-value': 'connector',
48431
+ 'x-response-key': 'connector',
48432
+ 'x-title': 'Delete Connector',
48433
+ 'x-undocumented': 'Internal endpoint for Console.',
48434
+ },
48435
+ },
48393
48436
  '/seam/customer/v1/connectors/list': {
48394
48437
  get: {
48395
48438
  description: 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
@@ -48581,6 +48624,122 @@ export default {
48581
48624
  'x-undocumented': 'Only used internally.',
48582
48625
  },
48583
48626
  },
48627
+ '/seam/customer/v1/connectors/update': {
48628
+ post: {
48629
+ description: 'Updates an existing connector in a workspace. The connector must already be assigned to a workspace.\nThe connector will be reactivated with the new configuration.',
48630
+ operationId: 'seamCustomerV1ConnectorsUpdatePost',
48631
+ requestBody: {
48632
+ content: {
48633
+ 'application/json': {
48634
+ schema: {
48635
+ properties: {
48636
+ config: {
48637
+ description: 'Instance-specific configuration for the connector',
48638
+ oneOf: [
48639
+ {
48640
+ properties: {
48641
+ access_token: { minLength: 1, type: 'string' },
48642
+ client: {
48643
+ default: 'seam',
48644
+ minLength: 1,
48645
+ type: 'string',
48646
+ },
48647
+ client_token: { minLength: 1, type: 'string' },
48648
+ enterprise_id: { format: 'uuid', type: 'string' },
48649
+ enterprise_ids: {
48650
+ items: { format: 'uuid', type: 'string' },
48651
+ type: 'array',
48652
+ },
48653
+ },
48654
+ type: 'object',
48655
+ },
48656
+ { properties: {}, type: 'object' },
48657
+ ],
48658
+ },
48659
+ connector_id: {
48660
+ description: 'ID of the connector to update',
48661
+ minLength: 1,
48662
+ type: 'string',
48663
+ },
48664
+ customer_key: {
48665
+ description: 'Key identifying the customer',
48666
+ minLength: 1,
48667
+ type: 'string',
48668
+ },
48669
+ },
48670
+ required: ['connector_id', 'config'],
48671
+ type: 'object',
48672
+ },
48673
+ },
48674
+ },
48675
+ },
48676
+ responses: {
48677
+ 200: {
48678
+ content: {
48679
+ 'application/json': {
48680
+ schema: {
48681
+ properties: {
48682
+ connector: {
48683
+ properties: {
48684
+ connector_id: { type: 'string' },
48685
+ connector_type: { type: 'string' },
48686
+ error: { type: 'string' },
48687
+ status: {
48688
+ enum: ['active', 'inactive', 'error'],
48689
+ type: 'string',
48690
+ },
48691
+ webhook_subscription: {
48692
+ properties: {
48693
+ events: {
48694
+ items: { type: 'string' },
48695
+ type: 'array',
48696
+ },
48697
+ status: {
48698
+ enum: ['active', 'inactive', 'error'],
48699
+ type: 'string',
48700
+ },
48701
+ subscription_id: { type: 'string' },
48702
+ webhook_url: { type: 'string' },
48703
+ },
48704
+ required: [
48705
+ 'subscription_id',
48706
+ 'webhook_url',
48707
+ 'events',
48708
+ 'status',
48709
+ ],
48710
+ type: 'object',
48711
+ },
48712
+ },
48713
+ required: ['connector_id', 'connector_type', 'status'],
48714
+ type: 'object',
48715
+ },
48716
+ ok: { type: 'boolean' },
48717
+ },
48718
+ required: ['connector', 'ok'],
48719
+ type: 'object',
48720
+ },
48721
+ },
48722
+ },
48723
+ description: 'OK',
48724
+ },
48725
+ 400: { description: 'Bad Request' },
48726
+ 401: { description: 'Unauthorized' },
48727
+ },
48728
+ security: [
48729
+ { api_key: [] },
48730
+ { client_session_with_customer: [] },
48731
+ { console_session_with_workspace: [] },
48732
+ ],
48733
+ summary: '/seam/customer/v1/connectors/update',
48734
+ tags: [],
48735
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
48736
+ 'x-fern-sdk-method-name': 'update',
48737
+ 'x-fern-sdk-return-value': 'connector',
48738
+ 'x-response-key': 'connector',
48739
+ 'x-title': 'Update Connector',
48740
+ 'x-undocumented': 'Internal endpoint for Console.',
48741
+ },
48742
+ },
48584
48743
  '/seam/customer/v1/events/list': {
48585
48744
  get: {
48586
48745
  description: 'Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.',