@seamapi/types 1.349.0 → 1.350.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.
@@ -12608,6 +12608,21 @@ export interface Routes {
12608
12608
  };
12609
12609
  };
12610
12610
  };
12611
+ '/bridges/list': {
12612
+ route: '/bridges/list';
12613
+ method: 'GET' | 'POST';
12614
+ queryParams: {};
12615
+ jsonBody: {};
12616
+ commonParams: {};
12617
+ formData: {};
12618
+ jsonResponse: {
12619
+ bridges: Array<{
12620
+ bridge_id: string;
12621
+ workspace_id: string;
12622
+ created_at: string;
12623
+ }>;
12624
+ };
12625
+ };
12611
12626
  '/client_sessions/create': {
12612
12627
  route: '/client_sessions/create';
12613
12628
  method: 'POST' | 'PUT';
@@ -26056,9 +26071,9 @@ export interface Routes {
26056
26071
  method: 'POST';
26057
26072
  queryParams: {};
26058
26073
  jsonBody: {
26059
- name: string;
26060
- time_zone: string;
26061
- machine_identifier_key: string;
26074
+ bridge_client_name: string;
26075
+ bridge_client_time_zone: string;
26076
+ bridge_client_machine_identifier_key: string;
26062
26077
  };
26063
26078
  commonParams: {};
26064
26079
  formData: {};
@@ -26068,13 +26083,13 @@ export interface Routes {
26068
26083
  created_at: string;
26069
26084
  bridge_client_session_id: string;
26070
26085
  bridge_client_session_token: string;
26071
- bridge_client_name: string;
26072
- bridge_client_time_zone: string;
26073
- bridge_client_machine_identifier_key: string;
26074
- bridge_client_tailscale_hostname: string;
26075
26086
  pairing_code: string;
26076
26087
  pairing_code_expires_at: string;
26088
+ tailscale_hostname: string;
26077
26089
  tailscale_auth_key: string | null;
26090
+ bridge_client_name: string;
26091
+ bridge_client_time_zone: string;
26092
+ bridge_client_machine_identifier_key: string;
26078
26093
  };
26079
26094
  };
26080
26095
  };
@@ -26091,13 +26106,36 @@ export interface Routes {
26091
26106
  created_at: string;
26092
26107
  bridge_client_session_id: string;
26093
26108
  bridge_client_session_token: string;
26109
+ pairing_code: string;
26110
+ pairing_code_expires_at: string;
26111
+ tailscale_hostname: string;
26112
+ tailscale_auth_key: string | null;
26094
26113
  bridge_client_name: string;
26095
26114
  bridge_client_time_zone: string;
26096
26115
  bridge_client_machine_identifier_key: string;
26097
- bridge_client_tailscale_hostname: string;
26116
+ };
26117
+ };
26118
+ };
26119
+ '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
26120
+ route: '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code';
26121
+ method: 'POST';
26122
+ queryParams: {};
26123
+ jsonBody: {};
26124
+ commonParams: {};
26125
+ formData: {};
26126
+ jsonResponse: {
26127
+ /** */
26128
+ bridge_client_session: {
26129
+ created_at: string;
26130
+ bridge_client_session_id: string;
26131
+ bridge_client_session_token: string;
26098
26132
  pairing_code: string;
26099
26133
  pairing_code_expires_at: string;
26134
+ tailscale_hostname: string;
26100
26135
  tailscale_auth_key: string | null;
26136
+ bridge_client_name: string;
26137
+ bridge_client_time_zone: string;
26138
+ bridge_client_machine_identifier_key: string;
26101
26139
  };
26102
26140
  };
26103
26141
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.349.0",
3
+ "version": "1.350.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -4,13 +4,13 @@ export const bridge_client_session = z.object({
4
4
  created_at: z.string().datetime(),
5
5
  bridge_client_session_id: z.string().uuid(),
6
6
  bridge_client_session_token: z.string(),
7
- bridge_client_name: z.string(),
8
- bridge_client_time_zone: z.string(),
9
- bridge_client_machine_identifier_key: z.string(),
10
- bridge_client_tailscale_hostname: z.string(),
11
7
  pairing_code: z.string().length(6),
12
8
  pairing_code_expires_at: z.string().datetime(),
9
+ tailscale_hostname: z.string(),
13
10
  tailscale_auth_key: z.string().nullable(),
11
+ bridge_client_name: z.string(),
12
+ bridge_client_time_zone: z.string(),
13
+ bridge_client_machine_identifier_key: z.string(),
14
14
  }).describe(`
15
15
  ---
16
16
  route_path: /seam/bridge/v1/bridge_client_sessions
@@ -19463,6 +19463,59 @@ export default {
19463
19463
  'x-response-key': 'bridge',
19464
19464
  },
19465
19465
  },
19466
+ '/bridges/list': {
19467
+ post: {
19468
+ operationId: 'bridgesListPost',
19469
+ requestBody: {
19470
+ content: {
19471
+ 'application/json': { schema: { properties: {}, type: 'object' } },
19472
+ },
19473
+ },
19474
+ responses: {
19475
+ 200: {
19476
+ content: {
19477
+ 'application/json': {
19478
+ schema: {
19479
+ properties: {
19480
+ bridges: {
19481
+ items: {
19482
+ properties: {
19483
+ bridge_id: { format: 'uuid', type: 'string' },
19484
+ created_at: { format: 'date-time', type: 'string' },
19485
+ workspace_id: { format: 'uuid', type: 'string' },
19486
+ },
19487
+ required: ['bridge_id', 'workspace_id', 'created_at'],
19488
+ type: 'object',
19489
+ 'x-route-path': '/bridges',
19490
+ 'x-undocumented': 'Unreleased.',
19491
+ },
19492
+ type: 'array',
19493
+ },
19494
+ ok: { type: 'boolean' },
19495
+ },
19496
+ required: ['bridges', 'ok'],
19497
+ type: 'object',
19498
+ },
19499
+ },
19500
+ },
19501
+ description: 'OK',
19502
+ },
19503
+ 400: { description: 'Bad Request' },
19504
+ 401: { description: 'Unauthorized' },
19505
+ },
19506
+ security: [
19507
+ { pat_with_workspace: [] },
19508
+ { console_session_with_workspace: [] },
19509
+ { api_key: [] },
19510
+ ],
19511
+ summary: '/bridges/list',
19512
+ tags: [],
19513
+ 'x-fern-sdk-group-name': ['bridges'],
19514
+ 'x-fern-sdk-method-name': 'list',
19515
+ 'x-fern-sdk-return-value': 'bridges',
19516
+ 'x-response-key': 'bridges',
19517
+ },
19518
+ },
19466
19519
  '/client_sessions/create': {
19467
19520
  post: {
19468
19521
  operationId: 'clientSessionsCreatePost',
@@ -23439,11 +23492,15 @@ export default {
23439
23492
  'application/json': {
23440
23493
  schema: {
23441
23494
  properties: {
23442
- machine_identifier_key: { type: 'string' },
23443
- name: { type: 'string' },
23444
- time_zone: { type: 'string' },
23495
+ bridge_client_machine_identifier_key: { type: 'string' },
23496
+ bridge_client_name: { type: 'string' },
23497
+ bridge_client_time_zone: { type: 'string' },
23445
23498
  },
23446
- required: ['name', 'time_zone', 'machine_identifier_key'],
23499
+ required: [
23500
+ 'bridge_client_name',
23501
+ 'bridge_client_time_zone',
23502
+ 'bridge_client_machine_identifier_key',
23503
+ ],
23447
23504
  type: 'object',
23448
23505
  },
23449
23506
  },
@@ -23466,7 +23523,6 @@ export default {
23466
23523
  type: 'string',
23467
23524
  },
23468
23525
  bridge_client_session_token: { type: 'string' },
23469
- bridge_client_tailscale_hostname: { type: 'string' },
23470
23526
  bridge_client_time_zone: { type: 'string' },
23471
23527
  created_at: { format: 'date-time', type: 'string' },
23472
23528
  pairing_code: {
@@ -23479,18 +23535,19 @@ export default {
23479
23535
  type: 'string',
23480
23536
  },
23481
23537
  tailscale_auth_key: { nullable: true, type: 'string' },
23538
+ tailscale_hostname: { type: 'string' },
23482
23539
  },
23483
23540
  required: [
23484
23541
  'created_at',
23485
23542
  'bridge_client_session_id',
23486
23543
  'bridge_client_session_token',
23487
- 'bridge_client_name',
23488
- 'bridge_client_time_zone',
23489
- 'bridge_client_machine_identifier_key',
23490
- 'bridge_client_tailscale_hostname',
23491
23544
  'pairing_code',
23492
23545
  'pairing_code_expires_at',
23546
+ 'tailscale_hostname',
23493
23547
  'tailscale_auth_key',
23548
+ 'bridge_client_name',
23549
+ 'bridge_client_time_zone',
23550
+ 'bridge_client_machine_identifier_key',
23494
23551
  ],
23495
23552
  type: 'object',
23496
23553
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -23544,7 +23601,6 @@ export default {
23544
23601
  type: 'string',
23545
23602
  },
23546
23603
  bridge_client_session_token: { type: 'string' },
23547
- bridge_client_tailscale_hostname: { type: 'string' },
23548
23604
  bridge_client_time_zone: { type: 'string' },
23549
23605
  created_at: { format: 'date-time', type: 'string' },
23550
23606
  pairing_code: {
@@ -23557,18 +23613,19 @@ export default {
23557
23613
  type: 'string',
23558
23614
  },
23559
23615
  tailscale_auth_key: { nullable: true, type: 'string' },
23616
+ tailscale_hostname: { type: 'string' },
23560
23617
  },
23561
23618
  required: [
23562
23619
  'created_at',
23563
23620
  'bridge_client_session_id',
23564
23621
  'bridge_client_session_token',
23565
- 'bridge_client_name',
23566
- 'bridge_client_time_zone',
23567
- 'bridge_client_machine_identifier_key',
23568
- 'bridge_client_tailscale_hostname',
23569
23622
  'pairing_code',
23570
23623
  'pairing_code_expires_at',
23624
+ 'tailscale_hostname',
23571
23625
  'tailscale_auth_key',
23626
+ 'bridge_client_name',
23627
+ 'bridge_client_time_zone',
23628
+ 'bridge_client_machine_identifier_key',
23572
23629
  ],
23573
23630
  type: 'object',
23574
23631
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -23613,7 +23670,6 @@ export default {
23613
23670
  type: 'string',
23614
23671
  },
23615
23672
  bridge_client_session_token: { type: 'string' },
23616
- bridge_client_tailscale_hostname: { type: 'string' },
23617
23673
  bridge_client_time_zone: { type: 'string' },
23618
23674
  created_at: { format: 'date-time', type: 'string' },
23619
23675
  pairing_code: {
@@ -23626,18 +23682,19 @@ export default {
23626
23682
  type: 'string',
23627
23683
  },
23628
23684
  tailscale_auth_key: { nullable: true, type: 'string' },
23685
+ tailscale_hostname: { type: 'string' },
23629
23686
  },
23630
23687
  required: [
23631
23688
  'created_at',
23632
23689
  'bridge_client_session_id',
23633
23690
  'bridge_client_session_token',
23634
- 'bridge_client_name',
23635
- 'bridge_client_time_zone',
23636
- 'bridge_client_machine_identifier_key',
23637
- 'bridge_client_tailscale_hostname',
23638
23691
  'pairing_code',
23639
23692
  'pairing_code_expires_at',
23693
+ 'tailscale_hostname',
23640
23694
  'tailscale_auth_key',
23695
+ 'bridge_client_name',
23696
+ 'bridge_client_time_zone',
23697
+ 'bridge_client_machine_identifier_key',
23641
23698
  ],
23642
23699
  type: 'object',
23643
23700
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -23669,6 +23726,86 @@ export default {
23669
23726
  'x-title': 'Get a Bridge Client Session',
23670
23727
  },
23671
23728
  },
23729
+ '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
23730
+ post: {
23731
+ description:
23732
+ 'Generate a new pairing code and return the updated bridge client session.',
23733
+ operationId:
23734
+ 'seamBridgeV1BridgeClientSessionsRegeneratePairingCodePost',
23735
+ responses: {
23736
+ 200: {
23737
+ content: {
23738
+ 'application/json': {
23739
+ schema: {
23740
+ properties: {
23741
+ bridge_client_session: {
23742
+ properties: {
23743
+ bridge_client_machine_identifier_key: {
23744
+ type: 'string',
23745
+ },
23746
+ bridge_client_name: { type: 'string' },
23747
+ bridge_client_session_id: {
23748
+ format: 'uuid',
23749
+ type: 'string',
23750
+ },
23751
+ bridge_client_session_token: { type: 'string' },
23752
+ bridge_client_time_zone: { type: 'string' },
23753
+ created_at: { format: 'date-time', type: 'string' },
23754
+ pairing_code: {
23755
+ maxLength: 6,
23756
+ minLength: 6,
23757
+ type: 'string',
23758
+ },
23759
+ pairing_code_expires_at: {
23760
+ format: 'date-time',
23761
+ type: 'string',
23762
+ },
23763
+ tailscale_auth_key: { nullable: true, type: 'string' },
23764
+ tailscale_hostname: { type: 'string' },
23765
+ },
23766
+ required: [
23767
+ 'created_at',
23768
+ 'bridge_client_session_id',
23769
+ 'bridge_client_session_token',
23770
+ 'pairing_code',
23771
+ 'pairing_code_expires_at',
23772
+ 'tailscale_hostname',
23773
+ 'tailscale_auth_key',
23774
+ 'bridge_client_name',
23775
+ 'bridge_client_time_zone',
23776
+ 'bridge_client_machine_identifier_key',
23777
+ ],
23778
+ type: 'object',
23779
+ 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
23780
+ },
23781
+ ok: { type: 'boolean' },
23782
+ },
23783
+ required: ['bridge_client_session', 'ok'],
23784
+ type: 'object',
23785
+ },
23786
+ },
23787
+ },
23788
+ description: 'OK',
23789
+ },
23790
+ 400: { description: 'Bad Request' },
23791
+ 401: { description: 'Unauthorized' },
23792
+ },
23793
+ security: [{ bridge_client_session: [] }],
23794
+ summary:
23795
+ '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code',
23796
+ tags: [],
23797
+ 'x-fern-sdk-group-name': [
23798
+ 'seam',
23799
+ 'bridge',
23800
+ 'v1',
23801
+ 'bridge_client_sessions',
23802
+ ],
23803
+ 'x-fern-sdk-method-name': 'regenerate_pairing_code',
23804
+ 'x-fern-sdk-return-value': 'bridge_client_session',
23805
+ 'x-response-key': 'bridge_client_session',
23806
+ 'x-title': 'Regenerate a Bridge Client Session Pairing Code',
23807
+ },
23808
+ },
23672
23809
  '/thermostats/activate_climate_preset': {
23673
23810
  post: {
23674
23811
  description:
@@ -15101,6 +15101,21 @@ export interface Routes {
15101
15101
  }
15102
15102
  }
15103
15103
  }
15104
+ '/bridges/list': {
15105
+ route: '/bridges/list'
15106
+ method: 'GET' | 'POST'
15107
+ queryParams: {}
15108
+ jsonBody: {}
15109
+ commonParams: {}
15110
+ formData: {}
15111
+ jsonResponse: {
15112
+ bridges: Array<{
15113
+ bridge_id: string
15114
+ workspace_id: string
15115
+ created_at: string
15116
+ }>
15117
+ }
15118
+ }
15104
15119
  '/client_sessions/create': {
15105
15120
  route: '/client_sessions/create'
15106
15121
  method: 'POST' | 'PUT'
@@ -32388,9 +32403,9 @@ export interface Routes {
32388
32403
  method: 'POST'
32389
32404
  queryParams: {}
32390
32405
  jsonBody: {
32391
- name: string
32392
- time_zone: string
32393
- machine_identifier_key: string
32406
+ bridge_client_name: string
32407
+ bridge_client_time_zone: string
32408
+ bridge_client_machine_identifier_key: string
32394
32409
  }
32395
32410
  commonParams: {}
32396
32411
  formData: {}
@@ -32400,13 +32415,13 @@ export interface Routes {
32400
32415
  created_at: string
32401
32416
  bridge_client_session_id: string
32402
32417
  bridge_client_session_token: string
32403
- bridge_client_name: string
32404
- bridge_client_time_zone: string
32405
- bridge_client_machine_identifier_key: string
32406
- bridge_client_tailscale_hostname: string
32407
32418
  pairing_code: string
32408
32419
  pairing_code_expires_at: string
32420
+ tailscale_hostname: string
32409
32421
  tailscale_auth_key: string | null
32422
+ bridge_client_name: string
32423
+ bridge_client_time_zone: string
32424
+ bridge_client_machine_identifier_key: string
32410
32425
  }
32411
32426
  }
32412
32427
  }
@@ -32423,13 +32438,36 @@ export interface Routes {
32423
32438
  created_at: string
32424
32439
  bridge_client_session_id: string
32425
32440
  bridge_client_session_token: string
32441
+ pairing_code: string
32442
+ pairing_code_expires_at: string
32443
+ tailscale_hostname: string
32444
+ tailscale_auth_key: string | null
32426
32445
  bridge_client_name: string
32427
32446
  bridge_client_time_zone: string
32428
32447
  bridge_client_machine_identifier_key: string
32429
- bridge_client_tailscale_hostname: string
32448
+ }
32449
+ }
32450
+ }
32451
+ '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
32452
+ route: '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code'
32453
+ method: 'POST'
32454
+ queryParams: {}
32455
+ jsonBody: {}
32456
+ commonParams: {}
32457
+ formData: {}
32458
+ jsonResponse: {
32459
+ /** */
32460
+ bridge_client_session: {
32461
+ created_at: string
32462
+ bridge_client_session_id: string
32463
+ bridge_client_session_token: string
32430
32464
  pairing_code: string
32431
32465
  pairing_code_expires_at: string
32466
+ tailscale_hostname: string
32432
32467
  tailscale_auth_key: string | null
32468
+ bridge_client_name: string
32469
+ bridge_client_time_zone: string
32470
+ bridge_client_machine_identifier_key: string
32433
32471
  }
32434
32472
  }
32435
32473
  }