@seamapi/types 1.366.0 → 1.367.1
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.
- package/dist/connect.cjs +517 -5
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +653 -5
- package/lib/seam/connect/models/bridges/bridge_client_session.d.ts +235 -0
- package/lib/seam/connect/models/bridges/bridge_client_session.js +47 -0
- package/lib/seam/connect/models/bridges/bridge_client_session.js.map +1 -1
- package/lib/seam/connect/models/locations/location.d.ts +3 -0
- package/lib/seam/connect/models/locations/location.js +1 -0
- package/lib/seam/connect/models/locations/location.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +507 -0
- package/lib/seam/connect/openapi.js +487 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +76 -5
- package/package.json +1 -1
- package/src/lib/seam/connect/models/bridges/bridge_client_session.ts +62 -0
- package/src/lib/seam/connect/models/locations/location.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +530 -0
- package/src/lib/seam/connect/route-types.ts +85 -5
|
@@ -28171,6 +28171,27 @@ export interface Routes {
|
|
|
28171
28171
|
bridge_client_name: string;
|
|
28172
28172
|
bridge_client_time_zone: string;
|
|
28173
28173
|
bridge_client_machine_identifier_key: string;
|
|
28174
|
+
errors: Array<{
|
|
28175
|
+
message: string;
|
|
28176
|
+
created_at: string;
|
|
28177
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28178
|
+
error_code: 'bridge_lan_unreachable';
|
|
28179
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28180
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28181
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28182
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28183
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28184
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28185
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28186
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28187
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28188
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28189
|
+
} | {
|
|
28190
|
+
message: string;
|
|
28191
|
+
created_at: string;
|
|
28192
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28193
|
+
error_code: 'no_communication_from_bridge';
|
|
28194
|
+
}>;
|
|
28174
28195
|
};
|
|
28175
28196
|
};
|
|
28176
28197
|
};
|
|
@@ -28194,6 +28215,27 @@ export interface Routes {
|
|
|
28194
28215
|
bridge_client_name: string;
|
|
28195
28216
|
bridge_client_time_zone: string;
|
|
28196
28217
|
bridge_client_machine_identifier_key: string;
|
|
28218
|
+
errors: Array<{
|
|
28219
|
+
message: string;
|
|
28220
|
+
created_at: string;
|
|
28221
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28222
|
+
error_code: 'bridge_lan_unreachable';
|
|
28223
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28224
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28225
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28226
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28227
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28228
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28229
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28230
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28231
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28232
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28233
|
+
} | {
|
|
28234
|
+
message: string;
|
|
28235
|
+
created_at: string;
|
|
28236
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28237
|
+
error_code: 'no_communication_from_bridge';
|
|
28238
|
+
}>;
|
|
28197
28239
|
};
|
|
28198
28240
|
};
|
|
28199
28241
|
};
|
|
@@ -28217,6 +28259,27 @@ export interface Routes {
|
|
|
28217
28259
|
bridge_client_name: string;
|
|
28218
28260
|
bridge_client_time_zone: string;
|
|
28219
28261
|
bridge_client_machine_identifier_key: string;
|
|
28262
|
+
errors: Array<{
|
|
28263
|
+
message: string;
|
|
28264
|
+
created_at: string;
|
|
28265
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28266
|
+
error_code: 'bridge_lan_unreachable';
|
|
28267
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28268
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28269
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28270
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28271
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28272
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28273
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28274
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28275
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28276
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28277
|
+
} | {
|
|
28278
|
+
message: string;
|
|
28279
|
+
created_at: string;
|
|
28280
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28281
|
+
error_code: 'no_communication_from_bridge';
|
|
28282
|
+
}>;
|
|
28220
28283
|
};
|
|
28221
28284
|
};
|
|
28222
28285
|
};
|
|
@@ -36989,7 +37052,7 @@ export interface Routes {
|
|
|
36989
37052
|
};
|
|
36990
37053
|
'/unstable_locations/add_devices': {
|
|
36991
37054
|
route: '/unstable_locations/add_devices';
|
|
36992
|
-
method: 'POST';
|
|
37055
|
+
method: 'POST' | 'PUT';
|
|
36993
37056
|
queryParams: {};
|
|
36994
37057
|
jsonBody: {
|
|
36995
37058
|
location_id: string;
|
|
@@ -37019,6 +37082,8 @@ export interface Routes {
|
|
|
37019
37082
|
location_id: string;
|
|
37020
37083
|
/** Unique identifier for the Seam workspace associated with the location. */
|
|
37021
37084
|
workspace_id: string;
|
|
37085
|
+
/** Name of the location. */
|
|
37086
|
+
name: string;
|
|
37022
37087
|
/** Display name of the location. */
|
|
37023
37088
|
display_name: string;
|
|
37024
37089
|
/** Geographical location of the location. */
|
|
@@ -37059,6 +37124,8 @@ export interface Routes {
|
|
|
37059
37124
|
location_id: string;
|
|
37060
37125
|
/** Unique identifier for the Seam workspace associated with the location. */
|
|
37061
37126
|
workspace_id: string;
|
|
37127
|
+
/** Name of the location. */
|
|
37128
|
+
name: string;
|
|
37062
37129
|
/** Display name of the location. */
|
|
37063
37130
|
display_name: string;
|
|
37064
37131
|
/** Geographical location of the location. */
|
|
@@ -37086,6 +37153,8 @@ export interface Routes {
|
|
|
37086
37153
|
location_id: string;
|
|
37087
37154
|
/** Unique identifier for the Seam workspace associated with the location. */
|
|
37088
37155
|
workspace_id: string;
|
|
37156
|
+
/** Name of the location. */
|
|
37157
|
+
name: string;
|
|
37089
37158
|
/** Display name of the location. */
|
|
37090
37159
|
display_name: string;
|
|
37091
37160
|
/** Geographical location of the location. */
|
|
@@ -37102,19 +37171,19 @@ export interface Routes {
|
|
|
37102
37171
|
};
|
|
37103
37172
|
'/unstable_locations/remove_devices': {
|
|
37104
37173
|
route: '/unstable_locations/remove_devices';
|
|
37105
|
-
method: 'POST';
|
|
37174
|
+
method: 'POST' | 'DELETE';
|
|
37106
37175
|
queryParams: {};
|
|
37107
|
-
jsonBody: {
|
|
37176
|
+
jsonBody: {};
|
|
37177
|
+
commonParams: {
|
|
37108
37178
|
location_id: string;
|
|
37109
37179
|
device_ids: string[];
|
|
37110
37180
|
};
|
|
37111
|
-
commonParams: {};
|
|
37112
37181
|
formData: {};
|
|
37113
37182
|
jsonResponse: {};
|
|
37114
37183
|
};
|
|
37115
37184
|
'/unstable_locations/update': {
|
|
37116
37185
|
route: '/unstable_locations/update';
|
|
37117
|
-
method: 'POST';
|
|
37186
|
+
method: 'POST' | 'PATCH';
|
|
37118
37187
|
queryParams: {};
|
|
37119
37188
|
jsonBody: {
|
|
37120
37189
|
location_id: string;
|
|
@@ -37133,6 +37202,8 @@ export interface Routes {
|
|
|
37133
37202
|
location_id: string;
|
|
37134
37203
|
/** Unique identifier for the Seam workspace associated with the location. */
|
|
37135
37204
|
workspace_id: string;
|
|
37205
|
+
/** Name of the location. */
|
|
37206
|
+
name: string;
|
|
37136
37207
|
/** Display name of the location. */
|
|
37137
37208
|
display_name: string;
|
|
37138
37209
|
/** Geographical location of the location. */
|
package/package.json
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
const common_bridge_client_session_error = z.object({
|
|
4
|
+
message: z.string(),
|
|
5
|
+
created_at: z.string().datetime(),
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
const error_code_description =
|
|
9
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
10
|
+
|
|
11
|
+
export const bridge_lan_unreachable = common_bridge_client_session_error
|
|
12
|
+
.extend({
|
|
13
|
+
error_code: z
|
|
14
|
+
.literal('bridge_lan_unreachable')
|
|
15
|
+
.describe(error_code_description),
|
|
16
|
+
is_tailscale_proxy_reachable: z
|
|
17
|
+
.boolean()
|
|
18
|
+
.describe('Seam cannot reach the tailscale proxy'),
|
|
19
|
+
is_tailscale_proxy_socks_server_healthy: z
|
|
20
|
+
.boolean()
|
|
21
|
+
.describe("Tailscale proxy's SOCKS server is unhealthy"),
|
|
22
|
+
can_tailscale_proxy_reach_tailscale_network: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.describe('Tailscale proxy cannot reach the Tailscale network'),
|
|
25
|
+
can_tailscale_proxy_reach_bridge: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.describe('Tailscale proxy cannot reach the bridge'),
|
|
28
|
+
is_bridge_socks_server_healthy: z
|
|
29
|
+
.boolean()
|
|
30
|
+
.describe("Bridge's SOCKS server is unhealthy"),
|
|
31
|
+
})
|
|
32
|
+
.describe("Seam cannot reach the bridge's LAN")
|
|
33
|
+
|
|
34
|
+
export const no_communication_from_bridge = common_bridge_client_session_error
|
|
35
|
+
.extend({
|
|
36
|
+
error_code: z
|
|
37
|
+
.literal('no_communication_from_bridge')
|
|
38
|
+
.describe(error_code_description),
|
|
39
|
+
})
|
|
40
|
+
.describe('Bridge has stopped communicating with Seam')
|
|
41
|
+
|
|
42
|
+
export const bridge_client_session_error = z
|
|
43
|
+
.discriminatedUnion('error_code', [
|
|
44
|
+
bridge_lan_unreachable,
|
|
45
|
+
no_communication_from_bridge,
|
|
46
|
+
])
|
|
47
|
+
.describe('Error associated with the `bridge_client_session`.')
|
|
48
|
+
|
|
49
|
+
export type BridgeClientSessionError = z.infer<
|
|
50
|
+
typeof bridge_client_session_error
|
|
51
|
+
>
|
|
52
|
+
|
|
53
|
+
const bridge_client_session_error_map = z.object({
|
|
54
|
+
bridge_lan_unreachable: bridge_lan_unreachable.optional().nullable(),
|
|
55
|
+
no_communication_from_bridge: no_communication_from_bridge
|
|
56
|
+
.optional()
|
|
57
|
+
.nullable(),
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
export type BridgeClientSessionErrorMap = z.infer<
|
|
61
|
+
typeof bridge_client_session_error_map
|
|
62
|
+
>
|
|
63
|
+
|
|
3
64
|
export const bridge_client_session = z.object({
|
|
4
65
|
created_at: z.string().datetime(),
|
|
5
66
|
bridge_client_session_id: z.string().uuid(),
|
|
@@ -11,6 +72,7 @@ export const bridge_client_session = z.object({
|
|
|
11
72
|
bridge_client_name: z.string(),
|
|
12
73
|
bridge_client_time_zone: z.string(),
|
|
13
74
|
bridge_client_machine_identifier_key: z.string(),
|
|
75
|
+
errors: z.array(bridge_client_session_error),
|
|
14
76
|
}).describe(`
|
|
15
77
|
---
|
|
16
78
|
route_path: /seam/bridge/v1/bridge_client_sessions
|
|
@@ -16,6 +16,7 @@ export const location = z.object({
|
|
|
16
16
|
.describe(
|
|
17
17
|
'Unique identifier for the Seam workspace associated with the location.',
|
|
18
18
|
),
|
|
19
|
+
name: z.string().describe('Name of the location.'),
|
|
19
20
|
display_name: z.string().describe('Display name of the location.'),
|
|
20
21
|
geolocation: geolocation
|
|
21
22
|
.optional()
|