@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.
@@ -18560,6 +18560,7 @@ export interface Routes {
18560
18560
  token: string;
18561
18561
  user_identifier_key: string | null;
18562
18562
  device_count: number;
18563
+ customer_id?: string | undefined;
18563
18564
  connected_account_ids: string[];
18564
18565
  connect_webview_ids: string[];
18565
18566
  user_identity_ids: string[];
@@ -18608,6 +18609,7 @@ export interface Routes {
18608
18609
  token: string;
18609
18610
  user_identifier_key: string | null;
18610
18611
  device_count: number;
18612
+ customer_id?: string | undefined;
18611
18613
  connected_account_ids: string[];
18612
18614
  connect_webview_ids: string[];
18613
18615
  user_identity_ids: string[];
@@ -18650,6 +18652,7 @@ export interface Routes {
18650
18652
  token: string;
18651
18653
  user_identifier_key: string | null;
18652
18654
  device_count: number;
18655
+ customer_id?: string | undefined;
18653
18656
  connected_account_ids: string[];
18654
18657
  connect_webview_ids: string[];
18655
18658
  user_identity_ids: string[];
@@ -18692,6 +18695,7 @@ export interface Routes {
18692
18695
  token: string;
18693
18696
  user_identifier_key: string | null;
18694
18697
  device_count: number;
18698
+ customer_id?: string | undefined;
18695
18699
  connected_account_ids: string[];
18696
18700
  connect_webview_ids: string[];
18697
18701
  user_identity_ids: string[];
@@ -18725,6 +18729,7 @@ export interface Routes {
18725
18729
  token: string;
18726
18730
  user_identifier_key: string | null;
18727
18731
  device_count: number;
18732
+ customer_id?: string | undefined;
18728
18733
  connected_account_ids: string[];
18729
18734
  connect_webview_ids: string[];
18730
18735
  user_identity_ids: string[];
@@ -18906,7 +18911,7 @@ export interface Routes {
18906
18911
  queryParams: {};
18907
18912
  jsonBody: {};
18908
18913
  commonParams: {
18909
- customer_id?: string | undefined;
18914
+ customer_ids?: string[] | undefined;
18910
18915
  /** Your user ID for the user by which you want to filter Connect Webviews. */
18911
18916
  user_identifier_key?: string | undefined;
18912
18917
  /** 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. */
@@ -41203,6 +41208,7 @@ export interface Routes {
41203
41208
  token: string;
41204
41209
  user_identifier_key: string | null;
41205
41210
  device_count: number;
41211
+ customer_id?: string | undefined;
41206
41212
  connected_account_ids: string[];
41207
41213
  connect_webview_ids: string[];
41208
41214
  user_identity_ids: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.406.5",
3
+ "version": "1.406.6",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,6 +8,7 @@ export const client_session = z.object({
8
8
  token: z.string(),
9
9
  user_identifier_key: z.string().nullable(),
10
10
  device_count: z.number(),
11
+ customer_id: z.string().uuid().optional(),
11
12
  connected_account_ids: z.array(z.string().uuid()),
12
13
  connect_webview_ids: z.array(z.string().uuid()),
13
14
  user_identity_ids: z.array(z.string().uuid()),
@@ -16,11 +17,11 @@ export const client_session = z.object({
16
17
  route_path: /client_sessions
17
18
  ---
18
19
  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.
19
-
20
+
20
21
  You create each client session with a custom \`user_identifier_key\`. Normally, the \`user_identifier_key\` is a user ID that your application provides.
21
-
22
+
22
23
  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\`.
23
-
24
+
24
25
  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.
25
26
 
26
27
  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).
@@ -7142,6 +7142,7 @@ export default {
7142
7142
  type: 'array',
7143
7143
  },
7144
7144
  created_at: { format: 'date-time', type: 'string' },
7145
+ customer_id: { format: 'uuid', type: 'string' },
7145
7146
  device_count: { format: 'float', type: 'number' },
7146
7147
  expires_at: { format: 'date-time', type: 'string' },
7147
7148
  token: { type: 'string' },
@@ -20540,18 +20541,18 @@ export default {
20540
20541
  name: 'client-session-token',
20541
20542
  type: 'apiKey',
20542
20543
  },
20543
- console_session_with_workspace: {
20544
- bearerFormat: 'Console Session Token',
20544
+ client_session_with_customer: {
20545
+ bearerFormat: 'Customer Client Session Token',
20545
20546
  scheme: 'bearer',
20546
20547
  type: 'http',
20547
20548
  },
20548
- console_session_without_workspace: {
20549
+ console_session_with_workspace: {
20549
20550
  bearerFormat: 'Console Session Token',
20550
20551
  scheme: 'bearer',
20551
20552
  type: 'http',
20552
20553
  },
20553
- customer_client_session: {
20554
- bearerFormat: 'Customer Client Session Token',
20554
+ console_session_without_workspace: {
20555
+ bearerFormat: 'Console Session Token',
20555
20556
  scheme: 'bearer',
20556
20557
  type: 'http',
20557
20558
  },
@@ -27681,7 +27682,7 @@ export default {
27681
27682
  },
27682
27683
  security: [
27683
27684
  { client_session: [] },
27684
- { customer_client_session: [] },
27685
+ { client_session_with_customer: [] },
27685
27686
  { pat_with_workspace: [] },
27686
27687
  { console_session_with_workspace: [] },
27687
27688
  { api_key: [] },
@@ -27793,7 +27794,7 @@ export default {
27793
27794
  },
27794
27795
  security: [
27795
27796
  { client_session: [] },
27796
- { customer_client_session: [] },
27797
+ { client_session_with_customer: [] },
27797
27798
  { pat_with_workspace: [] },
27798
27799
  { console_session_with_workspace: [] },
27799
27800
  { api_key: [] },
@@ -27825,7 +27826,7 @@ export default {
27825
27826
  '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.',
27826
27827
  type: 'object',
27827
27828
  },
27828
- customer_id: { type: 'string' },
27829
+ customer_ids: { items: { type: 'string' }, type: 'array' },
27829
27830
  limit: {
27830
27831
  default: 500,
27831
27832
  description:
@@ -27868,7 +27869,7 @@ export default {
27868
27869
  },
27869
27870
  security: [
27870
27871
  { client_session: [] },
27871
- { customer_client_session: [] },
27872
+ { client_session_with_customer: [] },
27872
27873
  { pat_with_workspace: [] },
27873
27874
  { console_session_with_workspace: [] },
27874
27875
  { api_key: [] },
@@ -27930,7 +27931,7 @@ export default {
27930
27931
  { api_key: [] },
27931
27932
  { pat_with_workspace: [] },
27932
27933
  { console_session_with_workspace: [] },
27933
- { customer_client_session: [] },
27934
+ { client_session_with_customer: [] },
27934
27935
  ],
27935
27936
  summary: '/connected_accounts/delete',
27936
27937
  tags: ['/connected_accounts'],
@@ -28089,7 +28090,7 @@ export default {
28089
28090
  { api_key: [] },
28090
28091
  { pat_with_workspace: [] },
28091
28092
  { console_session_with_workspace: [] },
28092
- { customer_client_session: [] },
28093
+ { client_session_with_customer: [] },
28093
28094
  ],
28094
28095
  summary: '/connected_accounts/list',
28095
28096
  tags: ['/connected_accounts'],
@@ -28327,7 +28328,7 @@ export default {
28327
28328
  },
28328
28329
  security: [
28329
28330
  { client_session: [] },
28330
- { customer_client_session: [] },
28331
+ { client_session_with_customer: [] },
28331
28332
  { pat_with_workspace: [] },
28332
28333
  { console_session_with_workspace: [] },
28333
28334
  { api_key: [] },
@@ -28664,7 +28665,7 @@ export default {
28664
28665
  401: { description: 'Unauthorized' },
28665
28666
  },
28666
28667
  security: [
28667
- { customer_client_session: [] },
28668
+ { client_session_with_customer: [] },
28668
28669
  { client_session: [] },
28669
28670
  { pat_with_workspace: [] },
28670
28671
  { console_session_with_workspace: [] },
@@ -29966,7 +29967,7 @@ export default {
29966
29967
  { api_key: [] },
29967
29968
  { pat_with_workspace: [] },
29968
29969
  { console_session_with_workspace: [] },
29969
- { customer_client_session: [] },
29970
+ { client_session_with_customer: [] },
29970
29971
  ],
29971
29972
  summary: '/events/list',
29972
29973
  tags: ['/events'],
@@ -32917,7 +32918,7 @@ export default {
32917
32918
  400: { description: 'Bad Request' },
32918
32919
  401: { description: 'Unauthorized' },
32919
32920
  },
32920
- security: [{ customer_client_session: [] }],
32921
+ security: [{ client_session_with_customer: [] }],
32921
32922
  summary: '/seam/partner/v1/resources/list',
32922
32923
  tags: [],
32923
32924
  'x-fern-sdk-group-name': ['seam', 'partner', 'v1', 'resources'],
@@ -35810,7 +35811,7 @@ export default {
35810
35811
  { pat_with_workspace: [] },
35811
35812
  { console_session_with_workspace: [] },
35812
35813
  { api_key: [] },
35813
- { customer_client_session: [] },
35814
+ { client_session_with_customer: [] },
35814
35815
  ],
35815
35816
  summary: '/unstable_access_grants/create',
35816
35817
  tags: [],
@@ -35863,7 +35864,7 @@ export default {
35863
35864
  { pat_with_workspace: [] },
35864
35865
  { console_session_with_workspace: [] },
35865
35866
  { api_key: [] },
35866
- { customer_client_session: [] },
35867
+ { client_session_with_customer: [] },
35867
35868
  ],
35868
35869
  summary: '/unstable_access_grants/delete',
35869
35870
  tags: [],
@@ -36012,7 +36013,7 @@ export default {
36012
36013
  { pat_with_workspace: [] },
36013
36014
  { console_session_with_workspace: [] },
36014
36015
  { api_key: [] },
36015
- { customer_client_session: [] },
36016
+ { client_session_with_customer: [] },
36016
36017
  ],
36017
36018
  summary: '/unstable_access_grants/get',
36018
36019
  tags: [],
@@ -36183,7 +36184,7 @@ export default {
36183
36184
  { pat_with_workspace: [] },
36184
36185
  { console_session_with_workspace: [] },
36185
36186
  { api_key: [] },
36186
- { customer_client_session: [] },
36187
+ { client_session_with_customer: [] },
36187
36188
  ],
36188
36189
  summary: '/unstable_access_grants/list',
36189
36190
  tags: [],
@@ -21538,6 +21538,7 @@ export interface Routes {
21538
21538
  token: string
21539
21539
  user_identifier_key: string | null
21540
21540
  device_count: number
21541
+ customer_id?: string | undefined
21541
21542
  connected_account_ids: string[]
21542
21543
  connect_webview_ids: string[]
21543
21544
  user_identity_ids: string[]
@@ -21586,6 +21587,7 @@ export interface Routes {
21586
21587
  token: string
21587
21588
  user_identifier_key: string | null
21588
21589
  device_count: number
21590
+ customer_id?: string | undefined
21589
21591
  connected_account_ids: string[]
21590
21592
  connect_webview_ids: string[]
21591
21593
  user_identity_ids: string[]
@@ -21628,6 +21630,7 @@ export interface Routes {
21628
21630
  token: string
21629
21631
  user_identifier_key: string | null
21630
21632
  device_count: number
21633
+ customer_id?: string | undefined
21631
21634
  connected_account_ids: string[]
21632
21635
  connect_webview_ids: string[]
21633
21636
  user_identity_ids: string[]
@@ -21670,6 +21673,7 @@ export interface Routes {
21670
21673
  token: string
21671
21674
  user_identifier_key: string | null
21672
21675
  device_count: number
21676
+ customer_id?: string | undefined
21673
21677
  connected_account_ids: string[]
21674
21678
  connect_webview_ids: string[]
21675
21679
  user_identity_ids: string[]
@@ -21703,6 +21707,7 @@ export interface Routes {
21703
21707
  token: string
21704
21708
  user_identifier_key: string | null
21705
21709
  device_count: number
21710
+ customer_id?: string | undefined
21706
21711
  connected_account_ids: string[]
21707
21712
  connect_webview_ids: string[]
21708
21713
  user_identity_ids: string[]
@@ -21946,7 +21951,7 @@ export interface Routes {
21946
21951
  queryParams: {}
21947
21952
  jsonBody: {}
21948
21953
  commonParams: {
21949
- customer_id?: string | undefined
21954
+ customer_ids?: string[] | undefined
21950
21955
  /** Your user ID for the user by which you want to filter Connect Webviews. */
21951
21956
  user_identifier_key?: string | undefined
21952
21957
  /** 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. */
@@ -48589,6 +48594,7 @@ export interface Routes {
48589
48594
  token: string
48590
48595
  user_identifier_key: string | null
48591
48596
  device_count: number
48597
+ customer_id?: string | undefined
48592
48598
  connected_account_ids: string[]
48593
48599
  connect_webview_ids: string[]
48594
48600
  user_identity_ids: string[]