@uptime.app/contracts 2.0.48 → 2.0.49

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.
@@ -4,9 +4,9 @@ import { B2BOrganisation } from '../b2b-organisation/b2b-organisation';
4
4
  */
5
5
  export interface EnrichedB2BOrganisation extends B2BOrganisation {
6
6
  identityProviders: EnrichedB2BOrganisationIdentityProvider[];
7
- enforceSSO?: boolean;
8
7
  skinId?: string;
9
8
  brandWebAppDomain?: string;
9
+ ssoEnforcement?: SSOEnforcement;
10
10
  }
11
11
  export interface EnrichedB2BOrganisationIdentityProvider {
12
12
  id?: string;
@@ -15,4 +15,18 @@ export interface EnrichedB2BOrganisationIdentityProvider {
15
15
  /** Matching verifiedDomains should require to be authenticated via IdP or not */
16
16
  enforceIdpAuth: boolean;
17
17
  }
18
+ export declare enum SSOEnforcement {
19
+ /**
20
+ * Means that no identity provider enforceIdpAuth is true
21
+ */
22
+ NONE = "NONE",
23
+ /**
24
+ * Means that it has at least 1 identity provider but not all identity providers have enforceIdpAuth set to true
25
+ */
26
+ OPTIONAL = "OPTIONAL",
27
+ /**
28
+ * Means it has at least 1 identity provider and that all identity providers enforceIdpAuth is true
29
+ */
30
+ ENFORCED = "ENFORCED"
31
+ }
18
32
  //# sourceMappingURL=enriched-b2b-organisation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enriched-b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC5D,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,uCAAuC;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iFAAiF;IACjF,cAAc,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"enriched-b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC5D,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,MAAM,WAAW,uCAAuC;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iFAAiF;IACjF,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED,oBAAY,cAAc;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,QAAQ,aAAa;CACxB"}
@@ -1,3 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOEnforcement = void 0;
4
+ var SSOEnforcement;
5
+ (function (SSOEnforcement) {
6
+ /**
7
+ * Means that no identity provider enforceIdpAuth is true
8
+ */
9
+ SSOEnforcement["NONE"] = "NONE";
10
+ /**
11
+ * Means that it has at least 1 identity provider but not all identity providers have enforceIdpAuth set to true
12
+ */
13
+ SSOEnforcement["OPTIONAL"] = "OPTIONAL";
14
+ /**
15
+ * Means it has at least 1 identity provider and that all identity providers enforceIdpAuth is true
16
+ */
17
+ SSOEnforcement["ENFORCED"] = "ENFORCED";
18
+ })(SSOEnforcement || (exports.SSOEnforcement = SSOEnforcement = {}));
3
19
  //# sourceMappingURL=enriched-b2b-organisation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enriched-b2b-organisation.js","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"enriched-b2b-organisation.js","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":";;;AAoBA,IAAY,cAaX;AAbD,WAAY,cAAc;IACtB;;OAEG;IACH,+BAAa,CAAA;IACb;;OAEG;IACH,uCAAqB,CAAA;IACrB;;OAEG;IACH,uCAAqB,CAAA;AACzB,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB"}
@@ -4,9 +4,9 @@ import { B2BOrganisation } from '../b2b-organisation/b2b-organisation';
4
4
  */
5
5
  export interface EnrichedB2BOrganisation extends B2BOrganisation {
6
6
  identityProviders: EnrichedB2BOrganisationIdentityProvider[];
7
- enforceSSO?: boolean;
8
7
  skinId?: string;
9
8
  brandWebAppDomain?: string;
9
+ ssoEnforcement?: SSOEnforcement;
10
10
  }
11
11
  export interface EnrichedB2BOrganisationIdentityProvider {
12
12
  id?: string;
@@ -15,4 +15,18 @@ export interface EnrichedB2BOrganisationIdentityProvider {
15
15
  /** Matching verifiedDomains should require to be authenticated via IdP or not */
16
16
  enforceIdpAuth: boolean;
17
17
  }
18
+ export declare enum SSOEnforcement {
19
+ /**
20
+ * Means that no identity provider enforceIdpAuth is true
21
+ */
22
+ NONE = "NONE",
23
+ /**
24
+ * Means that it has at least 1 identity provider but not all identity providers have enforceIdpAuth set to true
25
+ */
26
+ OPTIONAL = "OPTIONAL",
27
+ /**
28
+ * Means it has at least 1 identity provider and that all identity providers enforceIdpAuth is true
29
+ */
30
+ ENFORCED = "ENFORCED"
31
+ }
18
32
  //# sourceMappingURL=enriched-b2b-organisation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enriched-b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC5D,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,uCAAuC;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iFAAiF;IACjF,cAAc,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"enriched-b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC5D,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,MAAM,WAAW,uCAAuC;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iFAAiF;IACjF,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED,oBAAY,cAAc;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,QAAQ,aAAa;CACxB"}
@@ -1,2 +1,16 @@
1
- export {};
1
+ export var SSOEnforcement;
2
+ (function (SSOEnforcement) {
3
+ /**
4
+ * Means that no identity provider enforceIdpAuth is true
5
+ */
6
+ SSOEnforcement["NONE"] = "NONE";
7
+ /**
8
+ * Means that it has at least 1 identity provider but not all identity providers have enforceIdpAuth set to true
9
+ */
10
+ SSOEnforcement["OPTIONAL"] = "OPTIONAL";
11
+ /**
12
+ * Means it has at least 1 identity provider and that all identity providers enforceIdpAuth is true
13
+ */
14
+ SSOEnforcement["ENFORCED"] = "ENFORCED";
15
+ })(SSOEnforcement || (SSOEnforcement = {}));
2
16
  //# sourceMappingURL=enriched-b2b-organisation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enriched-b2b-organisation.js","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"enriched-b2b-organisation.js","sourceRoot":"","sources":["../../../src/enriched-b2b-organisation/enriched-b2b-organisation.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,cAaX;AAbD,WAAY,cAAc;IACtB;;OAEG;IACH,+BAAa,CAAA;IACb;;OAEG;IACH,uCAAqB,CAAA;IACrB;;OAEG;IACH,uCAAqB,CAAA;AACzB,CAAC,EAbW,cAAc,KAAd,cAAc,QAazB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptime.app/contracts",
3
- "version": "2.0.48",
3
+ "version": "2.0.49",
4
4
  "license": "MIT",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "main": "./dist/cjs/index.js",
@@ -14,5 +14,5 @@
14
14
  "devDependencies": {
15
15
  "typescript": "^5.4.3"
16
16
  },
17
- "gitHead": "9f6490d1bdfdeebb9f4d44b4460eb274e44210d2"
17
+ "gitHead": "55a9a8773e2a94a45fa4c8afc252ce9f0ee999ea"
18
18
  }
@@ -5,9 +5,9 @@ import { B2BOrganisation } from '../b2b-organisation/b2b-organisation';
5
5
  */
6
6
  export interface EnrichedB2BOrganisation extends B2BOrganisation {
7
7
  identityProviders: EnrichedB2BOrganisationIdentityProvider[];
8
- enforceSSO?: boolean; // Only true if all identityProviders have enforceIdpAuth set to true
9
8
  skinId?: string;
10
9
  brandWebAppDomain?: string;
10
+ ssoEnforcement?: SSOEnforcement;
11
11
  }
12
12
 
13
13
  export interface EnrichedB2BOrganisationIdentityProvider {
@@ -16,4 +16,19 @@ export interface EnrichedB2BOrganisationIdentityProvider {
16
16
  verifiedDomains: string[];
17
17
  /** Matching verifiedDomains should require to be authenticated via IdP or not */
18
18
  enforceIdpAuth: boolean;
19
+ }
20
+
21
+ export enum SSOEnforcement {
22
+ /**
23
+ * Means that no identity provider enforceIdpAuth is true
24
+ */
25
+ NONE = 'NONE',
26
+ /**
27
+ * Means that it has at least 1 identity provider but not all identity providers have enforceIdpAuth set to true
28
+ */
29
+ OPTIONAL = 'OPTIONAL',
30
+ /**
31
+ * Means it has at least 1 identity provider and that all identity providers enforceIdpAuth is true
32
+ */
33
+ ENFORCED = 'ENFORCED'
19
34
  }