@tailor-platform/sdk 1.85.0 → 1.85.2

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.
@@ -163,7 +163,9 @@ defineIdp("my-idp", {
163
163
 
164
164
  **Email domains and social login:**
165
165
 
166
- - `allowedEmailDomains` - Restrict registration to these email domains. An empty list (the default) allows all domains, but a non-empty list is required when `allowGoogleOauth` or `allowMicrosoftOauth` is enabled.
166
+ - `allowedEmailDomains` - Restrict registration to these email domains. Each entry is a hostname (`example.com`), matched exactly and case-insensitively, so `example.com` does not cover `sub.example.com`. Up to 100 entries.
167
+ - A lone `"*"` entry allows every email domain. It cannot be combined with any other entry, and it is the only way to enable `allowGoogleOauth` or `allowMicrosoftOauth` without enumerating domains.
168
+ - An empty list (the default) also allows every domain today, but that meaning is going away: a future release requires the all-domains state to be spelled out. `tailor-sdk deploy` warns while both forms still work, so set `["*"]` to keep allowing every domain, or list the domains you accept.
167
169
  - `allowGoogleOauth` - Enable the "Sign in with Google" button. Default `false`.
168
170
  - `allowMicrosoftOauth` - Enable the "Sign in with Microsoft" button. Default `false`.
169
171
 
@@ -202,8 +204,9 @@ defineIdp("my-idp", {
202
204
 
203
205
  - `passwordMinLength` must be less than or equal to `passwordMaxLength`.
204
206
  - A non-empty `allowedEmailDomains` cannot be combined with `useNonEmailIdentifier: true` (an empty list is allowed). Enabling `allowGoogleOauth` or `allowMicrosoftOauth` is likewise rejected with `useNonEmailIdentifier: true` (leaving them `false` or unset is fine).
205
- - `allowGoogleOauth` requires a non-empty `allowedEmailDomains`.
206
- - `allowMicrosoftOauth` requires both a non-empty `allowedEmailDomains` and `disablePasswordAuth: true`.
207
+ - `allowGoogleOauth` requires a non-empty `allowedEmailDomains` (`["*"]` to allow every domain).
208
+ - `allowMicrosoftOauth` requires both a non-empty `allowedEmailDomains` (`["*"]` to allow every domain) and `disablePasswordAuth: true`.
209
+ - `allowedEmailDomains` entries must each be a hostname or `"*"`, must be unique when compared case-insensitively, and number at most 100. `"*"` cannot appear alongside another entry.
207
210
  - `disablePasswordAuth` requires `allowGoogleOauth` or `allowMicrosoftOauth`, and cannot be combined with `allowSelfPasswordReset`.
208
211
  - `requireMfa: true` requires `enableMfa: true`.
209
212
  - `enableMfa: true` requires at least one entry in `allowedReturnOrigins`.
@@ -489,7 +489,7 @@ export default createResolver({
489
489
 
490
490
  > **Deprecated:** `auth.invoker("manager-machine-user")` still works but is deprecated. Using the string form avoids importing `auth` into runtime code.
491
491
 
492
- See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](https://github.com/tailor-platform/sdk/blob/main/example/resolvers/triggerWorkflow.ts).
492
+ See the full working example in the repository: [example/resolvers/triggerWorkflow.ts](https://github.com/tailor-platform/sdk/blob/maintenance/v1/example/resolvers/triggerWorkflow.ts).
493
493
 
494
494
  ## File Organization
495
495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.85.0",
3
+ "version": "1.85.2",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,3 +0,0 @@
1
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-m5tYtz0-.mjs";
2
-
3
- export { defineApplication, generatePluginFilesIfNeeded };