@seamapi/types 1.366.0 → 1.367.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.
package/dist/connect.cjs CHANGED
@@ -2914,6 +2914,30 @@ undocumented: Unreleased.
2914
2914
  route_path: /bridges
2915
2915
  ---
2916
2916
  `);
2917
+ var common_bridge_client_session_error = zod.z.object({
2918
+ message: zod.z.string(),
2919
+ created_at: zod.z.string().datetime()
2920
+ });
2921
+ var error_code_description6 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2922
+ var bridge_lan_unreachable = common_bridge_client_session_error.extend({
2923
+ error_code: zod.z.literal("bridge_lan_unreachable").describe(error_code_description6),
2924
+ is_tailscale_proxy_reachable: zod.z.boolean().describe("Seam cannot reach the tailscale proxy"),
2925
+ is_tailscale_proxy_socks_server_healthy: zod.z.boolean().describe("Tailscale proxy's SOCKS server is unhealthy"),
2926
+ can_tailscale_proxy_reach_tailscale_network: zod.z.boolean().describe("Tailscale proxy cannot reach the Tailscale network"),
2927
+ can_tailscale_proxy_reach_bridge: zod.z.boolean().describe("Tailscale proxy cannot reach the bridge"),
2928
+ is_bridge_socks_server_healthy: zod.z.boolean().describe("Bridge's SOCKS server is unhealthy")
2929
+ }).describe("Seam cannot reach the bridge's LAN");
2930
+ var no_communication_from_bridge = common_bridge_client_session_error.extend({
2931
+ error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description6)
2932
+ }).describe("Bridge has stopped communicating with Seam");
2933
+ var bridge_client_session_error = zod.z.discriminatedUnion("error_code", [
2934
+ bridge_lan_unreachable,
2935
+ no_communication_from_bridge
2936
+ ]).describe("Error associated with the `bridge_client_session`.");
2937
+ zod.z.object({
2938
+ bridge_lan_unreachable: bridge_lan_unreachable.optional().nullable(),
2939
+ no_communication_from_bridge: no_communication_from_bridge.optional().nullable()
2940
+ });
2917
2941
  var bridge_client_session = zod.z.object({
2918
2942
  created_at: zod.z.string().datetime(),
2919
2943
  bridge_client_session_id: zod.z.string().uuid(),
@@ -2924,7 +2948,8 @@ var bridge_client_session = zod.z.object({
2924
2948
  tailscale_auth_key: zod.z.string().nullable(),
2925
2949
  bridge_client_name: zod.z.string(),
2926
2950
  bridge_client_time_zone: zod.z.string(),
2927
- bridge_client_machine_identifier_key: zod.z.string()
2951
+ bridge_client_machine_identifier_key: zod.z.string(),
2952
+ errors: zod.z.array(bridge_client_session_error)
2928
2953
  }).describe(`
2929
2954
  ---
2930
2955
  route_path: /seam/bridge/v1/bridge_client_sessions
@@ -27849,6 +27874,82 @@ var openapi_default = {
27849
27874
  bridge_client_session_token: { type: "string" },
27850
27875
  bridge_client_time_zone: { type: "string" },
27851
27876
  created_at: { format: "date-time", type: "string" },
27877
+ errors: {
27878
+ items: {
27879
+ description: "Error associated with the `bridge_client_session`.",
27880
+ discriminator: { propertyName: "error_code" },
27881
+ oneOf: [
27882
+ {
27883
+ description: "Seam cannot reach the bridge's LAN",
27884
+ properties: {
27885
+ can_tailscale_proxy_reach_bridge: {
27886
+ description: "Tailscale proxy cannot reach the bridge",
27887
+ type: "boolean"
27888
+ },
27889
+ can_tailscale_proxy_reach_tailscale_network: {
27890
+ description: "Tailscale proxy cannot reach the Tailscale network",
27891
+ type: "boolean"
27892
+ },
27893
+ created_at: {
27894
+ format: "date-time",
27895
+ type: "string"
27896
+ },
27897
+ error_code: {
27898
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
27899
+ enum: ["bridge_lan_unreachable"],
27900
+ type: "string"
27901
+ },
27902
+ is_bridge_socks_server_healthy: {
27903
+ description: "Bridge's SOCKS server is unhealthy",
27904
+ type: "boolean"
27905
+ },
27906
+ is_tailscale_proxy_reachable: {
27907
+ description: "Seam cannot reach the tailscale proxy",
27908
+ type: "boolean"
27909
+ },
27910
+ is_tailscale_proxy_socks_server_healthy: {
27911
+ description: "Tailscale proxy's SOCKS server is unhealthy",
27912
+ type: "boolean"
27913
+ },
27914
+ message: { type: "string" }
27915
+ },
27916
+ required: [
27917
+ "message",
27918
+ "created_at",
27919
+ "error_code",
27920
+ "is_tailscale_proxy_reachable",
27921
+ "is_tailscale_proxy_socks_server_healthy",
27922
+ "can_tailscale_proxy_reach_tailscale_network",
27923
+ "can_tailscale_proxy_reach_bridge",
27924
+ "is_bridge_socks_server_healthy"
27925
+ ],
27926
+ type: "object"
27927
+ },
27928
+ {
27929
+ description: "Bridge has stopped communicating with Seam",
27930
+ properties: {
27931
+ created_at: {
27932
+ format: "date-time",
27933
+ type: "string"
27934
+ },
27935
+ error_code: {
27936
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
27937
+ enum: ["no_communication_from_bridge"],
27938
+ type: "string"
27939
+ },
27940
+ message: { type: "string" }
27941
+ },
27942
+ required: [
27943
+ "message",
27944
+ "created_at",
27945
+ "error_code"
27946
+ ],
27947
+ type: "object"
27948
+ }
27949
+ ]
27950
+ },
27951
+ type: "array"
27952
+ },
27852
27953
  pairing_code: {
27853
27954
  maxLength: 6,
27854
27955
  minLength: 6,
@@ -27871,7 +27972,8 @@ var openapi_default = {
27871
27972
  "tailscale_auth_key",
27872
27973
  "bridge_client_name",
27873
27974
  "bridge_client_time_zone",
27874
- "bridge_client_machine_identifier_key"
27975
+ "bridge_client_machine_identifier_key",
27976
+ "errors"
27875
27977
  ],
27876
27978
  type: "object",
27877
27979
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -27928,6 +28030,82 @@ var openapi_default = {
27928
28030
  bridge_client_session_token: { type: "string" },
27929
28031
  bridge_client_time_zone: { type: "string" },
27930
28032
  created_at: { format: "date-time", type: "string" },
28033
+ errors: {
28034
+ items: {
28035
+ description: "Error associated with the `bridge_client_session`.",
28036
+ discriminator: { propertyName: "error_code" },
28037
+ oneOf: [
28038
+ {
28039
+ description: "Seam cannot reach the bridge's LAN",
28040
+ properties: {
28041
+ can_tailscale_proxy_reach_bridge: {
28042
+ description: "Tailscale proxy cannot reach the bridge",
28043
+ type: "boolean"
28044
+ },
28045
+ can_tailscale_proxy_reach_tailscale_network: {
28046
+ description: "Tailscale proxy cannot reach the Tailscale network",
28047
+ type: "boolean"
28048
+ },
28049
+ created_at: {
28050
+ format: "date-time",
28051
+ type: "string"
28052
+ },
28053
+ error_code: {
28054
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28055
+ enum: ["bridge_lan_unreachable"],
28056
+ type: "string"
28057
+ },
28058
+ is_bridge_socks_server_healthy: {
28059
+ description: "Bridge's SOCKS server is unhealthy",
28060
+ type: "boolean"
28061
+ },
28062
+ is_tailscale_proxy_reachable: {
28063
+ description: "Seam cannot reach the tailscale proxy",
28064
+ type: "boolean"
28065
+ },
28066
+ is_tailscale_proxy_socks_server_healthy: {
28067
+ description: "Tailscale proxy's SOCKS server is unhealthy",
28068
+ type: "boolean"
28069
+ },
28070
+ message: { type: "string" }
28071
+ },
28072
+ required: [
28073
+ "message",
28074
+ "created_at",
28075
+ "error_code",
28076
+ "is_tailscale_proxy_reachable",
28077
+ "is_tailscale_proxy_socks_server_healthy",
28078
+ "can_tailscale_proxy_reach_tailscale_network",
28079
+ "can_tailscale_proxy_reach_bridge",
28080
+ "is_bridge_socks_server_healthy"
28081
+ ],
28082
+ type: "object"
28083
+ },
28084
+ {
28085
+ description: "Bridge has stopped communicating with Seam",
28086
+ properties: {
28087
+ created_at: {
28088
+ format: "date-time",
28089
+ type: "string"
28090
+ },
28091
+ error_code: {
28092
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28093
+ enum: ["no_communication_from_bridge"],
28094
+ type: "string"
28095
+ },
28096
+ message: { type: "string" }
28097
+ },
28098
+ required: [
28099
+ "message",
28100
+ "created_at",
28101
+ "error_code"
28102
+ ],
28103
+ type: "object"
28104
+ }
28105
+ ]
28106
+ },
28107
+ type: "array"
28108
+ },
27931
28109
  pairing_code: {
27932
28110
  maxLength: 6,
27933
28111
  minLength: 6,
@@ -27950,7 +28128,8 @@ var openapi_default = {
27950
28128
  "tailscale_auth_key",
27951
28129
  "bridge_client_name",
27952
28130
  "bridge_client_time_zone",
27953
- "bridge_client_machine_identifier_key"
28131
+ "bridge_client_machine_identifier_key",
28132
+ "errors"
27954
28133
  ],
27955
28134
  type: "object",
27956
28135
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -27998,6 +28177,82 @@ var openapi_default = {
27998
28177
  bridge_client_session_token: { type: "string" },
27999
28178
  bridge_client_time_zone: { type: "string" },
28000
28179
  created_at: { format: "date-time", type: "string" },
28180
+ errors: {
28181
+ items: {
28182
+ description: "Error associated with the `bridge_client_session`.",
28183
+ discriminator: { propertyName: "error_code" },
28184
+ oneOf: [
28185
+ {
28186
+ description: "Seam cannot reach the bridge's LAN",
28187
+ properties: {
28188
+ can_tailscale_proxy_reach_bridge: {
28189
+ description: "Tailscale proxy cannot reach the bridge",
28190
+ type: "boolean"
28191
+ },
28192
+ can_tailscale_proxy_reach_tailscale_network: {
28193
+ description: "Tailscale proxy cannot reach the Tailscale network",
28194
+ type: "boolean"
28195
+ },
28196
+ created_at: {
28197
+ format: "date-time",
28198
+ type: "string"
28199
+ },
28200
+ error_code: {
28201
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28202
+ enum: ["bridge_lan_unreachable"],
28203
+ type: "string"
28204
+ },
28205
+ is_bridge_socks_server_healthy: {
28206
+ description: "Bridge's SOCKS server is unhealthy",
28207
+ type: "boolean"
28208
+ },
28209
+ is_tailscale_proxy_reachable: {
28210
+ description: "Seam cannot reach the tailscale proxy",
28211
+ type: "boolean"
28212
+ },
28213
+ is_tailscale_proxy_socks_server_healthy: {
28214
+ description: "Tailscale proxy's SOCKS server is unhealthy",
28215
+ type: "boolean"
28216
+ },
28217
+ message: { type: "string" }
28218
+ },
28219
+ required: [
28220
+ "message",
28221
+ "created_at",
28222
+ "error_code",
28223
+ "is_tailscale_proxy_reachable",
28224
+ "is_tailscale_proxy_socks_server_healthy",
28225
+ "can_tailscale_proxy_reach_tailscale_network",
28226
+ "can_tailscale_proxy_reach_bridge",
28227
+ "is_bridge_socks_server_healthy"
28228
+ ],
28229
+ type: "object"
28230
+ },
28231
+ {
28232
+ description: "Bridge has stopped communicating with Seam",
28233
+ properties: {
28234
+ created_at: {
28235
+ format: "date-time",
28236
+ type: "string"
28237
+ },
28238
+ error_code: {
28239
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28240
+ enum: ["no_communication_from_bridge"],
28241
+ type: "string"
28242
+ },
28243
+ message: { type: "string" }
28244
+ },
28245
+ required: [
28246
+ "message",
28247
+ "created_at",
28248
+ "error_code"
28249
+ ],
28250
+ type: "object"
28251
+ }
28252
+ ]
28253
+ },
28254
+ type: "array"
28255
+ },
28001
28256
  pairing_code: {
28002
28257
  maxLength: 6,
28003
28258
  minLength: 6,
@@ -28020,7 +28275,8 @@ var openapi_default = {
28020
28275
  "tailscale_auth_key",
28021
28276
  "bridge_client_name",
28022
28277
  "bridge_client_time_zone",
28023
- "bridge_client_machine_identifier_key"
28278
+ "bridge_client_machine_identifier_key",
28279
+ "errors"
28024
28280
  ],
28025
28281
  type: "object",
28026
28282
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -28077,6 +28333,82 @@ var openapi_default = {
28077
28333
  bridge_client_session_token: { type: "string" },
28078
28334
  bridge_client_time_zone: { type: "string" },
28079
28335
  created_at: { format: "date-time", type: "string" },
28336
+ errors: {
28337
+ items: {
28338
+ description: "Error associated with the `bridge_client_session`.",
28339
+ discriminator: { propertyName: "error_code" },
28340
+ oneOf: [
28341
+ {
28342
+ description: "Seam cannot reach the bridge's LAN",
28343
+ properties: {
28344
+ can_tailscale_proxy_reach_bridge: {
28345
+ description: "Tailscale proxy cannot reach the bridge",
28346
+ type: "boolean"
28347
+ },
28348
+ can_tailscale_proxy_reach_tailscale_network: {
28349
+ description: "Tailscale proxy cannot reach the Tailscale network",
28350
+ type: "boolean"
28351
+ },
28352
+ created_at: {
28353
+ format: "date-time",
28354
+ type: "string"
28355
+ },
28356
+ error_code: {
28357
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28358
+ enum: ["bridge_lan_unreachable"],
28359
+ type: "string"
28360
+ },
28361
+ is_bridge_socks_server_healthy: {
28362
+ description: "Bridge's SOCKS server is unhealthy",
28363
+ type: "boolean"
28364
+ },
28365
+ is_tailscale_proxy_reachable: {
28366
+ description: "Seam cannot reach the tailscale proxy",
28367
+ type: "boolean"
28368
+ },
28369
+ is_tailscale_proxy_socks_server_healthy: {
28370
+ description: "Tailscale proxy's SOCKS server is unhealthy",
28371
+ type: "boolean"
28372
+ },
28373
+ message: { type: "string" }
28374
+ },
28375
+ required: [
28376
+ "message",
28377
+ "created_at",
28378
+ "error_code",
28379
+ "is_tailscale_proxy_reachable",
28380
+ "is_tailscale_proxy_socks_server_healthy",
28381
+ "can_tailscale_proxy_reach_tailscale_network",
28382
+ "can_tailscale_proxy_reach_bridge",
28383
+ "is_bridge_socks_server_healthy"
28384
+ ],
28385
+ type: "object"
28386
+ },
28387
+ {
28388
+ description: "Bridge has stopped communicating with Seam",
28389
+ properties: {
28390
+ created_at: {
28391
+ format: "date-time",
28392
+ type: "string"
28393
+ },
28394
+ error_code: {
28395
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
28396
+ enum: ["no_communication_from_bridge"],
28397
+ type: "string"
28398
+ },
28399
+ message: { type: "string" }
28400
+ },
28401
+ required: [
28402
+ "message",
28403
+ "created_at",
28404
+ "error_code"
28405
+ ],
28406
+ type: "object"
28407
+ }
28408
+ ]
28409
+ },
28410
+ type: "array"
28411
+ },
28080
28412
  pairing_code: {
28081
28413
  maxLength: 6,
28082
28414
  minLength: 6,
@@ -28099,7 +28431,8 @@ var openapi_default = {
28099
28431
  "tailscale_auth_key",
28100
28432
  "bridge_client_name",
28101
28433
  "bridge_client_time_zone",
28102
- "bridge_client_machine_identifier_key"
28434
+ "bridge_client_machine_identifier_key",
28435
+ "errors"
28103
28436
  ],
28104
28437
  type: "object",
28105
28438
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",