@seamapi/types 1.404.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.
- package/dist/connect.cjs +109 -32
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +91 -2
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +55 -15
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/custom-metadata.js +5 -2
- package/lib/seam/connect/models/custom-metadata.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +23 -0
- package/lib/seam/connect/openapi.js +65 -13
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +68 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +79 -15
- package/src/lib/seam/connect/models/custom-metadata.ts +8 -4
- package/src/lib/seam/connect/openapi.ts +82 -13
- package/src/lib/seam/connect/route-types.ts +68 -2
|
@@ -15801,8 +15801,10 @@ export interface Routes {
|
|
|
15801
15801
|
queryParams: {};
|
|
15802
15802
|
jsonBody: {};
|
|
15803
15803
|
commonParams: {
|
|
15804
|
-
/** ID of the access system user that you want to remove from an access group. */
|
|
15805
|
-
acs_user_id
|
|
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;
|
|
15806
15808
|
/** ID of the access group from which you want to remove an access system user. */
|
|
15807
15809
|
acs_access_group_id: string;
|
|
15808
15810
|
};
|
|
@@ -18794,12 +18796,18 @@ export interface Routes {
|
|
|
18794
18796
|
|
|
18795
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. */
|
|
18796
18798
|
connect_webview: {
|
|
18799
|
+
/** ID of the Connect Webview. */
|
|
18797
18800
|
connect_webview_id: string;
|
|
18801
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
|
|
18798
18802
|
workspace_id: string;
|
|
18803
|
+
/** Date and time at which the Connect Webview was created. */
|
|
18799
18804
|
created_at: string;
|
|
18805
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
|
|
18800
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. */
|
|
18801
18808
|
url: string;
|
|
18802
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). */
|
|
18803
18811
|
accepted_providers: string[];
|
|
18804
18812
|
/**
|
|
18805
18813
|
* @deprecated Unused. Will be removed. */
|
|
@@ -18807,15 +18815,25 @@ export interface Routes {
|
|
|
18807
18815
|
/**
|
|
18808
18816
|
* @deprecated Unused. Will be removed. */
|
|
18809
18817
|
any_device_allowed: boolean;
|
|
18818
|
+
/** Indicates whether any provider is allowed. */
|
|
18810
18819
|
any_provider_allowed: boolean;
|
|
18820
|
+
/** Indicates whether the user logged in successfully using the Connect Webview. */
|
|
18811
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. */
|
|
18812
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. */
|
|
18813
18825
|
custom_redirect_url: string | null;
|
|
18826
|
+
/** URL to which the Connect Webview should redirect when an unexpected error occurs. */
|
|
18814
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. */
|
|
18815
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. */
|
|
18816
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. */
|
|
18817
18833
|
wait_for_device_creation: boolean;
|
|
18834
|
+
/** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
|
|
18818
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). */
|
|
18819
18837
|
selected_provider: string | null;
|
|
18820
18838
|
};
|
|
18821
18839
|
};
|
|
@@ -18855,12 +18873,18 @@ export interface Routes {
|
|
|
18855
18873
|
|
|
18856
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. */
|
|
18857
18875
|
connect_webview: {
|
|
18876
|
+
/** ID of the Connect Webview. */
|
|
18858
18877
|
connect_webview_id: string;
|
|
18878
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
|
|
18859
18879
|
workspace_id: string;
|
|
18880
|
+
/** Date and time at which the Connect Webview was created. */
|
|
18860
18881
|
created_at: string;
|
|
18882
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
|
|
18861
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. */
|
|
18862
18885
|
url: string;
|
|
18863
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). */
|
|
18864
18888
|
accepted_providers: string[];
|
|
18865
18889
|
/**
|
|
18866
18890
|
* @deprecated Unused. Will be removed. */
|
|
@@ -18868,15 +18892,25 @@ export interface Routes {
|
|
|
18868
18892
|
/**
|
|
18869
18893
|
* @deprecated Unused. Will be removed. */
|
|
18870
18894
|
any_device_allowed: boolean;
|
|
18895
|
+
/** Indicates whether any provider is allowed. */
|
|
18871
18896
|
any_provider_allowed: boolean;
|
|
18897
|
+
/** Indicates whether the user logged in successfully using the Connect Webview. */
|
|
18872
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. */
|
|
18873
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. */
|
|
18874
18902
|
custom_redirect_url: string | null;
|
|
18903
|
+
/** URL to which the Connect Webview should redirect when an unexpected error occurs. */
|
|
18875
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. */
|
|
18876
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. */
|
|
18877
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. */
|
|
18878
18910
|
wait_for_device_creation: boolean;
|
|
18911
|
+
/** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
|
|
18879
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). */
|
|
18880
18914
|
selected_provider: string | null;
|
|
18881
18915
|
};
|
|
18882
18916
|
};
|
|
@@ -18897,12 +18931,18 @@ export interface Routes {
|
|
|
18897
18931
|
formData: {};
|
|
18898
18932
|
jsonResponse: {
|
|
18899
18933
|
connect_webviews: Array<{
|
|
18934
|
+
/** ID of the Connect Webview. */
|
|
18900
18935
|
connect_webview_id: string;
|
|
18936
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
|
|
18901
18937
|
workspace_id: string;
|
|
18938
|
+
/** Date and time at which the Connect Webview was created. */
|
|
18902
18939
|
created_at: string;
|
|
18940
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
|
|
18903
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. */
|
|
18904
18943
|
url: string;
|
|
18905
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). */
|
|
18906
18946
|
accepted_providers: string[];
|
|
18907
18947
|
/**
|
|
18908
18948
|
* @deprecated Unused. Will be removed. */
|
|
@@ -18910,15 +18950,25 @@ export interface Routes {
|
|
|
18910
18950
|
/**
|
|
18911
18951
|
* @deprecated Unused. Will be removed. */
|
|
18912
18952
|
any_device_allowed: boolean;
|
|
18953
|
+
/** Indicates whether any provider is allowed. */
|
|
18913
18954
|
any_provider_allowed: boolean;
|
|
18955
|
+
/** Indicates whether the user logged in successfully using the Connect Webview. */
|
|
18914
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. */
|
|
18915
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. */
|
|
18916
18960
|
custom_redirect_url: string | null;
|
|
18961
|
+
/** URL to which the Connect Webview should redirect when an unexpected error occurs. */
|
|
18917
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. */
|
|
18918
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. */
|
|
18919
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. */
|
|
18920
18968
|
wait_for_device_creation: boolean;
|
|
18969
|
+
/** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
|
|
18921
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). */
|
|
18922
18972
|
selected_provider: string | null;
|
|
18923
18973
|
}>;
|
|
18924
18974
|
};
|
|
@@ -19032,6 +19082,7 @@ export interface Routes {
|
|
|
19032
19082
|
}>;
|
|
19033
19083
|
};
|
|
19034
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. */
|
|
19035
19086
|
custom_metadata: Record<string, string | boolean>;
|
|
19036
19087
|
automatically_manage_new_devices: boolean;
|
|
19037
19088
|
};
|
|
@@ -19135,6 +19186,7 @@ export interface Routes {
|
|
|
19135
19186
|
}>;
|
|
19136
19187
|
};
|
|
19137
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. */
|
|
19138
19190
|
custom_metadata: Record<string, string | boolean>;
|
|
19139
19191
|
automatically_manage_new_devices: boolean;
|
|
19140
19192
|
}>;
|
|
@@ -19245,6 +19297,7 @@ export interface Routes {
|
|
|
19245
19297
|
}>;
|
|
19246
19298
|
};
|
|
19247
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. */
|
|
19248
19301
|
custom_metadata: Record<string, string | boolean>;
|
|
19249
19302
|
automatically_manage_new_devices: boolean;
|
|
19250
19303
|
};
|
|
@@ -20016,6 +20069,7 @@ export interface Routes {
|
|
|
20016
20069
|
created_at: string;
|
|
20017
20070
|
/** Indicates whether Seam manages the device. */
|
|
20018
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. */
|
|
20019
20073
|
custom_metadata: Record<string, string | boolean>;
|
|
20020
20074
|
can_remotely_unlock?: boolean | undefined;
|
|
20021
20075
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -20811,6 +20865,7 @@ export interface Routes {
|
|
|
20811
20865
|
created_at: string;
|
|
20812
20866
|
/** Indicates whether Seam manages the device. */
|
|
20813
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. */
|
|
20814
20869
|
custom_metadata: Record<string, string | boolean>;
|
|
20815
20870
|
can_remotely_unlock?: boolean | undefined;
|
|
20816
20871
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -25050,6 +25105,7 @@ export interface Routes {
|
|
|
25050
25105
|
created_at: string;
|
|
25051
25106
|
/** Indicates whether Seam manages the device. */
|
|
25052
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. */
|
|
25053
25109
|
custom_metadata: Record<string, string | boolean>;
|
|
25054
25110
|
can_remotely_unlock?: boolean | undefined;
|
|
25055
25111
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -25804,6 +25860,7 @@ export interface Routes {
|
|
|
25804
25860
|
created_at: string;
|
|
25805
25861
|
/** Indicates whether Seam manages the device. */
|
|
25806
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. */
|
|
25807
25864
|
custom_metadata: Record<string, string | boolean>;
|
|
25808
25865
|
can_remotely_unlock?: boolean | undefined;
|
|
25809
25866
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -26599,6 +26656,7 @@ export interface Routes {
|
|
|
26599
26656
|
created_at: string;
|
|
26600
26657
|
/** Indicates whether Seam manages the device. */
|
|
26601
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. */
|
|
26602
26660
|
custom_metadata: Record<string, string | boolean>;
|
|
26603
26661
|
can_remotely_unlock?: boolean | undefined;
|
|
26604
26662
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -27352,6 +27410,7 @@ export interface Routes {
|
|
|
27352
27410
|
created_at: string;
|
|
27353
27411
|
/** Indicates whether Seam manages the device. */
|
|
27354
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. */
|
|
27355
27414
|
custom_metadata: Record<string, string | boolean>;
|
|
27356
27415
|
can_remotely_unlock?: boolean | undefined;
|
|
27357
27416
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -32645,6 +32704,7 @@ export interface Routes {
|
|
|
32645
32704
|
created_at: string;
|
|
32646
32705
|
/** Indicates whether Seam manages the device. */
|
|
32647
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. */
|
|
32648
32708
|
custom_metadata: Record<string, string | boolean>;
|
|
32649
32709
|
can_remotely_unlock?: boolean | undefined;
|
|
32650
32710
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -33398,6 +33458,7 @@ export interface Routes {
|
|
|
33398
33458
|
created_at: string;
|
|
33399
33459
|
/** Indicates whether Seam manages the device. */
|
|
33400
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. */
|
|
33401
33462
|
custom_metadata: Record<string, string | boolean>;
|
|
33402
33463
|
can_remotely_unlock?: boolean | undefined;
|
|
33403
33464
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -41863,6 +41924,7 @@ export interface Routes {
|
|
|
41863
41924
|
created_at: string;
|
|
41864
41925
|
/** Indicates whether Seam manages the device. */
|
|
41865
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. */
|
|
41866
41928
|
custom_metadata: Record<string, string | boolean>;
|
|
41867
41929
|
can_remotely_unlock?: boolean | undefined;
|
|
41868
41930
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -44906,6 +44968,7 @@ export interface Routes {
|
|
|
44906
44968
|
created_at: string;
|
|
44907
44969
|
/** Indicates whether Seam manages the device. */
|
|
44908
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. */
|
|
44909
44972
|
custom_metadata: Record<string, string | boolean>;
|
|
44910
44973
|
can_remotely_unlock?: boolean | undefined;
|
|
44911
44974
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -45659,6 +45722,7 @@ export interface Routes {
|
|
|
45659
45722
|
created_at: string;
|
|
45660
45723
|
/** Indicates whether Seam manages the device. */
|
|
45661
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. */
|
|
45662
45726
|
custom_metadata: Record<string, string | boolean>;
|
|
45663
45727
|
can_remotely_unlock?: boolean | undefined;
|
|
45664
45728
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -51951,6 +52015,7 @@ export interface Routes {
|
|
|
51951
52015
|
created_at: string;
|
|
51952
52016
|
/** Indicates whether Seam manages the device. */
|
|
51953
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. */
|
|
51954
52019
|
custom_metadata: Record<string, string | boolean>;
|
|
51955
52020
|
can_remotely_unlock?: boolean | undefined;
|
|
51956
52021
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -52706,6 +52771,7 @@ export interface Routes {
|
|
|
52706
52771
|
created_at: string;
|
|
52707
52772
|
/** Indicates whether Seam manages the device. */
|
|
52708
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. */
|
|
52709
52775
|
custom_metadata: Record<string, string | boolean>;
|
|
52710
52776
|
can_remotely_unlock?: boolean | undefined;
|
|
52711
52777
|
can_remotely_lock?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
13
|
-
z.string(),
|
|
14
|
-
|
|
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: {
|
|
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: {
|
|
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: {
|
|
7190
|
-
|
|
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: {
|
|
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: {
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
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: {
|
|
@@ -24959,12 +25022,18 @@ export default {
|
|
|
24959
25022
|
},
|
|
24960
25023
|
acs_user_id: {
|
|
24961
25024
|
description:
|
|
24962
|
-
'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.',
|
|
24963
25032
|
format: 'uuid',
|
|
24964
25033
|
type: 'string',
|
|
24965
25034
|
},
|
|
24966
25035
|
},
|
|
24967
|
-
required: ['
|
|
25036
|
+
required: ['acs_access_group_id'],
|
|
24968
25037
|
type: 'object',
|
|
24969
25038
|
},
|
|
24970
25039
|
},
|