@logto/schemas 1.14.0 → 1.16.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 (357) hide show
  1. package/alterations/1.0.0-1677208902-update-admin-console-config.ts +2 -2
  2. package/alterations/1.0.0-1677765137-seed-for-admin-tenant.ts +2 -2
  3. package/alterations/1.0.0-1677907982-allow-admin-create-multiple-tenants.ts +1 -1
  4. package/alterations/1.0.0-1678157950-privacy-policy-url.ts +1 -1
  5. package/alterations/1.0.0-1678199795-add-verification-status-table.ts +2 -2
  6. package/alterations/1.0.0-1678259693-remove-branding-style-config.ts +2 -2
  7. package/alterations/1.0.0-1678269972-use-restrictive-policies.ts +2 -2
  8. package/alterations/1.0.0-1678284778-restrict-internal-roles.ts +1 -1
  9. package/alterations/1.0.0-1678425761-m2m-app-for-tenants.ts +1 -1
  10. package/alterations/1.0.0-1678450233-support-custom-content.ts +1 -1
  11. package/alterations/1.0.0-1678716747-service-logs.ts +2 -2
  12. package/alterations/1.0.0-1678928481-remove-deprecated-logto-config-item.ts +2 -2
  13. package/alterations/1.0.0-1678953179-update-get-started-task-config.ts +2 -2
  14. package/alterations/1.0.0-1679209413-drop-connector-database-storage.ts +1 -1
  15. package/alterations/1.0.0_beta.10-1-logto-config.ts +1 -1
  16. package/alterations/1.0.0_beta.10-1663923211-machine-to-machine-app.ts +1 -1
  17. package/alterations/1.0.0_beta.10-1664265197-custom-phrases.ts +1 -1
  18. package/alterations/1.0.0_beta.11-1664347703-rename-language-key-to-tag.ts +1 -1
  19. package/alterations/1.0.0_beta.11-1664356000-add-created-at-column-to-users.ts +1 -1
  20. package/alterations/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.ts +1 -1
  21. package/alterations/1.0.0_beta.14-1665300135-sign-in-sign-up.ts +1 -1
  22. package/alterations/1.0.0_beta.14-1667283640-remove-forgot-password.ts +1 -1
  23. package/alterations/1.0.0_beta.14-1667292082-remove-sign-in-method.ts +1 -1
  24. package/alterations/1.0.0_beta.14-1667374974-user-suspend.ts +1 -1
  25. package/alterations/1.0.0_beta.14-1667900481-add-passcode-type-continue.ts +1 -1
  26. package/alterations/1.0.0_beta.18-1668666590-support-multiple-connector-instances.ts +1 -1
  27. package/alterations/1.0.0_beta.18-1668666600-remove-connector-enabled.ts +1 -1
  28. package/alterations/1.0.0_beta.18-1669091623-roles-and-scopes.ts +1 -1
  29. package/alterations/1.0.0_beta.18-1669702299-sign-up.ts +2 -2
  30. package/alterations/1.0.0_beta.18-1671039448-add-user-name-index.ts +1 -1
  31. package/alterations/1.0.0_beta.18-1671080370-terms-of-use.ts +2 -2
  32. package/alterations/1.0.0_beta.18-1671336831-refactor-log-types.ts +1 -1
  33. package/alterations/1.0.0_beta.18-1671509870-hooks.ts +1 -1
  34. package/alterations/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.ts +1 -1
  35. package/alterations/1.0.0_rc.0-1672815959-user-roles.ts +1 -1
  36. package/alterations/1.0.0_rc.0-1672820345-scope-resource-id.ts +1 -1
  37. package/alterations/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.ts +1 -1
  38. package/alterations/1.0.0_rc.0-1673001922-support-generic-passcode.ts +1 -1
  39. package/alterations/1.0.0_rc.0-1673165463-scope-name-index.ts +1 -1
  40. package/alterations/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.ts +1 -1
  41. package/alterations/1.0.0_rc.0-1673465463-ac-scope-name.ts +1 -1
  42. package/alterations/1.0.0_rc.0-1673853579-ac-default-scope.ts +1 -1
  43. package/alterations/1.0.0_rc.0-1673863835-ac-scope-role.ts +1 -1
  44. package/alterations/1.0.0_rc.0-1673882867-fix-alteration-issues.ts +1 -1
  45. package/alterations/1.0.0_rc.0-1673940577-scope-description-not-null.ts +1 -1
  46. package/alterations/1.0.0_rc.0-1673941897-application-roles.ts +1 -1
  47. package/alterations/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.ts +1 -1
  48. package/alterations/1.0.0_rc.0-1674032095.2-oidc-model-pkey.ts +1 -1
  49. package/alterations/1.0.0_rc.0-1674032095.3-tenant-table.ts +1 -1
  50. package/alterations/1.0.0_rc.0-1674032095.4-add-id-column.ts +1 -1
  51. package/alterations/1.0.0_rc.0-1674032095.5-multi-tenancy.ts +6 -7
  52. package/alterations/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.ts +1 -1
  53. package/alterations/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.ts +1 -1
  54. package/alterations/1.0.0_rc.0-1675316731-update-seed-data.ts +1 -1
  55. package/alterations/1.0.0_rc.1-1675788753-multi-tenancy-rls.ts +3 -4
  56. package/alterations/1.0.0_rc.1-1676115897-add-admin-tenant.ts +3 -4
  57. package/alterations/1.0.0_rc.1-1676185899-fix-logs-index.ts +1 -1
  58. package/alterations/1.0.0_rc.1-1676190092-migrate-admin-data.ts +2 -2
  59. package/alterations/1.0.0_rc.1-1676823841-update-sie-primary-key.ts +1 -1
  60. package/alterations/1.0.0_rc.1-1676874936-support-custom-css.ts +1 -1
  61. package/alterations/1.0.0_rc.1-1676886855-connector-database-read-write.ts +1 -1
  62. package/alterations/1.0.0_rc.1-1676906977-remove-demo-app.ts +1 -1
  63. package/alterations/1.0.0_rc.1-1676956206-move-console-sie-to-database.ts +1 -1
  64. package/alterations/1.0.0_rc.1-1677059985-move-console-application-to-database.ts +1 -1
  65. package/alterations/1.10.1-1695647183-update-private-key-type.ts +2 -2
  66. package/alterations/1.10.1-1696657546-organization-tables.ts +1 -1
  67. package/alterations/1.10.1-1697683802-add-sso-connectors-table.ts +1 -1
  68. package/alterations/1.10.1-1698646271-add-organization-created-flag.ts +2 -2
  69. package/alterations/1.10.1-1698820410-add-user-sso-identities-table.ts +1 -1
  70. package/alterations/1.10.1-1698910485-user-logto-data.ts +1 -1
  71. package/alterations/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.ts +1 -1
  72. package/alterations/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.ts +1 -1
  73. package/alterations/1.12.0-1700031616-update-org-role-foreign-keys.ts +1 -1
  74. package/alterations/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.ts +1 -1
  75. package/alterations/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.ts +1 -1
  76. package/alterations/1.13.0-1702274830-add-new-third-party-column-to-applications-table.ts +1 -1
  77. package/alterations/1.13.0-1702372401-add-application-permissions-tables.ts +1 -1
  78. package/alterations/1.13.0-1702544178-sync-tenant-orgs.ts +1 -1
  79. package/alterations/1.13.0-1702871078-protected-application-type.ts +1 -1
  80. package/alterations/1.13.0-1702877515-protected-app-configs.ts +1 -1
  81. package/alterations/1.13.0-1702978120-application-sign-in-experience-table.ts +1 -1
  82. package/alterations/1.13.0-1703229996-daily-token-usage.ts +1 -1
  83. package/alterations/1.13.0-1703230000-update-tenant-roles.ts +1 -1
  84. package/alterations/1.13.0-1704692973-remove-legacy-resources.ts +1 -1
  85. package/alterations/1.13.0-1704934999-add-magic-links-table.ts +1 -1
  86. package/alterations/1.13.0-1704935001-add-organization-invitation-tables.ts +1 -1
  87. package/alterations/1.13.0-1705288654-add-application-user-consent-organizations-table.ts +1 -1
  88. package/alterations/1.13.0-1705991158-update-invitation-indices.ts +1 -1
  89. package/alterations/1.13.0-1706449174-update-organization-invitation-column.ts +1 -1
  90. package/alterations/1.13.0-1706510290-protected-app-host-index.ts +1 -1
  91. package/alterations/1.13.0-1706512952-restore-get-started-page.ts +1 -1
  92. package/alterations/1.13.0-1706528755-remove-magic-links.ts +1 -1
  93. package/alterations/1.13.0-1706585206-protected-app-custom-domain-unique.ts +1 -1
  94. package/alterations/1.13.1-1707360939-grant-is-suspended-read-permission.ts +1 -1
  95. package/alterations/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.ts +1 -1
  96. package/alterations/1.14.0-1709190131-enhance-dau-data-accuracy.ts +1 -1
  97. package/alterations/1.15.0-1709521416-user-password-encrypt-method.ts +36 -0
  98. package/alterations/1.15.0-1709528944-regenerate-dau-data.ts +49 -0
  99. package/alterations/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.ts +92 -0
  100. package/alterations/1.15.0-1710408335-make-resource-scopes-description-nullable.ts +22 -0
  101. package/alterations/1.15.0-1710859622-add-oidc-standard-claim-properties.ts +38 -0
  102. package/alterations/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.ts +20 -0
  103. package/alterations/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.ts +25 -0
  104. package/alterations/1.15.0-1711955211-organization-resource-scope.ts +39 -0
  105. package/alterations/1.15.0-1712041436-rename-organization-member-role-to-collaborator.ts +28 -0
  106. package/alterations/1.15.0-1712545011-fix-organization-resource-scope.ts +43 -0
  107. package/alterations/1.15.0-1712559358-fix-down-organization-resource-scope.ts +46 -0
  108. package/alterations/1.16.0-1712912361-delete-jwt-customier-with-empty-script.ts +23 -0
  109. package/alterations/1.16.0-1713942039-add-organization-custom-data.ts +25 -0
  110. package/alterations/1.16.0-1714270244-application-org-resource-scope.ts +32 -0
  111. package/alterations/1.2.0-1681267285-fix-get-started-passwordless-status.ts +1 -1
  112. package/alterations/1.3.0-1683292832-update-hooks.ts +1 -1
  113. package/alterations/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.ts +1 -1
  114. package/alterations/1.5.0-1684739802-create-hook-id-index-for-logs.ts +1 -1
  115. package/alterations/1.5.0-1684822341-init-domains.ts +2 -2
  116. package/alterations/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.ts +1 -1
  117. package/alterations/1.5.0-1685285719-support-default-resource.ts +1 -1
  118. package/alterations/1.6.0-1685691718-domain-unique.ts +1 -1
  119. package/alterations/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.ts +1 -1
  120. package/alterations/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.ts +1 -1
  121. package/alterations/1.7.0-1688627407-daily-active-users.ts +1 -1
  122. package/alterations/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.ts +1 -1
  123. package/alterations/1.8.0-1692194751-add-affiliate-scopes.ts +1 -1
  124. package/alterations/1.9.0-1693554904-add-possword-policy.ts +1 -1
  125. package/alterations/1.9.0-1694399696-add-type-col-to-roles-table.ts +1 -1
  126. package/alterations/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.ts +1 -1
  127. package/alterations/1.9.0-1694484927-remove-deprecated-challenge-flag.ts +2 -2
  128. package/alterations/1.9.0-1694487524-sie-mfa.ts +1 -1
  129. package/alterations/1.9.0-1694509714-keep-existing-password-policy.ts +1 -1
  130. package/alterations/1.9.0-1694746763-user-verifications.ts +1 -1
  131. package/alterations/1.9.2-1694854226-init-sentinel.ts +1 -1
  132. package/alterations/1.9.2-1695198741-remove-m2m-app-admin-access-switch.ts +1 -1
  133. package/alterations/utils/1704934999-tables.ts +1 -1
  134. package/alterations-js/1.0.0-1677208902-update-admin-console-config.js +1 -1
  135. package/alterations-js/1.0.0-1677765137-seed-for-admin-tenant.js +1 -1
  136. package/alterations-js/1.0.0-1677907982-allow-admin-create-multiple-tenants.js +1 -1
  137. package/alterations-js/1.0.0-1678157950-privacy-policy-url.js +1 -1
  138. package/alterations-js/1.0.0-1678199795-add-verification-status-table.js +1 -1
  139. package/alterations-js/1.0.0-1678259693-remove-branding-style-config.js +1 -1
  140. package/alterations-js/1.0.0-1678269972-use-restrictive-policies.js +1 -1
  141. package/alterations-js/1.0.0-1678284778-restrict-internal-roles.js +1 -1
  142. package/alterations-js/1.0.0-1678425761-m2m-app-for-tenants.js +1 -1
  143. package/alterations-js/1.0.0-1678450233-support-custom-content.js +1 -1
  144. package/alterations-js/1.0.0-1678716747-service-logs.js +1 -1
  145. package/alterations-js/1.0.0-1678928481-remove-deprecated-logto-config-item.js +1 -1
  146. package/alterations-js/1.0.0-1678953179-update-get-started-task-config.js +1 -1
  147. package/alterations-js/1.0.0-1679209413-drop-connector-database-storage.js +1 -1
  148. package/alterations-js/1.0.0_beta.10-1-logto-config.js +1 -1
  149. package/alterations-js/1.0.0_beta.10-1663923211-machine-to-machine-app.js +1 -1
  150. package/alterations-js/1.0.0_beta.10-1664265197-custom-phrases.js +1 -1
  151. package/alterations-js/1.0.0_beta.11-1664347703-rename-language-key-to-tag.js +1 -1
  152. package/alterations-js/1.0.0_beta.11-1664356000-add-created-at-column-to-users.js +1 -1
  153. package/alterations-js/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.js +1 -1
  154. package/alterations-js/1.0.0_beta.14-1665300135-sign-in-sign-up.js +1 -1
  155. package/alterations-js/1.0.0_beta.14-1667283640-remove-forgot-password.js +1 -1
  156. package/alterations-js/1.0.0_beta.14-1667292082-remove-sign-in-method.js +1 -1
  157. package/alterations-js/1.0.0_beta.14-1667374974-user-suspend.js +1 -1
  158. package/alterations-js/1.0.0_beta.14-1667900481-add-passcode-type-continue.js +1 -1
  159. package/alterations-js/1.0.0_beta.18-1668666590-support-multiple-connector-instances.js +1 -1
  160. package/alterations-js/1.0.0_beta.18-1668666600-remove-connector-enabled.js +1 -1
  161. package/alterations-js/1.0.0_beta.18-1669091623-roles-and-scopes.js +1 -1
  162. package/alterations-js/1.0.0_beta.18-1669702299-sign-up.js +1 -1
  163. package/alterations-js/1.0.0_beta.18-1671039448-add-user-name-index.js +1 -1
  164. package/alterations-js/1.0.0_beta.18-1671080370-terms-of-use.js +1 -1
  165. package/alterations-js/1.0.0_beta.18-1671336831-refactor-log-types.js +1 -1
  166. package/alterations-js/1.0.0_beta.18-1671509870-hooks.js +1 -1
  167. package/alterations-js/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.js +1 -1
  168. package/alterations-js/1.0.0_rc.0-1672815959-user-roles.js +1 -1
  169. package/alterations-js/1.0.0_rc.0-1672820345-scope-resource-id.js +1 -1
  170. package/alterations-js/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.js +1 -1
  171. package/alterations-js/1.0.0_rc.0-1673001922-support-generic-passcode.js +1 -1
  172. package/alterations-js/1.0.0_rc.0-1673165463-scope-name-index.js +1 -1
  173. package/alterations-js/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.js +1 -1
  174. package/alterations-js/1.0.0_rc.0-1673465463-ac-scope-name.js +1 -1
  175. package/alterations-js/1.0.0_rc.0-1673853579-ac-default-scope.js +1 -1
  176. package/alterations-js/1.0.0_rc.0-1673863835-ac-scope-role.js +1 -1
  177. package/alterations-js/1.0.0_rc.0-1673882867-fix-alteration-issues.js +1 -1
  178. package/alterations-js/1.0.0_rc.0-1673940577-scope-description-not-null.js +1 -1
  179. package/alterations-js/1.0.0_rc.0-1673941897-application-roles.js +1 -1
  180. package/alterations-js/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.js +1 -1
  181. package/alterations-js/1.0.0_rc.0-1674032095.2-oidc-model-pkey.js +1 -1
  182. package/alterations-js/1.0.0_rc.0-1674032095.3-tenant-table.js +1 -1
  183. package/alterations-js/1.0.0_rc.0-1674032095.4-add-id-column.js +1 -1
  184. package/alterations-js/1.0.0_rc.0-1674032095.5-multi-tenancy.js +6 -7
  185. package/alterations-js/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.js +1 -1
  186. package/alterations-js/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.js +1 -1
  187. package/alterations-js/1.0.0_rc.0-1675316731-update-seed-data.js +1 -1
  188. package/alterations-js/1.0.0_rc.1-1675788753-multi-tenancy-rls.js +2 -3
  189. package/alterations-js/1.0.0_rc.1-1676115897-add-admin-tenant.js +2 -3
  190. package/alterations-js/1.0.0_rc.1-1676185899-fix-logs-index.js +1 -1
  191. package/alterations-js/1.0.0_rc.1-1676190092-migrate-admin-data.js +1 -1
  192. package/alterations-js/1.0.0_rc.1-1676823841-update-sie-primary-key.js +1 -1
  193. package/alterations-js/1.0.0_rc.1-1676874936-support-custom-css.js +1 -1
  194. package/alterations-js/1.0.0_rc.1-1676886855-connector-database-read-write.js +1 -1
  195. package/alterations-js/1.0.0_rc.1-1676906977-remove-demo-app.js +1 -1
  196. package/alterations-js/1.0.0_rc.1-1676956206-move-console-sie-to-database.js +1 -1
  197. package/alterations-js/1.0.0_rc.1-1677059985-move-console-application-to-database.js +1 -1
  198. package/alterations-js/1.10.1-1695647183-update-private-key-type.js +1 -1
  199. package/alterations-js/1.10.1-1696657546-organization-tables.js +1 -1
  200. package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.js +1 -1
  201. package/alterations-js/1.10.1-1698646271-add-organization-created-flag.js +1 -1
  202. package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.js +1 -1
  203. package/alterations-js/1.10.1-1698910485-user-logto-data.js +1 -1
  204. package/alterations-js/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.js +1 -1
  205. package/alterations-js/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.js +1 -1
  206. package/alterations-js/1.12.0-1700031616-update-org-role-foreign-keys.js +1 -1
  207. package/alterations-js/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.js +1 -1
  208. package/alterations-js/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.js +1 -1
  209. package/alterations-js/1.13.0-1702274830-add-new-third-party-column-to-applications-table.js +1 -1
  210. package/alterations-js/1.13.0-1702372401-add-application-permissions-tables.js +1 -1
  211. package/alterations-js/1.13.0-1702544178-sync-tenant-orgs.js +1 -1
  212. package/alterations-js/1.13.0-1702871078-protected-application-type.js +1 -1
  213. package/alterations-js/1.13.0-1702877515-protected-app-configs.js +1 -1
  214. package/alterations-js/1.13.0-1702978120-application-sign-in-experience-table.js +1 -1
  215. package/alterations-js/1.13.0-1703229996-daily-token-usage.js +1 -1
  216. package/alterations-js/1.13.0-1703230000-update-tenant-roles.js +1 -1
  217. package/alterations-js/1.13.0-1704692973-remove-legacy-resources.js +1 -1
  218. package/alterations-js/1.13.0-1704934999-add-magic-links-table.js +1 -1
  219. package/alterations-js/1.13.0-1704935001-add-organization-invitation-tables.js +1 -1
  220. package/alterations-js/1.13.0-1705288654-add-application-user-consent-organizations-table.js +1 -1
  221. package/alterations-js/1.13.0-1705991158-update-invitation-indices.js +1 -1
  222. package/alterations-js/1.13.0-1706449174-update-organization-invitation-column.js +1 -1
  223. package/alterations-js/1.13.0-1706510290-protected-app-host-index.js +1 -1
  224. package/alterations-js/1.13.0-1706512952-restore-get-started-page.js +1 -1
  225. package/alterations-js/1.13.0-1706528755-remove-magic-links.js +1 -1
  226. package/alterations-js/1.13.0-1706585206-protected-app-custom-domain-unique.js +1 -1
  227. package/alterations-js/1.13.1-1707360939-grant-is-suspended-read-permission.js +1 -1
  228. package/alterations-js/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.js +1 -1
  229. package/alterations-js/1.14.0-1709190131-enhance-dau-data-accuracy.js +1 -1
  230. package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.d.ts +3 -0
  231. package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.js +31 -0
  232. package/alterations-js/1.15.0-1709528944-regenerate-dau-data.d.ts +3 -0
  233. package/alterations-js/1.15.0-1709528944-regenerate-dau-data.js +34 -0
  234. package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.d.ts +3 -0
  235. package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.js +52 -0
  236. package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.d.ts +3 -0
  237. package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.js +18 -0
  238. package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.d.ts +3 -0
  239. package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.js +34 -0
  240. package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.d.ts +3 -0
  241. package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.js +16 -0
  242. package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.d.ts +3 -0
  243. package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.js +21 -0
  244. package/alterations-js/1.15.0-1711955211-organization-resource-scope.d.ts +3 -0
  245. package/alterations-js/1.15.0-1711955211-organization-resource-scope.js +32 -0
  246. package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.d.ts +3 -0
  247. package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.js +24 -0
  248. package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.d.ts +8 -0
  249. package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.js +35 -0
  250. package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.d.ts +8 -0
  251. package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.js +38 -0
  252. package/alterations-js/1.16.0-1712912361-delete-jwt-customier-with-empty-script.d.ts +3 -0
  253. package/alterations-js/1.16.0-1712912361-delete-jwt-customier-with-empty-script.js +17 -0
  254. package/alterations-js/1.16.0-1713942039-add-organization-custom-data.d.ts +4 -0
  255. package/alterations-js/1.16.0-1713942039-add-organization-custom-data.js +17 -0
  256. package/alterations-js/1.16.0-1714270244-application-org-resource-scope.d.ts +3 -0
  257. package/alterations-js/1.16.0-1714270244-application-org-resource-scope.js +27 -0
  258. package/alterations-js/1.2.0-1681267285-fix-get-started-passwordless-status.js +1 -1
  259. package/alterations-js/1.3.0-1683292832-update-hooks.js +1 -1
  260. package/alterations-js/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.js +1 -1
  261. package/alterations-js/1.5.0-1684739802-create-hook-id-index-for-logs.js +1 -1
  262. package/alterations-js/1.5.0-1684822341-init-domains.js +1 -1
  263. package/alterations-js/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.js +1 -1
  264. package/alterations-js/1.5.0-1685285719-support-default-resource.js +1 -1
  265. package/alterations-js/1.6.0-1685691718-domain-unique.js +1 -1
  266. package/alterations-js/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.js +1 -1
  267. package/alterations-js/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.js +1 -1
  268. package/alterations-js/1.7.0-1688627407-daily-active-users.js +1 -1
  269. package/alterations-js/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.js +1 -1
  270. package/alterations-js/1.8.0-1692194751-add-affiliate-scopes.js +1 -1
  271. package/alterations-js/1.9.0-1693554904-add-possword-policy.js +1 -1
  272. package/alterations-js/1.9.0-1694399696-add-type-col-to-roles-table.js +1 -1
  273. package/alterations-js/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.js +1 -1
  274. package/alterations-js/1.9.0-1694484927-remove-deprecated-challenge-flag.js +1 -1
  275. package/alterations-js/1.9.0-1694487524-sie-mfa.js +1 -1
  276. package/alterations-js/1.9.0-1694509714-keep-existing-password-policy.js +1 -1
  277. package/alterations-js/1.9.0-1694746763-user-verifications.js +1 -1
  278. package/alterations-js/1.9.2-1694854226-init-sentinel.js +1 -1
  279. package/alterations-js/1.9.2-1695198741-remove-m2m-app-admin-access-switch.js +1 -1
  280. package/alterations-js/utils/1704934999-tables.d.ts +1 -1
  281. package/alterations-js/utils/1704934999-tables.js +1 -1
  282. package/lib/consts/experience.d.ts +8 -0
  283. package/lib/consts/experience.js +9 -0
  284. package/lib/consts/index.d.ts +1 -0
  285. package/lib/consts/index.js +1 -0
  286. package/lib/consts/oidc.d.ts +48 -0
  287. package/lib/consts/oidc.js +44 -0
  288. package/lib/consts/subscriptions.d.ts +23 -0
  289. package/lib/consts/subscriptions.js +23 -0
  290. package/lib/db-entries/application-user-consent-organization-resource-scope.d.ts +24 -0
  291. package/lib/db-entries/application-user-consent-organization-resource-scope.js +29 -0
  292. package/lib/db-entries/custom-types.d.ts +5 -1
  293. package/lib/db-entries/custom-types.js +4 -0
  294. package/lib/db-entries/index.d.ts +2 -0
  295. package/lib/db-entries/index.js +2 -0
  296. package/lib/db-entries/organization-role-resource-scope-relation.d.ts +20 -0
  297. package/lib/db-entries/organization-role-resource-scope-relation.js +29 -0
  298. package/lib/db-entries/organization.d.ts +6 -2
  299. package/lib/db-entries/organization.js +5 -0
  300. package/lib/db-entries/scope.d.ts +2 -2
  301. package/lib/db-entries/scope.js +2 -2
  302. package/lib/db-entries/user.d.ts +10 -2
  303. package/lib/db-entries/user.js +9 -1
  304. package/lib/foundations/jsonb-types/hooks.d.ts +71 -3
  305. package/lib/foundations/jsonb-types/hooks.js +98 -7
  306. package/lib/foundations/jsonb-types/index.d.ts +1 -5
  307. package/lib/foundations/jsonb-types/index.js +1 -7
  308. package/lib/foundations/jsonb-types/users.d.ts +103 -6
  309. package/lib/foundations/jsonb-types/users.js +26 -1
  310. package/lib/seeds/cloud-api.d.ts +6 -3
  311. package/lib/seeds/cloud-api.js +6 -2
  312. package/lib/types/alteration.d.ts +1 -1
  313. package/lib/types/application.d.ts +88 -7
  314. package/lib/types/application.js +7 -4
  315. package/lib/types/consent.d.ts +307 -38
  316. package/lib/types/consent.js +11 -7
  317. package/lib/types/hook.d.ts +6 -20
  318. package/lib/types/index.d.ts +2 -1
  319. package/lib/types/index.js +2 -1
  320. package/lib/types/log/index.d.ts +4 -1
  321. package/lib/types/log/index.js +1 -0
  322. package/lib/types/log/jwt-customizer.d.ts +8 -0
  323. package/lib/types/log/jwt-customizer.js +7 -0
  324. package/lib/types/logto-config/index.d.ts +1098 -0
  325. package/lib/types/{logto-config.js → logto-config/index.js} +25 -0
  326. package/lib/types/logto-config/jwt-customizer.d.ts +1726 -0
  327. package/lib/types/logto-config/jwt-customizer.js +92 -0
  328. package/lib/types/logto-config/jwt-customizer.test.d.ts +1 -0
  329. package/lib/types/logto-config/jwt-customizer.test.js +78 -0
  330. package/lib/types/logto-config/oidc-provider.d.ts +67 -0
  331. package/lib/types/logto-config/oidc-provider.js +33 -0
  332. package/lib/types/onboarding.d.ts +144 -0
  333. package/lib/types/onboarding.js +75 -0
  334. package/lib/types/organization.d.ts +17 -5
  335. package/lib/types/organization.js +10 -0
  336. package/lib/types/scope.d.ts +3 -3
  337. package/lib/types/service-log.d.ts +2 -1
  338. package/lib/types/service-log.js +1 -0
  339. package/lib/types/sso-connector.d.ts +16 -2
  340. package/lib/types/sso-connector.js +17 -4
  341. package/lib/types/system.d.ts +30 -3
  342. package/lib/types/system.js +16 -0
  343. package/lib/types/tenant-organization.d.ts +10 -6
  344. package/lib/types/tenant-organization.js +19 -9
  345. package/lib/types/user.d.ts +231 -192
  346. package/lib/types/user.js +5 -1
  347. package/lib/utils/domain.test.js +1 -0
  348. package/lib/utils/zod.d.ts +4 -0
  349. package/lib/utils/zod.js +1 -0
  350. package/package.json +17 -19
  351. package/tables/_functions.sql +8 -0
  352. package/tables/application_user_consent_organization_resource_scopes.sql +18 -0
  353. package/tables/organization_role_resource_scope_relations.sql +12 -0
  354. package/tables/organizations.sql +2 -0
  355. package/tables/scopes.sql +1 -1
  356. package/tables/users.sql +10 -1
  357. package/lib/types/logto-config.d.ts +0 -154
@@ -0,0 +1,1098 @@
1
+ import type { ZodType } from 'zod';
2
+ import { z } from 'zod';
3
+ import { type AccessTokenJwtCustomizer, type ClientCredentialsJwtCustomizer } from './jwt-customizer.js';
4
+ export * from './oidc-provider.js';
5
+ export * from './jwt-customizer.js';
6
+ /**
7
+ * Logto OIDC signing key types, used mainly in REST API routes.
8
+ */
9
+ export declare enum LogtoOidcConfigKeyType {
10
+ PrivateKeys = "private-keys",
11
+ CookieKeys = "cookie-keys"
12
+ }
13
+ /**
14
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
15
+ */
16
+ export declare enum LogtoOidcConfigKey {
17
+ PrivateKeys = "oidc.privateKeys",
18
+ CookieKeys = "oidc.cookieKeys"
19
+ }
20
+ /**
21
+ * Logto supported signing key algorithms for OIDC private keys that sign JWT tokens.
22
+ */
23
+ export declare enum SupportedSigningKeyAlgorithm {
24
+ RSA = "RSA",
25
+ EC = "EC"
26
+ }
27
+ export declare const oidcConfigKeyGuard: z.ZodObject<{
28
+ id: z.ZodString;
29
+ value: z.ZodString;
30
+ createdAt: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ value: string;
33
+ id: string;
34
+ createdAt: number;
35
+ }, {
36
+ value: string;
37
+ id: string;
38
+ createdAt: number;
39
+ }>;
40
+ export type OidcConfigKey = z.infer<typeof oidcConfigKeyGuard>;
41
+ export type LogtoOidcConfigType = {
42
+ [LogtoOidcConfigKey.PrivateKeys]: OidcConfigKey[];
43
+ [LogtoOidcConfigKey.CookieKeys]: OidcConfigKey[];
44
+ };
45
+ export declare const logtoOidcConfigGuard: Readonly<{
46
+ [key in LogtoOidcConfigKey]: ZodType<LogtoOidcConfigType[key]>;
47
+ }>;
48
+ export declare enum LogtoJwtTokenKey {
49
+ AccessToken = "jwt.accessToken",
50
+ ClientCredentials = "jwt.clientCredentials"
51
+ }
52
+ export type JwtCustomizerType = {
53
+ [LogtoJwtTokenKey.AccessToken]: AccessTokenJwtCustomizer;
54
+ [LogtoJwtTokenKey.ClientCredentials]: ClientCredentialsJwtCustomizer;
55
+ };
56
+ export declare const jwtCustomizerConfigGuard: Readonly<{
57
+ [key in LogtoJwtTokenKey]: ZodType<JwtCustomizerType[key]>;
58
+ }>;
59
+ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [z.ZodObject<{
60
+ key: z.ZodLiteral<LogtoJwtTokenKey.AccessToken>;
61
+ value: z.ZodObject<{
62
+ script: z.ZodString;
63
+ environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
64
+ tokenSample: z.ZodOptional<z.ZodObject<{
65
+ accountId: z.ZodOptional<z.ZodString>;
66
+ expiresWithSession: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
67
+ grantId: z.ZodOptional<z.ZodString>;
68
+ gty: z.ZodOptional<z.ZodString>;
69
+ sessionUid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
70
+ sid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
71
+ kind: z.ZodOptional<z.ZodLiteral<"AccessToken">>;
72
+ jti: z.ZodOptional<z.ZodString>;
73
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
74
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
75
+ clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
76
+ }, "strict", z.ZodTypeAny, {
77
+ accountId?: string | undefined;
78
+ expiresWithSession?: boolean | undefined;
79
+ grantId?: string | undefined;
80
+ gty?: string | undefined;
81
+ sessionUid?: string | undefined;
82
+ sid?: string | undefined;
83
+ kind?: "AccessToken" | undefined;
84
+ jti?: string | undefined;
85
+ aud?: string | string[] | undefined;
86
+ scope?: string | undefined;
87
+ clientId?: string | undefined;
88
+ }, {
89
+ accountId?: string | undefined;
90
+ expiresWithSession?: boolean | undefined;
91
+ grantId?: string | undefined;
92
+ gty?: string | undefined;
93
+ sessionUid?: string | undefined;
94
+ sid?: string | undefined;
95
+ kind?: "AccessToken" | undefined;
96
+ jti?: string | undefined;
97
+ aud?: string | string[] | undefined;
98
+ scope?: string | undefined;
99
+ clientId?: string | undefined;
100
+ }>>;
101
+ contextSample: z.ZodOptional<z.ZodObject<{
102
+ user: z.ZodObject<{
103
+ name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
104
+ id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
105
+ applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
106
+ username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
107
+ profile: z.ZodOptional<ZodType<Partial<{
108
+ familyName: string;
109
+ givenName: string;
110
+ middleName: string;
111
+ nickname: string;
112
+ preferredUsername: string;
113
+ profile: string;
114
+ website: string;
115
+ gender: string;
116
+ birthdate: string;
117
+ zoneinfo: string;
118
+ locale: string;
119
+ address: Partial<{
120
+ formatted: string;
121
+ streetAddress: string;
122
+ locality: string;
123
+ /**
124
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
125
+ */
126
+ region: string;
127
+ postalCode: string;
128
+ country: string;
129
+ }>;
130
+ }>, z.ZodTypeDef, Partial<{
131
+ familyName: string;
132
+ givenName: string;
133
+ middleName: string;
134
+ nickname: string;
135
+ preferredUsername: string;
136
+ profile: string;
137
+ website: string;
138
+ gender: string;
139
+ birthdate: string;
140
+ zoneinfo: string;
141
+ locale: string;
142
+ address: Partial<{
143
+ formatted: string;
144
+ streetAddress: string;
145
+ locality: string;
146
+ /**
147
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
148
+ */
149
+ region: string;
150
+ postalCode: string;
151
+ country: string;
152
+ }>;
153
+ }>>>;
154
+ createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
155
+ updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
156
+ customData: z.ZodOptional<ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>;
157
+ primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
158
+ primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
159
+ avatar: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
160
+ identities: z.ZodOptional<ZodType<Record<string, {
161
+ userId: string;
162
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
163
+ }>, z.ZodTypeDef, Record<string, {
164
+ userId: string;
165
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
166
+ }>>>;
167
+ isSuspended: z.ZodOptional<ZodType<boolean, z.ZodTypeDef, boolean>>;
168
+ lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
169
+ ssoIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
170
+ tenantId: ZodType<string, z.ZodTypeDef, string>;
171
+ id: ZodType<string, z.ZodTypeDef, string>;
172
+ userId: ZodType<string, z.ZodTypeDef, string>;
173
+ issuer: ZodType<string, z.ZodTypeDef, string>;
174
+ identityId: ZodType<string, z.ZodTypeDef, string>;
175
+ detail: ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
176
+ createdAt: ZodType<number, z.ZodTypeDef, number>;
177
+ ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
178
+ }, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
179
+ issuer: string;
180
+ identityId: string;
181
+ detail: import("@withtyped/server").JsonObject;
182
+ }, {
183
+ issuer: string;
184
+ identityId: string;
185
+ detail: import("@withtyped/server").JsonObject;
186
+ }>, "many">>;
187
+ mfaVerificationFactors: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../index.js").MfaFactor>, "many">>;
188
+ roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
+ name: ZodType<string, z.ZodTypeDef, string>;
190
+ id: ZodType<string, z.ZodTypeDef, string>;
191
+ description: ZodType<string, z.ZodTypeDef, string>;
192
+ scopes: z.ZodArray<z.ZodObject<Pick<{
193
+ name: ZodType<string, z.ZodTypeDef, string>;
194
+ id: ZodType<string, z.ZodTypeDef, string>;
195
+ tenantId: ZodType<string, z.ZodTypeDef, string>;
196
+ createdAt: ZodType<number, z.ZodTypeDef, number>;
197
+ description: ZodType<string | null, z.ZodTypeDef, string | null>;
198
+ resourceId: ZodType<string, z.ZodTypeDef, string>;
199
+ resource: import("../../index.js").Guard<import("../../index.js").Resource>;
200
+ }, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
201
+ name: string;
202
+ id: string;
203
+ description: string | null;
204
+ resource: import("../../index.js").Resource;
205
+ resourceId: string;
206
+ }, {
207
+ name: string;
208
+ id: string;
209
+ description: string | null;
210
+ resource: import("../../index.js").Resource;
211
+ resourceId: string;
212
+ }>, "many">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ name: string;
215
+ id: string;
216
+ description: string;
217
+ scopes: {
218
+ name: string;
219
+ id: string;
220
+ description: string | null;
221
+ resource: import("../../index.js").Resource;
222
+ resourceId: string;
223
+ }[];
224
+ }, {
225
+ name: string;
226
+ id: string;
227
+ description: string;
228
+ scopes: {
229
+ name: string;
230
+ id: string;
231
+ description: string | null;
232
+ resource: import("../../index.js").Resource;
233
+ resourceId: string;
234
+ }[];
235
+ }>, "many">>;
236
+ organizations: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
237
+ tenantId: ZodType<string, z.ZodTypeDef, string>;
238
+ id: ZodType<string, z.ZodTypeDef, string>;
239
+ name: ZodType<string, z.ZodTypeDef, string>;
240
+ description: ZodType<string | null, z.ZodTypeDef, string | null>;
241
+ customData: ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
242
+ createdAt: ZodType<number, z.ZodTypeDef, number>;
243
+ }, "name" | "id" | "description">, "strip", z.ZodTypeAny, {
244
+ name: string;
245
+ id: string;
246
+ description: string | null;
247
+ }, {
248
+ name: string;
249
+ id: string;
250
+ description: string | null;
251
+ }>, "many">>;
252
+ organizationRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ organizationId: z.ZodString;
254
+ roleId: z.ZodString;
255
+ roleName: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ organizationId: string;
258
+ roleId: string;
259
+ roleName: string;
260
+ }, {
261
+ organizationId: string;
262
+ roleId: string;
263
+ roleName: string;
264
+ }>, "many">>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ name?: string | null | undefined;
267
+ id?: string | undefined;
268
+ applicationId?: string | null | undefined;
269
+ username?: string | null | undefined;
270
+ profile?: Partial<{
271
+ familyName: string;
272
+ givenName: string;
273
+ middleName: string;
274
+ nickname: string;
275
+ preferredUsername: string;
276
+ profile: string;
277
+ website: string;
278
+ gender: string;
279
+ birthdate: string;
280
+ zoneinfo: string;
281
+ locale: string;
282
+ address: Partial<{
283
+ formatted: string;
284
+ streetAddress: string;
285
+ locality: string;
286
+ /**
287
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
288
+ */
289
+ region: string;
290
+ postalCode: string;
291
+ country: string;
292
+ }>;
293
+ }> | undefined;
294
+ createdAt?: number | undefined;
295
+ updatedAt?: number | undefined;
296
+ customData?: import("@withtyped/server").JsonObject | undefined;
297
+ primaryEmail?: string | null | undefined;
298
+ primaryPhone?: string | null | undefined;
299
+ avatar?: string | null | undefined;
300
+ identities?: Record<string, {
301
+ userId: string;
302
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
303
+ }> | undefined;
304
+ isSuspended?: boolean | undefined;
305
+ lastSignInAt?: number | null | undefined;
306
+ ssoIdentities?: {
307
+ issuer: string;
308
+ identityId: string;
309
+ detail: import("@withtyped/server").JsonObject;
310
+ }[] | undefined;
311
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
312
+ roles?: {
313
+ name: string;
314
+ id: string;
315
+ description: string;
316
+ scopes: {
317
+ name: string;
318
+ id: string;
319
+ description: string | null;
320
+ resource: import("../../index.js").Resource;
321
+ resourceId: string;
322
+ }[];
323
+ }[] | undefined;
324
+ organizations?: {
325
+ name: string;
326
+ id: string;
327
+ description: string | null;
328
+ }[] | undefined;
329
+ organizationRoles?: {
330
+ organizationId: string;
331
+ roleId: string;
332
+ roleName: string;
333
+ }[] | undefined;
334
+ }, {
335
+ name?: string | null | undefined;
336
+ id?: string | undefined;
337
+ applicationId?: string | null | undefined;
338
+ username?: string | null | undefined;
339
+ profile?: Partial<{
340
+ familyName: string;
341
+ givenName: string;
342
+ middleName: string;
343
+ nickname: string;
344
+ preferredUsername: string;
345
+ profile: string;
346
+ website: string;
347
+ gender: string;
348
+ birthdate: string;
349
+ zoneinfo: string;
350
+ locale: string;
351
+ address: Partial<{
352
+ formatted: string;
353
+ streetAddress: string;
354
+ locality: string;
355
+ /**
356
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
357
+ */
358
+ region: string;
359
+ postalCode: string;
360
+ country: string;
361
+ }>;
362
+ }> | undefined;
363
+ createdAt?: number | undefined;
364
+ updatedAt?: number | undefined;
365
+ customData?: import("@withtyped/server").JsonObject | undefined;
366
+ primaryEmail?: string | null | undefined;
367
+ primaryPhone?: string | null | undefined;
368
+ avatar?: string | null | undefined;
369
+ identities?: Record<string, {
370
+ userId: string;
371
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
372
+ }> | undefined;
373
+ isSuspended?: boolean | undefined;
374
+ lastSignInAt?: number | null | undefined;
375
+ ssoIdentities?: {
376
+ issuer: string;
377
+ identityId: string;
378
+ detail: import("@withtyped/server").JsonObject;
379
+ }[] | undefined;
380
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
381
+ roles?: {
382
+ name: string;
383
+ id: string;
384
+ description: string;
385
+ scopes: {
386
+ name: string;
387
+ id: string;
388
+ description: string | null;
389
+ resource: import("../../index.js").Resource;
390
+ resourceId: string;
391
+ }[];
392
+ }[] | undefined;
393
+ organizations?: {
394
+ name: string;
395
+ id: string;
396
+ description: string | null;
397
+ }[] | undefined;
398
+ organizationRoles?: {
399
+ organizationId: string;
400
+ roleId: string;
401
+ roleName: string;
402
+ }[] | undefined;
403
+ }>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ user: {
406
+ name?: string | null | undefined;
407
+ id?: string | undefined;
408
+ applicationId?: string | null | undefined;
409
+ username?: string | null | undefined;
410
+ profile?: Partial<{
411
+ familyName: string;
412
+ givenName: string;
413
+ middleName: string;
414
+ nickname: string;
415
+ preferredUsername: string;
416
+ profile: string;
417
+ website: string;
418
+ gender: string;
419
+ birthdate: string;
420
+ zoneinfo: string;
421
+ locale: string;
422
+ address: Partial<{
423
+ formatted: string;
424
+ streetAddress: string;
425
+ locality: string;
426
+ /**
427
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
428
+ */
429
+ region: string;
430
+ postalCode: string;
431
+ country: string;
432
+ }>;
433
+ }> | undefined;
434
+ createdAt?: number | undefined;
435
+ updatedAt?: number | undefined;
436
+ customData?: import("@withtyped/server").JsonObject | undefined;
437
+ primaryEmail?: string | null | undefined;
438
+ primaryPhone?: string | null | undefined;
439
+ avatar?: string | null | undefined;
440
+ identities?: Record<string, {
441
+ userId: string;
442
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
443
+ }> | undefined;
444
+ isSuspended?: boolean | undefined;
445
+ lastSignInAt?: number | null | undefined;
446
+ ssoIdentities?: {
447
+ issuer: string;
448
+ identityId: string;
449
+ detail: import("@withtyped/server").JsonObject;
450
+ }[] | undefined;
451
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
452
+ roles?: {
453
+ name: string;
454
+ id: string;
455
+ description: string;
456
+ scopes: {
457
+ name: string;
458
+ id: string;
459
+ description: string | null;
460
+ resource: import("../../index.js").Resource;
461
+ resourceId: string;
462
+ }[];
463
+ }[] | undefined;
464
+ organizations?: {
465
+ name: string;
466
+ id: string;
467
+ description: string | null;
468
+ }[] | undefined;
469
+ organizationRoles?: {
470
+ organizationId: string;
471
+ roleId: string;
472
+ roleName: string;
473
+ }[] | undefined;
474
+ };
475
+ }, {
476
+ user: {
477
+ name?: string | null | undefined;
478
+ id?: string | undefined;
479
+ applicationId?: string | null | undefined;
480
+ username?: string | null | undefined;
481
+ profile?: Partial<{
482
+ familyName: string;
483
+ givenName: string;
484
+ middleName: string;
485
+ nickname: string;
486
+ preferredUsername: string;
487
+ profile: string;
488
+ website: string;
489
+ gender: string;
490
+ birthdate: string;
491
+ zoneinfo: string;
492
+ locale: string;
493
+ address: Partial<{
494
+ formatted: string;
495
+ streetAddress: string;
496
+ locality: string;
497
+ /**
498
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
499
+ */
500
+ region: string;
501
+ postalCode: string;
502
+ country: string;
503
+ }>;
504
+ }> | undefined;
505
+ createdAt?: number | undefined;
506
+ updatedAt?: number | undefined;
507
+ customData?: import("@withtyped/server").JsonObject | undefined;
508
+ primaryEmail?: string | null | undefined;
509
+ primaryPhone?: string | null | undefined;
510
+ avatar?: string | null | undefined;
511
+ identities?: Record<string, {
512
+ userId: string;
513
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
514
+ }> | undefined;
515
+ isSuspended?: boolean | undefined;
516
+ lastSignInAt?: number | null | undefined;
517
+ ssoIdentities?: {
518
+ issuer: string;
519
+ identityId: string;
520
+ detail: import("@withtyped/server").JsonObject;
521
+ }[] | undefined;
522
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
523
+ roles?: {
524
+ name: string;
525
+ id: string;
526
+ description: string;
527
+ scopes: {
528
+ name: string;
529
+ id: string;
530
+ description: string | null;
531
+ resource: import("../../index.js").Resource;
532
+ resourceId: string;
533
+ }[];
534
+ }[] | undefined;
535
+ organizations?: {
536
+ name: string;
537
+ id: string;
538
+ description: string | null;
539
+ }[] | undefined;
540
+ organizationRoles?: {
541
+ organizationId: string;
542
+ roleId: string;
543
+ roleName: string;
544
+ }[] | undefined;
545
+ };
546
+ }>>;
547
+ }, "strict", z.ZodTypeAny, {
548
+ script: string;
549
+ environmentVariables?: Record<string, string> | undefined;
550
+ tokenSample?: {
551
+ accountId?: string | undefined;
552
+ expiresWithSession?: boolean | undefined;
553
+ grantId?: string | undefined;
554
+ gty?: string | undefined;
555
+ sessionUid?: string | undefined;
556
+ sid?: string | undefined;
557
+ kind?: "AccessToken" | undefined;
558
+ jti?: string | undefined;
559
+ aud?: string | string[] | undefined;
560
+ scope?: string | undefined;
561
+ clientId?: string | undefined;
562
+ } | undefined;
563
+ contextSample?: {
564
+ user: {
565
+ name?: string | null | undefined;
566
+ id?: string | undefined;
567
+ applicationId?: string | null | undefined;
568
+ username?: string | null | undefined;
569
+ profile?: Partial<{
570
+ familyName: string;
571
+ givenName: string;
572
+ middleName: string;
573
+ nickname: string;
574
+ preferredUsername: string;
575
+ profile: string;
576
+ website: string;
577
+ gender: string;
578
+ birthdate: string;
579
+ zoneinfo: string;
580
+ locale: string;
581
+ address: Partial<{
582
+ formatted: string;
583
+ streetAddress: string;
584
+ locality: string;
585
+ /**
586
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
587
+ */
588
+ region: string;
589
+ postalCode: string;
590
+ country: string;
591
+ }>;
592
+ }> | undefined;
593
+ createdAt?: number | undefined;
594
+ updatedAt?: number | undefined;
595
+ customData?: import("@withtyped/server").JsonObject | undefined;
596
+ primaryEmail?: string | null | undefined;
597
+ primaryPhone?: string | null | undefined;
598
+ avatar?: string | null | undefined;
599
+ identities?: Record<string, {
600
+ userId: string;
601
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
602
+ }> | undefined;
603
+ isSuspended?: boolean | undefined;
604
+ lastSignInAt?: number | null | undefined;
605
+ ssoIdentities?: {
606
+ issuer: string;
607
+ identityId: string;
608
+ detail: import("@withtyped/server").JsonObject;
609
+ }[] | undefined;
610
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
611
+ roles?: {
612
+ name: string;
613
+ id: string;
614
+ description: string;
615
+ scopes: {
616
+ name: string;
617
+ id: string;
618
+ description: string | null;
619
+ resource: import("../../index.js").Resource;
620
+ resourceId: string;
621
+ }[];
622
+ }[] | undefined;
623
+ organizations?: {
624
+ name: string;
625
+ id: string;
626
+ description: string | null;
627
+ }[] | undefined;
628
+ organizationRoles?: {
629
+ organizationId: string;
630
+ roleId: string;
631
+ roleName: string;
632
+ }[] | undefined;
633
+ };
634
+ } | undefined;
635
+ }, {
636
+ script: string;
637
+ environmentVariables?: Record<string, string> | undefined;
638
+ tokenSample?: {
639
+ accountId?: string | undefined;
640
+ expiresWithSession?: boolean | undefined;
641
+ grantId?: string | undefined;
642
+ gty?: string | undefined;
643
+ sessionUid?: string | undefined;
644
+ sid?: string | undefined;
645
+ kind?: "AccessToken" | undefined;
646
+ jti?: string | undefined;
647
+ aud?: string | string[] | undefined;
648
+ scope?: string | undefined;
649
+ clientId?: string | undefined;
650
+ } | undefined;
651
+ contextSample?: {
652
+ user: {
653
+ name?: string | null | undefined;
654
+ id?: string | undefined;
655
+ applicationId?: string | null | undefined;
656
+ username?: string | null | undefined;
657
+ profile?: Partial<{
658
+ familyName: string;
659
+ givenName: string;
660
+ middleName: string;
661
+ nickname: string;
662
+ preferredUsername: string;
663
+ profile: string;
664
+ website: string;
665
+ gender: string;
666
+ birthdate: string;
667
+ zoneinfo: string;
668
+ locale: string;
669
+ address: Partial<{
670
+ formatted: string;
671
+ streetAddress: string;
672
+ locality: string;
673
+ /**
674
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
675
+ */
676
+ region: string;
677
+ postalCode: string;
678
+ country: string;
679
+ }>;
680
+ }> | undefined;
681
+ createdAt?: number | undefined;
682
+ updatedAt?: number | undefined;
683
+ customData?: import("@withtyped/server").JsonObject | undefined;
684
+ primaryEmail?: string | null | undefined;
685
+ primaryPhone?: string | null | undefined;
686
+ avatar?: string | null | undefined;
687
+ identities?: Record<string, {
688
+ userId: string;
689
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
690
+ }> | undefined;
691
+ isSuspended?: boolean | undefined;
692
+ lastSignInAt?: number | null | undefined;
693
+ ssoIdentities?: {
694
+ issuer: string;
695
+ identityId: string;
696
+ detail: import("@withtyped/server").JsonObject;
697
+ }[] | undefined;
698
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
699
+ roles?: {
700
+ name: string;
701
+ id: string;
702
+ description: string;
703
+ scopes: {
704
+ name: string;
705
+ id: string;
706
+ description: string | null;
707
+ resource: import("../../index.js").Resource;
708
+ resourceId: string;
709
+ }[];
710
+ }[] | undefined;
711
+ organizations?: {
712
+ name: string;
713
+ id: string;
714
+ description: string | null;
715
+ }[] | undefined;
716
+ organizationRoles?: {
717
+ organizationId: string;
718
+ roleId: string;
719
+ roleName: string;
720
+ }[] | undefined;
721
+ };
722
+ } | undefined;
723
+ }>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ value: {
726
+ script: string;
727
+ environmentVariables?: Record<string, string> | undefined;
728
+ tokenSample?: {
729
+ accountId?: string | undefined;
730
+ expiresWithSession?: boolean | undefined;
731
+ grantId?: string | undefined;
732
+ gty?: string | undefined;
733
+ sessionUid?: string | undefined;
734
+ sid?: string | undefined;
735
+ kind?: "AccessToken" | undefined;
736
+ jti?: string | undefined;
737
+ aud?: string | string[] | undefined;
738
+ scope?: string | undefined;
739
+ clientId?: string | undefined;
740
+ } | undefined;
741
+ contextSample?: {
742
+ user: {
743
+ name?: string | null | undefined;
744
+ id?: string | undefined;
745
+ applicationId?: string | null | undefined;
746
+ username?: string | null | undefined;
747
+ profile?: Partial<{
748
+ familyName: string;
749
+ givenName: string;
750
+ middleName: string;
751
+ nickname: string;
752
+ preferredUsername: string;
753
+ profile: string;
754
+ website: string;
755
+ gender: string;
756
+ birthdate: string;
757
+ zoneinfo: string;
758
+ locale: string;
759
+ address: Partial<{
760
+ formatted: string;
761
+ streetAddress: string;
762
+ locality: string;
763
+ /**
764
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
765
+ */
766
+ region: string;
767
+ postalCode: string;
768
+ country: string;
769
+ }>;
770
+ }> | undefined;
771
+ createdAt?: number | undefined;
772
+ updatedAt?: number | undefined;
773
+ customData?: import("@withtyped/server").JsonObject | undefined;
774
+ primaryEmail?: string | null | undefined;
775
+ primaryPhone?: string | null | undefined;
776
+ avatar?: string | null | undefined;
777
+ identities?: Record<string, {
778
+ userId: string;
779
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
780
+ }> | undefined;
781
+ isSuspended?: boolean | undefined;
782
+ lastSignInAt?: number | null | undefined;
783
+ ssoIdentities?: {
784
+ issuer: string;
785
+ identityId: string;
786
+ detail: import("@withtyped/server").JsonObject;
787
+ }[] | undefined;
788
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
789
+ roles?: {
790
+ name: string;
791
+ id: string;
792
+ description: string;
793
+ scopes: {
794
+ name: string;
795
+ id: string;
796
+ description: string | null;
797
+ resource: import("../../index.js").Resource;
798
+ resourceId: string;
799
+ }[];
800
+ }[] | undefined;
801
+ organizations?: {
802
+ name: string;
803
+ id: string;
804
+ description: string | null;
805
+ }[] | undefined;
806
+ organizationRoles?: {
807
+ organizationId: string;
808
+ roleId: string;
809
+ roleName: string;
810
+ }[] | undefined;
811
+ };
812
+ } | undefined;
813
+ };
814
+ key: LogtoJwtTokenKey.AccessToken;
815
+ }, {
816
+ value: {
817
+ script: string;
818
+ environmentVariables?: Record<string, string> | undefined;
819
+ tokenSample?: {
820
+ accountId?: string | undefined;
821
+ expiresWithSession?: boolean | undefined;
822
+ grantId?: string | undefined;
823
+ gty?: string | undefined;
824
+ sessionUid?: string | undefined;
825
+ sid?: string | undefined;
826
+ kind?: "AccessToken" | undefined;
827
+ jti?: string | undefined;
828
+ aud?: string | string[] | undefined;
829
+ scope?: string | undefined;
830
+ clientId?: string | undefined;
831
+ } | undefined;
832
+ contextSample?: {
833
+ user: {
834
+ name?: string | null | undefined;
835
+ id?: string | undefined;
836
+ applicationId?: string | null | undefined;
837
+ username?: string | null | undefined;
838
+ profile?: Partial<{
839
+ familyName: string;
840
+ givenName: string;
841
+ middleName: string;
842
+ nickname: string;
843
+ preferredUsername: string;
844
+ profile: string;
845
+ website: string;
846
+ gender: string;
847
+ birthdate: string;
848
+ zoneinfo: string;
849
+ locale: string;
850
+ address: Partial<{
851
+ formatted: string;
852
+ streetAddress: string;
853
+ locality: string;
854
+ /**
855
+ * Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
856
+ */
857
+ region: string;
858
+ postalCode: string;
859
+ country: string;
860
+ }>;
861
+ }> | undefined;
862
+ createdAt?: number | undefined;
863
+ updatedAt?: number | undefined;
864
+ customData?: import("@withtyped/server").JsonObject | undefined;
865
+ primaryEmail?: string | null | undefined;
866
+ primaryPhone?: string | null | undefined;
867
+ avatar?: string | null | undefined;
868
+ identities?: Record<string, {
869
+ userId: string;
870
+ details?: Record<string, import("@withtyped/server").Json> | undefined;
871
+ }> | undefined;
872
+ isSuspended?: boolean | undefined;
873
+ lastSignInAt?: number | null | undefined;
874
+ ssoIdentities?: {
875
+ issuer: string;
876
+ identityId: string;
877
+ detail: import("@withtyped/server").JsonObject;
878
+ }[] | undefined;
879
+ mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
880
+ roles?: {
881
+ name: string;
882
+ id: string;
883
+ description: string;
884
+ scopes: {
885
+ name: string;
886
+ id: string;
887
+ description: string | null;
888
+ resource: import("../../index.js").Resource;
889
+ resourceId: string;
890
+ }[];
891
+ }[] | undefined;
892
+ organizations?: {
893
+ name: string;
894
+ id: string;
895
+ description: string | null;
896
+ }[] | undefined;
897
+ organizationRoles?: {
898
+ organizationId: string;
899
+ roleId: string;
900
+ roleName: string;
901
+ }[] | undefined;
902
+ };
903
+ } | undefined;
904
+ };
905
+ key: LogtoJwtTokenKey.AccessToken;
906
+ }>, z.ZodObject<{
907
+ key: z.ZodLiteral<LogtoJwtTokenKey.ClientCredentials>;
908
+ value: z.ZodObject<{
909
+ script: z.ZodString;
910
+ environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
911
+ contextSample: z.ZodOptional<z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server").Json, z.ZodTypeDef, import("@withtyped/server").Json>>>;
912
+ tokenSample: z.ZodOptional<z.ZodObject<{
913
+ kind: z.ZodOptional<z.ZodLiteral<"ClientCredentials">>;
914
+ jti: z.ZodOptional<z.ZodString>;
915
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
916
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
917
+ clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
918
+ }, "strict", z.ZodTypeAny, {
919
+ kind?: "ClientCredentials" | undefined;
920
+ jti?: string | undefined;
921
+ aud?: string | string[] | undefined;
922
+ scope?: string | undefined;
923
+ clientId?: string | undefined;
924
+ }, {
925
+ kind?: "ClientCredentials" | undefined;
926
+ jti?: string | undefined;
927
+ aud?: string | string[] | undefined;
928
+ scope?: string | undefined;
929
+ clientId?: string | undefined;
930
+ }>>;
931
+ }, "strict", z.ZodTypeAny, {
932
+ script: string;
933
+ environmentVariables?: Record<string, string> | undefined;
934
+ contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
935
+ tokenSample?: {
936
+ kind?: "ClientCredentials" | undefined;
937
+ jti?: string | undefined;
938
+ aud?: string | string[] | undefined;
939
+ scope?: string | undefined;
940
+ clientId?: string | undefined;
941
+ } | undefined;
942
+ }, {
943
+ script: string;
944
+ environmentVariables?: Record<string, string> | undefined;
945
+ contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
946
+ tokenSample?: {
947
+ kind?: "ClientCredentials" | undefined;
948
+ jti?: string | undefined;
949
+ aud?: string | string[] | undefined;
950
+ scope?: string | undefined;
951
+ clientId?: string | undefined;
952
+ } | undefined;
953
+ }>;
954
+ }, "strip", z.ZodTypeAny, {
955
+ value: {
956
+ script: string;
957
+ environmentVariables?: Record<string, string> | undefined;
958
+ contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
959
+ tokenSample?: {
960
+ kind?: "ClientCredentials" | undefined;
961
+ jti?: string | undefined;
962
+ aud?: string | string[] | undefined;
963
+ scope?: string | undefined;
964
+ clientId?: string | undefined;
965
+ } | undefined;
966
+ };
967
+ key: LogtoJwtTokenKey.ClientCredentials;
968
+ }, {
969
+ value: {
970
+ script: string;
971
+ environmentVariables?: Record<string, string> | undefined;
972
+ contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
973
+ tokenSample?: {
974
+ kind?: "ClientCredentials" | undefined;
975
+ jti?: string | undefined;
976
+ aud?: string | string[] | undefined;
977
+ scope?: string | undefined;
978
+ clientId?: string | undefined;
979
+ } | undefined;
980
+ };
981
+ key: LogtoJwtTokenKey.ClientCredentials;
982
+ }>]>;
983
+ export type JwtCustomizerConfigs = z.infer<typeof jwtCustomizerConfigsGuard>;
984
+ export declare const adminConsoleDataGuard: z.ZodObject<{
985
+ signInExperienceCustomized: z.ZodBoolean;
986
+ organizationCreated: z.ZodBoolean;
987
+ developmentTenantMigrationNotification: z.ZodOptional<z.ZodObject<{
988
+ isPaidTenant: z.ZodBoolean;
989
+ /**
990
+ * Tag is used to store the original tenant tag before dev tenant migration.
991
+ * This field is only used for DB rollback and because the `TenantTag` may change, so we don't guard it as the `TenantTag` type.
992
+ */
993
+ tag: z.ZodString;
994
+ readAt: z.ZodOptional<z.ZodNumber>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ isPaidTenant: boolean;
997
+ tag: string;
998
+ readAt?: number | undefined;
999
+ }, {
1000
+ isPaidTenant: boolean;
1001
+ tag: string;
1002
+ readAt?: number | undefined;
1003
+ }>>;
1004
+ checkedChargeNotification: z.ZodOptional<z.ZodObject<{
1005
+ token: z.ZodOptional<z.ZodBoolean>;
1006
+ apiResource: z.ZodOptional<z.ZodBoolean>;
1007
+ machineToMachineApp: z.ZodOptional<z.ZodBoolean>;
1008
+ tenantMember: z.ZodOptional<z.ZodBoolean>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ token?: boolean | undefined;
1011
+ apiResource?: boolean | undefined;
1012
+ machineToMachineApp?: boolean | undefined;
1013
+ tenantMember?: boolean | undefined;
1014
+ }, {
1015
+ token?: boolean | undefined;
1016
+ apiResource?: boolean | undefined;
1017
+ machineToMachineApp?: boolean | undefined;
1018
+ tenantMember?: boolean | undefined;
1019
+ }>>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ signInExperienceCustomized: boolean;
1022
+ organizationCreated: boolean;
1023
+ developmentTenantMigrationNotification?: {
1024
+ isPaidTenant: boolean;
1025
+ tag: string;
1026
+ readAt?: number | undefined;
1027
+ } | undefined;
1028
+ checkedChargeNotification?: {
1029
+ token?: boolean | undefined;
1030
+ apiResource?: boolean | undefined;
1031
+ machineToMachineApp?: boolean | undefined;
1032
+ tenantMember?: boolean | undefined;
1033
+ } | undefined;
1034
+ }, {
1035
+ signInExperienceCustomized: boolean;
1036
+ organizationCreated: boolean;
1037
+ developmentTenantMigrationNotification?: {
1038
+ isPaidTenant: boolean;
1039
+ tag: string;
1040
+ readAt?: number | undefined;
1041
+ } | undefined;
1042
+ checkedChargeNotification?: {
1043
+ token?: boolean | undefined;
1044
+ apiResource?: boolean | undefined;
1045
+ machineToMachineApp?: boolean | undefined;
1046
+ tenantMember?: boolean | undefined;
1047
+ } | undefined;
1048
+ }>;
1049
+ export type AdminConsoleData = z.infer<typeof adminConsoleDataGuard>;
1050
+ export declare const cloudConnectionDataGuard: z.ZodObject<{
1051
+ appId: z.ZodString;
1052
+ appSecret: z.ZodString;
1053
+ resource: z.ZodString;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ resource: string;
1056
+ appId: string;
1057
+ appSecret: string;
1058
+ }, {
1059
+ resource: string;
1060
+ appId: string;
1061
+ appSecret: string;
1062
+ }>;
1063
+ export type CloudConnectionData = z.infer<typeof cloudConnectionDataGuard>;
1064
+ export declare enum LogtoTenantConfigKey {
1065
+ AdminConsole = "adminConsole",
1066
+ CloudConnection = "cloudConnection",
1067
+ /** The URL to redirect when session not found in Sign-in Experience. */
1068
+ SessionNotFoundRedirectUrl = "sessionNotFoundRedirectUrl"
1069
+ }
1070
+ export type LogtoTenantConfigType = {
1071
+ [LogtoTenantConfigKey.AdminConsole]: AdminConsoleData;
1072
+ [LogtoTenantConfigKey.CloudConnection]: CloudConnectionData;
1073
+ [LogtoTenantConfigKey.SessionNotFoundRedirectUrl]: {
1074
+ url: string;
1075
+ };
1076
+ };
1077
+ export declare const logtoTenantConfigGuard: Readonly<{
1078
+ [key in LogtoTenantConfigKey]: ZodType<LogtoTenantConfigType[key]>;
1079
+ }>;
1080
+ export type LogtoConfigKey = LogtoOidcConfigKey | LogtoJwtTokenKey | LogtoTenantConfigKey;
1081
+ export type LogtoConfigType = LogtoOidcConfigType | JwtCustomizerType | LogtoTenantConfigType;
1082
+ export type LogtoConfigGuard = typeof logtoOidcConfigGuard & typeof jwtCustomizerConfigGuard & typeof logtoTenantConfigGuard;
1083
+ export declare const logtoConfigKeys: readonly LogtoConfigKey[];
1084
+ export declare const logtoConfigGuards: LogtoConfigGuard;
1085
+ export declare const oidcConfigKeysResponseGuard: z.ZodObject<{
1086
+ id: z.ZodString;
1087
+ createdAt: z.ZodNumber;
1088
+ signingKeyAlgorithm: z.ZodOptional<z.ZodNativeEnum<typeof SupportedSigningKeyAlgorithm>>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ id: string;
1091
+ createdAt: number;
1092
+ signingKeyAlgorithm?: SupportedSigningKeyAlgorithm | undefined;
1093
+ }, {
1094
+ id: string;
1095
+ createdAt: number;
1096
+ signingKeyAlgorithm?: SupportedSigningKeyAlgorithm | undefined;
1097
+ }>;
1098
+ export type OidcConfigKeysResponse = z.infer<typeof oidcConfigKeysResponseGuard>;