@seamapi/types 1.381.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
@@ -3490,7 +3493,18 @@ var acs_user_deleted_event = acs_user_event.extend({
3490
3493
  ---
3491
3494
  An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted.
3492
3495
  `);
3493
- var acs_user_events = [acs_user_deleted_event];
3496
+ var acs_user_created_event = acs_user_event.extend({
3497
+ event_type: zod.z.literal("acs_user.created")
3498
+ }).describe(`
3499
+ ---
3500
+ route_path: /acs/users
3501
+ ---
3502
+ An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.
3503
+ `);
3504
+ var acs_user_events = [
3505
+ acs_user_created_event,
3506
+ acs_user_deleted_event
3507
+ ];
3494
3508
 
3495
3509
  // src/lib/seam/connect/models/events/acs/index.ts
3496
3510
  var acs_events = [
@@ -13744,6 +13758,54 @@ var openapi_default = {
13744
13758
  type: "object",
13745
13759
  "x-route-path": "/acs/credentials"
13746
13760
  },
13761
+ {
13762
+ description: "An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.",
13763
+ properties: {
13764
+ acs_system_id: {
13765
+ description: "ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).",
13766
+ format: "uuid",
13767
+ type: "string"
13768
+ },
13769
+ acs_user_id: { format: "uuid", type: "string" },
13770
+ connected_account_id: {
13771
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
13772
+ format: "uuid",
13773
+ type: "string"
13774
+ },
13775
+ created_at: {
13776
+ description: "Date and time at which the event was created.",
13777
+ format: "date-time",
13778
+ type: "string"
13779
+ },
13780
+ event_id: {
13781
+ description: "ID of the event.",
13782
+ format: "uuid",
13783
+ type: "string"
13784
+ },
13785
+ event_type: { enum: ["acs_user.created"], type: "string" },
13786
+ occurred_at: {
13787
+ description: "Date and time at which the event occurred.",
13788
+ format: "date-time",
13789
+ type: "string"
13790
+ },
13791
+ workspace_id: {
13792
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
13793
+ format: "uuid",
13794
+ type: "string"
13795
+ }
13796
+ },
13797
+ required: [
13798
+ "event_id",
13799
+ "workspace_id",
13800
+ "created_at",
13801
+ "occurred_at",
13802
+ "acs_system_id",
13803
+ "acs_user_id",
13804
+ "event_type"
13805
+ ],
13806
+ type: "object",
13807
+ "x-route-path": "/acs/users"
13808
+ },
13747
13809
  {
13748
13810
  description: "An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted.",
13749
13811
  properties: {
@@ -27943,6 +28005,7 @@ var openapi_default = {
27943
28005
  "acs_credential.issued",
27944
28006
  "acs_credential.reissued",
27945
28007
  "acs_credential.invalidated",
28008
+ "acs_user.created",
27946
28009
  "acs_user.deleted",
27947
28010
  "acs_encoder.added",
27948
28011
  "acs_encoder.removed",
@@ -28028,6 +28091,7 @@ var openapi_default = {
28028
28091
  "acs_credential.issued",
28029
28092
  "acs_credential.reissued",
28030
28093
  "acs_credential.invalidated",
28094
+ "acs_user.created",
28031
28095
  "acs_user.deleted",
28032
28096
  "acs_encoder.added",
28033
28097
  "acs_encoder.removed",
@@ -29627,7 +29691,14 @@ var openapi_default = {
29627
29691
  type: "string"
29628
29692
  },
29629
29693
  tailscale_auth_key: { nullable: true, type: "string" },
29630
- 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" }
29631
29702
  },
29632
29703
  required: [
29633
29704
  "created_at",
@@ -29640,7 +29711,10 @@ var openapi_default = {
29640
29711
  "bridge_client_name",
29641
29712
  "bridge_client_time_zone",
29642
29713
  "bridge_client_machine_identifier_key",
29643
- "errors"
29714
+ "errors",
29715
+ "telemetry_token",
29716
+ "telemetry_token_expires_at",
29717
+ "telemetry_url"
29644
29718
  ],
29645
29719
  type: "object",
29646
29720
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -29788,7 +29862,14 @@ var openapi_default = {
29788
29862
  type: "string"
29789
29863
  },
29790
29864
  tailscale_auth_key: { nullable: true, type: "string" },
29791
- 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" }
29792
29873
  },
29793
29874
  required: [
29794
29875
  "created_at",
@@ -29801,7 +29882,10 @@ var openapi_default = {
29801
29882
  "bridge_client_name",
29802
29883
  "bridge_client_time_zone",
29803
29884
  "bridge_client_machine_identifier_key",
29804
- "errors"
29885
+ "errors",
29886
+ "telemetry_token",
29887
+ "telemetry_token_expires_at",
29888
+ "telemetry_url"
29805
29889
  ],
29806
29890
  type: "object",
29807
29891
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -29940,7 +30024,14 @@ var openapi_default = {
29940
30024
  type: "string"
29941
30025
  },
29942
30026
  tailscale_auth_key: { nullable: true, type: "string" },
29943
- 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" }
29944
30035
  },
29945
30036
  required: [
29946
30037
  "created_at",
@@ -29953,7 +30044,10 @@ var openapi_default = {
29953
30044
  "bridge_client_name",
29954
30045
  "bridge_client_time_zone",
29955
30046
  "bridge_client_machine_identifier_key",
29956
- "errors"
30047
+ "errors",
30048
+ "telemetry_token",
30049
+ "telemetry_token_expires_at",
30050
+ "telemetry_url"
29957
30051
  ],
29958
30052
  type: "object",
29959
30053
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",
@@ -29987,6 +30081,177 @@ var openapi_default = {
29987
30081
  "x-undocumented": "Seam Bridge Client only."
29988
30082
  }
29989
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
+ },
29990
30255
  "/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code": {
29991
30256
  post: {
29992
30257
  description: "Generate a new pairing code and return the updated bridge client session.",
@@ -30101,7 +30366,14 @@ var openapi_default = {
30101
30366
  type: "string"
30102
30367
  },
30103
30368
  tailscale_auth_key: { nullable: true, type: "string" },
30104
- 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" }
30105
30377
  },
30106
30378
  required: [
30107
30379
  "created_at",
@@ -30114,7 +30386,10 @@ var openapi_default = {
30114
30386
  "bridge_client_name",
30115
30387
  "bridge_client_time_zone",
30116
30388
  "bridge_client_machine_identifier_key",
30117
- "errors"
30389
+ "errors",
30390
+ "telemetry_token",
30391
+ "telemetry_token_expires_at",
30392
+ "telemetry_url"
30118
30393
  ],
30119
30394
  type: "object",
30120
30395
  "x-route-path": "/seam/bridge/v1/bridge_client_sessions",