@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.
@@ -57185,7 +57185,6 @@ export type Routes = {
57185
57185
  climate_rules?: {
57186
57186
  rules: {
57187
57187
  reservation_created?: {
57188
- enabled: boolean;
57189
57188
  occupied_preset_key?: string | undefined;
57190
57189
  fallback_preset?: {
57191
57190
  mode: 'heat' | 'cool' | 'auto';
@@ -57196,12 +57195,8 @@ export type Routes = {
57196
57195
  override_period_minutes: number;
57197
57196
  } | undefined;
57198
57197
  } | undefined;
57199
- update_on_time_change?: {
57200
- enabled: boolean;
57201
- } | undefined;
57202
- delete_on_reservation_end?: {
57203
- enabled: boolean;
57204
- } | undefined;
57198
+ reservation_time_updated?: {} | undefined;
57199
+ reservation_deleted?: {} | undefined;
57205
57200
  };
57206
57201
  } | undefined;
57207
57202
  };
@@ -57249,7 +57244,6 @@ export type Routes = {
57249
57244
  climate_rules?: {
57250
57245
  rules?: {
57251
57246
  reservation_created?: {
57252
- enabled: boolean;
57253
57247
  occupied_preset_key?: string | undefined;
57254
57248
  fallback_preset?: {
57255
57249
  mode: 'heat' | 'cool' | 'auto';
@@ -57260,12 +57254,8 @@ export type Routes = {
57260
57254
  override_period_minutes: number;
57261
57255
  } | undefined;
57262
57256
  } | undefined;
57263
- update_on_time_change?: {
57264
- enabled: boolean;
57265
- } | undefined;
57266
- delete_on_reservation_end?: {
57267
- enabled: boolean;
57268
- } | undefined;
57257
+ reservation_time_updated?: {} | undefined;
57258
+ reservation_deleted?: {} | undefined;
57269
57259
  } | undefined;
57270
57260
  } | undefined;
57271
57261
  };
@@ -57308,6 +57298,24 @@ export type Routes = {
57308
57298
  };
57309
57299
  };
57310
57300
  };
57301
+ '/seam/customer/v1/connectors/delete': {
57302
+ route: '/seam/customer/v1/connectors/delete';
57303
+ method: 'POST';
57304
+ queryParams: {};
57305
+ jsonBody: {
57306
+ /** ID of the connector to delete */
57307
+ connector_id: string;
57308
+ };
57309
+ commonParams: {};
57310
+ formData: {};
57311
+ jsonResponse: {
57312
+ connector: {
57313
+ connector_id: string;
57314
+ connector_type: string;
57315
+ status: 'deleted';
57316
+ };
57317
+ };
57318
+ };
57311
57319
  '/seam/customer/v1/connectors/list': {
57312
57320
  route: '/seam/customer/v1/connectors/list';
57313
57321
  method: 'GET' | 'POST';
@@ -57346,6 +57354,41 @@ export type Routes = {
57346
57354
  };
57347
57355
  };
57348
57356
  };
57357
+ '/seam/customer/v1/connectors/update': {
57358
+ route: '/seam/customer/v1/connectors/update';
57359
+ method: 'POST';
57360
+ queryParams: {};
57361
+ jsonBody: {
57362
+ /** ID of the connector to update */
57363
+ connector_id: string;
57364
+ /** Key identifying the customer */
57365
+ customer_key?: string | undefined;
57366
+ /** Instance-specific configuration for the connector */
57367
+ config: {
57368
+ client_token?: string | undefined;
57369
+ access_token?: string | undefined;
57370
+ client?: string;
57371
+ enterprise_ids?: string[] | undefined;
57372
+ enterprise_id?: string | undefined;
57373
+ } | {};
57374
+ };
57375
+ commonParams: {};
57376
+ formData: {};
57377
+ jsonResponse: {
57378
+ connector: {
57379
+ connector_id: string;
57380
+ connector_type: string;
57381
+ status: 'active' | 'inactive' | 'error';
57382
+ webhook_subscription?: {
57383
+ subscription_id: string;
57384
+ webhook_url: string;
57385
+ events: string[];
57386
+ status: 'active' | 'inactive' | 'error';
57387
+ } | undefined;
57388
+ error?: string | undefined;
57389
+ };
57390
+ };
57391
+ };
57349
57392
  '/seam/customer/v1/events/list': {
57350
57393
  route: '/seam/customer/v1/events/list';
57351
57394
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.627.0",
3
+ "version": "1.629.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -51731,14 +51731,8 @@ export default {
51731
51731
  properties: {
51732
51732
  rules: {
51733
51733
  properties: {
51734
- delete_on_reservation_end: {
51735
- properties: { enabled: { type: 'boolean' } },
51736
- required: ['enabled'],
51737
- type: 'object',
51738
- },
51739
51734
  reservation_created: {
51740
51735
  properties: {
51741
- enabled: { type: 'boolean' },
51742
51736
  fallback_preset: {
51743
51737
  properties: {
51744
51738
  fan_mode: {
@@ -51775,13 +51769,13 @@ export default {
51775
51769
  },
51776
51770
  occupied_preset_key: { type: 'string' },
51777
51771
  },
51778
- required: ['enabled'],
51779
51772
  type: 'object',
51780
51773
  },
51781
- update_on_time_change: {
51782
- properties: { enabled: { type: 'boolean' } },
51783
- required: ['enabled'],
51784
- type: 'object',
51774
+ reservation_deleted: {
51775
+ $ref: '#/components/schemas/access_code',
51776
+ },
51777
+ reservation_time_updated: {
51778
+ $ref: '#/components/schemas/access_code',
51785
51779
  },
51786
51780
  },
51787
51781
  type: 'object',
@@ -51947,14 +51941,8 @@ export default {
51947
51941
  properties: {
51948
51942
  rules: {
51949
51943
  properties: {
51950
- delete_on_reservation_end: {
51951
- properties: { enabled: { type: 'boolean' } },
51952
- required: ['enabled'],
51953
- type: 'object',
51954
- },
51955
51944
  reservation_created: {
51956
51945
  properties: {
51957
- enabled: { type: 'boolean' },
51958
51946
  fallback_preset: {
51959
51947
  properties: {
51960
51948
  fan_mode: {
@@ -51991,13 +51979,13 @@ export default {
51991
51979
  },
51992
51980
  occupied_preset_key: { type: 'string' },
51993
51981
  },
51994
- required: ['enabled'],
51995
51982
  type: 'object',
51996
51983
  },
51997
- update_on_time_change: {
51998
- properties: { enabled: { type: 'boolean' } },
51999
- required: ['enabled'],
52000
- type: 'object',
51984
+ reservation_deleted: {
51985
+ $ref: '#/components/schemas/access_code',
51986
+ },
51987
+ reservation_time_updated: {
51988
+ $ref: '#/components/schemas/access_code',
52001
51989
  },
52002
51990
  },
52003
51991
  type: 'object',
@@ -52154,14 +52142,8 @@ export default {
52154
52142
  properties: {
52155
52143
  rules: {
52156
52144
  properties: {
52157
- delete_on_reservation_end: {
52158
- properties: { enabled: { type: 'boolean' } },
52159
- required: ['enabled'],
52160
- type: 'object',
52161
- },
52162
52145
  reservation_created: {
52163
52146
  properties: {
52164
- enabled: { type: 'boolean' },
52165
52147
  fallback_preset: {
52166
52148
  properties: {
52167
52149
  fan_mode: {
@@ -52198,12 +52180,14 @@ export default {
52198
52180
  },
52199
52181
  occupied_preset_key: { type: 'string' },
52200
52182
  },
52201
- required: ['enabled'],
52202
52183
  type: 'object',
52203
52184
  },
52204
- update_on_time_change: {
52205
- properties: { enabled: { type: 'boolean' } },
52206
- required: ['enabled'],
52185
+ reservation_deleted: {
52186
+ properties: {},
52187
+ type: 'object',
52188
+ },
52189
+ reservation_time_updated: {
52190
+ properties: {},
52207
52191
  type: 'object',
52208
52192
  },
52209
52193
  },
@@ -52368,14 +52352,8 @@ export default {
52368
52352
  properties: {
52369
52353
  rules: {
52370
52354
  properties: {
52371
- delete_on_reservation_end: {
52372
- properties: { enabled: { type: 'boolean' } },
52373
- required: ['enabled'],
52374
- type: 'object',
52375
- },
52376
52355
  reservation_created: {
52377
52356
  properties: {
52378
- enabled: { type: 'boolean' },
52379
52357
  fallback_preset: {
52380
52358
  properties: {
52381
52359
  fan_mode: {
@@ -52412,12 +52390,14 @@ export default {
52412
52390
  },
52413
52391
  occupied_preset_key: { type: 'string' },
52414
52392
  },
52415
- required: ['enabled'],
52416
52393
  type: 'object',
52417
52394
  },
52418
- update_on_time_change: {
52419
- properties: { enabled: { type: 'boolean' } },
52420
- required: ['enabled'],
52395
+ reservation_deleted: {
52396
+ properties: {},
52397
+ type: 'object',
52398
+ },
52399
+ reservation_time_updated: {
52400
+ properties: {},
52421
52401
  type: 'object',
52422
52402
  },
52423
52403
  },
@@ -52580,6 +52560,70 @@ export default {
52580
52560
  'x-undocumented': 'Internal endpoint for Console.',
52581
52561
  },
52582
52562
  },
52563
+ '/seam/customer/v1/connectors/delete': {
52564
+ post: {
52565
+ description:
52566
+ '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.',
52567
+ operationId: 'seamCustomerV1ConnectorsDeletePost',
52568
+ requestBody: {
52569
+ content: {
52570
+ 'application/json': {
52571
+ schema: {
52572
+ properties: {
52573
+ connector_id: {
52574
+ description: 'ID of the connector to delete',
52575
+ minLength: 1,
52576
+ type: 'string',
52577
+ },
52578
+ },
52579
+ required: ['connector_id'],
52580
+ type: 'object',
52581
+ },
52582
+ },
52583
+ },
52584
+ },
52585
+ responses: {
52586
+ 200: {
52587
+ content: {
52588
+ 'application/json': {
52589
+ schema: {
52590
+ properties: {
52591
+ connector: {
52592
+ properties: {
52593
+ connector_id: { type: 'string' },
52594
+ connector_type: { type: 'string' },
52595
+ status: { enum: ['deleted'], type: 'string' },
52596
+ },
52597
+ required: ['connector_id', 'connector_type', 'status'],
52598
+ type: 'object',
52599
+ },
52600
+ ok: { type: 'boolean' },
52601
+ },
52602
+ required: ['connector', 'ok'],
52603
+ type: 'object',
52604
+ },
52605
+ },
52606
+ },
52607
+ description: 'OK',
52608
+ },
52609
+ 400: { description: 'Bad Request' },
52610
+ 401: { description: 'Unauthorized' },
52611
+ },
52612
+ security: [
52613
+ { api_key: [] },
52614
+ { client_session_with_customer: [] },
52615
+ { console_session_with_workspace: [] },
52616
+ ],
52617
+ summary: '/seam/customer/v1/connectors/delete',
52618
+ tags: [],
52619
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
52620
+ 'x-fern-sdk-method-name': 'delete',
52621
+ 'x-fern-sdk-return-value': 'connector',
52622
+ 'x-response-key': 'connector',
52623
+ 'x-title': 'Delete Connector',
52624
+ 'x-undocumented': 'Internal endpoint for Console.',
52625
+ },
52626
+ },
52583
52627
  '/seam/customer/v1/connectors/list': {
52584
52628
  get: {
52585
52629
  description:
@@ -52774,6 +52818,124 @@ export default {
52774
52818
  'x-undocumented': 'Only used internally.',
52775
52819
  },
52776
52820
  },
52821
+ '/seam/customer/v1/connectors/update': {
52822
+ post: {
52823
+ description:
52824
+ '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.',
52825
+ operationId: 'seamCustomerV1ConnectorsUpdatePost',
52826
+ requestBody: {
52827
+ content: {
52828
+ 'application/json': {
52829
+ schema: {
52830
+ properties: {
52831
+ config: {
52832
+ description:
52833
+ 'Instance-specific configuration for the connector',
52834
+ oneOf: [
52835
+ {
52836
+ properties: {
52837
+ access_token: { minLength: 1, type: 'string' },
52838
+ client: {
52839
+ default: 'seam',
52840
+ minLength: 1,
52841
+ type: 'string',
52842
+ },
52843
+ client_token: { minLength: 1, type: 'string' },
52844
+ enterprise_id: { format: 'uuid', type: 'string' },
52845
+ enterprise_ids: {
52846
+ items: { format: 'uuid', type: 'string' },
52847
+ type: 'array',
52848
+ },
52849
+ },
52850
+ type: 'object',
52851
+ },
52852
+ { properties: {}, type: 'object' },
52853
+ ],
52854
+ },
52855
+ connector_id: {
52856
+ description: 'ID of the connector to update',
52857
+ minLength: 1,
52858
+ type: 'string',
52859
+ },
52860
+ customer_key: {
52861
+ description: 'Key identifying the customer',
52862
+ minLength: 1,
52863
+ type: 'string',
52864
+ },
52865
+ },
52866
+ required: ['connector_id', 'config'],
52867
+ type: 'object',
52868
+ },
52869
+ },
52870
+ },
52871
+ },
52872
+ responses: {
52873
+ 200: {
52874
+ content: {
52875
+ 'application/json': {
52876
+ schema: {
52877
+ properties: {
52878
+ connector: {
52879
+ properties: {
52880
+ connector_id: { type: 'string' },
52881
+ connector_type: { type: 'string' },
52882
+ error: { type: 'string' },
52883
+ status: {
52884
+ enum: ['active', 'inactive', 'error'],
52885
+ type: 'string',
52886
+ },
52887
+ webhook_subscription: {
52888
+ properties: {
52889
+ events: {
52890
+ items: { type: 'string' },
52891
+ type: 'array',
52892
+ },
52893
+ status: {
52894
+ enum: ['active', 'inactive', 'error'],
52895
+ type: 'string',
52896
+ },
52897
+ subscription_id: { type: 'string' },
52898
+ webhook_url: { type: 'string' },
52899
+ },
52900
+ required: [
52901
+ 'subscription_id',
52902
+ 'webhook_url',
52903
+ 'events',
52904
+ 'status',
52905
+ ],
52906
+ type: 'object',
52907
+ },
52908
+ },
52909
+ required: ['connector_id', 'connector_type', 'status'],
52910
+ type: 'object',
52911
+ },
52912
+ ok: { type: 'boolean' },
52913
+ },
52914
+ required: ['connector', 'ok'],
52915
+ type: 'object',
52916
+ },
52917
+ },
52918
+ },
52919
+ description: 'OK',
52920
+ },
52921
+ 400: { description: 'Bad Request' },
52922
+ 401: { description: 'Unauthorized' },
52923
+ },
52924
+ security: [
52925
+ { api_key: [] },
52926
+ { client_session_with_customer: [] },
52927
+ { console_session_with_workspace: [] },
52928
+ ],
52929
+ summary: '/seam/customer/v1/connectors/update',
52930
+ tags: [],
52931
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
52932
+ 'x-fern-sdk-method-name': 'update',
52933
+ 'x-fern-sdk-return-value': 'connector',
52934
+ 'x-response-key': 'connector',
52935
+ 'x-title': 'Update Connector',
52936
+ 'x-undocumented': 'Internal endpoint for Console.',
52937
+ },
52938
+ },
52777
52939
  '/seam/customer/v1/events/list': {
52778
52940
  get: {
52779
52941
  description:
@@ -67960,7 +67960,6 @@ export type Routes = {
67960
67960
  rules: {
67961
67961
  reservation_created?:
67962
67962
  | {
67963
- enabled: boolean
67964
67963
  occupied_preset_key?: string | undefined
67965
67964
  fallback_preset?:
67966
67965
  | {
@@ -67974,16 +67973,8 @@ export type Routes = {
67974
67973
  | undefined
67975
67974
  }
67976
67975
  | undefined
67977
- update_on_time_change?:
67978
- | {
67979
- enabled: boolean
67980
- }
67981
- | undefined
67982
- delete_on_reservation_end?:
67983
- | {
67984
- enabled: boolean
67985
- }
67986
- | undefined
67976
+ reservation_time_updated?: {} | undefined
67977
+ reservation_deleted?: {} | undefined
67987
67978
  }
67988
67979
  }
67989
67980
  | undefined
@@ -68054,7 +68045,6 @@ export type Routes = {
68054
68045
  | {
68055
68046
  reservation_created?:
68056
68047
  | {
68057
- enabled: boolean
68058
68048
  occupied_preset_key?: string | undefined
68059
68049
  fallback_preset?:
68060
68050
  | {
@@ -68068,16 +68058,8 @@ export type Routes = {
68068
68058
  | undefined
68069
68059
  }
68070
68060
  | undefined
68071
- update_on_time_change?:
68072
- | {
68073
- enabled: boolean
68074
- }
68075
- | undefined
68076
- delete_on_reservation_end?:
68077
- | {
68078
- enabled: boolean
68079
- }
68080
- | undefined
68061
+ reservation_time_updated?: {} | undefined
68062
+ reservation_deleted?: {} | undefined
68081
68063
  }
68082
68064
  | undefined
68083
68065
  }
@@ -68126,6 +68108,24 @@ export type Routes = {
68126
68108
  }
68127
68109
  }
68128
68110
  }
68111
+ '/seam/customer/v1/connectors/delete': {
68112
+ route: '/seam/customer/v1/connectors/delete'
68113
+ method: 'POST'
68114
+ queryParams: {}
68115
+ jsonBody: {
68116
+ /** ID of the connector to delete */
68117
+ connector_id: string
68118
+ }
68119
+ commonParams: {}
68120
+ formData: {}
68121
+ jsonResponse: {
68122
+ connector: {
68123
+ connector_id: string
68124
+ connector_type: string
68125
+ status: 'deleted'
68126
+ }
68127
+ }
68128
+ }
68129
68129
  '/seam/customer/v1/connectors/list': {
68130
68130
  route: '/seam/customer/v1/connectors/list'
68131
68131
  method: 'GET' | 'POST'
@@ -68164,6 +68164,45 @@ export type Routes = {
68164
68164
  }
68165
68165
  }
68166
68166
  }
68167
+ '/seam/customer/v1/connectors/update': {
68168
+ route: '/seam/customer/v1/connectors/update'
68169
+ method: 'POST'
68170
+ queryParams: {}
68171
+ jsonBody: {
68172
+ /** ID of the connector to update */
68173
+ connector_id: string
68174
+ /** Key identifying the customer */
68175
+ customer_key?: string | undefined
68176
+ /** Instance-specific configuration for the connector */
68177
+ config:
68178
+ | {
68179
+ client_token?: string | undefined
68180
+ access_token?: string | undefined
68181
+ client?: string
68182
+ enterprise_ids?: string[] | undefined
68183
+ enterprise_id?: string | undefined
68184
+ }
68185
+ | {}
68186
+ }
68187
+ commonParams: {}
68188
+ formData: {}
68189
+ jsonResponse: {
68190
+ connector: {
68191
+ connector_id: string
68192
+ connector_type: string
68193
+ status: 'active' | 'inactive' | 'error'
68194
+ webhook_subscription?:
68195
+ | {
68196
+ subscription_id: string
68197
+ webhook_url: string
68198
+ events: string[]
68199
+ status: 'active' | 'inactive' | 'error'
68200
+ }
68201
+ | undefined
68202
+ error?: string | undefined
68203
+ }
68204
+ }
68205
+ }
68167
68206
  '/seam/customer/v1/events/list': {
68168
68207
  route: '/seam/customer/v1/events/list'
68169
68208
  method: 'GET' | 'POST'