@seamapi/types 1.406.5 → 1.406.6

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
@@ -3876,6 +3876,7 @@ var client_session = zod.z.object({
3876
3876
  token: zod.z.string(),
3877
3877
  user_identifier_key: zod.z.string().nullable(),
3878
3878
  device_count: zod.z.number(),
3879
+ customer_id: zod.z.string().uuid().optional(),
3879
3880
  connected_account_ids: zod.z.array(zod.z.string().uuid()),
3880
3881
  connect_webview_ids: zod.z.array(zod.z.string().uuid()),
3881
3882
  user_identity_ids: zod.z.array(zod.z.string().uuid())
@@ -3884,11 +3885,11 @@ var client_session = zod.z.object({
3884
3885
  route_path: /client_sessions
3885
3886
  ---
3886
3887
  Represents a [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.
3887
-
3888
+
3888
3889
  You create each client session with a custom \`user_identifier_key\`. Normally, the \`user_identifier_key\` is a user ID that your application provides.
3889
-
3890
+
3890
3891
  When calling the Seam API from your backend using an API key, you can pass the \`user_identifier_key\` as a parameter to limit results to the associated client session. For example, \`/devices/list?user_identifier_key=123\` only returns devices associated with the client session created with the \`user_identifier_key\` \`123\`.
3891
-
3892
+
3892
3893
  A client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.
3893
3894
 
3894
3895
  See also [Get Started with React](https://docs.seam.co/latest/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
@@ -11530,6 +11531,7 @@ var openapi_default = {
11530
11531
  type: "array"
11531
11532
  },
11532
11533
  created_at: { format: "date-time", type: "string" },
11534
+ customer_id: { format: "uuid", type: "string" },
11533
11535
  device_count: { format: "float", type: "number" },
11534
11536
  expires_at: { format: "date-time", type: "string" },
11535
11537
  token: { type: "string" },
@@ -23799,18 +23801,18 @@ var openapi_default = {
23799
23801
  name: "client-session-token",
23800
23802
  type: "apiKey"
23801
23803
  },
23802
- console_session_with_workspace: {
23803
- bearerFormat: "Console Session Token",
23804
+ client_session_with_customer: {
23805
+ bearerFormat: "Customer Client Session Token",
23804
23806
  scheme: "bearer",
23805
23807
  type: "http"
23806
23808
  },
23807
- console_session_without_workspace: {
23809
+ console_session_with_workspace: {
23808
23810
  bearerFormat: "Console Session Token",
23809
23811
  scheme: "bearer",
23810
23812
  type: "http"
23811
23813
  },
23812
- customer_client_session: {
23813
- bearerFormat: "Customer Client Session Token",
23814
+ console_session_without_workspace: {
23815
+ bearerFormat: "Console Session Token",
23814
23816
  scheme: "bearer",
23815
23817
  type: "http"
23816
23818
  },
@@ -30496,7 +30498,7 @@ var openapi_default = {
30496
30498
  },
30497
30499
  security: [
30498
30500
  { client_session: [] },
30499
- { customer_client_session: [] },
30501
+ { client_session_with_customer: [] },
30500
30502
  { pat_with_workspace: [] },
30501
30503
  { console_session_with_workspace: [] },
30502
30504
  { api_key: [] }
@@ -30604,7 +30606,7 @@ var openapi_default = {
30604
30606
  },
30605
30607
  security: [
30606
30608
  { client_session: [] },
30607
- { customer_client_session: [] },
30609
+ { client_session_with_customer: [] },
30608
30610
  { pat_with_workspace: [] },
30609
30611
  { console_session_with_workspace: [] },
30610
30612
  { api_key: [] }
@@ -30634,7 +30636,7 @@ var openapi_default = {
30634
30636
  description: "Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.",
30635
30637
  type: "object"
30636
30638
  },
30637
- customer_id: { type: "string" },
30639
+ customer_ids: { items: { type: "string" }, type: "array" },
30638
30640
  limit: {
30639
30641
  default: 500,
30640
30642
  description: "Maximum number of records to return per page.",
@@ -30675,7 +30677,7 @@ var openapi_default = {
30675
30677
  },
30676
30678
  security: [
30677
30679
  { client_session: [] },
30678
- { customer_client_session: [] },
30680
+ { client_session_with_customer: [] },
30679
30681
  { pat_with_workspace: [] },
30680
30682
  { console_session_with_workspace: [] },
30681
30683
  { api_key: [] }
@@ -30735,7 +30737,7 @@ var openapi_default = {
30735
30737
  { api_key: [] },
30736
30738
  { pat_with_workspace: [] },
30737
30739
  { console_session_with_workspace: [] },
30738
- { customer_client_session: [] }
30740
+ { client_session_with_customer: [] }
30739
30741
  ],
30740
30742
  summary: "/connected_accounts/delete",
30741
30743
  tags: ["/connected_accounts"],
@@ -30886,7 +30888,7 @@ var openapi_default = {
30886
30888
  { api_key: [] },
30887
30889
  { pat_with_workspace: [] },
30888
30890
  { console_session_with_workspace: [] },
30889
- { customer_client_session: [] }
30891
+ { client_session_with_customer: [] }
30890
30892
  ],
30891
30893
  summary: "/connected_accounts/list",
30892
30894
  tags: ["/connected_accounts"],
@@ -31114,7 +31116,7 @@ var openapi_default = {
31114
31116
  },
31115
31117
  security: [
31116
31118
  { client_session: [] },
31117
- { customer_client_session: [] },
31119
+ { client_session_with_customer: [] },
31118
31120
  { pat_with_workspace: [] },
31119
31121
  { console_session_with_workspace: [] },
31120
31122
  { api_key: [] }
@@ -31433,7 +31435,7 @@ var openapi_default = {
31433
31435
  401: { description: "Unauthorized" }
31434
31436
  },
31435
31437
  security: [
31436
- { customer_client_session: [] },
31438
+ { client_session_with_customer: [] },
31437
31439
  { client_session: [] },
31438
31440
  { pat_with_workspace: [] },
31439
31441
  { console_session_with_workspace: [] },
@@ -32678,7 +32680,7 @@ var openapi_default = {
32678
32680
  { api_key: [] },
32679
32681
  { pat_with_workspace: [] },
32680
32682
  { console_session_with_workspace: [] },
32681
- { customer_client_session: [] }
32683
+ { client_session_with_customer: [] }
32682
32684
  ],
32683
32685
  summary: "/events/list",
32684
32686
  tags: ["/events"],
@@ -35512,7 +35514,7 @@ var openapi_default = {
35512
35514
  400: { description: "Bad Request" },
35513
35515
  401: { description: "Unauthorized" }
35514
35516
  },
35515
- security: [{ customer_client_session: [] }],
35517
+ security: [{ client_session_with_customer: [] }],
35516
35518
  summary: "/seam/partner/v1/resources/list",
35517
35519
  tags: [],
35518
35520
  "x-fern-sdk-group-name": ["seam", "partner", "v1", "resources"],
@@ -38197,7 +38199,7 @@ var openapi_default = {
38197
38199
  { pat_with_workspace: [] },
38198
38200
  { console_session_with_workspace: [] },
38199
38201
  { api_key: [] },
38200
- { customer_client_session: [] }
38202
+ { client_session_with_customer: [] }
38201
38203
  ],
38202
38204
  summary: "/unstable_access_grants/create",
38203
38205
  tags: [],
@@ -38250,7 +38252,7 @@ var openapi_default = {
38250
38252
  { pat_with_workspace: [] },
38251
38253
  { console_session_with_workspace: [] },
38252
38254
  { api_key: [] },
38253
- { customer_client_session: [] }
38255
+ { client_session_with_customer: [] }
38254
38256
  ],
38255
38257
  summary: "/unstable_access_grants/delete",
38256
38258
  tags: [],
@@ -38389,7 +38391,7 @@ var openapi_default = {
38389
38391
  { pat_with_workspace: [] },
38390
38392
  { console_session_with_workspace: [] },
38391
38393
  { api_key: [] },
38392
- { customer_client_session: [] }
38394
+ { client_session_with_customer: [] }
38393
38395
  ],
38394
38396
  summary: "/unstable_access_grants/get",
38395
38397
  tags: [],
@@ -38546,7 +38548,7 @@ var openapi_default = {
38546
38548
  { pat_with_workspace: [] },
38547
38549
  { console_session_with_workspace: [] },
38548
38550
  { api_key: [] },
38549
- { customer_client_session: [] }
38551
+ { client_session_with_customer: [] }
38550
38552
  ],
38551
38553
  summary: "/unstable_access_grants/list",
38552
38554
  tags: [],