@logto/schemas 1.18.0 → 1.19.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 (229) hide show
  1. package/alterations/1.19.0-1720253939-add-organization-branding.ts +18 -0
  2. package/alterations/1.19.0-1720345784-add-color-to-app-sie.ts +18 -0
  3. package/alterations/1.19.0-1720505152-update-custom-ui-assets.ts +20 -0
  4. package/alterations/1.19.0-1721483240-multiple-app-secrets.ts +77 -0
  5. package/alterations/1.19.0-1721645392-add-application-custom-data-column.ts +18 -0
  6. package/alterations/1.19.0-1722926389-argon2d-argon2id.ts +35 -0
  7. package/alterations-js/1.19.0-1720253939-add-organization-branding.js +14 -0
  8. package/alterations-js/1.19.0-1720345784-add-color-to-app-sie.js +14 -0
  9. package/alterations-js/1.19.0-1720505152-update-custom-ui-assets.js +16 -0
  10. package/alterations-js/1.19.0-1721483240-multiple-app-secrets.js +72 -0
  11. package/alterations-js/1.19.0-1721645392-add-application-custom-data-column.js +14 -0
  12. package/alterations-js/1.19.0-1722926389-argon2d-argon2id.js +30 -0
  13. package/lib/consts/oidc.d.ts +15 -2
  14. package/lib/consts/oidc.js +6 -0
  15. package/lib/consts/system.d.ts +2 -0
  16. package/lib/consts/system.js +2 -0
  17. package/lib/db-entries/application-secret.d.ts +28 -0
  18. package/lib/db-entries/application-secret.js +41 -0
  19. package/lib/db-entries/application-sign-in-experience.d.ts +4 -2
  20. package/lib/db-entries/application-sign-in-experience.js +5 -1
  21. package/lib/db-entries/application.d.ts +6 -2
  22. package/lib/db-entries/application.js +5 -1
  23. package/lib/db-entries/custom-types.d.ts +2 -0
  24. package/lib/db-entries/custom-types.js +2 -0
  25. package/lib/db-entries/index.d.ts +1 -0
  26. package/lib/db-entries/index.js +1 -0
  27. package/lib/db-entries/organization.d.ts +6 -2
  28. package/lib/db-entries/organization.js +5 -1
  29. package/lib/db-entries/sign-in-experience.d.ts +4 -4
  30. package/lib/db-entries/sign-in-experience.js +5 -5
  31. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +33 -0
  32. package/lib/foundations/jsonb-types/sign-in-experience.js +18 -4
  33. package/lib/foundations/jsonb-types/users.d.ts +6 -6
  34. package/lib/foundations/jsonb-types/users.js +2 -2
  35. package/lib/seeds/application.js +1 -0
  36. package/lib/seeds/cloud-api.d.ts +1 -1
  37. package/lib/seeds/sign-in-experience.d.ts +1 -0
  38. package/lib/seeds/sign-in-experience.js +2 -2
  39. package/lib/types/application.d.ts +80 -122
  40. package/lib/types/connector.d.ts +26 -28
  41. package/lib/types/consent.d.ts +180 -33
  42. package/lib/types/cookie.d.ts +7 -1
  43. package/lib/types/cookie.js +3 -1
  44. package/lib/types/domain.d.ts +2 -10
  45. package/lib/types/hook.d.ts +14 -21
  46. package/lib/types/index.d.ts +1 -0
  47. package/lib/types/index.js +1 -0
  48. package/lib/types/interactions.d.ts +206 -57
  49. package/lib/types/interactions.js +42 -13
  50. package/lib/types/log/interaction.d.ts +4 -3
  51. package/lib/types/log/interaction.js +1 -0
  52. package/lib/types/logto-config/index.d.ts +267 -242
  53. package/lib/types/logto-config/jwt-customizer.d.ts +500 -371
  54. package/lib/types/logto-config/jwt-customizer.js +11 -1
  55. package/lib/types/logto-config/oidc-provider.d.ts +6 -6
  56. package/lib/types/mfa.d.ts +16 -16
  57. package/lib/types/scope.d.ts +7 -6
  58. package/lib/types/sign-in-experience.d.ts +51 -118
  59. package/lib/types/sign-in-experience.js +1 -1
  60. package/lib/types/sso-connector.d.ts +14 -19
  61. package/lib/types/ssr.d.ts +25 -0
  62. package/lib/types/ssr.js +9 -0
  63. package/lib/types/system.d.ts +7 -3
  64. package/lib/types/system.js +4 -0
  65. package/lib/types/user-assets.d.ts +25 -5
  66. package/lib/types/user-assets.js +20 -1
  67. package/lib/types/user.d.ts +84 -120
  68. package/lib/utils/application.d.ts +3 -0
  69. package/lib/utils/application.js +7 -0
  70. package/lib/utils/index.d.ts +1 -0
  71. package/lib/utils/index.js +1 -0
  72. package/package.json +7 -7
  73. package/tables/application_secrets.sql +17 -0
  74. package/tables/application_sign_in_experiences.sql +1 -1
  75. package/tables/applications.sql +7 -2
  76. package/tables/organizations.sql +2 -0
  77. package/tables/sign_in_experiences.sql +1 -1
  78. package/tables/users.sql +1 -1
  79. package/alterations-js/1.0.0-1677208902-update-admin-console-config.d.ts +0 -3
  80. package/alterations-js/1.0.0-1677765137-seed-for-admin-tenant.d.ts +0 -3
  81. package/alterations-js/1.0.0-1677907982-allow-admin-create-multiple-tenants.d.ts +0 -3
  82. package/alterations-js/1.0.0-1678157950-privacy-policy-url.d.ts +0 -3
  83. package/alterations-js/1.0.0-1678199795-add-verification-status-table.d.ts +0 -3
  84. package/alterations-js/1.0.0-1678259693-remove-branding-style-config.d.ts +0 -3
  85. package/alterations-js/1.0.0-1678269972-use-restrictive-policies.d.ts +0 -3
  86. package/alterations-js/1.0.0-1678284778-restrict-internal-roles.d.ts +0 -3
  87. package/alterations-js/1.0.0-1678425761-m2m-app-for-tenants.d.ts +0 -3
  88. package/alterations-js/1.0.0-1678450233-support-custom-content.d.ts +0 -3
  89. package/alterations-js/1.0.0-1678716747-service-logs.d.ts +0 -3
  90. package/alterations-js/1.0.0-1678928481-remove-deprecated-logto-config-item.d.ts +0 -3
  91. package/alterations-js/1.0.0-1678953179-update-get-started-task-config.d.ts +0 -3
  92. package/alterations-js/1.0.0-1679209413-drop-connector-database-storage.d.ts +0 -3
  93. package/alterations-js/1.0.0_beta.10-1-logto-config.d.ts +0 -3
  94. package/alterations-js/1.0.0_beta.10-1663923211-machine-to-machine-app.d.ts +0 -3
  95. package/alterations-js/1.0.0_beta.10-1664265197-custom-phrases.d.ts +0 -3
  96. package/alterations-js/1.0.0_beta.11-1664347703-rename-language-key-to-tag.d.ts +0 -3
  97. package/alterations-js/1.0.0_beta.11-1664356000-add-created-at-column-to-users.d.ts +0 -3
  98. package/alterations-js/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.d.ts +0 -3
  99. package/alterations-js/1.0.0_beta.14-1665300135-sign-in-sign-up.d.ts +0 -3
  100. package/alterations-js/1.0.0_beta.14-1667283640-remove-forgot-password.d.ts +0 -3
  101. package/alterations-js/1.0.0_beta.14-1667292082-remove-sign-in-method.d.ts +0 -3
  102. package/alterations-js/1.0.0_beta.14-1667374974-user-suspend.d.ts +0 -3
  103. package/alterations-js/1.0.0_beta.14-1667900481-add-passcode-type-continue.d.ts +0 -3
  104. package/alterations-js/1.0.0_beta.18-1668666590-support-multiple-connector-instances.d.ts +0 -3
  105. package/alterations-js/1.0.0_beta.18-1668666600-remove-connector-enabled.d.ts +0 -3
  106. package/alterations-js/1.0.0_beta.18-1669091623-roles-and-scopes.d.ts +0 -3
  107. package/alterations-js/1.0.0_beta.18-1669702299-sign-up.d.ts +0 -3
  108. package/alterations-js/1.0.0_beta.18-1671039448-add-user-name-index.d.ts +0 -3
  109. package/alterations-js/1.0.0_beta.18-1671080370-terms-of-use.d.ts +0 -3
  110. package/alterations-js/1.0.0_beta.18-1671336831-refactor-log-types.d.ts +0 -3
  111. package/alterations-js/1.0.0_beta.18-1671509870-hooks.d.ts +0 -3
  112. package/alterations-js/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.d.ts +0 -3
  113. package/alterations-js/1.0.0_rc.0-1672815959-user-roles.d.ts +0 -3
  114. package/alterations-js/1.0.0_rc.0-1672820345-scope-resource-id.d.ts +0 -3
  115. package/alterations-js/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.d.ts +0 -3
  116. package/alterations-js/1.0.0_rc.0-1673001922-support-generic-passcode.d.ts +0 -3
  117. package/alterations-js/1.0.0_rc.0-1673165463-scope-name-index.d.ts +0 -3
  118. package/alterations-js/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.d.ts +0 -3
  119. package/alterations-js/1.0.0_rc.0-1673465463-ac-scope-name.d.ts +0 -3
  120. package/alterations-js/1.0.0_rc.0-1673853579-ac-default-scope.d.ts +0 -3
  121. package/alterations-js/1.0.0_rc.0-1673863835-ac-scope-role.d.ts +0 -3
  122. package/alterations-js/1.0.0_rc.0-1673882867-fix-alteration-issues.d.ts +0 -3
  123. package/alterations-js/1.0.0_rc.0-1673940577-scope-description-not-null.d.ts +0 -3
  124. package/alterations-js/1.0.0_rc.0-1673941897-application-roles.d.ts +0 -3
  125. package/alterations-js/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.d.ts +0 -4
  126. package/alterations-js/1.0.0_rc.0-1674032095.2-oidc-model-pkey.d.ts +0 -3
  127. package/alterations-js/1.0.0_rc.0-1674032095.3-tenant-table.d.ts +0 -3
  128. package/alterations-js/1.0.0_rc.0-1674032095.4-add-id-column.d.ts +0 -3
  129. package/alterations-js/1.0.0_rc.0-1674032095.5-multi-tenancy.d.ts +0 -3
  130. package/alterations-js/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.d.ts +0 -3
  131. package/alterations-js/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.d.ts +0 -3
  132. package/alterations-js/1.0.0_rc.0-1675316731-update-seed-data.d.ts +0 -3
  133. package/alterations-js/1.0.0_rc.1-1675788753-multi-tenancy-rls.d.ts +0 -3
  134. package/alterations-js/1.0.0_rc.1-1676115897-add-admin-tenant.d.ts +0 -3
  135. package/alterations-js/1.0.0_rc.1-1676185899-fix-logs-index.d.ts +0 -3
  136. package/alterations-js/1.0.0_rc.1-1676190092-migrate-admin-data.d.ts +0 -3
  137. package/alterations-js/1.0.0_rc.1-1676823841-update-sie-primary-key.d.ts +0 -3
  138. package/alterations-js/1.0.0_rc.1-1676874936-support-custom-css.d.ts +0 -3
  139. package/alterations-js/1.0.0_rc.1-1676886855-connector-database-read-write.d.ts +0 -3
  140. package/alterations-js/1.0.0_rc.1-1676906977-remove-demo-app.d.ts +0 -3
  141. package/alterations-js/1.0.0_rc.1-1676956206-move-console-sie-to-database.d.ts +0 -3
  142. package/alterations-js/1.0.0_rc.1-1677059985-move-console-application-to-database.d.ts +0 -3
  143. package/alterations-js/1.10.1-1695647183-update-private-key-type.d.ts +0 -3
  144. package/alterations-js/1.10.1-1696657546-organization-tables.d.ts +0 -3
  145. package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.d.ts +0 -3
  146. package/alterations-js/1.10.1-1698646271-add-organization-created-flag.d.ts +0 -3
  147. package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.d.ts +0 -4
  148. package/alterations-js/1.10.1-1698910485-user-logto-data.d.ts +0 -3
  149. package/alterations-js/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.d.ts +0 -3
  150. package/alterations-js/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.d.ts +0 -3
  151. package/alterations-js/1.12.0-1700031616-update-org-role-foreign-keys.d.ts +0 -3
  152. package/alterations-js/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.d.ts +0 -3
  153. package/alterations-js/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.d.ts +0 -3
  154. package/alterations-js/1.13.0-1702274830-add-new-third-party-column-to-applications-table.d.ts +0 -3
  155. package/alterations-js/1.13.0-1702372401-add-application-permissions-tables.d.ts +0 -3
  156. package/alterations-js/1.13.0-1702544178-sync-tenant-orgs.d.ts +0 -18
  157. package/alterations-js/1.13.0-1702871078-protected-application-type.d.ts +0 -3
  158. package/alterations-js/1.13.0-1702877515-protected-app-configs.d.ts +0 -3
  159. package/alterations-js/1.13.0-1702978120-application-sign-in-experience-table.d.ts +0 -3
  160. package/alterations-js/1.13.0-1703229996-daily-token-usage.d.ts +0 -3
  161. package/alterations-js/1.13.0-1703230000-update-tenant-roles.d.ts +0 -11
  162. package/alterations-js/1.13.0-1704692973-remove-legacy-resources.d.ts +0 -3
  163. package/alterations-js/1.13.0-1704934999-add-magic-links-table.d.ts +0 -3
  164. package/alterations-js/1.13.0-1704935001-add-organization-invitation-tables.d.ts +0 -3
  165. package/alterations-js/1.13.0-1705288654-add-application-user-consent-organizations-table.d.ts +0 -3
  166. package/alterations-js/1.13.0-1705991158-update-invitation-indices.d.ts +0 -7
  167. package/alterations-js/1.13.0-1706449174-update-organization-invitation-column.d.ts +0 -3
  168. package/alterations-js/1.13.0-1706510290-protected-app-host-index.d.ts +0 -3
  169. package/alterations-js/1.13.0-1706512952-restore-get-started-page.d.ts +0 -3
  170. package/alterations-js/1.13.0-1706528755-remove-magic-links.d.ts +0 -3
  171. package/alterations-js/1.13.0-1706585206-protected-app-custom-domain-unique.d.ts +0 -3
  172. package/alterations-js/1.13.1-1707360939-grant-is-suspended-read-permission.d.ts +0 -6
  173. package/alterations-js/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.d.ts +0 -3
  174. package/alterations-js/1.14.0-1709190131-enhance-dau-data-accuracy.d.ts +0 -3
  175. package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.d.ts +0 -3
  176. package/alterations-js/1.15.0-1709528944-regenerate-dau-data.d.ts +0 -3
  177. package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.d.ts +0 -3
  178. package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.d.ts +0 -3
  179. package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.d.ts +0 -3
  180. package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.d.ts +0 -3
  181. package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.d.ts +0 -3
  182. package/alterations-js/1.15.0-1711955211-organization-resource-scope.d.ts +0 -3
  183. package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.d.ts +0 -3
  184. package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.d.ts +0 -8
  185. package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.d.ts +0 -8
  186. package/alterations-js/1.16.0-1712912361-delete-jwt-customier-with-empty-script.d.ts +0 -3
  187. package/alterations-js/1.16.0-1713942039-add-organization-custom-data.d.ts +0 -4
  188. package/alterations-js/1.16.0-1714270244-application-org-resource-scope.d.ts +0 -3
  189. package/alterations-js/1.17.0-1715826336-add-default-user-role-config.d.ts +0 -3
  190. package/alterations-js/1.17.0-1715829731-rename-data-hook-schema-update-event.d.ts +0 -3
  191. package/alterations-js/1.17.0-1716278409-remove-internal-role-database-policies.d.ts +0 -3
  192. package/alterations-js/1.17.0-1716291265-create-pre-configured-m-api-role.d.ts +0 -7
  193. package/alterations-js/1.17.0-1717148078-remove-service-log-reference.d.ts +0 -3
  194. package/alterations-js/1.18.0-1717567857-social-sign-in-linking.d.ts +0 -3
  195. package/alterations-js/1.18.0-1717597875-add-organization-email-domains-table.d.ts +0 -3
  196. package/alterations-js/1.18.0-1717818597-organization-mfa-requirement.d.ts +0 -3
  197. package/alterations-js/1.18.0-1718340884-rename-org-email-domains-and-add-jit-roles-table.d.ts +0 -3
  198. package/alterations-js/1.18.0-1718594164-add-agree-to-terms-policy.d.ts +0 -3
  199. package/alterations-js/1.18.0-1718785576-organization-application-relations.d.ts +0 -3
  200. package/alterations-js/1.18.0-1718786576-organization-jit-sso-connectors.d.ts +0 -3
  201. package/alterations-js/1.18.0-1718807616-organization-role-application-relations.d.ts +0 -3
  202. package/alterations-js/1.18.0-1718865814-add-subject-tokens.d.ts +0 -3
  203. package/alterations-js/1.18.0-1719014832-organization-role-types.d.ts +0 -3
  204. package/alterations-js/1.18.0-1719221205-fix-functions.d.ts +0 -7
  205. package/alterations-js/1.18.0-1719312694-custom-ui-assets.d.ts +0 -3
  206. package/alterations-js/1.2.0-1681267285-fix-get-started-passwordless-status.d.ts +0 -3
  207. package/alterations-js/1.3.0-1683292832-update-hooks.d.ts +0 -3
  208. package/alterations-js/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.d.ts +0 -3
  209. package/alterations-js/1.5.0-1684739802-create-hook-id-index-for-logs.d.ts +0 -3
  210. package/alterations-js/1.5.0-1684822341-init-domains.d.ts +0 -3
  211. package/alterations-js/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.d.ts +0 -3
  212. package/alterations-js/1.5.0-1685285719-support-default-resource.d.ts +0 -3
  213. package/alterations-js/1.6.0-1685691718-domain-unique.d.ts +0 -3
  214. package/alterations-js/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.d.ts +0 -3
  215. package/alterations-js/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.d.ts +0 -3
  216. package/alterations-js/1.7.0-1688627407-daily-active-users.d.ts +0 -3
  217. package/alterations-js/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.d.ts +0 -3
  218. package/alterations-js/1.8.0-1692194751-add-affiliate-scopes.d.ts +0 -3
  219. package/alterations-js/1.9.0-1693554904-add-possword-policy.d.ts +0 -4
  220. package/alterations-js/1.9.0-1694399696-add-type-col-to-roles-table.d.ts +0 -3
  221. package/alterations-js/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.d.ts +0 -9
  222. package/alterations-js/1.9.0-1694484927-remove-deprecated-challenge-flag.d.ts +0 -3
  223. package/alterations-js/1.9.0-1694487524-sie-mfa.d.ts +0 -3
  224. package/alterations-js/1.9.0-1694509714-keep-existing-password-policy.d.ts +0 -3
  225. package/alterations-js/1.9.0-1694746763-user-verifications.d.ts +0 -3
  226. package/alterations-js/1.9.2-1694854226-init-sentinel.d.ts +0 -3
  227. package/alterations-js/1.9.2-1695198741-remove-m2m-app-admin-access-switch.d.ts +0 -3
  228. package/alterations-js/utils/1704934999-tables.d.ts +0 -11
  229. package/alterations-js/utils/1716643968-id-generation.d.ts +0 -19
@@ -0,0 +1,18 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table organizations add column branding jsonb not null default '{}'::jsonb;
9
+ `);
10
+ },
11
+ down: async (pool) => {
12
+ await pool.query(sql`
13
+ alter table organizations drop column branding;
14
+ `);
15
+ },
16
+ };
17
+
18
+ export default alteration;
@@ -0,0 +1,18 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table application_sign_in_experiences add column color jsonb not null default '{}'::jsonb;
9
+ `);
10
+ },
11
+ down: async (pool) => {
12
+ await pool.query(sql`
13
+ alter table application_sign_in_experiences drop column color;
14
+ `);
15
+ },
16
+ };
17
+
18
+ export default alteration;
@@ -0,0 +1,20 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table sign_in_experiences drop column custom_ui_asset_id;
9
+ alter table sign_in_experiences add column custom_ui_assets jsonb;
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ await pool.query(sql`
14
+ alter table sign_in_experiences add column custom_ui_asset_id varchar(21);
15
+ alter table sign_in_experiences drop column custom_ui_assets;
16
+ `);
17
+ },
18
+ };
19
+
20
+ export default alteration;
@@ -0,0 +1,77 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ import { applyTableRls, dropTableRls } from './utils/1704934999-tables.js';
6
+
7
+ const alteration: AlterationScript = {
8
+ up: async (pool) => {
9
+ await pool.query(sql`
10
+ -- Remove existing constraint
11
+ alter table organization_application_relations drop constraint application_type;
12
+
13
+ -- Drop the function
14
+ drop function check_application_type;
15
+
16
+ -- Create a new function that accepts a variadic array of application types
17
+ create function check_application_type(
18
+ application_id varchar(21),
19
+ variadic target_type application_type[]
20
+ ) returns boolean as
21
+ $$ begin
22
+ return (select type from applications where id = application_id) = any(target_type);
23
+ end; $$ language plpgsql set search_path = public;
24
+
25
+ -- Add back the constraint
26
+ alter table organization_application_relations
27
+ add constraint application_type
28
+ check (check_application_type(application_id, 'MachineToMachine'));
29
+
30
+ -- Create the new table
31
+ create table application_secrets (
32
+ tenant_id varchar(21) not null
33
+ references tenants (id) on update cascade on delete cascade,
34
+ application_id varchar(21) not null
35
+ references applications (id) on update cascade on delete cascade,
36
+ /** The name of the secret. Should be unique within the application. */
37
+ name varchar(256) not null,
38
+ value varchar(64) not null,
39
+ expires_at timestamptz,
40
+ created_at timestamptz not null default now(),
41
+ primary key (tenant_id, application_id, name),
42
+ constraint application_type
43
+ check (check_application_type(application_id, 'MachineToMachine', 'Traditional', 'Protected'))
44
+ );
45
+ `);
46
+ await applyTableRls(pool, 'application_secrets');
47
+ },
48
+ down: async (pool) => {
49
+ await dropTableRls(pool, 'application_secrets');
50
+ await pool.query(sql`
51
+ -- Remove the table
52
+ drop table application_secrets;
53
+
54
+ -- Remove the constraint
55
+ alter table organization_application_relations drop constraint application_type;
56
+
57
+ -- Drop the function
58
+ drop function check_application_type;
59
+
60
+ -- Restore the original function
61
+ create function check_application_type(
62
+ application_id varchar(21),
63
+ target_type application_type
64
+ ) returns boolean as
65
+ $$ begin
66
+ return (select type from applications where id = application_id) = target_type;
67
+ end; $$ language plpgsql set search_path = public;
68
+
69
+ -- Add back the constraint
70
+ alter table organization_application_relations
71
+ add constraint application_type
72
+ check (check_application_type(application_id, 'MachineToMachine'));
73
+ `);
74
+ },
75
+ };
76
+
77
+ export default alteration;
@@ -0,0 +1,18 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table applications add column custom_data jsonb not null default '{}'::jsonb;
9
+ `);
10
+ },
11
+ down: async (pool) => {
12
+ await pool.query(sql`
13
+ alter table applications drop column custom_data;
14
+ `);
15
+ },
16
+ };
17
+
18
+ export default alteration;
@@ -0,0 +1,35 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter type users_password_encryption_method add value 'Argon2id';
9
+ alter type users_password_encryption_method add value 'Argon2d';
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ const { rows } = await pool.query(sql`
14
+ select id from users
15
+ where password_encryption_method = ${'Argon2id'}
16
+ or password_encryption_method = ${'Argon2d'}
17
+ `);
18
+ if (rows.length > 0) {
19
+ throw new Error('There are users with password encryption methods Argon2id or Argon2d.');
20
+ }
21
+
22
+ await pool.query(sql`
23
+ create type users_password_encryption_method_revised as enum ('Argon2i', 'SHA1', 'SHA256', 'MD5', 'Bcrypt');
24
+
25
+ alter table users
26
+ alter column password_encryption_method type users_password_encryption_method_revised
27
+ using password_encryption_method::text::users_password_encryption_method_revised;
28
+
29
+ drop type users_password_encryption_method;
30
+ alter type users_password_encryption_method_revised rename to users_password_encryption_method;
31
+ `);
32
+ },
33
+ };
34
+
35
+ export default alteration;
@@ -0,0 +1,14 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table organizations add column branding jsonb not null default '{}'::jsonb;
6
+ `);
7
+ },
8
+ down: async (pool) => {
9
+ await pool.query(sql `
10
+ alter table organizations drop column branding;
11
+ `);
12
+ },
13
+ };
14
+ export default alteration;
@@ -0,0 +1,14 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table application_sign_in_experiences add column color jsonb not null default '{}'::jsonb;
6
+ `);
7
+ },
8
+ down: async (pool) => {
9
+ await pool.query(sql `
10
+ alter table application_sign_in_experiences drop column color;
11
+ `);
12
+ },
13
+ };
14
+ export default alteration;
@@ -0,0 +1,16 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table sign_in_experiences drop column custom_ui_asset_id;
6
+ alter table sign_in_experiences add column custom_ui_assets jsonb;
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ await pool.query(sql `
11
+ alter table sign_in_experiences add column custom_ui_asset_id varchar(21);
12
+ alter table sign_in_experiences drop column custom_ui_assets;
13
+ `);
14
+ },
15
+ };
16
+ export default alteration;
@@ -0,0 +1,72 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ import { applyTableRls, dropTableRls } from './utils/1704934999-tables.js';
3
+ const alteration = {
4
+ up: async (pool) => {
5
+ await pool.query(sql `
6
+ -- Remove existing constraint
7
+ alter table organization_application_relations drop constraint application_type;
8
+
9
+ -- Drop the function
10
+ drop function check_application_type;
11
+
12
+ -- Create a new function that accepts a variadic array of application types
13
+ create function check_application_type(
14
+ application_id varchar(21),
15
+ variadic target_type application_type[]
16
+ ) returns boolean as
17
+ $$ begin
18
+ return (select type from applications where id = application_id) = any(target_type);
19
+ end; $$ language plpgsql set search_path = public;
20
+
21
+ -- Add back the constraint
22
+ alter table organization_application_relations
23
+ add constraint application_type
24
+ check (check_application_type(application_id, 'MachineToMachine'));
25
+
26
+ -- Create the new table
27
+ create table application_secrets (
28
+ tenant_id varchar(21) not null
29
+ references tenants (id) on update cascade on delete cascade,
30
+ application_id varchar(21) not null
31
+ references applications (id) on update cascade on delete cascade,
32
+ /** The name of the secret. Should be unique within the application. */
33
+ name varchar(256) not null,
34
+ value varchar(64) not null,
35
+ expires_at timestamptz,
36
+ created_at timestamptz not null default now(),
37
+ primary key (tenant_id, application_id, name),
38
+ constraint application_type
39
+ check (check_application_type(application_id, 'MachineToMachine', 'Traditional', 'Protected'))
40
+ );
41
+ `);
42
+ await applyTableRls(pool, 'application_secrets');
43
+ },
44
+ down: async (pool) => {
45
+ await dropTableRls(pool, 'application_secrets');
46
+ await pool.query(sql `
47
+ -- Remove the table
48
+ drop table application_secrets;
49
+
50
+ -- Remove the constraint
51
+ alter table organization_application_relations drop constraint application_type;
52
+
53
+ -- Drop the function
54
+ drop function check_application_type;
55
+
56
+ -- Restore the original function
57
+ create function check_application_type(
58
+ application_id varchar(21),
59
+ target_type application_type
60
+ ) returns boolean as
61
+ $$ begin
62
+ return (select type from applications where id = application_id) = target_type;
63
+ end; $$ language plpgsql set search_path = public;
64
+
65
+ -- Add back the constraint
66
+ alter table organization_application_relations
67
+ add constraint application_type
68
+ check (check_application_type(application_id, 'MachineToMachine'));
69
+ `);
70
+ },
71
+ };
72
+ export default alteration;
@@ -0,0 +1,14 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table applications add column custom_data jsonb not null default '{}'::jsonb;
6
+ `);
7
+ },
8
+ down: async (pool) => {
9
+ await pool.query(sql `
10
+ alter table applications drop column custom_data;
11
+ `);
12
+ },
13
+ };
14
+ export default alteration;
@@ -0,0 +1,30 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter type users_password_encryption_method add value 'Argon2id';
6
+ alter type users_password_encryption_method add value 'Argon2d';
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ const { rows } = await pool.query(sql `
11
+ select id from users
12
+ where password_encryption_method = ${'Argon2id'}
13
+ or password_encryption_method = ${'Argon2d'}
14
+ `);
15
+ if (rows.length > 0) {
16
+ throw new Error('There are users with password encryption methods Argon2id or Argon2d.');
17
+ }
18
+ await pool.query(sql `
19
+ create type users_password_encryption_method_revised as enum ('Argon2i', 'SHA1', 'SHA256', 'MD5', 'Bcrypt');
20
+
21
+ alter table users
22
+ alter column password_encryption_method type users_password_encryption_method_revised
23
+ using password_encryption_method::text::users_password_encryption_method_revised;
24
+
25
+ drop type users_password_encryption_method;
26
+ alter type users_password_encryption_method_revised rename to users_password_encryption_method;
27
+ `);
28
+ },
29
+ };
30
+ export default alteration;
@@ -27,7 +27,12 @@ export declare enum ExtraParamsKey {
27
27
  * - `social:<target>` (Use a social connector with the specified target, e.g. `social:google`)
28
28
  * - `sso:<connector-id>` (Use the specified SSO connector, e.g. `sso:123456`)
29
29
  */
30
- DirectSignIn = "direct_sign_in"
30
+ DirectSignIn = "direct_sign_in",
31
+ /**
32
+ * Override the default sign-in experience configuration with the settings from the specified
33
+ * organization ID.
34
+ */
35
+ OrganizationId = "organization_id"
31
36
  }
32
37
  /** @deprecated Use {@link FirstScreen} instead. */
33
38
  export declare enum InteractionMode {
@@ -42,13 +47,21 @@ export declare const extraParamsObjectGuard: z.ZodObject<{
42
47
  interaction_mode: z.ZodOptional<z.ZodNativeEnum<typeof InteractionMode>>;
43
48
  first_screen: z.ZodOptional<z.ZodNativeEnum<typeof FirstScreen>>;
44
49
  direct_sign_in: z.ZodOptional<z.ZodString>;
50
+ organization_id: z.ZodOptional<z.ZodString>;
45
51
  }, "strip", z.ZodTypeAny, {
46
52
  interaction_mode?: InteractionMode | undefined;
47
53
  first_screen?: FirstScreen | undefined;
48
54
  direct_sign_in?: string | undefined;
55
+ organization_id?: string | undefined;
49
56
  }, {
50
57
  interaction_mode?: InteractionMode | undefined;
51
58
  first_screen?: FirstScreen | undefined;
52
59
  direct_sign_in?: string | undefined;
60
+ organization_id?: string | undefined;
61
+ }>;
62
+ export type ExtraParamsObject = Partial<{
63
+ [ExtraParamsKey.InteractionMode]: InteractionMode;
64
+ [ExtraParamsKey.FirstScreen]: FirstScreen;
65
+ [ExtraParamsKey.DirectSignIn]: string;
66
+ [ExtraParamsKey.OrganizationId]: string;
53
67
  }>;
54
- export type ExtraParamsObject = z.infer<typeof extraParamsObjectGuard>;
@@ -30,6 +30,11 @@ export var ExtraParamsKey;
30
30
  * - `sso:<connector-id>` (Use the specified SSO connector, e.g. `sso:123456`)
31
31
  */
32
32
  ExtraParamsKey["DirectSignIn"] = "direct_sign_in";
33
+ /**
34
+ * Override the default sign-in experience configuration with the settings from the specified
35
+ * organization ID.
36
+ */
37
+ ExtraParamsKey["OrganizationId"] = "organization_id";
33
38
  })(ExtraParamsKey || (ExtraParamsKey = {}));
34
39
  /** @deprecated Use {@link FirstScreen} instead. */
35
40
  export var InteractionMode;
@@ -47,5 +52,6 @@ export const extraParamsObjectGuard = z
47
52
  [ExtraParamsKey.InteractionMode]: z.nativeEnum(InteractionMode),
48
53
  [ExtraParamsKey.FirstScreen]: z.nativeEnum(FirstScreen),
49
54
  [ExtraParamsKey.DirectSignIn]: z.string(),
55
+ [ExtraParamsKey.OrganizationId]: z.string(),
50
56
  })
51
57
  .partial();
@@ -9,3 +9,5 @@
9
9
  * If we use `/default`, the URL will look ugly; thus we keep the old fashion `/console`.
10
10
  */
11
11
  export declare const ossConsolePath = "/console";
12
+ /** The prefix for keys and values that need to be explicitly marked as internal. */
13
+ export declare const internalPrefix = "#internal:";
@@ -9,3 +9,5 @@
9
9
  * If we use `/default`, the URL will look ugly; thus we keep the old fashion `/console`.
10
10
  */
11
11
  export const ossConsolePath = '/console';
12
+ /** The prefix for keys and values that need to be explicitly marked as internal. */
13
+ export const internalPrefix = '#internal:';
@@ -0,0 +1,28 @@
1
+ import { GeneratedSchema } from './../foundations/index.js';
2
+ /**
3
+ * Application secrets for the `client_credentials` grant type and other confidential client use cases. Note that these secrets replace the `secret` column in the `applications` table, while the `secret` column is still used for the internal validation as `oidc-provider` does not support multiple secrets per client.
4
+ *
5
+ * @remarks This is a type for database creation.
6
+ * @see {@link ApplicationSecret} for the original type.
7
+ */
8
+ export type CreateApplicationSecret = {
9
+ tenantId?: string;
10
+ applicationId: string;
11
+ /** The name of the secret. Should be unique within the application. */
12
+ name: string;
13
+ value: string;
14
+ createdAt?: number;
15
+ expiresAt?: number | null;
16
+ };
17
+ /** Application secrets for the `client_credentials` grant type and other confidential client use cases. Note that these secrets replace the `secret` column in the `applications` table, while the `secret` column is still used for the internal validation as `oidc-provider` does not support multiple secrets per client. */
18
+ export type ApplicationSecret = {
19
+ tenantId: string;
20
+ applicationId: string;
21
+ /** The name of the secret. Should be unique within the application. */
22
+ name: string;
23
+ value: string;
24
+ createdAt: number;
25
+ expiresAt: number | null;
26
+ };
27
+ export type ApplicationSecretKeys = 'tenantId' | 'applicationId' | 'name' | 'value' | 'createdAt' | 'expiresAt';
28
+ export declare const ApplicationSecrets: GeneratedSchema<ApplicationSecretKeys, CreateApplicationSecret, ApplicationSecret, 'application_secrets', 'application_secret'>;
@@ -0,0 +1,41 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ const createGuard = z.object({
4
+ tenantId: z.string().max(21).optional(),
5
+ applicationId: z.string().min(1).max(21),
6
+ name: z.string().min(1).max(256),
7
+ value: z.string().min(1).max(64),
8
+ createdAt: z.number().optional(),
9
+ expiresAt: z.number().nullable().optional(),
10
+ });
11
+ const guard = z.object({
12
+ tenantId: z.string().max(21),
13
+ applicationId: z.string().min(1).max(21),
14
+ name: z.string().min(1).max(256),
15
+ value: z.string().min(1).max(64),
16
+ createdAt: z.number(),
17
+ expiresAt: z.number().nullable(),
18
+ });
19
+ export const ApplicationSecrets = Object.freeze({
20
+ table: 'application_secrets',
21
+ tableSingular: 'application_secret',
22
+ fields: {
23
+ tenantId: 'tenant_id',
24
+ applicationId: 'application_id',
25
+ name: 'name',
26
+ value: 'value',
27
+ createdAt: 'created_at',
28
+ expiresAt: 'expires_at',
29
+ },
30
+ fieldKeys: [
31
+ 'tenantId',
32
+ 'applicationId',
33
+ 'name',
34
+ 'value',
35
+ 'createdAt',
36
+ 'expiresAt',
37
+ ],
38
+ createGuard,
39
+ guard,
40
+ updateGuard: guard.partial(),
41
+ });
@@ -1,4 +1,4 @@
1
- import { Branding, GeneratedSchema } from './../foundations/index.js';
1
+ import { PartialColor, Branding, GeneratedSchema } from './../foundations/index.js';
2
2
  /**
3
3
  * Application level sign-in experience configuration.
4
4
  *
@@ -8,6 +8,7 @@ import { Branding, GeneratedSchema } from './../foundations/index.js';
8
8
  export type CreateApplicationSignInExperience = {
9
9
  tenantId?: string;
10
10
  applicationId: string;
11
+ color?: PartialColor;
11
12
  branding?: Branding;
12
13
  termsOfUseUrl?: string | null;
13
14
  privacyPolicyUrl?: string | null;
@@ -17,10 +18,11 @@ export type CreateApplicationSignInExperience = {
17
18
  export type ApplicationSignInExperience = {
18
19
  tenantId: string;
19
20
  applicationId: string;
21
+ color: PartialColor;
20
22
  branding: Branding;
21
23
  termsOfUseUrl: string | null;
22
24
  privacyPolicyUrl: string | null;
23
25
  displayName: string | null;
24
26
  };
25
- export type ApplicationSignInExperienceKeys = 'tenantId' | 'applicationId' | 'branding' | 'termsOfUseUrl' | 'privacyPolicyUrl' | 'displayName';
27
+ export type ApplicationSignInExperienceKeys = 'tenantId' | 'applicationId' | 'color' | 'branding' | 'termsOfUseUrl' | 'privacyPolicyUrl' | 'displayName';
26
28
  export declare const ApplicationSignInExperiences: GeneratedSchema<ApplicationSignInExperienceKeys, CreateApplicationSignInExperience, ApplicationSignInExperience, 'application_sign_in_experiences', 'application_sign_in_experience'>;
@@ -1,9 +1,10 @@
1
1
  // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
2
  import { z } from 'zod';
3
- import { brandingGuard } from './../foundations/index.js';
3
+ import { partialColorGuard, brandingGuard } from './../foundations/index.js';
4
4
  const createGuard = z.object({
5
5
  tenantId: z.string().max(21).optional(),
6
6
  applicationId: z.string().min(1).max(21),
7
+ color: partialColorGuard.optional(),
7
8
  branding: brandingGuard.optional(),
8
9
  termsOfUseUrl: z.string().max(2048).nullable().optional(),
9
10
  privacyPolicyUrl: z.string().max(2048).nullable().optional(),
@@ -12,6 +13,7 @@ const createGuard = z.object({
12
13
  const guard = z.object({
13
14
  tenantId: z.string().max(21),
14
15
  applicationId: z.string().min(1).max(21),
16
+ color: partialColorGuard,
15
17
  branding: brandingGuard,
16
18
  termsOfUseUrl: z.string().max(2048).nullable(),
17
19
  privacyPolicyUrl: z.string().max(2048).nullable(),
@@ -23,6 +25,7 @@ export const ApplicationSignInExperiences = Object.freeze({
23
25
  fields: {
24
26
  tenantId: 'tenant_id',
25
27
  applicationId: 'application_id',
28
+ color: 'color',
26
29
  branding: 'branding',
27
30
  termsOfUseUrl: 'terms_of_use_url',
28
31
  privacyPolicyUrl: 'privacy_policy_url',
@@ -31,6 +34,7 @@ export const ApplicationSignInExperiences = Object.freeze({
31
34
  fieldKeys: [
32
35
  'tenantId',
33
36
  'applicationId',
37
+ 'color',
34
38
  'branding',
35
39
  'termsOfUseUrl',
36
40
  'privacyPolicyUrl',
@@ -1,4 +1,4 @@
1
- import { OidcClientMetadata, CustomClientMetadata, ProtectedAppMetadata, GeneratedSchema } from './../foundations/index.js';
1
+ import { OidcClientMetadata, CustomClientMetadata, ProtectedAppMetadata, JsonObject, GeneratedSchema } from './../foundations/index.js';
2
2
  import { ApplicationType } from './custom-types.js';
3
3
  /**
4
4
  *
@@ -9,12 +9,14 @@ export type CreateApplication = {
9
9
  tenantId?: string;
10
10
  id: string;
11
11
  name: string;
12
+ /** @deprecated The internal client secret. Note it is only used for internal validation, and the actual secret should be stored in the `application_secrets` table. You should NOT use it unless you are sure what you are doing. */
12
13
  secret: string;
13
14
  description?: string | null;
14
15
  type: ApplicationType;
15
16
  oidcClientMetadata: OidcClientMetadata;
16
17
  customClientMetadata?: CustomClientMetadata;
17
18
  protectedAppMetadata?: ProtectedAppMetadata | null;
19
+ customData?: JsonObject;
18
20
  isThirdParty?: boolean;
19
21
  createdAt?: number;
20
22
  };
@@ -22,14 +24,16 @@ export type Application = {
22
24
  tenantId: string;
23
25
  id: string;
24
26
  name: string;
27
+ /** @deprecated The internal client secret. Note it is only used for internal validation, and the actual secret should be stored in the `application_secrets` table. You should NOT use it unless you are sure what you are doing. */
25
28
  secret: string;
26
29
  description: string | null;
27
30
  type: ApplicationType;
28
31
  oidcClientMetadata: OidcClientMetadata;
29
32
  customClientMetadata: CustomClientMetadata;
30
33
  protectedAppMetadata: ProtectedAppMetadata | null;
34
+ customData: JsonObject;
31
35
  isThirdParty: boolean;
32
36
  createdAt: number;
33
37
  };
34
- export type ApplicationKeys = 'tenantId' | 'id' | 'name' | 'secret' | 'description' | 'type' | 'oidcClientMetadata' | 'customClientMetadata' | 'protectedAppMetadata' | 'isThirdParty' | 'createdAt';
38
+ export type ApplicationKeys = 'tenantId' | 'id' | 'name' | 'secret' | 'description' | 'type' | 'oidcClientMetadata' | 'customClientMetadata' | 'protectedAppMetadata' | 'customData' | 'isThirdParty' | 'createdAt';
35
39
  export declare const Applications: GeneratedSchema<ApplicationKeys, CreateApplication, Application, 'applications', 'application'>;
@@ -1,6 +1,6 @@
1
1
  // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
2
  import { z } from 'zod';
3
- import { oidcClientMetadataGuard, customClientMetadataGuard, protectedAppMetadataGuard } from './../foundations/index.js';
3
+ import { oidcClientMetadataGuard, customClientMetadataGuard, protectedAppMetadataGuard, jsonObjectGuard } from './../foundations/index.js';
4
4
  import { ApplicationType } from './custom-types.js';
5
5
  const createGuard = z.object({
6
6
  tenantId: z.string().max(21).optional(),
@@ -12,6 +12,7 @@ const createGuard = z.object({
12
12
  oidcClientMetadata: oidcClientMetadataGuard,
13
13
  customClientMetadata: customClientMetadataGuard.optional(),
14
14
  protectedAppMetadata: protectedAppMetadataGuard.nullable().optional(),
15
+ customData: jsonObjectGuard.optional(),
15
16
  isThirdParty: z.boolean().optional(),
16
17
  createdAt: z.number().optional(),
17
18
  });
@@ -25,6 +26,7 @@ const guard = z.object({
25
26
  oidcClientMetadata: oidcClientMetadataGuard,
26
27
  customClientMetadata: customClientMetadataGuard,
27
28
  protectedAppMetadata: protectedAppMetadataGuard.nullable(),
29
+ customData: jsonObjectGuard,
28
30
  isThirdParty: z.boolean(),
29
31
  createdAt: z.number(),
30
32
  });
@@ -41,6 +43,7 @@ export const Applications = Object.freeze({
41
43
  oidcClientMetadata: 'oidc_client_metadata',
42
44
  customClientMetadata: 'custom_client_metadata',
43
45
  protectedAppMetadata: 'protected_app_metadata',
46
+ customData: 'custom_data',
44
47
  isThirdParty: 'is_third_party',
45
48
  createdAt: 'created_at',
46
49
  },
@@ -54,6 +57,7 @@ export const Applications = Object.freeze({
54
57
  'oidcClientMetadata',
55
58
  'customClientMetadata',
56
59
  'protectedAppMetadata',
60
+ 'customData',
57
61
  'isThirdParty',
58
62
  'createdAt',
59
63
  ],
@@ -37,6 +37,8 @@ export declare enum AgreeToTermsPolicy {
37
37
  }
38
38
  export declare enum UsersPasswordEncryptionMethod {
39
39
  Argon2i = "Argon2i",
40
+ Argon2id = "Argon2id",
41
+ Argon2d = "Argon2d",
40
42
  SHA1 = "SHA1",
41
43
  SHA256 = "SHA256",
42
44
  MD5 = "MD5",
@@ -46,6 +46,8 @@ export var AgreeToTermsPolicy;
46
46
  export var UsersPasswordEncryptionMethod;
47
47
  (function (UsersPasswordEncryptionMethod) {
48
48
  UsersPasswordEncryptionMethod["Argon2i"] = "Argon2i";
49
+ UsersPasswordEncryptionMethod["Argon2id"] = "Argon2id";
50
+ UsersPasswordEncryptionMethod["Argon2d"] = "Argon2d";
49
51
  UsersPasswordEncryptionMethod["SHA1"] = "SHA1";
50
52
  UsersPasswordEncryptionMethod["SHA256"] = "SHA256";
51
53
  UsersPasswordEncryptionMethod["MD5"] = "MD5";