@owbase/node 2.0.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/project-key-scopes.d.mts +5 -0
- package/dist/enums/project-key-scopes.d.ts +5 -0
- package/dist/enums/project-key-scopes.js +5 -0
- package/dist/enums/project-key-scopes.js.map +1 -1
- package/dist/enums/project-key-scopes.mjs +5 -0
- package/dist/enums/project-key-scopes.mjs.map +1 -1
- package/dist/enums/project-policy-id.d.mts +1 -0
- package/dist/enums/project-policy-id.d.ts +1 -0
- package/dist/enums/project-policy-id.js +1 -0
- package/dist/enums/project-policy-id.js.map +1 -1
- package/dist/enums/project-policy-id.mjs +1 -0
- package/dist/enums/project-policy-id.mjs.map +1 -1
- package/dist/models.d.mts +29 -4
- package/dist/models.d.ts +29 -4
- package/dist/services/organization.d.mts +20 -20
- package/dist/services/organization.d.ts +20 -20
- package/dist/services/organization.js.map +1 -1
- package/dist/services/organization.mjs.map +1 -1
- package/dist/services/project.d.mts +170 -118
- package/dist/services/project.d.ts +170 -118
- package/dist/services/project.js +86 -1
- package/dist/services/project.js.map +1 -1
- package/dist/services/project.mjs +86 -1
- package/dist/services/project.mjs.map +1 -1
- package/dist/services/webhooks.d.mts +14 -2
- package/dist/services/webhooks.d.ts +14 -2
- package/dist/services/webhooks.js +22 -2
- package/dist/services/webhooks.js.map +1 -1
- package/dist/services/webhooks.mjs +22 -2
- package/dist/services/webhooks.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -52,9 +52,9 @@ declare class Project {
|
|
|
52
52
|
* Get a project.
|
|
53
53
|
*
|
|
54
54
|
* @throws {OwbaseException}
|
|
55
|
-
* @returns {Promise<Models.Project
|
|
55
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
56
56
|
*/
|
|
57
|
-
get(): Promise<Models.Project
|
|
57
|
+
get<Preferences extends Models.Preferences = Models.DefaultPreferences>(): Promise<Models.Project<Preferences>>;
|
|
58
58
|
/**
|
|
59
59
|
* Delete a project.
|
|
60
60
|
*
|
|
@@ -68,22 +68,22 @@ declare class Project {
|
|
|
68
68
|
* @param {ProjectAuthMethodId} params.methodId - Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone,passkey
|
|
69
69
|
* @param {boolean} params.enabled - Auth method status.
|
|
70
70
|
* @throws {OwbaseException}
|
|
71
|
-
* @returns {Promise<Models.Project
|
|
71
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
72
72
|
*/
|
|
73
|
-
updateAuthMethod(params: {
|
|
73
|
+
updateAuthMethod<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
74
74
|
methodId: ProjectAuthMethodId;
|
|
75
75
|
enabled: boolean;
|
|
76
|
-
}): Promise<Models.Project
|
|
76
|
+
}): Promise<Models.Project<Preferences>>;
|
|
77
77
|
/**
|
|
78
78
|
* Update properties of a specific auth method. Use this endpoint to enable or disable a method in your project.
|
|
79
79
|
*
|
|
80
80
|
* @param {ProjectAuthMethodId} methodId - Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone,passkey
|
|
81
81
|
* @param {boolean} enabled - Auth method status.
|
|
82
82
|
* @throws {OwbaseException}
|
|
83
|
-
* @returns {Promise<Models.Project
|
|
83
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
84
84
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
85
85
|
*/
|
|
86
|
-
updateAuthMethod(methodId: ProjectAuthMethodId, enabled: boolean): Promise<Models.Project
|
|
86
|
+
updateAuthMethod<Preferences extends Models.Preferences = Models.DefaultPreferences>(methodId: ProjectAuthMethodId, enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
87
87
|
/**
|
|
88
88
|
* Get a list of all API keys from the current project.
|
|
89
89
|
*
|
|
@@ -206,20 +206,20 @@ declare class Project {
|
|
|
206
206
|
*
|
|
207
207
|
* @param {string[]} params.labels - Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
|
|
208
208
|
* @throws {OwbaseException}
|
|
209
|
-
* @returns {Promise<Models.Project
|
|
209
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
210
210
|
*/
|
|
211
|
-
updateLabels(params: {
|
|
211
|
+
updateLabels<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
212
212
|
labels: string[];
|
|
213
|
-
}): Promise<Models.Project
|
|
213
|
+
}): Promise<Models.Project<Preferences>>;
|
|
214
214
|
/**
|
|
215
215
|
* Update the project labels. Labels can be used to easily filter projects in an organization.
|
|
216
216
|
*
|
|
217
217
|
* @param {string[]} labels - Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
|
|
218
218
|
* @throws {OwbaseException}
|
|
219
|
-
* @returns {Promise<Models.Project
|
|
219
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
220
220
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
221
221
|
*/
|
|
222
|
-
updateLabels(labels: string[]): Promise<Models.Project
|
|
222
|
+
updateLabels<Preferences extends Models.Preferences = Models.DefaultPreferences>(labels: string[]): Promise<Models.Project<Preferences>>;
|
|
223
223
|
/**
|
|
224
224
|
* Get a list of all mock phones in the project. This endpoint returns an array of all mock phones and their OTPs.
|
|
225
225
|
*
|
|
@@ -1998,77 +1998,96 @@ declare class Project {
|
|
|
1998
1998
|
*
|
|
1999
1999
|
* @param {boolean} params.enabled - Set whether or not to block aliased emails during signup and email updates.
|
|
2000
2000
|
* @throws {OwbaseException}
|
|
2001
|
-
* @returns {Promise<Models.Project
|
|
2001
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2002
2002
|
*/
|
|
2003
|
-
updateDenyAliasedEmailPolicy(params: {
|
|
2003
|
+
updateDenyAliasedEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2004
2004
|
enabled: boolean;
|
|
2005
|
-
}): Promise<Models.Project
|
|
2005
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2006
2006
|
/**
|
|
2007
2007
|
* Configures if aliased emails such as subaddresses and emails with suffixes are denied during new users sign-ups and email updates.
|
|
2008
2008
|
*
|
|
2009
2009
|
* @param {boolean} enabled - Set whether or not to block aliased emails during signup and email updates.
|
|
2010
2010
|
* @throws {OwbaseException}
|
|
2011
|
-
* @returns {Promise<Models.Project
|
|
2011
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2012
2012
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2013
2013
|
*/
|
|
2014
|
-
updateDenyAliasedEmailPolicy(enabled: boolean): Promise<Models.Project
|
|
2014
|
+
updateDenyAliasedEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2015
2015
|
/**
|
|
2016
2016
|
* Configures if only corporate email addresses (non-free and non-disposable domains) are allowed during new user sign-ups and email updates.
|
|
2017
2017
|
*
|
|
2018
2018
|
* @param {boolean} params.enabled - Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
|
|
2019
2019
|
* @throws {OwbaseException}
|
|
2020
|
-
* @returns {Promise<Models.Project
|
|
2020
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2021
2021
|
*/
|
|
2022
|
-
updateDenyCorporateEmailPolicy(params: {
|
|
2022
|
+
updateDenyCorporateEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2023
2023
|
enabled: boolean;
|
|
2024
|
-
}): Promise<Models.Project
|
|
2024
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Configures if only corporate email addresses (non-free and non-disposable domains) are allowed during new user sign-ups and email updates.
|
|
2027
2027
|
*
|
|
2028
2028
|
* @param {boolean} enabled - Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
|
|
2029
2029
|
* @throws {OwbaseException}
|
|
2030
|
-
* @returns {Promise<Models.Project
|
|
2030
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2031
2031
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2032
2032
|
*/
|
|
2033
|
-
updateDenyCorporateEmailPolicy(enabled: boolean): Promise<Models.Project
|
|
2033
|
+
updateDenyCorporateEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.
|
|
2036
2036
|
*
|
|
2037
2037
|
* @param {boolean} params.enabled - Set whether or not to block disposable email addresses during signup and email updates.
|
|
2038
2038
|
* @throws {OwbaseException}
|
|
2039
|
-
* @returns {Promise<Models.Project
|
|
2039
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2040
2040
|
*/
|
|
2041
|
-
updateDenyDisposableEmailPolicy(params: {
|
|
2041
|
+
updateDenyDisposableEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2042
2042
|
enabled: boolean;
|
|
2043
|
-
}): Promise<Models.Project
|
|
2043
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2044
2044
|
/**
|
|
2045
2045
|
* Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.
|
|
2046
2046
|
*
|
|
2047
2047
|
* @param {boolean} enabled - Set whether or not to block disposable email addresses during signup and email updates.
|
|
2048
2048
|
* @throws {OwbaseException}
|
|
2049
|
-
* @returns {Promise<Models.Project
|
|
2049
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2050
2050
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2051
2051
|
*/
|
|
2052
|
-
updateDenyDisposableEmailPolicy(enabled: boolean): Promise<Models.Project
|
|
2052
|
+
updateDenyDisposableEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Configures if emails from free providers such as Gmail or Yahoo are denied during new users sign-ups and email updates.
|
|
2055
2055
|
*
|
|
2056
2056
|
* @param {boolean} params.enabled - Set whether or not to block free email addresses during signup and email updates.
|
|
2057
2057
|
* @throws {OwbaseException}
|
|
2058
|
-
* @returns {Promise<Models.Project
|
|
2058
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2059
2059
|
*/
|
|
2060
|
-
updateDenyFreeEmailPolicy(params: {
|
|
2060
|
+
updateDenyFreeEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2061
2061
|
enabled: boolean;
|
|
2062
|
-
}): Promise<Models.Project
|
|
2062
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Configures if emails from free providers such as Gmail or Yahoo are denied during new users sign-ups and email updates.
|
|
2065
2065
|
*
|
|
2066
2066
|
* @param {boolean} enabled - Set whether or not to block free email addresses during signup and email updates.
|
|
2067
2067
|
* @throws {OwbaseException}
|
|
2068
|
-
* @returns {Promise<Models.Project
|
|
2068
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2069
2069
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2070
2070
|
*/
|
|
2071
|
-
updateDenyFreeEmailPolicy(enabled: boolean): Promise<Models.Project
|
|
2071
|
+
updateDenyFreeEmailPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Configures if guests, connections without a signed-in user, may subscribe to realtime channels. When enabled, a guest can still connect and sign in over the connection, but cannot subscribe until it does.
|
|
2074
|
+
*
|
|
2075
|
+
* @param {boolean} params.enabled - Set whether or not to stop guests from subscribing to realtime channels.
|
|
2076
|
+
* @throws {OwbaseException}
|
|
2077
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2078
|
+
*/
|
|
2079
|
+
updateDenyRealtimeGuestsPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2080
|
+
enabled: boolean;
|
|
2081
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2082
|
+
/**
|
|
2083
|
+
* Configures if guests, connections without a signed-in user, may subscribe to realtime channels. When enabled, a guest can still connect and sign in over the connection, but cannot subscribe until it does.
|
|
2084
|
+
*
|
|
2085
|
+
* @param {boolean} enabled - Set whether or not to stop guests from subscribing to realtime channels.
|
|
2086
|
+
* @throws {OwbaseException}
|
|
2087
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2088
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2089
|
+
*/
|
|
2090
|
+
updateDenyRealtimeGuestsPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2072
2091
|
/**
|
|
2073
2092
|
* Updating this policy allows you to control if team members can see other members information. When enabled, all team members can see ID, name, email, phone number, and MFA status of other members..
|
|
2074
2093
|
*
|
|
@@ -2079,16 +2098,16 @@ declare class Project {
|
|
|
2079
2098
|
* @param {boolean} params.userMFA - Set to true if you want make user MFA status visible to all team members, or false to hide it.
|
|
2080
2099
|
* @param {boolean} params.userAccessedAt - Set to true if you want make user last access time visible to all team members, or false to hide it.
|
|
2081
2100
|
* @throws {OwbaseException}
|
|
2082
|
-
* @returns {Promise<Models.Project
|
|
2101
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2083
2102
|
*/
|
|
2084
|
-
updateMembershipPrivacyPolicy(params?: {
|
|
2103
|
+
updateMembershipPrivacyPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: {
|
|
2085
2104
|
userId?: boolean;
|
|
2086
2105
|
userEmail?: boolean;
|
|
2087
2106
|
userPhone?: boolean;
|
|
2088
2107
|
userName?: boolean;
|
|
2089
2108
|
userMFA?: boolean;
|
|
2090
2109
|
userAccessedAt?: boolean;
|
|
2091
|
-
}): Promise<Models.Project
|
|
2110
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2092
2111
|
/**
|
|
2093
2112
|
* Updating this policy allows you to control if team members can see other members information. When enabled, all team members can see ID, name, email, phone number, and MFA status of other members..
|
|
2094
2113
|
*
|
|
@@ -2099,10 +2118,10 @@ declare class Project {
|
|
|
2099
2118
|
* @param {boolean} userMFA - Set to true if you want make user MFA status visible to all team members, or false to hide it.
|
|
2100
2119
|
* @param {boolean} userAccessedAt - Set to true if you want make user last access time visible to all team members, or false to hide it.
|
|
2101
2120
|
* @throws {OwbaseException}
|
|
2102
|
-
* @returns {Promise<Models.Project
|
|
2121
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2103
2122
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2104
2123
|
*/
|
|
2105
|
-
updateMembershipPrivacyPolicy(userId?: boolean, userEmail?: boolean, userPhone?: boolean, userName?: boolean, userMFA?: boolean, userAccessedAt?: boolean): Promise<Models.Project
|
|
2124
|
+
updateMembershipPrivacyPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId?: boolean, userEmail?: boolean, userPhone?: boolean, userName?: boolean, userMFA?: boolean, userAccessedAt?: boolean): Promise<Models.Project<Preferences>>;
|
|
2106
2125
|
/**
|
|
2107
2126
|
* Updating this policy allows you to control which factors users can use to complete an MFA challenge. Disabled factors cannot be used to create a challenge and are reported as unavailable when listing factors. The custom factor is disabled by default; enable it to deliver challenge codes through your own channel. Recovery codes always remain available as a fallback.
|
|
2108
2127
|
*
|
|
@@ -2111,14 +2130,14 @@ declare class Project {
|
|
|
2111
2130
|
* @param {boolean} params.phone - Set to true to allow phone (SMS) to complete an MFA challenge, or false to disable it.
|
|
2112
2131
|
* @param {boolean} params.custom - Set to true to allow the custom factor to complete an MFA challenge, or false to disable it.
|
|
2113
2132
|
* @throws {OwbaseException}
|
|
2114
|
-
* @returns {Promise<Models.Project
|
|
2133
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2115
2134
|
*/
|
|
2116
|
-
updateMFAFactorsPolicy(params?: {
|
|
2135
|
+
updateMFAFactorsPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: {
|
|
2117
2136
|
totp?: boolean;
|
|
2118
2137
|
email?: boolean;
|
|
2119
2138
|
phone?: boolean;
|
|
2120
2139
|
custom?: boolean;
|
|
2121
|
-
}): Promise<Models.Project
|
|
2140
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2122
2141
|
/**
|
|
2123
2142
|
* Updating this policy allows you to control which factors users can use to complete an MFA challenge. Disabled factors cannot be used to create a challenge and are reported as unavailable when listing factors. The custom factor is disabled by default; enable it to deliver challenge codes through your own channel. Recovery codes always remain available as a fallback.
|
|
2124
2143
|
*
|
|
@@ -2127,29 +2146,29 @@ declare class Project {
|
|
|
2127
2146
|
* @param {boolean} phone - Set to true to allow phone (SMS) to complete an MFA challenge, or false to disable it.
|
|
2128
2147
|
* @param {boolean} custom - Set to true to allow the custom factor to complete an MFA challenge, or false to disable it.
|
|
2129
2148
|
* @throws {OwbaseException}
|
|
2130
|
-
* @returns {Promise<Models.Project
|
|
2149
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2131
2150
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2132
2151
|
*/
|
|
2133
|
-
updateMFAFactorsPolicy(totp?: boolean, email?: boolean, phone?: boolean, custom?: boolean): Promise<Models.Project
|
|
2152
|
+
updateMFAFactorsPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(totp?: boolean, email?: boolean, phone?: boolean, custom?: boolean): Promise<Models.Project<Preferences>>;
|
|
2134
2153
|
/**
|
|
2135
2154
|
* Set the relying party ID passkeys are bound to: the domain of your application. Passkeys work on the project's web platforms on that domain or its subdomains, and on the domain itself for Apple apps. A localhost web platform enables passkeys for local development without a relying party ID. The relying party ID cannot change while users have passkeys, and any change invalidates ceremonies in progress.
|
|
2136
2155
|
*
|
|
2137
2156
|
* @param {string} params.rpId - Relying party ID: the domain of your application, such as `example.com`. Use `localhost` for local development, or an empty string to unset it.
|
|
2138
2157
|
* @throws {OwbaseException}
|
|
2139
|
-
* @returns {Promise<Models.Project
|
|
2158
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2140
2159
|
*/
|
|
2141
|
-
updatePasskeyPolicy(params: {
|
|
2160
|
+
updatePasskeyPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2142
2161
|
rpId: string;
|
|
2143
|
-
}): Promise<Models.Project
|
|
2162
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2144
2163
|
/**
|
|
2145
2164
|
* Set the relying party ID passkeys are bound to: the domain of your application. Passkeys work on the project's web platforms on that domain or its subdomains, and on the domain itself for Apple apps. A localhost web platform enables passkeys for local development without a relying party ID. The relying party ID cannot change while users have passkeys, and any change invalidates ceremonies in progress.
|
|
2146
2165
|
*
|
|
2147
2166
|
* @param {string} rpId - Relying party ID: the domain of your application, such as `example.com`. Use `localhost` for local development, or an empty string to unset it.
|
|
2148
2167
|
* @throws {OwbaseException}
|
|
2149
|
-
* @returns {Promise<Models.Project
|
|
2168
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2150
2169
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2151
2170
|
*/
|
|
2152
|
-
updatePasskeyPolicy(rpId: string): Promise<Models.Project
|
|
2171
|
+
updatePasskeyPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(rpId: string): Promise<Models.Project<Preferences>>;
|
|
2153
2172
|
/**
|
|
2154
2173
|
* Updating this policy allows you to control if new passwords are checked against most common passwords dictionary. When enabled, and user changes their password, password must not be contained in the dictionary.
|
|
2155
2174
|
*
|
|
@@ -2158,12 +2177,12 @@ declare class Project {
|
|
|
2158
2177
|
* @param {boolean} params.enabled - Toggle password dictionary policy. Set to true if you want password change to block passwords in the dictionary, or false to allow them. When changing this policy, existing passwords remain valid.
|
|
2159
2178
|
* @param {string[]} params.denyList - Custom blocked values using case-sensitive equality. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.
|
|
2160
2179
|
* @throws {OwbaseException}
|
|
2161
|
-
* @returns {Promise<Models.Project
|
|
2180
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2162
2181
|
*/
|
|
2163
|
-
updatePasswordDictionaryPolicy(params: {
|
|
2182
|
+
updatePasswordDictionaryPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2164
2183
|
enabled: boolean;
|
|
2165
2184
|
denyList?: string[];
|
|
2166
|
-
}): Promise<Models.Project
|
|
2185
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2167
2186
|
/**
|
|
2168
2187
|
* Updating this policy allows you to control if new passwords are checked against most common passwords dictionary. When enabled, and user changes their password, password must not be contained in the dictionary.
|
|
2169
2188
|
*
|
|
@@ -2172,10 +2191,10 @@ declare class Project {
|
|
|
2172
2191
|
* @param {boolean} enabled - Toggle password dictionary policy. Set to true if you want password change to block passwords in the dictionary, or false to allow them. When changing this policy, existing passwords remain valid.
|
|
2173
2192
|
* @param {string[]} denyList - Custom blocked values using case-sensitive equality. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.
|
|
2174
2193
|
* @throws {OwbaseException}
|
|
2175
|
-
* @returns {Promise<Models.Project
|
|
2194
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2176
2195
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2177
2196
|
*/
|
|
2178
|
-
updatePasswordDictionaryPolicy(enabled: boolean, denyList?: string[]): Promise<Models.Project
|
|
2197
|
+
updatePasswordDictionaryPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean, denyList?: string[]): Promise<Models.Project<Preferences>>;
|
|
2179
2198
|
/**
|
|
2180
2199
|
* Updates one of password strength policies. Based on total length configured, previous password hashes are stored, and users cannot choose a new password that is already stored in the passwird history list, when updating an user password, or setting new one through password recovery.
|
|
2181
2200
|
*
|
|
@@ -2183,11 +2202,11 @@ declare class Project {
|
|
|
2183
2202
|
*
|
|
2184
2203
|
* @param {number} params.total - Set the password history length per user. Value can be between 1 and 20, or null to disable the limit.
|
|
2185
2204
|
* @throws {OwbaseException}
|
|
2186
|
-
* @returns {Promise<Models.Project
|
|
2205
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2187
2206
|
*/
|
|
2188
|
-
updatePasswordHistoryPolicy(params: {
|
|
2207
|
+
updatePasswordHistoryPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2189
2208
|
total?: number;
|
|
2190
|
-
}): Promise<Models.Project
|
|
2209
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2191
2210
|
/**
|
|
2192
2211
|
* Updates one of password strength policies. Based on total length configured, previous password hashes are stored, and users cannot choose a new password that is already stored in the passwird history list, when updating an user password, or setting new one through password recovery.
|
|
2193
2212
|
*
|
|
@@ -2195,10 +2214,10 @@ declare class Project {
|
|
|
2195
2214
|
*
|
|
2196
2215
|
* @param {number} total - Set the password history length per user. Value can be between 1 and 20, or null to disable the limit.
|
|
2197
2216
|
* @throws {OwbaseException}
|
|
2198
|
-
* @returns {Promise<Models.Project
|
|
2217
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2199
2218
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2200
2219
|
*/
|
|
2201
|
-
updatePasswordHistoryPolicy(total?: number): Promise<Models.Project
|
|
2220
|
+
updatePasswordHistoryPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(total?: number): Promise<Models.Project<Preferences>>;
|
|
2202
2221
|
/**
|
|
2203
2222
|
* Updating this policy allows you to control if password strength is checked against personal data. When enabled, and user sets or changes their password, the password must not contain user ID, name, email or phone number.
|
|
2204
2223
|
*
|
|
@@ -2208,12 +2227,12 @@ declare class Project {
|
|
|
2208
2227
|
* @param {boolean} params.enabled - Toggle password personal data policy. Set to true if you want to block passwords including user's personal data, or false to allow it. When changing this policy, existing passwords remain valid.
|
|
2209
2228
|
* @param {string[]} params.denyList - Custom blocked values using case-insensitive substring matching. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.
|
|
2210
2229
|
* @throws {OwbaseException}
|
|
2211
|
-
* @returns {Promise<Models.Project
|
|
2230
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2212
2231
|
*/
|
|
2213
|
-
updatePasswordPersonalDataPolicy(params: {
|
|
2232
|
+
updatePasswordPersonalDataPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2214
2233
|
enabled: boolean;
|
|
2215
2234
|
denyList?: string[];
|
|
2216
|
-
}): Promise<Models.Project
|
|
2235
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2217
2236
|
/**
|
|
2218
2237
|
* Updating this policy allows you to control if password strength is checked against personal data. When enabled, and user sets or changes their password, the password must not contain user ID, name, email or phone number.
|
|
2219
2238
|
*
|
|
@@ -2223,10 +2242,10 @@ declare class Project {
|
|
|
2223
2242
|
* @param {boolean} enabled - Toggle password personal data policy. Set to true if you want to block passwords including user's personal data, or false to allow it. When changing this policy, existing passwords remain valid.
|
|
2224
2243
|
* @param {string[]} denyList - Custom blocked values using case-insensitive substring matching. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.
|
|
2225
2244
|
* @throws {OwbaseException}
|
|
2226
|
-
* @returns {Promise<Models.Project
|
|
2245
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2227
2246
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2228
2247
|
*/
|
|
2229
|
-
updatePasswordPersonalDataPolicy(enabled: boolean, denyList?: string[]): Promise<Models.Project
|
|
2248
|
+
updatePasswordPersonalDataPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean, denyList?: string[]): Promise<Models.Project<Preferences>>;
|
|
2230
2249
|
/**
|
|
2231
2250
|
* Updating this policy allows you to control if passwords are checked against the Have I Been Pwned breach database. When enabled, every password a user signs up, signs in or resets with is checked and the result is recorded on the user as `passwordPwned`. On its own the policy only records. Enable `users` to reject a breached password when a user signs up or sets a new password, and `sessions` to refuse a sign-in with a breached password until it is reset. Only the first five characters of the password hash are ever shared with the service. Options left out keep their current value.
|
|
2232
2251
|
*
|
|
@@ -2234,13 +2253,13 @@ declare class Project {
|
|
|
2234
2253
|
* @param {boolean} params.sessions - Whether a sign-in with a breached password is refused until the password is reset. Default is false, which allows the sign-in and only records the result.
|
|
2235
2254
|
* @param {boolean} params.users - Whether a breached password is rejected when a user signs up or sets a new password. Default is false, which allows the password and only records the result.
|
|
2236
2255
|
* @throws {OwbaseException}
|
|
2237
|
-
* @returns {Promise<Models.Project
|
|
2256
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2238
2257
|
*/
|
|
2239
|
-
updatePasswordPwnedPolicy(params?: {
|
|
2258
|
+
updatePasswordPwnedPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: {
|
|
2240
2259
|
enabled?: boolean;
|
|
2241
2260
|
sessions?: boolean;
|
|
2242
2261
|
users?: boolean;
|
|
2243
|
-
}): Promise<Models.Project
|
|
2262
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2244
2263
|
/**
|
|
2245
2264
|
* Updating this policy allows you to control if passwords are checked against the Have I Been Pwned breach database. When enabled, every password a user signs up, signs in or resets with is checked and the result is recorded on the user as `passwordPwned`. On its own the policy only records. Enable `users` to reject a breached password when a user signs up or sets a new password, and `sessions` to refuse a sign-in with a breached password until it is reset. Only the first five characters of the password hash are ever shared with the service. Options left out keep their current value.
|
|
2246
2265
|
*
|
|
@@ -2248,32 +2267,32 @@ declare class Project {
|
|
|
2248
2267
|
* @param {boolean} sessions - Whether a sign-in with a breached password is refused until the password is reset. Default is false, which allows the sign-in and only records the result.
|
|
2249
2268
|
* @param {boolean} users - Whether a breached password is rejected when a user signs up or sets a new password. Default is false, which allows the password and only records the result.
|
|
2250
2269
|
* @throws {OwbaseException}
|
|
2251
|
-
* @returns {Promise<Models.Project
|
|
2270
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2252
2271
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2253
2272
|
*/
|
|
2254
|
-
updatePasswordPwnedPolicy(enabled?: boolean, sessions?: boolean, users?: boolean): Promise<Models.Project
|
|
2273
|
+
updatePasswordPwnedPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled?: boolean, sessions?: boolean, users?: boolean): Promise<Models.Project<Preferences>>;
|
|
2255
2274
|
/**
|
|
2256
2275
|
* Require a password reset when an email/password sign-in uses a password older than the configured maximum age. Options left out keep their current value.
|
|
2257
2276
|
*
|
|
2258
2277
|
* @param {boolean} params.enabled - Enable password rotation. Disabled by default.
|
|
2259
2278
|
* @param {number} params.maxAge - Maximum password age in seconds. Minimum allowed value is 86400 seconds (1 day), and maximum is 10 years, which is 315360000 seconds. Defaults to 1 year, which is 31536000 seconds.
|
|
2260
2279
|
* @throws {OwbaseException}
|
|
2261
|
-
* @returns {Promise<Models.Project
|
|
2280
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2262
2281
|
*/
|
|
2263
|
-
updatePasswordRotationPolicy(params?: {
|
|
2282
|
+
updatePasswordRotationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: {
|
|
2264
2283
|
enabled?: boolean;
|
|
2265
2284
|
maxAge?: number;
|
|
2266
|
-
}): Promise<Models.Project
|
|
2285
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2267
2286
|
/**
|
|
2268
2287
|
* Require a password reset when an email/password sign-in uses a password older than the configured maximum age. Options left out keep their current value.
|
|
2269
2288
|
*
|
|
2270
2289
|
* @param {boolean} enabled - Enable password rotation. Disabled by default.
|
|
2271
2290
|
* @param {number} maxAge - Maximum password age in seconds. Minimum allowed value is 86400 seconds (1 day), and maximum is 10 years, which is 315360000 seconds. Defaults to 1 year, which is 31536000 seconds.
|
|
2272
2291
|
* @throws {OwbaseException}
|
|
2273
|
-
* @returns {Promise<Models.Project
|
|
2292
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2274
2293
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2275
2294
|
*/
|
|
2276
|
-
updatePasswordRotationPolicy(enabled?: boolean, maxAge?: number): Promise<Models.Project
|
|
2295
|
+
updatePasswordRotationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled?: boolean, maxAge?: number): Promise<Models.Project<Preferences>>;
|
|
2277
2296
|
/**
|
|
2278
2297
|
* Update the password strength requirements for users in the project.
|
|
2279
2298
|
*
|
|
@@ -2310,159 +2329,192 @@ declare class Project {
|
|
|
2310
2329
|
*
|
|
2311
2330
|
* @param {boolean} params.enabled - Toggle session alert policy. Set to true if you want users to receive email notifications when a sessions are created for their users, or false to not send email alerts.
|
|
2312
2331
|
* @throws {OwbaseException}
|
|
2313
|
-
* @returns {Promise<Models.Project
|
|
2332
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2314
2333
|
*/
|
|
2315
|
-
updateSessionAlertPolicy(params: {
|
|
2334
|
+
updateSessionAlertPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2316
2335
|
enabled: boolean;
|
|
2317
|
-
}): Promise<Models.Project
|
|
2336
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2318
2337
|
/**
|
|
2319
2338
|
* Updating this policy allows you to control if email alert is sent upon session creation. When enabled, and user signs into their account, they will be sent an email notification. There is an exception, the first session after a new sign up does not trigger an alert, even if the policy is enabled.
|
|
2320
2339
|
*
|
|
2321
2340
|
* @param {boolean} enabled - Toggle session alert policy. Set to true if you want users to receive email notifications when a sessions are created for their users, or false to not send email alerts.
|
|
2322
2341
|
* @throws {OwbaseException}
|
|
2323
|
-
* @returns {Promise<Models.Project
|
|
2342
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2324
2343
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2325
2344
|
*/
|
|
2326
|
-
updateSessionAlertPolicy(enabled: boolean): Promise<Models.Project
|
|
2345
|
+
updateSessionAlertPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2327
2346
|
/**
|
|
2328
2347
|
* Update maximum duration how long sessions created within a project should stay active for.
|
|
2329
2348
|
*
|
|
2330
2349
|
* @param {number} params.duration - Maximum session length in seconds. Minium allowed value is 60 seconds, and maximum is 1 year, which is 31536000 seconds.
|
|
2331
2350
|
* @throws {OwbaseException}
|
|
2332
|
-
* @returns {Promise<Models.Project
|
|
2351
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2333
2352
|
*/
|
|
2334
|
-
updateSessionDurationPolicy(params: {
|
|
2353
|
+
updateSessionDurationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2335
2354
|
duration: number;
|
|
2336
|
-
}): Promise<Models.Project
|
|
2355
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2337
2356
|
/**
|
|
2338
2357
|
* Update maximum duration how long sessions created within a project should stay active for.
|
|
2339
2358
|
*
|
|
2340
2359
|
* @param {number} duration - Maximum session length in seconds. Minium allowed value is 60 seconds, and maximum is 1 year, which is 31536000 seconds.
|
|
2341
2360
|
* @throws {OwbaseException}
|
|
2342
|
-
* @returns {Promise<Models.Project
|
|
2361
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2343
2362
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2344
2363
|
*/
|
|
2345
|
-
updateSessionDurationPolicy(duration: number): Promise<Models.Project
|
|
2364
|
+
updateSessionDurationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(duration: number): Promise<Models.Project<Preferences>>;
|
|
2346
2365
|
/**
|
|
2347
2366
|
* Updating this policy allows you to control if existing sessions should be invalidated when a password of a user is changed. When enabled, and user changes their password, they will be logged out of all their devices.
|
|
2348
2367
|
*
|
|
2349
2368
|
* @param {boolean} params.enabled - Toggle session invalidation policy. Set to true if you want password change to invalidate all sessions of an user, or false to keep sessions active.
|
|
2350
2369
|
* @throws {OwbaseException}
|
|
2351
|
-
* @returns {Promise<Models.Project
|
|
2370
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2352
2371
|
*/
|
|
2353
|
-
updateSessionInvalidationPolicy(params: {
|
|
2372
|
+
updateSessionInvalidationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2354
2373
|
enabled: boolean;
|
|
2355
|
-
}): Promise<Models.Project
|
|
2374
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2356
2375
|
/**
|
|
2357
2376
|
* Updating this policy allows you to control if existing sessions should be invalidated when a password of a user is changed. When enabled, and user changes their password, they will be logged out of all their devices.
|
|
2358
2377
|
*
|
|
2359
2378
|
* @param {boolean} enabled - Toggle session invalidation policy. Set to true if you want password change to invalidate all sessions of an user, or false to keep sessions active.
|
|
2360
2379
|
* @throws {OwbaseException}
|
|
2361
|
-
* @returns {Promise<Models.Project
|
|
2380
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2362
2381
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2363
2382
|
*/
|
|
2364
|
-
updateSessionInvalidationPolicy(enabled: boolean): Promise<Models.Project
|
|
2383
|
+
updateSessionInvalidationPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2365
2384
|
/**
|
|
2366
2385
|
* Update the maximum number of sessions allowed per user. When the limit is hit, the oldest session will be deleted to make room for new one.
|
|
2367
2386
|
*
|
|
2368
2387
|
* @param {number} params.total - Set the maximum number of sessions allowed per user. Value can be between 1 and 100.
|
|
2369
2388
|
* @throws {OwbaseException}
|
|
2370
|
-
* @returns {Promise<Models.Project
|
|
2389
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2371
2390
|
*/
|
|
2372
|
-
updateSessionLimitPolicy(params: {
|
|
2391
|
+
updateSessionLimitPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2373
2392
|
total: number;
|
|
2374
|
-
}): Promise<Models.Project
|
|
2393
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2375
2394
|
/**
|
|
2376
2395
|
* Update the maximum number of sessions allowed per user. When the limit is hit, the oldest session will be deleted to make room for new one.
|
|
2377
2396
|
*
|
|
2378
2397
|
* @param {number} total - Set the maximum number of sessions allowed per user. Value can be between 1 and 100.
|
|
2379
2398
|
* @throws {OwbaseException}
|
|
2380
|
-
* @returns {Promise<Models.Project
|
|
2399
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2381
2400
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2382
2401
|
*/
|
|
2383
|
-
updateSessionLimitPolicy(total: number): Promise<Models.Project
|
|
2402
|
+
updateSessionLimitPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(total: number): Promise<Models.Project<Preferences>>;
|
|
2384
2403
|
/**
|
|
2385
2404
|
* Update the maximum number of users in the project. When the limit is hit or amount of existing users already exceeded the limit, all users remain active, but new user sign up will be prohibited.
|
|
2386
2405
|
*
|
|
2387
2406
|
* @param {number} params.total - Set the maximum number of users allowed in the project. Value can be between 0 and 10000. Use 0 or null to disable the limit.
|
|
2388
2407
|
* @throws {OwbaseException}
|
|
2389
|
-
* @returns {Promise<Models.Project
|
|
2408
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2390
2409
|
*/
|
|
2391
|
-
updateUserLimitPolicy(params: {
|
|
2410
|
+
updateUserLimitPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2392
2411
|
total?: number;
|
|
2393
|
-
}): Promise<Models.Project
|
|
2412
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2394
2413
|
/**
|
|
2395
2414
|
* Update the maximum number of users in the project. When the limit is hit or amount of existing users already exceeded the limit, all users remain active, but new user sign up will be prohibited.
|
|
2396
2415
|
*
|
|
2397
2416
|
* @param {number} total - Set the maximum number of users allowed in the project. Value can be between 0 and 10000. Use 0 or null to disable the limit.
|
|
2398
2417
|
* @throws {OwbaseException}
|
|
2399
|
-
* @returns {Promise<Models.Project
|
|
2418
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2400
2419
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2401
2420
|
*/
|
|
2402
|
-
updateUserLimitPolicy(total?: number): Promise<Models.Project
|
|
2421
|
+
updateUserLimitPolicy<Preferences extends Models.Preferences = Models.DefaultPreferences>(total?: number): Promise<Models.Project<Preferences>>;
|
|
2403
2422
|
/**
|
|
2404
2423
|
* Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
|
|
2405
2424
|
*
|
|
2406
|
-
* @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, passkey.
|
|
2425
|
+
* @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, deny-realtime-guests, passkey.
|
|
2407
2426
|
* @throws {OwbaseException}
|
|
2408
|
-
* @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyPasskey>}
|
|
2427
|
+
* @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyDenyRealtimeGuests | Models.PolicyPasskey>}
|
|
2409
2428
|
*/
|
|
2410
2429
|
getPolicy(params: {
|
|
2411
2430
|
policyId: ProjectPolicyId;
|
|
2412
|
-
}): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyPasskey>;
|
|
2431
|
+
}): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyDenyRealtimeGuests | Models.PolicyPasskey>;
|
|
2413
2432
|
/**
|
|
2414
2433
|
* Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
|
|
2415
2434
|
*
|
|
2416
|
-
* @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, passkey.
|
|
2435
|
+
* @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, deny-realtime-guests, passkey.
|
|
2436
|
+
* @throws {OwbaseException}
|
|
2437
|
+
* @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyDenyRealtimeGuests | Models.PolicyPasskey>}
|
|
2438
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2439
|
+
*/
|
|
2440
|
+
getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicyPasswordRotation | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyDenyRealtimeGuests | Models.PolicyPasskey>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Get the project preferences. Preferences are a key-value object stored on the project for anyone working on it.
|
|
2443
|
+
*
|
|
2444
|
+
* @throws {OwbaseException}
|
|
2445
|
+
* @returns {Promise<Preferences>}
|
|
2446
|
+
*/
|
|
2447
|
+
getPrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(): Promise<Preferences>;
|
|
2448
|
+
/**
|
|
2449
|
+
* Update the project preferences. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
|
|
2450
|
+
*
|
|
2451
|
+
* @param {object} params.prefs - Prefs key-value JSON object.
|
|
2452
|
+
* @throws {OwbaseException}
|
|
2453
|
+
* @returns {Promise<Preferences>}
|
|
2454
|
+
*/
|
|
2455
|
+
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2456
|
+
prefs: object;
|
|
2457
|
+
}): Promise<Preferences>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Update the project preferences. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
|
|
2460
|
+
*
|
|
2461
|
+
* @param {object} prefs - Prefs key-value JSON object.
|
|
2417
2462
|
* @throws {OwbaseException}
|
|
2418
|
-
* @returns {Promise<
|
|
2463
|
+
* @returns {Promise<Preferences>}
|
|
2419
2464
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2420
2465
|
*/
|
|
2421
|
-
|
|
2466
|
+
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(prefs: object): Promise<Preferences>;
|
|
2422
2467
|
/**
|
|
2423
2468
|
* Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
|
|
2424
2469
|
*
|
|
2425
2470
|
* @param {ProjectProtocolId} params.protocolId - Protocol name. Can be one of: rest, graphql, websocket
|
|
2426
2471
|
* @param {boolean} params.enabled - Protocol status.
|
|
2427
2472
|
* @throws {OwbaseException}
|
|
2428
|
-
* @returns {Promise<Models.Project
|
|
2473
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2429
2474
|
*/
|
|
2430
|
-
updateProtocol(params: {
|
|
2475
|
+
updateProtocol<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2431
2476
|
protocolId: ProjectProtocolId;
|
|
2432
2477
|
enabled: boolean;
|
|
2433
|
-
}): Promise<Models.Project
|
|
2478
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2434
2479
|
/**
|
|
2435
2480
|
* Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
|
|
2436
2481
|
*
|
|
2437
2482
|
* @param {ProjectProtocolId} protocolId - Protocol name. Can be one of: rest, graphql, websocket
|
|
2438
2483
|
* @param {boolean} enabled - Protocol status.
|
|
2439
2484
|
* @throws {OwbaseException}
|
|
2440
|
-
* @returns {Promise<Models.Project
|
|
2485
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2441
2486
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2442
2487
|
*/
|
|
2443
|
-
updateProtocol(protocolId: ProjectProtocolId, enabled: boolean): Promise<Models.Project
|
|
2488
|
+
updateProtocol<Preferences extends Models.Preferences = Models.DefaultPreferences>(protocolId: ProjectProtocolId, enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2444
2489
|
/**
|
|
2445
2490
|
* Update properties of a specific service. Use this endpoint to enable or disable a service in your project.
|
|
2446
2491
|
*
|
|
2447
2492
|
* @param {ProjectServiceId} params.serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor
|
|
2448
2493
|
* @param {boolean} params.enabled - Service status.
|
|
2449
2494
|
* @throws {OwbaseException}
|
|
2450
|
-
* @returns {Promise<Models.Project
|
|
2495
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2451
2496
|
*/
|
|
2452
|
-
updateService(params: {
|
|
2497
|
+
updateService<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
2453
2498
|
serviceId: ProjectServiceId;
|
|
2454
2499
|
enabled: boolean;
|
|
2455
|
-
}): Promise<Models.Project
|
|
2500
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2456
2501
|
/**
|
|
2457
2502
|
* Update properties of a specific service. Use this endpoint to enable or disable a service in your project.
|
|
2458
2503
|
*
|
|
2459
2504
|
* @param {ProjectServiceId} serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor
|
|
2460
2505
|
* @param {boolean} enabled - Service status.
|
|
2461
2506
|
* @throws {OwbaseException}
|
|
2462
|
-
* @returns {Promise<Models.Project
|
|
2507
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2463
2508
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2464
2509
|
*/
|
|
2465
|
-
updateService(serviceId: ProjectServiceId, enabled: boolean): Promise<Models.Project
|
|
2510
|
+
updateService<Preferences extends Models.Preferences = Models.DefaultPreferences>(serviceId: ProjectServiceId, enabled: boolean): Promise<Models.Project<Preferences>>;
|
|
2511
|
+
/**
|
|
2512
|
+
* Delete all sessions in the project. Any session created before this request will be invalidated immediately: users will be signed out of every active client (web, mobile, server SDKs, JWTs), and will be able to sign in again afterwards. API keys are not affected by this action.
|
|
2513
|
+
*
|
|
2514
|
+
* @throws {OwbaseException}
|
|
2515
|
+
* @returns {Promise<{}>}
|
|
2516
|
+
*/
|
|
2517
|
+
deleteSessions(): Promise<{}>;
|
|
2466
2518
|
/**
|
|
2467
2519
|
* Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
|
|
2468
2520
|
*
|
|
@@ -2477,9 +2529,9 @@ declare class Project {
|
|
|
2477
2529
|
* @param {ProjectSMTPSecure} params.secure - Configures if communication with SMTP server is encrypted. Allowed values are: tls, ssl. Leave empty for no encryption.
|
|
2478
2530
|
* @param {boolean} params.enabled - Enable or disable custom SMTP. Custom SMTP is useful for branding purposes, but also allows use of custom email templates.
|
|
2479
2531
|
* @throws {OwbaseException}
|
|
2480
|
-
* @returns {Promise<Models.Project
|
|
2532
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2481
2533
|
*/
|
|
2482
|
-
updateSMTP(params?: {
|
|
2534
|
+
updateSMTP<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: {
|
|
2483
2535
|
host?: string;
|
|
2484
2536
|
port?: number;
|
|
2485
2537
|
username?: string;
|
|
@@ -2490,7 +2542,7 @@ declare class Project {
|
|
|
2490
2542
|
replyToName?: string;
|
|
2491
2543
|
secure?: ProjectSMTPSecure;
|
|
2492
2544
|
enabled?: boolean;
|
|
2493
|
-
}): Promise<Models.Project
|
|
2545
|
+
}): Promise<Models.Project<Preferences>>;
|
|
2494
2546
|
/**
|
|
2495
2547
|
* Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
|
|
2496
2548
|
*
|
|
@@ -2505,10 +2557,10 @@ declare class Project {
|
|
|
2505
2557
|
* @param {ProjectSMTPSecure} secure - Configures if communication with SMTP server is encrypted. Allowed values are: tls, ssl. Leave empty for no encryption.
|
|
2506
2558
|
* @param {boolean} enabled - Enable or disable custom SMTP. Custom SMTP is useful for branding purposes, but also allows use of custom email templates.
|
|
2507
2559
|
* @throws {OwbaseException}
|
|
2508
|
-
* @returns {Promise<Models.Project
|
|
2560
|
+
* @returns {Promise<Models.Project<Preferences>>}
|
|
2509
2561
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2510
2562
|
*/
|
|
2511
|
-
updateSMTP(host?: string, port?: number, username?: string, password?: string, senderEmail?: string, senderName?: string, replyToEmail?: string, replyToName?: string, secure?: ProjectSMTPSecure, enabled?: boolean): Promise<Models.Project
|
|
2563
|
+
updateSMTP<Preferences extends Models.Preferences = Models.DefaultPreferences>(host?: string, port?: number, username?: string, password?: string, senderEmail?: string, senderName?: string, replyToEmail?: string, replyToName?: string, secure?: ProjectSMTPSecure, enabled?: boolean): Promise<Models.Project<Preferences>>;
|
|
2512
2564
|
/**
|
|
2513
2565
|
* Send a test email to verify SMTP configuration.
|
|
2514
2566
|
*
|