@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
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",
|
|
@@ -30241,6 +30574,7 @@ var openapi_default = {
|
|
|
30241
30574
|
properties: {
|
|
30242
30575
|
device_ids: {
|
|
30243
30576
|
items: { format: "uuid", type: "string" },
|
|
30577
|
+
minItems: 1,
|
|
30244
30578
|
type: "array"
|
|
30245
30579
|
},
|
|
30246
30580
|
location_id: { format: "uuid", type: "string" }
|
|
@@ -30279,6 +30613,55 @@ var openapi_default = {
|
|
|
30279
30613
|
"x-response-key": null,
|
|
30280
30614
|
"x-title": "Add Location Devices",
|
|
30281
30615
|
"x-undocumented": "Experimental locations."
|
|
30616
|
+
},
|
|
30617
|
+
put: {
|
|
30618
|
+
description: "Add devices to a specific location. If a device already belongs to a location it will be moved.",
|
|
30619
|
+
operationId: "unstableLocationsAddDevicesPut",
|
|
30620
|
+
requestBody: {
|
|
30621
|
+
content: {
|
|
30622
|
+
"application/json": {
|
|
30623
|
+
schema: {
|
|
30624
|
+
properties: {
|
|
30625
|
+
device_ids: {
|
|
30626
|
+
items: { format: "uuid", type: "string" },
|
|
30627
|
+
minItems: 1,
|
|
30628
|
+
type: "array"
|
|
30629
|
+
},
|
|
30630
|
+
location_id: { format: "uuid", type: "string" }
|
|
30631
|
+
},
|
|
30632
|
+
required: ["location_id", "device_ids"],
|
|
30633
|
+
type: "object"
|
|
30634
|
+
}
|
|
30635
|
+
}
|
|
30636
|
+
}
|
|
30637
|
+
},
|
|
30638
|
+
responses: {
|
|
30639
|
+
200: {
|
|
30640
|
+
content: {
|
|
30641
|
+
"application/json": {
|
|
30642
|
+
schema: {
|
|
30643
|
+
properties: { ok: { type: "boolean" } },
|
|
30644
|
+
required: ["ok"],
|
|
30645
|
+
type: "object"
|
|
30646
|
+
}
|
|
30647
|
+
}
|
|
30648
|
+
},
|
|
30649
|
+
description: "OK"
|
|
30650
|
+
},
|
|
30651
|
+
400: { description: "Bad Request" },
|
|
30652
|
+
401: { description: "Unauthorized" }
|
|
30653
|
+
},
|
|
30654
|
+
security: [
|
|
30655
|
+
{ pat_with_workspace: [] },
|
|
30656
|
+
{ console_session_with_workspace: [] },
|
|
30657
|
+
{ api_key: [] }
|
|
30658
|
+
],
|
|
30659
|
+
summary: "/unstable_locations/add_devices",
|
|
30660
|
+
tags: [],
|
|
30661
|
+
"x-fern-ignore": true,
|
|
30662
|
+
"x-response-key": null,
|
|
30663
|
+
"x-title": "Add Location Devices",
|
|
30664
|
+
"x-undocumented": "Experimental locations."
|
|
30282
30665
|
}
|
|
30283
30666
|
},
|
|
30284
30667
|
"/unstable_locations/create": {
|
|
@@ -30338,6 +30721,10 @@ var openapi_default = {
|
|
|
30338
30721
|
format: "uuid",
|
|
30339
30722
|
type: "string"
|
|
30340
30723
|
},
|
|
30724
|
+
name: {
|
|
30725
|
+
description: "Name of the location.",
|
|
30726
|
+
type: "string"
|
|
30727
|
+
},
|
|
30341
30728
|
time_zone: {
|
|
30342
30729
|
description: "Time zone of the location.",
|
|
30343
30730
|
type: "string"
|
|
@@ -30351,6 +30738,7 @@ var openapi_default = {
|
|
|
30351
30738
|
required: [
|
|
30352
30739
|
"location_id",
|
|
30353
30740
|
"workspace_id",
|
|
30741
|
+
"name",
|
|
30354
30742
|
"display_name",
|
|
30355
30743
|
"created_at"
|
|
30356
30744
|
],
|
|
@@ -30474,6 +30862,10 @@ var openapi_default = {
|
|
|
30474
30862
|
format: "uuid",
|
|
30475
30863
|
type: "string"
|
|
30476
30864
|
},
|
|
30865
|
+
name: {
|
|
30866
|
+
description: "Name of the location.",
|
|
30867
|
+
type: "string"
|
|
30868
|
+
},
|
|
30477
30869
|
time_zone: {
|
|
30478
30870
|
description: "Time zone of the location.",
|
|
30479
30871
|
type: "string"
|
|
@@ -30487,6 +30879,7 @@ var openapi_default = {
|
|
|
30487
30879
|
required: [
|
|
30488
30880
|
"location_id",
|
|
30489
30881
|
"workspace_id",
|
|
30882
|
+
"name",
|
|
30490
30883
|
"display_name",
|
|
30491
30884
|
"created_at"
|
|
30492
30885
|
],
|
|
@@ -30555,6 +30948,10 @@ var openapi_default = {
|
|
|
30555
30948
|
format: "uuid",
|
|
30556
30949
|
type: "string"
|
|
30557
30950
|
},
|
|
30951
|
+
name: {
|
|
30952
|
+
description: "Name of the location.",
|
|
30953
|
+
type: "string"
|
|
30954
|
+
},
|
|
30558
30955
|
time_zone: {
|
|
30559
30956
|
description: "Time zone of the location.",
|
|
30560
30957
|
type: "string"
|
|
@@ -30568,6 +30965,7 @@ var openapi_default = {
|
|
|
30568
30965
|
required: [
|
|
30569
30966
|
"location_id",
|
|
30570
30967
|
"workspace_id",
|
|
30968
|
+
"name",
|
|
30571
30969
|
"display_name",
|
|
30572
30970
|
"created_at"
|
|
30573
30971
|
],
|
|
@@ -30634,6 +31032,10 @@ var openapi_default = {
|
|
|
30634
31032
|
format: "uuid",
|
|
30635
31033
|
type: "string"
|
|
30636
31034
|
},
|
|
31035
|
+
name: {
|
|
31036
|
+
description: "Name of the location.",
|
|
31037
|
+
type: "string"
|
|
31038
|
+
},
|
|
30637
31039
|
time_zone: {
|
|
30638
31040
|
description: "Time zone of the location.",
|
|
30639
31041
|
type: "string"
|
|
@@ -30647,6 +31049,7 @@ var openapi_default = {
|
|
|
30647
31049
|
required: [
|
|
30648
31050
|
"location_id",
|
|
30649
31051
|
"workspace_id",
|
|
31052
|
+
"name",
|
|
30650
31053
|
"display_name",
|
|
30651
31054
|
"created_at"
|
|
30652
31055
|
],
|
|
@@ -30733,6 +31136,110 @@ var openapi_default = {
|
|
|
30733
31136
|
}
|
|
30734
31137
|
},
|
|
30735
31138
|
"/unstable_locations/update": {
|
|
31139
|
+
patch: {
|
|
31140
|
+
description: "Update an existing location.",
|
|
31141
|
+
operationId: "unstableLocationsUpdatePatch",
|
|
31142
|
+
requestBody: {
|
|
31143
|
+
content: {
|
|
31144
|
+
"application/json": {
|
|
31145
|
+
schema: {
|
|
31146
|
+
properties: {
|
|
31147
|
+
geolocation: {
|
|
31148
|
+
properties: {
|
|
31149
|
+
latitude: { format: "float", type: "number" },
|
|
31150
|
+
longitude: { format: "float", type: "number" }
|
|
31151
|
+
},
|
|
31152
|
+
required: ["latitude", "longitude"],
|
|
31153
|
+
type: "object"
|
|
31154
|
+
},
|
|
31155
|
+
location_id: { format: "uuid", type: "string" },
|
|
31156
|
+
name: { type: "string" },
|
|
31157
|
+
time_zone: { type: "string" }
|
|
31158
|
+
},
|
|
31159
|
+
required: ["location_id"],
|
|
31160
|
+
type: "object"
|
|
31161
|
+
}
|
|
31162
|
+
}
|
|
31163
|
+
}
|
|
31164
|
+
},
|
|
31165
|
+
responses: {
|
|
31166
|
+
200: {
|
|
31167
|
+
content: {
|
|
31168
|
+
"application/json": {
|
|
31169
|
+
schema: {
|
|
31170
|
+
properties: {
|
|
31171
|
+
location: {
|
|
31172
|
+
properties: {
|
|
31173
|
+
created_at: {
|
|
31174
|
+
description: "Date and time at which the location object was created.",
|
|
31175
|
+
format: "date-time",
|
|
31176
|
+
type: "string"
|
|
31177
|
+
},
|
|
31178
|
+
display_name: {
|
|
31179
|
+
description: "Display name of the location.",
|
|
31180
|
+
type: "string"
|
|
31181
|
+
},
|
|
31182
|
+
geolocation: {
|
|
31183
|
+
description: "Geographical location of the location.",
|
|
31184
|
+
properties: {
|
|
31185
|
+
latitude: { format: "float", type: "number" },
|
|
31186
|
+
longitude: { format: "float", type: "number" }
|
|
31187
|
+
},
|
|
31188
|
+
required: ["latitude", "longitude"],
|
|
31189
|
+
type: "object"
|
|
31190
|
+
},
|
|
31191
|
+
location_id: {
|
|
31192
|
+
description: "Unique identifier for the location.",
|
|
31193
|
+
format: "uuid",
|
|
31194
|
+
type: "string"
|
|
31195
|
+
},
|
|
31196
|
+
name: {
|
|
31197
|
+
description: "Name of the location.",
|
|
31198
|
+
type: "string"
|
|
31199
|
+
},
|
|
31200
|
+
time_zone: {
|
|
31201
|
+
description: "Time zone of the location.",
|
|
31202
|
+
type: "string"
|
|
31203
|
+
},
|
|
31204
|
+
workspace_id: {
|
|
31205
|
+
description: "Unique identifier for the Seam workspace associated with the location.",
|
|
31206
|
+
format: "uuid",
|
|
31207
|
+
type: "string"
|
|
31208
|
+
}
|
|
31209
|
+
},
|
|
31210
|
+
required: [
|
|
31211
|
+
"location_id",
|
|
31212
|
+
"workspace_id",
|
|
31213
|
+
"name",
|
|
31214
|
+
"display_name",
|
|
31215
|
+
"created_at"
|
|
31216
|
+
],
|
|
31217
|
+
type: "object"
|
|
31218
|
+
},
|
|
31219
|
+
ok: { type: "boolean" }
|
|
31220
|
+
},
|
|
31221
|
+
required: ["location", "ok"],
|
|
31222
|
+
type: "object"
|
|
31223
|
+
}
|
|
31224
|
+
}
|
|
31225
|
+
},
|
|
31226
|
+
description: "OK"
|
|
31227
|
+
},
|
|
31228
|
+
400: { description: "Bad Request" },
|
|
31229
|
+
401: { description: "Unauthorized" }
|
|
31230
|
+
},
|
|
31231
|
+
security: [
|
|
31232
|
+
{ pat_with_workspace: [] },
|
|
31233
|
+
{ console_session_with_workspace: [] },
|
|
31234
|
+
{ api_key: [] }
|
|
31235
|
+
],
|
|
31236
|
+
summary: "/unstable_locations/update",
|
|
31237
|
+
tags: [],
|
|
31238
|
+
"x-fern-ignore": true,
|
|
31239
|
+
"x-response-key": "location",
|
|
31240
|
+
"x-title": "Update Location",
|
|
31241
|
+
"x-undocumented": "Experimental locations."
|
|
31242
|
+
},
|
|
30736
31243
|
post: {
|
|
30737
31244
|
description: "Update an existing location.",
|
|
30738
31245
|
operationId: "unstableLocationsUpdatePost",
|
|
@@ -30790,6 +31297,10 @@ var openapi_default = {
|
|
|
30790
31297
|
format: "uuid",
|
|
30791
31298
|
type: "string"
|
|
30792
31299
|
},
|
|
31300
|
+
name: {
|
|
31301
|
+
description: "Name of the location.",
|
|
31302
|
+
type: "string"
|
|
31303
|
+
},
|
|
30793
31304
|
time_zone: {
|
|
30794
31305
|
description: "Time zone of the location.",
|
|
30795
31306
|
type: "string"
|
|
@@ -30803,6 +31314,7 @@ var openapi_default = {
|
|
|
30803
31314
|
required: [
|
|
30804
31315
|
"location_id",
|
|
30805
31316
|
"workspace_id",
|
|
31317
|
+
"name",
|
|
30806
31318
|
"display_name",
|
|
30807
31319
|
"created_at"
|
|
30808
31320
|
],
|