@thunderid/javascript 1.7.0 → 1.8.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.
Files changed (55) hide show
  1. package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
  2. package/dist/api/management/administration/runAccountLifecycleAction.d.ts +31 -0
  3. package/dist/api/management/administration/runAccountLifecycleAction.d.ts.map +1 -0
  4. package/dist/cjs/index.cjs +472 -5
  5. package/dist/constants/AdministrationConstants.d.ts +20 -0
  6. package/dist/constants/AdministrationConstants.d.ts.map +1 -1
  7. package/dist/edge/index.js +464 -6
  8. package/dist/i18n/models/i18n.d.ts +26 -0
  9. package/dist/i18n/models/i18n.d.ts.map +1 -1
  10. package/dist/i18n/translations/en-US.d.ts.map +1 -1
  11. package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
  12. package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
  13. package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
  14. package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
  15. package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
  16. package/dist/i18n/translations/si-LK.d.ts.map +1 -1
  17. package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
  18. package/dist/i18n/translations/te-IN.d.ts.map +1 -1
  19. package/dist/index.d.ts +12 -4
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +464 -6
  22. package/dist/models/access-status.d.ts +52 -0
  23. package/dist/models/access-status.d.ts.map +1 -0
  24. package/dist/models/administration.d.ts +8 -0
  25. package/dist/models/administration.d.ts.map +1 -1
  26. package/dist/models/agent-resource.d.ts +5 -0
  27. package/dist/models/agent-resource.d.ts.map +1 -1
  28. package/dist/models/ciba.d.ts +6 -0
  29. package/dist/models/ciba.d.ts.map +1 -1
  30. package/dist/models/config.d.ts +17 -0
  31. package/dist/models/config.d.ts.map +1 -1
  32. package/dist/models/embedded-flow.d.ts +62 -3
  33. package/dist/models/embedded-flow.d.ts.map +1 -1
  34. package/dist/models/managed-user.d.ts +5 -0
  35. package/dist/models/managed-user.d.ts.map +1 -1
  36. package/dist/models/oauth-request.d.ts +52 -1
  37. package/dist/models/oauth-request.d.ts.map +1 -1
  38. package/dist/models/session.d.ts +3 -0
  39. package/dist/models/session.d.ts.map +1 -1
  40. package/dist/models/token.d.ts +11 -0
  41. package/dist/models/token.d.ts.map +1 -1
  42. package/dist/utils/AuthenticationHelper.d.ts.map +1 -1
  43. package/dist/utils/getAccountLifecycleActions.d.ts +22 -0
  44. package/dist/utils/getAccountLifecycleActions.d.ts.map +1 -0
  45. package/dist/utils/getAuthorizeRequestUrlParams.d.ts +4 -3
  46. package/dist/utils/getAuthorizeRequestUrlParams.d.ts.map +1 -1
  47. package/dist/utils/getConsentElementDecision.d.ts +20 -0
  48. package/dist/utils/getConsentElementDecision.d.ts.map +1 -0
  49. package/dist/utils/getConsentInvalidKey.d.ts +21 -0
  50. package/dist/utils/getConsentInvalidKey.d.ts.map +1 -0
  51. package/dist/utils/getConsentModifiedKey.d.ts +21 -0
  52. package/dist/utils/getConsentModifiedKey.d.ts.map +1 -0
  53. package/dist/utils/getConsentModifiedValues.d.ts +20 -0
  54. package/dist/utils/getConsentModifiedValues.d.ts.map +1 -0
  55. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Prefix of the form keys that hold the values a user modified on an authorization detail.
3
+ */
4
+ export declare const CONSENT_MODIFIED_KEY_PREFIX = "__consent_modified__";
5
+ /**
6
+ * Generates the form key that holds the value a user chose for one field of an authorization
7
+ * detail. The stored value is the JSON text of the field's new value.
8
+ *
9
+ * @param purposeId - The identifier of the consent purpose the authorization detail belongs to.
10
+ * @param detailId - The identifier of the authorization detail, its consent element name.
11
+ * @param path - Dot-separated location of the field within the detail.
12
+ * @returns A stable form key string.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * getConsentModifiedKey('p1', 'd-1', 'instructedAmount.amount') // returns '__consent_modified__p1__d-1__instructedAmount.amount'
17
+ * ```
18
+ */
19
+ declare const getConsentModifiedKey: (purposeId: string, detailId: string, path: string) => string;
20
+ export default getConsentModifiedKey;
21
+ //# sourceMappingURL=getConsentModifiedKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConsentModifiedKey.d.ts","sourceRoot":"","sources":["../../src/utils/getConsentModifiedKey.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,qBAAqB,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,EAAE,MAAM,MAAM,KAAG,MACf,CAAC;AAErE,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { PromptElement } from '../models/embedded-flow';
2
+ /**
3
+ * Collects the values a user modified on an authorization detail element, for the `modified` member
4
+ * of its consent decision. Only fields the element lets the user modify are read, and a field left at
5
+ * the value that was shown, or marked as holding text that cannot be submitted, is left out.
6
+ *
7
+ * @param purposeId - The identifier of the consent purpose the element belongs to.
8
+ * @param element - The authorization detail element.
9
+ * @param inputs - Form values, holding the JSON text of each changed field under its modified key and its
10
+ * invalid marker under its invalid key.
11
+ * @returns The changed values keyed by field path, or `undefined` when nothing was changed.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * getConsentModifiedValues('p1', element, {'__consent_modified__p1__d-1__amount': '20'}) // returns {amount: 20}
16
+ * ```
17
+ */
18
+ declare const getConsentModifiedValues: (purposeId: string, element: PromptElement, inputs: Record<string, unknown>) => Record<string, unknown> | undefined;
19
+ export default getConsentModifiedValues;
20
+ //# sourceMappingURL=getConsentModifiedValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConsentModifiedValues.d.ts","sourceRoot":"","sources":["../../src/utils/getConsentModifiedValues.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,wBAAwB,GAC5B,WAAW,MAAM,EACjB,SAAS,aAAa,EACtB,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAoB5B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thunderid/javascript",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "JavaScript Ecosystem SDK for ThunderID",
5
5
  "keywords": [
6
6
  "thunderid",