@seamapi/types 1.382.0 → 1.383.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.
@@ -30602,6 +30602,9 @@ export interface Routes {
30602
30602
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
30603
30603
  error_code: 'no_communication_from_bridge';
30604
30604
  }>;
30605
+ telemetry_token: string | null;
30606
+ telemetry_token_expires_at: string | null;
30607
+ telemetry_url: string | null;
30605
30608
  };
30606
30609
  };
30607
30610
  };
@@ -30646,6 +30649,56 @@ export interface Routes {
30646
30649
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
30647
30650
  error_code: 'no_communication_from_bridge';
30648
30651
  }>;
30652
+ telemetry_token: string | null;
30653
+ telemetry_token_expires_at: string | null;
30654
+ telemetry_url: string | null;
30655
+ };
30656
+ };
30657
+ };
30658
+ '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token': {
30659
+ route: '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token';
30660
+ method: 'POST';
30661
+ queryParams: {};
30662
+ jsonBody: {};
30663
+ commonParams: {};
30664
+ formData: {};
30665
+ jsonResponse: {
30666
+ /** */
30667
+ bridge_client_session: {
30668
+ created_at: string;
30669
+ bridge_client_session_id: string;
30670
+ bridge_client_session_token: string;
30671
+ pairing_code: string;
30672
+ pairing_code_expires_at: string;
30673
+ tailscale_hostname: string;
30674
+ tailscale_auth_key: string | null;
30675
+ bridge_client_name: string;
30676
+ bridge_client_time_zone: string;
30677
+ bridge_client_machine_identifier_key: string;
30678
+ errors: Array<{
30679
+ message: string;
30680
+ created_at: string;
30681
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
30682
+ error_code: 'bridge_lan_unreachable';
30683
+ /** Seam cannot reach the tailscale proxy */
30684
+ is_tailscale_proxy_reachable: boolean | null;
30685
+ /** Tailscale proxy's SOCKS server is unhealthy */
30686
+ is_tailscale_proxy_socks_server_healthy: boolean | null;
30687
+ /** Tailscale proxy cannot reach the Tailscale network */
30688
+ can_tailscale_proxy_reach_tailscale_network: boolean | null;
30689
+ /** Tailscale proxy cannot reach the bridge */
30690
+ can_tailscale_proxy_reach_bridge: boolean | null;
30691
+ /** Bridge's SOCKS server is unhealthy */
30692
+ is_bridge_socks_server_healthy: boolean | null;
30693
+ } | {
30694
+ message: string;
30695
+ created_at: string;
30696
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
30697
+ error_code: 'no_communication_from_bridge';
30698
+ }>;
30699
+ telemetry_token: string | null;
30700
+ telemetry_token_expires_at: string | null;
30701
+ telemetry_url: string | null;
30649
30702
  };
30650
30703
  };
30651
30704
  };
@@ -30690,6 +30743,9 @@ export interface Routes {
30690
30743
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
30691
30744
  error_code: 'no_communication_from_bridge';
30692
30745
  }>;
30746
+ telemetry_token: string | null;
30747
+ telemetry_token_expires_at: string | null;
30748
+ telemetry_url: string | null;
30693
30749
  };
30694
30750
  };
30695
30751
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.382.0",
3
+ "version": "1.383.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -78,6 +78,9 @@ export const bridge_client_session = z.object({
78
78
  bridge_client_time_zone: z.string(),
79
79
  bridge_client_machine_identifier_key: z.string(),
80
80
  errors: z.array(bridge_client_session_error),
81
+ telemetry_token: z.string().nullable(),
82
+ telemetry_token_expires_at: z.string().datetime().nullable(),
83
+ telemetry_url: z.string().nullable(),
81
84
  }).describe(`
82
85
  ---
83
86
  route_path: /seam/bridge/v1/bridge_client_sessions
@@ -27312,6 +27312,13 @@ export default {
27312
27312
  },
27313
27313
  tailscale_auth_key: { nullable: true, type: 'string' },
27314
27314
  tailscale_hostname: { type: 'string' },
27315
+ telemetry_token: { nullable: true, type: 'string' },
27316
+ telemetry_token_expires_at: {
27317
+ format: 'date-time',
27318
+ nullable: true,
27319
+ type: 'string',
27320
+ },
27321
+ telemetry_url: { nullable: true, type: 'string' },
27315
27322
  },
27316
27323
  required: [
27317
27324
  'created_at',
@@ -27325,6 +27332,9 @@ export default {
27325
27332
  'bridge_client_time_zone',
27326
27333
  'bridge_client_machine_identifier_key',
27327
27334
  'errors',
27335
+ 'telemetry_token',
27336
+ 'telemetry_token_expires_at',
27337
+ 'telemetry_url',
27328
27338
  ],
27329
27339
  type: 'object',
27330
27340
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -27484,6 +27494,13 @@ export default {
27484
27494
  },
27485
27495
  tailscale_auth_key: { nullable: true, type: 'string' },
27486
27496
  tailscale_hostname: { type: 'string' },
27497
+ telemetry_token: { nullable: true, type: 'string' },
27498
+ telemetry_token_expires_at: {
27499
+ format: 'date-time',
27500
+ nullable: true,
27501
+ type: 'string',
27502
+ },
27503
+ telemetry_url: { nullable: true, type: 'string' },
27487
27504
  },
27488
27505
  required: [
27489
27506
  'created_at',
@@ -27497,6 +27514,9 @@ export default {
27497
27514
  'bridge_client_time_zone',
27498
27515
  'bridge_client_machine_identifier_key',
27499
27516
  'errors',
27517
+ 'telemetry_token',
27518
+ 'telemetry_token_expires_at',
27519
+ 'telemetry_url',
27500
27520
  ],
27501
27521
  type: 'object',
27502
27522
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -27647,6 +27667,13 @@ export default {
27647
27667
  },
27648
27668
  tailscale_auth_key: { nullable: true, type: 'string' },
27649
27669
  tailscale_hostname: { type: 'string' },
27670
+ telemetry_token: { nullable: true, type: 'string' },
27671
+ telemetry_token_expires_at: {
27672
+ format: 'date-time',
27673
+ nullable: true,
27674
+ type: 'string',
27675
+ },
27676
+ telemetry_url: { nullable: true, type: 'string' },
27650
27677
  },
27651
27678
  required: [
27652
27679
  'created_at',
@@ -27660,6 +27687,9 @@ export default {
27660
27687
  'bridge_client_time_zone',
27661
27688
  'bridge_client_machine_identifier_key',
27662
27689
  'errors',
27690
+ 'telemetry_token',
27691
+ 'telemetry_token_expires_at',
27692
+ 'telemetry_url',
27663
27693
  ],
27664
27694
  type: 'object',
27665
27695
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -27693,6 +27723,190 @@ export default {
27693
27723
  'x-undocumented': 'Seam Bridge Client only.',
27694
27724
  },
27695
27725
  },
27726
+ '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token': {
27727
+ post: {
27728
+ description:
27729
+ 'Returns the bridge client session associated with the session token and refreshed telemetry token.',
27730
+ operationId:
27731
+ 'seamBridgeV1BridgeClientSessionsRefreshTelemetryTokenPost',
27732
+ responses: {
27733
+ 200: {
27734
+ content: {
27735
+ 'application/json': {
27736
+ schema: {
27737
+ properties: {
27738
+ bridge_client_session: {
27739
+ properties: {
27740
+ bridge_client_machine_identifier_key: {
27741
+ type: 'string',
27742
+ },
27743
+ bridge_client_name: { type: 'string' },
27744
+ bridge_client_session_id: {
27745
+ format: 'uuid',
27746
+ type: 'string',
27747
+ },
27748
+ bridge_client_session_token: { type: 'string' },
27749
+ bridge_client_time_zone: { type: 'string' },
27750
+ created_at: { format: 'date-time', type: 'string' },
27751
+ errors: {
27752
+ items: {
27753
+ description:
27754
+ 'Error associated with the `bridge_client_session`.',
27755
+ discriminator: { propertyName: 'error_code' },
27756
+ oneOf: [
27757
+ {
27758
+ description:
27759
+ "Seam cannot reach the bridge's LAN",
27760
+ properties: {
27761
+ can_tailscale_proxy_reach_bridge: {
27762
+ description:
27763
+ 'Tailscale proxy cannot reach the bridge',
27764
+ nullable: true,
27765
+ type: 'boolean',
27766
+ },
27767
+ can_tailscale_proxy_reach_tailscale_network: {
27768
+ description:
27769
+ 'Tailscale proxy cannot reach the Tailscale network',
27770
+ nullable: true,
27771
+ type: 'boolean',
27772
+ },
27773
+ created_at: {
27774
+ format: 'date-time',
27775
+ type: 'string',
27776
+ },
27777
+ error_code: {
27778
+ description:
27779
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
27780
+ enum: ['bridge_lan_unreachable'],
27781
+ type: 'string',
27782
+ },
27783
+ is_bridge_socks_server_healthy: {
27784
+ description:
27785
+ "Bridge's SOCKS server is unhealthy",
27786
+ nullable: true,
27787
+ type: 'boolean',
27788
+ },
27789
+ is_tailscale_proxy_reachable: {
27790
+ description:
27791
+ 'Seam cannot reach the tailscale proxy',
27792
+ nullable: true,
27793
+ type: 'boolean',
27794
+ },
27795
+ is_tailscale_proxy_socks_server_healthy: {
27796
+ description:
27797
+ "Tailscale proxy's SOCKS server is unhealthy",
27798
+ nullable: true,
27799
+ type: 'boolean',
27800
+ },
27801
+ message: { type: 'string' },
27802
+ },
27803
+ required: [
27804
+ 'message',
27805
+ 'created_at',
27806
+ 'error_code',
27807
+ 'is_tailscale_proxy_reachable',
27808
+ 'is_tailscale_proxy_socks_server_healthy',
27809
+ 'can_tailscale_proxy_reach_tailscale_network',
27810
+ 'can_tailscale_proxy_reach_bridge',
27811
+ 'is_bridge_socks_server_healthy',
27812
+ ],
27813
+ type: 'object',
27814
+ },
27815
+ {
27816
+ description:
27817
+ 'Bridge has stopped communicating with Seam',
27818
+ properties: {
27819
+ created_at: {
27820
+ format: 'date-time',
27821
+ type: 'string',
27822
+ },
27823
+ error_code: {
27824
+ description:
27825
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
27826
+ enum: ['no_communication_from_bridge'],
27827
+ type: 'string',
27828
+ },
27829
+ message: { type: 'string' },
27830
+ },
27831
+ required: [
27832
+ 'message',
27833
+ 'created_at',
27834
+ 'error_code',
27835
+ ],
27836
+ type: 'object',
27837
+ },
27838
+ ],
27839
+ },
27840
+ type: 'array',
27841
+ },
27842
+ pairing_code: {
27843
+ maxLength: 6,
27844
+ minLength: 6,
27845
+ type: 'string',
27846
+ },
27847
+ pairing_code_expires_at: {
27848
+ format: 'date-time',
27849
+ type: 'string',
27850
+ },
27851
+ tailscale_auth_key: { nullable: true, type: 'string' },
27852
+ tailscale_hostname: { type: 'string' },
27853
+ telemetry_token: { nullable: true, type: 'string' },
27854
+ telemetry_token_expires_at: {
27855
+ format: 'date-time',
27856
+ nullable: true,
27857
+ type: 'string',
27858
+ },
27859
+ telemetry_url: { nullable: true, type: 'string' },
27860
+ },
27861
+ required: [
27862
+ 'created_at',
27863
+ 'bridge_client_session_id',
27864
+ 'bridge_client_session_token',
27865
+ 'pairing_code',
27866
+ 'pairing_code_expires_at',
27867
+ 'tailscale_hostname',
27868
+ 'tailscale_auth_key',
27869
+ 'bridge_client_name',
27870
+ 'bridge_client_time_zone',
27871
+ 'bridge_client_machine_identifier_key',
27872
+ 'errors',
27873
+ 'telemetry_token',
27874
+ 'telemetry_token_expires_at',
27875
+ 'telemetry_url',
27876
+ ],
27877
+ type: 'object',
27878
+ 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
27879
+ 'x-undocumented': 'Seam Bridge Client only.',
27880
+ },
27881
+ ok: { type: 'boolean' },
27882
+ },
27883
+ required: ['bridge_client_session', 'ok'],
27884
+ type: 'object',
27885
+ },
27886
+ },
27887
+ },
27888
+ description: 'OK',
27889
+ },
27890
+ 400: { description: 'Bad Request' },
27891
+ 401: { description: 'Unauthorized' },
27892
+ },
27893
+ security: [{ bridge_client_session: [] }],
27894
+ summary:
27895
+ '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token',
27896
+ tags: [],
27897
+ 'x-fern-sdk-group-name': [
27898
+ 'seam',
27899
+ 'bridge',
27900
+ 'v1',
27901
+ 'bridge_client_sessions',
27902
+ ],
27903
+ 'x-fern-sdk-method-name': 'refresh_telemetry_token',
27904
+ 'x-fern-sdk-return-value': 'bridge_client_session',
27905
+ 'x-response-key': 'bridge_client_session',
27906
+ 'x-title': 'Refresh telemetry token for bridge client session',
27907
+ 'x-undocumented': 'Seam Bridge Client only.',
27908
+ },
27909
+ },
27696
27910
  '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': {
27697
27911
  post: {
27698
27912
  description:
@@ -27820,6 +28034,13 @@ export default {
27820
28034
  },
27821
28035
  tailscale_auth_key: { nullable: true, type: 'string' },
27822
28036
  tailscale_hostname: { type: 'string' },
28037
+ telemetry_token: { nullable: true, type: 'string' },
28038
+ telemetry_token_expires_at: {
28039
+ format: 'date-time',
28040
+ nullable: true,
28041
+ type: 'string',
28042
+ },
28043
+ telemetry_url: { nullable: true, type: 'string' },
27823
28044
  },
27824
28045
  required: [
27825
28046
  'created_at',
@@ -27833,6 +28054,9 @@ export default {
27833
28054
  'bridge_client_time_zone',
27834
28055
  'bridge_client_machine_identifier_key',
27835
28056
  'errors',
28057
+ 'telemetry_token',
28058
+ 'telemetry_token_expires_at',
28059
+ 'telemetry_url',
27836
28060
  ],
27837
28061
  type: 'object',
27838
28062
  'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
@@ -36988,6 +36988,9 @@ export interface Routes {
36988
36988
  error_code: 'no_communication_from_bridge'
36989
36989
  }
36990
36990
  >
36991
+ telemetry_token: string | null
36992
+ telemetry_token_expires_at: string | null
36993
+ telemetry_url: string | null
36991
36994
  }
36992
36995
  }
36993
36996
  }
@@ -37035,6 +37038,59 @@ export interface Routes {
37035
37038
  error_code: 'no_communication_from_bridge'
37036
37039
  }
37037
37040
  >
37041
+ telemetry_token: string | null
37042
+ telemetry_token_expires_at: string | null
37043
+ telemetry_url: string | null
37044
+ }
37045
+ }
37046
+ }
37047
+ '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token': {
37048
+ route: '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token'
37049
+ method: 'POST'
37050
+ queryParams: {}
37051
+ jsonBody: {}
37052
+ commonParams: {}
37053
+ formData: {}
37054
+ jsonResponse: {
37055
+ /** */
37056
+ bridge_client_session: {
37057
+ created_at: string
37058
+ bridge_client_session_id: string
37059
+ bridge_client_session_token: string
37060
+ pairing_code: string
37061
+ pairing_code_expires_at: string
37062
+ tailscale_hostname: string
37063
+ tailscale_auth_key: string | null
37064
+ bridge_client_name: string
37065
+ bridge_client_time_zone: string
37066
+ bridge_client_machine_identifier_key: string
37067
+ errors: Array<
37068
+ | {
37069
+ message: string
37070
+ created_at: string
37071
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
37072
+ error_code: 'bridge_lan_unreachable'
37073
+ /** Seam cannot reach the tailscale proxy */
37074
+ is_tailscale_proxy_reachable: boolean | null
37075
+ /** Tailscale proxy's SOCKS server is unhealthy */
37076
+ is_tailscale_proxy_socks_server_healthy: boolean | null
37077
+ /** Tailscale proxy cannot reach the Tailscale network */
37078
+ can_tailscale_proxy_reach_tailscale_network: boolean | null
37079
+ /** Tailscale proxy cannot reach the bridge */
37080
+ can_tailscale_proxy_reach_bridge: boolean | null
37081
+ /** Bridge's SOCKS server is unhealthy */
37082
+ is_bridge_socks_server_healthy: boolean | null
37083
+ }
37084
+ | {
37085
+ message: string
37086
+ created_at: string
37087
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
37088
+ error_code: 'no_communication_from_bridge'
37089
+ }
37090
+ >
37091
+ telemetry_token: string | null
37092
+ telemetry_token_expires_at: string | null
37093
+ telemetry_url: string | null
37038
37094
  }
37039
37095
  }
37040
37096
  }
@@ -37082,6 +37138,9 @@ export interface Routes {
37082
37138
  error_code: 'no_communication_from_bridge'
37083
37139
  }
37084
37140
  >
37141
+ telemetry_token: string | null
37142
+ telemetry_token_expires_at: string | null
37143
+ telemetry_url: string | null
37085
37144
  }
37086
37145
  }
37087
37146
  }