@company-semantics/contracts 0.36.1 → 0.37.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/package.json +1 -1
- package/src/org/types.ts +13 -0
package/package.json
CHANGED
package/src/org/types.ts
CHANGED
|
@@ -110,12 +110,25 @@ export interface AuthMethodConfig {
|
|
|
110
110
|
/**
|
|
111
111
|
* Workspace authentication configuration.
|
|
112
112
|
* Enabled auth methods and provider metadata.
|
|
113
|
+
*
|
|
114
|
+
* The `policy` field contains the org-level auth policy (owner-configurable).
|
|
115
|
+
* If no explicit policy exists, default values are returned.
|
|
113
116
|
*/
|
|
114
117
|
export interface WorkspaceAuthConfig {
|
|
115
118
|
emailOtp: AuthMethodConfig;
|
|
116
119
|
googleSso: AuthMethodConfig;
|
|
117
120
|
microsoftSso: AuthMethodConfig;
|
|
118
121
|
okta: AuthMethodConfig;
|
|
122
|
+
/**
|
|
123
|
+
* Org-level authentication policy.
|
|
124
|
+
* Owner-only configuration for SSO requirements.
|
|
125
|
+
*/
|
|
126
|
+
policy: {
|
|
127
|
+
/** Whether SSO is required for all members */
|
|
128
|
+
requireSSO: boolean;
|
|
129
|
+
/** List of allowed authentication providers */
|
|
130
|
+
allowedProviders: string[];
|
|
131
|
+
};
|
|
119
132
|
}
|
|
120
133
|
|
|
121
134
|
/**
|