@thunderid/javascript 1.19.0 → 1.20.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/dist/api/auth/getFlowMeta.d.ts +3 -1
- package/dist/api/auth/getFlowMeta.d.ts.map +1 -1
- package/dist/api/management/user-types/getUserType.d.ts +8 -0
- package/dist/api/management/user-types/getUserType.d.ts.map +1 -1
- package/dist/api/management/users/sendUserAttributeVerification.d.ts +59 -0
- package/dist/api/management/users/sendUserAttributeVerification.d.ts.map +1 -0
- package/dist/cjs/index.cjs +260 -33
- package/dist/constants/AdministrationConstants.d.ts +3 -1
- package/dist/constants/AdministrationConstants.d.ts.map +1 -1
- package/dist/constants/AttributeVerificationConstants.d.ts +5 -2
- package/dist/constants/AttributeVerificationConstants.d.ts.map +1 -1
- package/dist/edge/index.js +256 -34
- package/dist/i18n/models/i18n.d.ts +7 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -1
- package/dist/i18n/translations/en-US.d.ts.map +1 -1
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
- package/dist/i18n/translations/si-LK.d.ts.map +1 -1
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
- package/dist/i18n/translations/te-IN.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +256 -34
- package/dist/models/config.d.ts +5 -0
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/embedded-flow.d.ts +1 -0
- package/dist/models/embedded-flow.d.ts.map +1 -1
- package/dist/models/managed-user.d.ts +6 -0
- package/dist/models/managed-user.d.ts.map +1 -1
- package/dist/utils/isAdminVerifiableAttribute.d.ts +22 -0
- package/dist/utils/isAdminVerifiableAttribute.d.ts.map +1 -0
- package/dist/utils/isFlowMetaUnavailableError.d.ts +16 -0
- package/dist/utils/isFlowMetaUnavailableError.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-user.d.ts","sourceRoot":"","sources":["../../src/models/managed-user.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"managed-user.d.ts","sourceRoot":"","sources":["../../src/models/managed-user.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,QAAQ,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CACxD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,gBAAgB,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACvC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EntityTypeSchema } from '../models/entity-type';
|
|
2
|
+
import { ManagedUser } from '../models/managed-user';
|
|
3
|
+
/**
|
|
4
|
+
* Whether the administrator view knows the verification status of a stored contact.
|
|
5
|
+
* A recorded verification remains visible when the schema cannot be read.
|
|
6
|
+
*
|
|
7
|
+
* @internal Shared by the SDK packages. It is not part of the public API and can change in any release.
|
|
8
|
+
*/
|
|
9
|
+
export declare const hasAdminVerificationStatus: (user: ManagedUser | null | undefined, attribute: string, schema?: EntityTypeSchema) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the stored attribute can be verified through the shipped administrator email flow.
|
|
12
|
+
* With a schema, the property must be a top-level email. Without one, the base view recognizes
|
|
13
|
+
* the default email field for applications that supply their own send callback.
|
|
14
|
+
*
|
|
15
|
+
* @param user - The user, as read from `GET /users/{id}`.
|
|
16
|
+
* @param attribute - The concrete attribute name, such as `workEmail`.
|
|
17
|
+
* @param schema - The user's type schema.
|
|
18
|
+
* @returns Whether the administrator email flow supports the attribute.
|
|
19
|
+
*/
|
|
20
|
+
declare const isAdminVerifiableAttribute: (user: ManagedUser | null | undefined, attribute: string, schema?: EntityTypeSchema) => boolean;
|
|
21
|
+
export default isAdminVerifiableAttribute;
|
|
22
|
+
//# sourceMappingURL=isAdminVerifiableAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAdminVerifiableAttribute.d.ts","sourceRoot":"","sources":["../../src/utils/isAdminVerifiableAttribute.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAuBnD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,EACpC,WAAW,MAAM,EACjB,SAAS,gBAAgB,KACxB,OAKqF,CAAC;AAEzF;;;;;;;;;GASG;AACH,QAAA,MAAM,0BAA0B,GAC9B,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,EACpC,WAAW,MAAM,EACjB,SAAS,gBAAgB,KACxB,OAIkF,CAAC;AAEtF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tells whether a {@link getFlowMeta} failure means the server has no flow metadata to give, rather than that the
|
|
3
|
+
* request failed. This is what happens when `baseUrl` points at an OpenID Connect provider other than ThunderID:
|
|
4
|
+
* the provider answers `/flow/meta` with 401, 403, 404, 405 or 501, or with a body that is not JSON. Callers treat
|
|
5
|
+
* such a failure as "no flow metadata" and carry on with the SDK's defaults.
|
|
6
|
+
*
|
|
7
|
+
* Everything else stays a real failure: a network error, a server error (5xx other than 501), and any reply that
|
|
8
|
+
* carries ThunderID's own flow metadata error code (`FM-…`), such as the 404 ThunderID answers for an unknown
|
|
9
|
+
* application.
|
|
10
|
+
*
|
|
11
|
+
* @param error - The value `getFlowMeta` rejected with.
|
|
12
|
+
* @returns `true` when the server has no flow metadata endpoint.
|
|
13
|
+
*/
|
|
14
|
+
declare const isFlowMetaUnavailableError: (error: unknown) => boolean;
|
|
15
|
+
export default isFlowMetaUnavailableError;
|
|
16
|
+
//# sourceMappingURL=isFlowMetaUnavailableError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isFlowMetaUnavailableError.d.ts","sourceRoot":"","sources":["../../src/utils/isFlowMetaUnavailableError.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,0BAA0B,GAAI,OAAO,OAAO,KAAG,OAkBpD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|