@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.
package/dist/connect.cjs CHANGED
@@ -3086,7 +3086,10 @@ var bridge_client_session = zod.z.object({
3086
3086
  bridge_client_name: zod.z.string(),
3087
3087
  bridge_client_time_zone: zod.z.string(),
3088
3088
  bridge_client_machine_identifier_key: zod.z.string(),
3089
- errors: zod.z.array(bridge_client_session_error)
3089
+ errors: zod.z.array(bridge_client_session_error),
3090
+ telemetry_token: zod.z.string().nullable(),
3091
+ telemetry_token_expires_at: zod.z.string().datetime().nullable(),
3092
+ telemetry_url: zod.z.string().nullable()
3090
3093
  }).describe(`
3091
3094
  ---
3092
3095
  route_path: /seam/bridge/v1/bridge_client_sessions
@@ -29688,7 +29691,14 @@ var openapi_default = {
29688
29691
  type: "string"
29689
29692
  },
29690
29693
  tailscale_auth_key: { nullable: true, type: "string" },
29691
- tailscale_hostname: { type: "string" }
29694
+ tailscale_hostname: { type: "string" },
29695
+ telemetry_token: { nullable: true, type: "string" },
29696
+ telemetry_token_expires_at: {
29697
+ format: "date-time",
29698
+ nullable: true,
29699
+ type: "string"
29700
+ },
29701
+ telemetry_url: { nullable: true, type: "string" }
29692
29702
  },
29693
29703
  required: [
29694
29704
  "created_at",
@@ -29701,7 +29711,10 @@ var openapi_default = {
29701
29711
  "bridge_client_name",
29702
29712
  "bridge_client_time_zone",
29703
29713
  "bridge_client_machine_identifier_key",
29704
- "errors"
29714
+ "errors",
29715
+ "telemetry_token",
29716
+ "telemetry_token_expires_at",
29717
+ "telemetry_url"
29705
29718
  ],
29706
29719
  type: "object",
29707
29720
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -29849,7 +29862,14 @@ var openapi_default = {
29849
29862
  type: "string"
29850
29863
  },
29851
29864
  tailscale_auth_key: { nullable: true, type: "string" },
29852
- tailscale_hostname: { type: "string" }
29865
+ tailscale_hostname: { type: "string" },
29866
+ telemetry_token: { nullable: true, type: "string" },
29867
+ telemetry_token_expires_at: {
29868
+ format: "date-time",
29869
+ nullable: true,
29870
+ type: "string"
29871
+ },
29872
+ telemetry_url: { nullable: true, type: "string" }
29853
29873
  },
29854
29874
  required: [
29855
29875
  "created_at",
@@ -29862,7 +29882,10 @@ var openapi_default = {
29862
29882
  "bridge_client_name",
29863
29883
  "bridge_client_time_zone",
29864
29884
  "bridge_client_machine_identifier_key",
29865
- "errors"
29885
+ "errors",
29886
+ "telemetry_token",
29887
+ "telemetry_token_expires_at",
29888
+ "telemetry_url"
29866
29889
  ],
29867
29890
  type: "object",
29868
29891
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -30001,7 +30024,14 @@ var openapi_default = {
30001
30024
  type: "string"
30002
30025
  },
30003
30026
  tailscale_auth_key: { nullable: true, type: "string" },
30004
- tailscale_hostname: { type: "string" }
30027
+ tailscale_hostname: { type: "string" },
30028
+ telemetry_token: { nullable: true, type: "string" },
30029
+ telemetry_token_expires_at: {
30030
+ format: "date-time",
30031
+ nullable: true,
30032
+ type: "string"
30033
+ },
30034
+ telemetry_url: { nullable: true, type: "string" }
30005
30035
  },
30006
30036
  required: [
30007
30037
  "created_at",
@@ -30014,7 +30044,10 @@ var openapi_default = {
30014
30044
  "bridge_client_name",
30015
30045
  "bridge_client_time_zone",
30016
30046
  "bridge_client_machine_identifier_key",
30017
- "errors"
30047
+ "errors",
30048
+ "telemetry_token",
30049
+ "telemetry_token_expires_at",
30050
+ "telemetry_url"
30018
30051
  ],
30019
30052
  type: "object",
30020
30053
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -30048,6 +30081,177 @@ var openapi_default = {
30048
30081
  "x-undocumented": "Seam Bridge Client only."
30049
30082
  }
30050
30083
  },
30084
+ "/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token": {
30085
+ post: {
30086
+ description: "Returns the bridge client session associated with the session token and refreshed telemetry token.",
30087
+ operationId: "seamBridgeV1BridgeClientSessionsRefreshTelemetryTokenPost",
30088
+ responses: {
30089
+ 200: {
30090
+ content: {
30091
+ "application/json": {
30092
+ schema: {
30093
+ properties: {
30094
+ bridge_client_session: {
30095
+ properties: {
30096
+ bridge_client_machine_identifier_key: {
30097
+ type: "string"
30098
+ },
30099
+ bridge_client_name: { type: "string" },
30100
+ bridge_client_session_id: {
30101
+ format: "uuid",
30102
+ type: "string"
30103
+ },
30104
+ bridge_client_session_token: { type: "string" },
30105
+ bridge_client_time_zone: { type: "string" },
30106
+ created_at: { format: "date-time", type: "string" },
30107
+ errors: {
30108
+ items: {
30109
+ description: "Error associated with the `bridge_client_session`.",
30110
+ discriminator: { propertyName: "error_code" },
30111
+ oneOf: [
30112
+ {
30113
+ description: "Seam cannot reach the bridge's LAN",
30114
+ properties: {
30115
+ can_tailscale_proxy_reach_bridge: {
30116
+ description: "Tailscale proxy cannot reach the bridge",
30117
+ nullable: true,
30118
+ type: "boolean"
30119
+ },
30120
+ can_tailscale_proxy_reach_tailscale_network: {
30121
+ description: "Tailscale proxy cannot reach the Tailscale network",
30122
+ nullable: true,
30123
+ type: "boolean"
30124
+ },
30125
+ created_at: {
30126
+ format: "date-time",
30127
+ type: "string"
30128
+ },
30129
+ error_code: {
30130
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
30131
+ enum: ["bridge_lan_unreachable"],
30132
+ type: "string"
30133
+ },
30134
+ is_bridge_socks_server_healthy: {
30135
+ description: "Bridge's SOCKS server is unhealthy",
30136
+ nullable: true,
30137
+ type: "boolean"
30138
+ },
30139
+ is_tailscale_proxy_reachable: {
30140
+ description: "Seam cannot reach the tailscale proxy",
30141
+ nullable: true,
30142
+ type: "boolean"
30143
+ },
30144
+ is_tailscale_proxy_socks_server_healthy: {
30145
+ description: "Tailscale proxy's SOCKS server is unhealthy",
30146
+ nullable: true,
30147
+ type: "boolean"
30148
+ },
30149
+ message: { type: "string" }
30150
+ },
30151
+ required: [
30152
+ "message",
30153
+ "created_at",
30154
+ "error_code",
30155
+ "is_tailscale_proxy_reachable",
30156
+ "is_tailscale_proxy_socks_server_healthy",
30157
+ "can_tailscale_proxy_reach_tailscale_network",
30158
+ "can_tailscale_proxy_reach_bridge",
30159
+ "is_bridge_socks_server_healthy"
30160
+ ],
30161
+ type: "object"
30162
+ },
30163
+ {
30164
+ description: "Bridge has stopped communicating with Seam",
30165
+ properties: {
30166
+ created_at: {
30167
+ format: "date-time",
30168
+ type: "string"
30169
+ },
30170
+ error_code: {
30171
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
30172
+ enum: ["no_communication_from_bridge"],
30173
+ type: "string"
30174
+ },
30175
+ message: { type: "string" }
30176
+ },
30177
+ required: [
30178
+ "message",
30179
+ "created_at",
30180
+ "error_code"
30181
+ ],
30182
+ type: "object"
30183
+ }
30184
+ ]
30185
+ },
30186
+ type: "array"
30187
+ },
30188
+ pairing_code: {
30189
+ maxLength: 6,
30190
+ minLength: 6,
30191
+ type: "string"
30192
+ },
30193
+ pairing_code_expires_at: {
30194
+ format: "date-time",
30195
+ type: "string"
30196
+ },
30197
+ tailscale_auth_key: { nullable: true, type: "string" },
30198
+ tailscale_hostname: { type: "string" },
30199
+ telemetry_token: { nullable: true, type: "string" },
30200
+ telemetry_token_expires_at: {
30201
+ format: "date-time",
30202
+ nullable: true,
30203
+ type: "string"
30204
+ },
30205
+ telemetry_url: { nullable: true, type: "string" }
30206
+ },
30207
+ required: [
30208
+ "created_at",
30209
+ "bridge_client_session_id",
30210
+ "bridge_client_session_token",
30211
+ "pairing_code",
30212
+ "pairing_code_expires_at",
30213
+ "tailscale_hostname",
30214
+ "tailscale_auth_key",
30215
+ "bridge_client_name",
30216
+ "bridge_client_time_zone",
30217
+ "bridge_client_machine_identifier_key",
30218
+ "errors",
30219
+ "telemetry_token",
30220
+ "telemetry_token_expires_at",
30221
+ "telemetry_url"
30222
+ ],
30223
+ type: "object",
30224
+ "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
30225
+ "x-undocumented": "Seam Bridge Client only."
30226
+ },
30227
+ ok: { type: "boolean" }
30228
+ },
30229
+ required: ["bridge_client_session", "ok"],
30230
+ type: "object"
30231
+ }
30232
+ }
30233
+ },
30234
+ description: "OK"
30235
+ },
30236
+ 400: { description: "Bad Request" },
30237
+ 401: { description: "Unauthorized" }
30238
+ },
30239
+ security: [{ bridge_client_session: [] }],
30240
+ summary: "/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token",
30241
+ tags: [],
30242
+ "x-fern-sdk-group-name": [
30243
+ "seam",
30244
+ "bridge",
30245
+ "v1",
30246
+ "bridge_client_sessions"
30247
+ ],
30248
+ "x-fern-sdk-method-name": "refresh_telemetry_token",
30249
+ "x-fern-sdk-return-value": "bridge_client_session",
30250
+ "x-response-key": "bridge_client_session",
30251
+ "x-title": "Refresh telemetry token for bridge client session",
30252
+ "x-undocumented": "Seam Bridge Client only."
30253
+ }
30254
+ },
30051
30255
  "/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code": {
30052
30256
  post: {
30053
30257
  description: "Generate a new pairing code and return the updated bridge client session.",
@@ -30162,7 +30366,14 @@ var openapi_default = {
30162
30366
  type: "string"
30163
30367
  },
30164
30368
  tailscale_auth_key: { nullable: true, type: "string" },
30165
- tailscale_hostname: { type: "string" }
30369
+ tailscale_hostname: { type: "string" },
30370
+ telemetry_token: { nullable: true, type: "string" },
30371
+ telemetry_token_expires_at: {
30372
+ format: "date-time",
30373
+ nullable: true,
30374
+ type: "string"
30375
+ },
30376
+ telemetry_url: { nullable: true, type: "string" }
30166
30377
  },
30167
30378
  required: [
30168
30379
  "created_at",
@@ -30175,7 +30386,10 @@ var openapi_default = {
30175
30386
  "bridge_client_name",
30176
30387
  "bridge_client_time_zone",
30177
30388
  "bridge_client_machine_identifier_key",
30178
- "errors"
30389
+ "errors",
30390
+ "telemetry_token",
30391
+ "telemetry_token_expires_at",
30392
+ "telemetry_url"
30179
30393
  ],
30180
30394
  type: "object",
30181
30395
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",