@seamapi/types 1.403.0 → 1.404.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.
@@ -15722,8 +15722,12 @@ export interface Routes {
15722
15722
  queryParams: {};
15723
15723
  jsonBody: {};
15724
15724
  commonParams: {
15725
- /** ID of the access system user for whom you want to list accessible entrances. */
15726
- acs_user_id: string;
15725
+ /** ID of the access system user for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id. */
15726
+ acs_user_id?: string | undefined;
15727
+ /** ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id. */
15728
+ user_identity_id?: string | undefined;
15729
+ /** ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id. */
15730
+ acs_system_id?: string | undefined;
15727
15731
  };
15728
15732
  formData: {};
15729
15733
  jsonResponse: {
@@ -15797,8 +15801,10 @@ export interface Routes {
15797
15801
  queryParams: {};
15798
15802
  jsonBody: {};
15799
15803
  commonParams: {
15800
- /** ID of the access system user that you want to remove from an access group. */
15801
- acs_user_id: string;
15804
+ /** ID of the access system user that you want to remove from an access group. You can only provide acs_user_id or user_identity_id. */
15805
+ acs_user_id?: string | undefined;
15806
+ /** ID of the user identity that you want to remove from an access group. You can only provide acs_user_id or user_identity_id. */
15807
+ user_identity_id?: string | undefined;
15802
15808
  /** ID of the access group from which you want to remove an access system user. */
15803
15809
  acs_access_group_id: string;
15804
15810
  };
@@ -18790,12 +18796,18 @@ export interface Routes {
18790
18796
 
18791
18797
  To list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters. */
18792
18798
  connect_webview: {
18799
+ /** ID of the Connect Webview. */
18793
18800
  connect_webview_id: string;
18801
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
18794
18802
  workspace_id: string;
18803
+ /** Date and time at which the Connect Webview was created. */
18795
18804
  created_at: string;
18805
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
18796
18806
  connected_account_id: string | null;
18807
+ /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
18797
18808
  url: string;
18798
18809
  device_selection_mode: 'none' | 'single' | 'multiple';
18810
+ /** List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18799
18811
  accepted_providers: string[];
18800
18812
  /**
18801
18813
  * @deprecated Unused. Will be removed. */
@@ -18803,15 +18815,25 @@ export interface Routes {
18803
18815
  /**
18804
18816
  * @deprecated Unused. Will be removed. */
18805
18817
  any_device_allowed: boolean;
18818
+ /** Indicates whether any provider is allowed. */
18806
18819
  any_provider_allowed: boolean;
18820
+ /** Indicates whether the user logged in successfully using the Connect Webview. */
18807
18821
  login_successful: boolean;
18822
+ /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */
18808
18823
  status: 'pending' | 'failed' | 'authorized';
18824
+ /** URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs. */
18809
18825
  custom_redirect_url: string | null;
18826
+ /** URL to which the Connect Webview should redirect when an unexpected error occurs. */
18810
18827
  custom_redirect_failure_url: string | null;
18828
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
18811
18829
  custom_metadata: Record<string, string | boolean>;
18830
+ /** Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API. */
18812
18831
  automatically_manage_new_devices: boolean;
18832
+ /** Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview. */
18813
18833
  wait_for_device_creation: boolean;
18834
+ /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
18814
18835
  authorized_at: string | null;
18836
+ /** Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18815
18837
  selected_provider: string | null;
18816
18838
  };
18817
18839
  };
@@ -18851,12 +18873,18 @@ export interface Routes {
18851
18873
 
18852
18874
  To list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters. */
18853
18875
  connect_webview: {
18876
+ /** ID of the Connect Webview. */
18854
18877
  connect_webview_id: string;
18878
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
18855
18879
  workspace_id: string;
18880
+ /** Date and time at which the Connect Webview was created. */
18856
18881
  created_at: string;
18882
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
18857
18883
  connected_account_id: string | null;
18884
+ /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
18858
18885
  url: string;
18859
18886
  device_selection_mode: 'none' | 'single' | 'multiple';
18887
+ /** List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18860
18888
  accepted_providers: string[];
18861
18889
  /**
18862
18890
  * @deprecated Unused. Will be removed. */
@@ -18864,15 +18892,25 @@ export interface Routes {
18864
18892
  /**
18865
18893
  * @deprecated Unused. Will be removed. */
18866
18894
  any_device_allowed: boolean;
18895
+ /** Indicates whether any provider is allowed. */
18867
18896
  any_provider_allowed: boolean;
18897
+ /** Indicates whether the user logged in successfully using the Connect Webview. */
18868
18898
  login_successful: boolean;
18899
+ /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */
18869
18900
  status: 'pending' | 'failed' | 'authorized';
18901
+ /** URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs. */
18870
18902
  custom_redirect_url: string | null;
18903
+ /** URL to which the Connect Webview should redirect when an unexpected error occurs. */
18871
18904
  custom_redirect_failure_url: string | null;
18905
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
18872
18906
  custom_metadata: Record<string, string | boolean>;
18907
+ /** Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API. */
18873
18908
  automatically_manage_new_devices: boolean;
18909
+ /** Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview. */
18874
18910
  wait_for_device_creation: boolean;
18911
+ /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
18875
18912
  authorized_at: string | null;
18913
+ /** Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18876
18914
  selected_provider: string | null;
18877
18915
  };
18878
18916
  };
@@ -18893,12 +18931,18 @@ export interface Routes {
18893
18931
  formData: {};
18894
18932
  jsonResponse: {
18895
18933
  connect_webviews: Array<{
18934
+ /** ID of the Connect Webview. */
18896
18935
  connect_webview_id: string;
18936
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
18897
18937
  workspace_id: string;
18938
+ /** Date and time at which the Connect Webview was created. */
18898
18939
  created_at: string;
18940
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
18899
18941
  connected_account_id: string | null;
18942
+ /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
18900
18943
  url: string;
18901
18944
  device_selection_mode: 'none' | 'single' | 'multiple';
18945
+ /** List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18902
18946
  accepted_providers: string[];
18903
18947
  /**
18904
18948
  * @deprecated Unused. Will be removed. */
@@ -18906,15 +18950,25 @@ export interface Routes {
18906
18950
  /**
18907
18951
  * @deprecated Unused. Will be removed. */
18908
18952
  any_device_allowed: boolean;
18953
+ /** Indicates whether any provider is allowed. */
18909
18954
  any_provider_allowed: boolean;
18955
+ /** Indicates whether the user logged in successfully using the Connect Webview. */
18910
18956
  login_successful: boolean;
18957
+ /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */
18911
18958
  status: 'pending' | 'failed' | 'authorized';
18959
+ /** URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs. */
18912
18960
  custom_redirect_url: string | null;
18961
+ /** URL to which the Connect Webview should redirect when an unexpected error occurs. */
18913
18962
  custom_redirect_failure_url: string | null;
18963
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
18914
18964
  custom_metadata: Record<string, string | boolean>;
18965
+ /** Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API. */
18915
18966
  automatically_manage_new_devices: boolean;
18967
+ /** Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview. */
18916
18968
  wait_for_device_creation: boolean;
18969
+ /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
18917
18970
  authorized_at: string | null;
18971
+ /** Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
18918
18972
  selected_provider: string | null;
18919
18973
  }>;
18920
18974
  };
@@ -19028,6 +19082,7 @@ export interface Routes {
19028
19082
  }>;
19029
19083
  };
19030
19084
  }>;
19085
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
19031
19086
  custom_metadata: Record<string, string | boolean>;
19032
19087
  automatically_manage_new_devices: boolean;
19033
19088
  };
@@ -19131,6 +19186,7 @@ export interface Routes {
19131
19186
  }>;
19132
19187
  };
19133
19188
  }>;
19189
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
19134
19190
  custom_metadata: Record<string, string | boolean>;
19135
19191
  automatically_manage_new_devices: boolean;
19136
19192
  }>;
@@ -19241,6 +19297,7 @@ export interface Routes {
19241
19297
  }>;
19242
19298
  };
19243
19299
  }>;
19300
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
19244
19301
  custom_metadata: Record<string, string | boolean>;
19245
19302
  automatically_manage_new_devices: boolean;
19246
19303
  };
@@ -20012,6 +20069,7 @@ export interface Routes {
20012
20069
  created_at: string;
20013
20070
  /** Indicates whether Seam manages the device. */
20014
20071
  is_managed: true;
20072
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
20015
20073
  custom_metadata: Record<string, string | boolean>;
20016
20074
  can_remotely_unlock?: boolean | undefined;
20017
20075
  can_remotely_lock?: boolean | undefined;
@@ -20807,6 +20865,7 @@ export interface Routes {
20807
20865
  created_at: string;
20808
20866
  /** Indicates whether Seam manages the device. */
20809
20867
  is_managed: true;
20868
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
20810
20869
  custom_metadata: Record<string, string | boolean>;
20811
20870
  can_remotely_unlock?: boolean | undefined;
20812
20871
  can_remotely_lock?: boolean | undefined;
@@ -25046,6 +25105,7 @@ export interface Routes {
25046
25105
  created_at: string;
25047
25106
  /** Indicates whether Seam manages the device. */
25048
25107
  is_managed: true;
25108
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
25049
25109
  custom_metadata: Record<string, string | boolean>;
25050
25110
  can_remotely_unlock?: boolean | undefined;
25051
25111
  can_remotely_lock?: boolean | undefined;
@@ -25800,6 +25860,7 @@ export interface Routes {
25800
25860
  created_at: string;
25801
25861
  /** Indicates whether Seam manages the device. */
25802
25862
  is_managed: true;
25863
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
25803
25864
  custom_metadata: Record<string, string | boolean>;
25804
25865
  can_remotely_unlock?: boolean | undefined;
25805
25866
  can_remotely_lock?: boolean | undefined;
@@ -26595,6 +26656,7 @@ export interface Routes {
26595
26656
  created_at: string;
26596
26657
  /** Indicates whether Seam manages the device. */
26597
26658
  is_managed: true;
26659
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
26598
26660
  custom_metadata: Record<string, string | boolean>;
26599
26661
  can_remotely_unlock?: boolean | undefined;
26600
26662
  can_remotely_lock?: boolean | undefined;
@@ -27348,6 +27410,7 @@ export interface Routes {
27348
27410
  created_at: string;
27349
27411
  /** Indicates whether Seam manages the device. */
27350
27412
  is_managed: true;
27413
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
27351
27414
  custom_metadata: Record<string, string | boolean>;
27352
27415
  can_remotely_unlock?: boolean | undefined;
27353
27416
  can_remotely_lock?: boolean | undefined;
@@ -32641,6 +32704,7 @@ export interface Routes {
32641
32704
  created_at: string;
32642
32705
  /** Indicates whether Seam manages the device. */
32643
32706
  is_managed: true;
32707
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
32644
32708
  custom_metadata: Record<string, string | boolean>;
32645
32709
  can_remotely_unlock?: boolean | undefined;
32646
32710
  can_remotely_lock?: boolean | undefined;
@@ -33394,6 +33458,7 @@ export interface Routes {
33394
33458
  created_at: string;
33395
33459
  /** Indicates whether Seam manages the device. */
33396
33460
  is_managed: true;
33461
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
33397
33462
  custom_metadata: Record<string, string | boolean>;
33398
33463
  can_remotely_unlock?: boolean | undefined;
33399
33464
  can_remotely_lock?: boolean | undefined;
@@ -41859,6 +41924,7 @@ export interface Routes {
41859
41924
  created_at: string;
41860
41925
  /** Indicates whether Seam manages the device. */
41861
41926
  is_managed: true;
41927
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
41862
41928
  custom_metadata: Record<string, string | boolean>;
41863
41929
  can_remotely_unlock?: boolean | undefined;
41864
41930
  can_remotely_lock?: boolean | undefined;
@@ -44902,6 +44968,7 @@ export interface Routes {
44902
44968
  created_at: string;
44903
44969
  /** Indicates whether Seam manages the device. */
44904
44970
  is_managed: true;
44971
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
44905
44972
  custom_metadata: Record<string, string | boolean>;
44906
44973
  can_remotely_unlock?: boolean | undefined;
44907
44974
  can_remotely_lock?: boolean | undefined;
@@ -45655,6 +45722,7 @@ export interface Routes {
45655
45722
  created_at: string;
45656
45723
  /** Indicates whether Seam manages the device. */
45657
45724
  is_managed: true;
45725
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
45658
45726
  custom_metadata: Record<string, string | boolean>;
45659
45727
  can_remotely_unlock?: boolean | undefined;
45660
45728
  can_remotely_lock?: boolean | undefined;
@@ -51947,6 +52015,7 @@ export interface Routes {
51947
52015
  created_at: string;
51948
52016
  /** Indicates whether Seam manages the device. */
51949
52017
  is_managed: true;
52018
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
51950
52019
  custom_metadata: Record<string, string | boolean>;
51951
52020
  can_remotely_unlock?: boolean | undefined;
51952
52021
  can_remotely_lock?: boolean | undefined;
@@ -52702,6 +52771,7 @@ export interface Routes {
52702
52771
  created_at: string;
52703
52772
  /** Indicates whether Seam manages the device. */
52704
52773
  is_managed: true;
52774
+ /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
52705
52775
  custom_metadata: Record<string, string | boolean>;
52706
52776
  can_remotely_unlock?: boolean | undefined;
52707
52777
  can_remotely_lock?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.403.0",
3
+ "version": "1.404.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -9,15 +9,38 @@ export const connect_webview_device_selection_mode = z.enum([
9
9
  ])
10
10
 
11
11
  export const connect_webview = z.object({
12
- connect_webview_id: z.string().uuid(),
13
- workspace_id: z.string().uuid(),
14
- created_at: z.string().datetime(),
15
- connected_account_id: z.string().uuid().nullable(),
16
- url: z.string().url(),
12
+ connect_webview_id: z.string().uuid().describe('ID of the Connect Webview.'),
13
+ workspace_id: z
14
+ .string()
15
+ .uuid()
16
+ .describe(
17
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview.',
18
+ ),
19
+ created_at: z
20
+ .string()
21
+ .datetime()
22
+ .describe('Date and time at which the Connect Webview was created.'),
23
+ connected_account_id: z
24
+ .string()
25
+ .uuid()
26
+ .nullable()
27
+ .describe(
28
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview.',
29
+ ),
30
+ url: z
31
+ .string()
32
+ .url()
33
+ .describe(
34
+ 'URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.',
35
+ ),
17
36
  device_selection_mode: connect_webview_device_selection_mode,
18
37
 
19
38
  // TODO: Use enum value.
20
- accepted_providers: z.array(z.string()),
39
+ accepted_providers: z
40
+ .array(z.string())
41
+ .describe(
42
+ 'List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).',
43
+ ),
21
44
 
22
45
  accepted_devices: z.array(z.string()).describe(
23
46
  `
@@ -36,16 +59,57 @@ export const connect_webview = z.object({
36
59
  `,
37
60
  ),
38
61
 
39
- any_provider_allowed: z.boolean(),
40
- login_successful: z.boolean(),
41
- status: z.enum(['pending', 'failed', 'authorized']),
42
- custom_redirect_url: z.string().url().nullable(),
43
- custom_redirect_failure_url: z.string().url().nullable(),
62
+ any_provider_allowed: z
63
+ .boolean()
64
+ .describe('Indicates whether any provider is allowed.'),
65
+ login_successful: z
66
+ .boolean()
67
+ .describe(
68
+ 'Indicates whether the user logged in successfully using the Connect Webview.',
69
+ ),
70
+ status: z
71
+ .enum(['pending', 'failed', 'authorized'])
72
+ .describe(
73
+ 'Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.',
74
+ ),
75
+ custom_redirect_url: z
76
+ .string()
77
+ .url()
78
+ .nullable()
79
+ .describe(
80
+ 'URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.',
81
+ ),
82
+ custom_redirect_failure_url: z
83
+ .string()
84
+ .url()
85
+ .nullable()
86
+ .describe(
87
+ 'URL to which the Connect Webview should redirect when an unexpected error occurs.',
88
+ ),
44
89
  custom_metadata,
45
- automatically_manage_new_devices: z.boolean(),
46
- wait_for_device_creation: z.boolean(),
47
- authorized_at: z.string().datetime().nullable(),
48
- selected_provider: z.string().nullable(),
90
+ automatically_manage_new_devices: z
91
+ .boolean()
92
+ .describe(
93
+ 'Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.',
94
+ ),
95
+ wait_for_device_creation: z
96
+ .boolean()
97
+ .describe(
98
+ 'Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.',
99
+ ),
100
+ authorized_at: z
101
+ .string()
102
+ .datetime()
103
+ .nullable()
104
+ .describe(
105
+ 'Date and time at which the user authorized (through the Connect Webview) the management of their devices.',
106
+ ),
107
+ selected_provider: z
108
+ .string()
109
+ .nullable()
110
+ .describe(
111
+ 'Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).',
112
+ ),
49
113
  }).describe(`
50
114
  ---
51
115
  route_path: /connect_webviews
@@ -8,11 +8,15 @@ export const custom_metadata_input = z
8
8
  .refine((val) => Object.keys(val).length <= 50, {
9
9
  message: 'Custom metadata is limited to a maximum of 50 keys',
10
10
  })
11
+ .describe(
12
+ 'Set of up to 50 key:value pairs, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
13
+ )
11
14
 
12
- export const custom_metadata = z.record(
13
- z.string(),
14
- z.union([z.string(), z.boolean()]),
15
- )
15
+ export const custom_metadata = z
16
+ .record(z.string(), z.union([z.string(), z.boolean()]))
17
+ .describe(
18
+ 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
19
+ )
16
20
 
17
21
  export type CustomMetadata = z.output<typeof custom_metadata>
18
22
 
@@ -7173,39 +7173,70 @@ export default {
7173
7173
  'x-deprecated': 'Unused. Will be removed.',
7174
7174
  'x-undocumented': 'Unused. Will be removed.',
7175
7175
  },
7176
- accepted_providers: { items: { type: 'string' }, type: 'array' },
7176
+ accepted_providers: {
7177
+ description:
7178
+ 'List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).',
7179
+ items: { type: 'string' },
7180
+ type: 'array',
7181
+ },
7177
7182
  any_device_allowed: {
7178
7183
  deprecated: true,
7179
7184
  type: 'boolean',
7180
7185
  'x-deprecated': 'Unused. Will be removed.',
7181
7186
  'x-undocumented': 'Unused. Will be removed.',
7182
7187
  },
7183
- any_provider_allowed: { type: 'boolean' },
7188
+ any_provider_allowed: {
7189
+ description: 'Indicates whether any provider is allowed.',
7190
+ type: 'boolean',
7191
+ },
7184
7192
  authorized_at: {
7193
+ description:
7194
+ 'Date and time at which the user authorized (through the Connect Webview) the management of their devices.',
7185
7195
  format: 'date-time',
7186
7196
  nullable: true,
7187
7197
  type: 'string',
7188
7198
  },
7189
- automatically_manage_new_devices: { type: 'boolean' },
7190
- connect_webview_id: { format: 'uuid', type: 'string' },
7199
+ automatically_manage_new_devices: {
7200
+ description:
7201
+ 'Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.',
7202
+ type: 'boolean',
7203
+ },
7204
+ connect_webview_id: {
7205
+ description: 'ID of the Connect Webview.',
7206
+ format: 'uuid',
7207
+ type: 'string',
7208
+ },
7191
7209
  connected_account_id: {
7210
+ description:
7211
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview.',
7192
7212
  format: 'uuid',
7193
7213
  nullable: true,
7194
7214
  type: 'string',
7195
7215
  },
7196
- created_at: { format: 'date-time', type: 'string' },
7216
+ created_at: {
7217
+ description:
7218
+ 'Date and time at which the Connect Webview was created.',
7219
+ format: 'date-time',
7220
+ type: 'string',
7221
+ },
7197
7222
  custom_metadata: {
7198
7223
  additionalProperties: {
7199
7224
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
7200
7225
  },
7226
+ description:
7227
+ 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
7201
7228
  type: 'object',
7202
7229
  },
7203
7230
  custom_redirect_failure_url: {
7231
+ description:
7232
+ 'URL to which the Connect Webview should redirect when an unexpected error occurs.',
7204
7233
  format: 'uri',
7205
7234
  nullable: true,
7206
7235
  type: 'string',
7207
7236
  },
7208
7237
  custom_redirect_url: {
7238
+ description:
7239
+ 'URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.',
7209
7240
  format: 'uri',
7210
7241
  nullable: true,
7211
7242
  type: 'string',
@@ -7214,12 +7245,40 @@ export default {
7214
7245
  enum: ['none', 'single', 'multiple'],
7215
7246
  type: 'string',
7216
7247
  },
7217
- login_successful: { type: 'boolean' },
7218
- selected_provider: { nullable: true, type: 'string' },
7219
- status: { enum: ['pending', 'failed', 'authorized'], type: 'string' },
7220
- url: { format: 'uri', type: 'string' },
7221
- wait_for_device_creation: { type: 'boolean' },
7222
- workspace_id: { format: 'uuid', type: 'string' },
7248
+ login_successful: {
7249
+ description:
7250
+ 'Indicates whether the user logged in successfully using the Connect Webview.',
7251
+ type: 'boolean',
7252
+ },
7253
+ selected_provider: {
7254
+ description:
7255
+ 'Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).',
7256
+ nullable: true,
7257
+ type: 'string',
7258
+ },
7259
+ status: {
7260
+ description:
7261
+ 'Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.',
7262
+ enum: ['pending', 'failed', 'authorized'],
7263
+ type: 'string',
7264
+ },
7265
+ url: {
7266
+ description:
7267
+ 'URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.',
7268
+ format: 'uri',
7269
+ type: 'string',
7270
+ },
7271
+ wait_for_device_creation: {
7272
+ description:
7273
+ 'Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.',
7274
+ type: 'boolean',
7275
+ },
7276
+ workspace_id: {
7277
+ description:
7278
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview.',
7279
+ format: 'uuid',
7280
+ type: 'string',
7281
+ },
7223
7282
  },
7224
7283
  required: [
7225
7284
  'connect_webview_id',
@@ -7258,6 +7317,8 @@ export default {
7258
7317
  additionalProperties: {
7259
7318
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
7260
7319
  },
7320
+ description:
7321
+ 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
7261
7322
  type: 'object',
7262
7323
  },
7263
7324
  errors: {
@@ -7567,6 +7628,8 @@ export default {
7567
7628
  additionalProperties: {
7568
7629
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
7569
7630
  },
7631
+ description:
7632
+ 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
7570
7633
  type: 'object',
7571
7634
  },
7572
7635
  device_id: {
@@ -24880,14 +24943,25 @@ export default {
24880
24943
  'application/json': {
24881
24944
  schema: {
24882
24945
  properties: {
24946
+ acs_system_id: {
24947
+ description:
24948
+ 'ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id.',
24949
+ format: 'uuid',
24950
+ type: 'string',
24951
+ },
24883
24952
  acs_user_id: {
24884
24953
  description:
24885
- 'ID of the access system user for whom you want to list accessible entrances.',
24954
+ 'ID of the access system user for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.',
24955
+ format: 'uuid',
24956
+ type: 'string',
24957
+ },
24958
+ user_identity_id: {
24959
+ description:
24960
+ 'ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.',
24886
24961
  format: 'uuid',
24887
24962
  type: 'string',
24888
24963
  },
24889
24964
  },
24890
- required: ['acs_user_id'],
24891
24965
  type: 'object',
24892
24966
  },
24893
24967
  },
@@ -24948,12 +25022,18 @@ export default {
24948
25022
  },
24949
25023
  acs_user_id: {
24950
25024
  description:
24951
- 'ID of the access system user that you want to remove from an access group.',
25025
+ 'ID of the access system user that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.',
25026
+ format: 'uuid',
25027
+ type: 'string',
25028
+ },
25029
+ user_identity_id: {
25030
+ description:
25031
+ 'ID of the user identity that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.',
24952
25032
  format: 'uuid',
24953
25033
  type: 'string',
24954
25034
  },
24955
25035
  },
24956
- required: ['acs_user_id', 'acs_access_group_id'],
25036
+ required: ['acs_access_group_id'],
24957
25037
  type: 'object',
24958
25038
  },
24959
25039
  },