@stackframe/stack-shared 2.8.8 → 2.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/config/format.d.cts +39 -0
- package/dist/config/format.d.ts +14 -13
- package/dist/config/format.js +147 -206
- package/dist/config/format.js.map +1 -0
- package/dist/config/schema.d.cts +724 -0
- package/dist/config/schema.d.ts +51 -48
- package/dist/config/schema.js +230 -172
- package/dist/config/schema.js.map +1 -0
- package/dist/crud.d.cts +102 -0
- package/dist/crud.d.ts +15 -13
- package/dist/crud.js +83 -128
- package/dist/crud.js.map +1 -0
- package/dist/esm/config/format.js +135 -0
- package/dist/esm/config/format.js.map +1 -0
- package/dist/esm/config/schema.js +199 -0
- package/dist/esm/config/schema.js.map +1 -0
- package/dist/esm/crud.js +60 -0
- package/dist/esm/crud.js.map +1 -0
- package/dist/esm/global.d.js +1 -0
- package/dist/esm/global.d.js.map +1 -0
- package/dist/esm/helpers/password.js +17 -0
- package/dist/esm/helpers/password.js.map +1 -0
- package/dist/esm/helpers/production-mode.js +50 -0
- package/dist/esm/helpers/production-mode.js.map +1 -0
- package/dist/esm/hooks/use-async-callback.js +38 -0
- package/dist/esm/hooks/use-async-callback.js.map +1 -0
- package/dist/esm/hooks/use-async-external-store.js +23 -0
- package/dist/esm/hooks/use-async-external-store.js.map +1 -0
- package/dist/esm/hooks/use-hash.js +17 -0
- package/dist/esm/hooks/use-hash.js.map +1 -0
- package/dist/esm/hooks/use-strict-memo.js +61 -0
- package/dist/esm/hooks/use-strict-memo.js.map +1 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interface/adminInterface.js +244 -0
- package/dist/esm/interface/adminInterface.js.map +1 -0
- package/dist/esm/interface/clientInterface.js +2041 -0
- package/dist/esm/interface/clientInterface.js.map +1 -0
- package/dist/esm/interface/crud/contact-channels.js +77 -0
- package/dist/esm/interface/crud/contact-channels.js.map +1 -0
- package/dist/esm/interface/crud/current-user.js +65 -0
- package/dist/esm/interface/crud/current-user.js.map +1 -0
- package/dist/esm/interface/crud/email-templates.js +52 -0
- package/dist/esm/interface/crud/email-templates.js.map +1 -0
- package/dist/esm/interface/crud/emails.js +20 -0
- package/dist/esm/interface/crud/emails.js.map +1 -0
- package/dist/esm/interface/crud/internal-api-keys.js +69 -0
- package/dist/esm/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/oauth.js +24 -0
- package/dist/esm/interface/crud/oauth.js.map +1 -0
- package/dist/esm/interface/crud/project-api-keys.js +93 -0
- package/dist/esm/interface/crud/project-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/project-permissions.js +113 -0
- package/dist/esm/interface/crud/project-permissions.js.map +1 -0
- package/dist/esm/interface/crud/projects.js +188 -0
- package/dist/esm/interface/crud/projects.js.map +1 -0
- package/dist/esm/interface/crud/sessions.js +62 -0
- package/dist/esm/interface/crud/sessions.js.map +1 -0
- package/dist/esm/interface/crud/svix-token.js +22 -0
- package/dist/esm/interface/crud/svix-token.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation-details.js +23 -0
- package/dist/esm/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation.js +36 -0
- package/dist/esm/interface/crud/team-invitation.js.map +1 -0
- package/dist/esm/interface/crud/team-member-profiles.js +62 -0
- package/dist/esm/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/esm/interface/crud/team-memberships.js +60 -0
- package/dist/esm/interface/crud/team-memberships.js.map +1 -0
- package/dist/esm/interface/crud/team-permissions.js +114 -0
- package/dist/esm/interface/crud/team-permissions.js.map +1 -0
- package/dist/esm/interface/crud/teams.js +143 -0
- package/dist/esm/interface/crud/teams.js.map +1 -0
- package/dist/esm/interface/crud/users.js +139 -0
- package/dist/esm/interface/crud/users.js.map +1 -0
- package/dist/esm/interface/serverInterface.js +485 -0
- package/dist/esm/interface/serverInterface.js.map +1 -0
- package/dist/esm/interface/webhooks.js +21 -0
- package/dist/esm/interface/webhooks.js.map +1 -0
- package/dist/esm/known-errors.js +1223 -0
- package/dist/esm/known-errors.js.map +1 -0
- package/dist/esm/schema-fields.js +484 -0
- package/dist/esm/schema-fields.js.map +1 -0
- package/dist/esm/sessions.js +168 -0
- package/dist/esm/sessions.js.map +1 -0
- package/dist/esm/utils/api-keys.js +79 -0
- package/dist/esm/utils/api-keys.js.map +1 -0
- package/dist/esm/utils/arrays.js +78 -0
- package/dist/esm/utils/arrays.js.map +1 -0
- package/dist/esm/utils/base64.js +18 -0
- package/dist/esm/utils/base64.js.map +1 -0
- package/dist/esm/utils/booleans.js +12 -0
- package/dist/esm/utils/booleans.js.map +1 -0
- package/dist/esm/utils/browser-compat.js +21 -0
- package/dist/esm/utils/browser-compat.js.map +1 -0
- package/dist/esm/utils/bytes.js +160 -0
- package/dist/esm/utils/bytes.js.map +1 -0
- package/dist/esm/utils/caches.js +167 -0
- package/dist/esm/utils/caches.js.map +1 -0
- package/dist/esm/utils/compile-time.js +11 -0
- package/dist/esm/utils/compile-time.js.map +1 -0
- package/dist/esm/utils/crypto.js +25 -0
- package/dist/esm/utils/crypto.js.map +1 -0
- package/dist/esm/utils/dates.js +64 -0
- package/dist/esm/utils/dates.js.map +1 -0
- package/dist/esm/utils/dom.js +11 -0
- package/dist/esm/utils/dom.js.map +1 -0
- package/dist/esm/utils/env.js +58 -0
- package/dist/esm/utils/env.js.map +1 -0
- package/dist/esm/utils/errors.js +174 -0
- package/dist/esm/utils/errors.js.map +1 -0
- package/dist/esm/utils/fs.js +37 -0
- package/dist/esm/utils/fs.js.map +1 -0
- package/dist/esm/utils/functions.js +12 -0
- package/dist/esm/utils/functions.js.map +1 -0
- package/dist/esm/utils/geo.js +15 -0
- package/dist/esm/utils/geo.js.map +1 -0
- package/dist/esm/utils/globals.js +18 -0
- package/dist/esm/utils/globals.js.map +1 -0
- package/dist/esm/utils/hashes.js +55 -0
- package/dist/esm/utils/hashes.js.map +1 -0
- package/dist/esm/utils/html.js +13 -0
- package/dist/esm/utils/html.js.map +1 -0
- package/dist/esm/utils/http.js +60 -0
- package/dist/esm/utils/http.js.map +1 -0
- package/dist/esm/utils/ips.js +15 -0
- package/dist/esm/utils/ips.js.map +1 -0
- package/dist/esm/utils/json.js +31 -0
- package/dist/esm/utils/json.js.map +1 -0
- package/dist/esm/utils/jwt.js +87 -0
- package/dist/esm/utils/jwt.js.map +1 -0
- package/dist/esm/utils/locks.js +57 -0
- package/dist/esm/utils/locks.js.map +1 -0
- package/dist/esm/utils/maps.js +181 -0
- package/dist/esm/utils/maps.js.map +1 -0
- package/dist/esm/utils/math.js +8 -0
- package/dist/esm/utils/math.js.map +1 -0
- package/dist/esm/utils/node-http.js +42 -0
- package/dist/esm/utils/node-http.js.map +1 -0
- package/dist/esm/utils/numbers.js +32 -0
- package/dist/esm/utils/numbers.js.map +1 -0
- package/dist/esm/utils/oauth.js +10 -0
- package/dist/esm/utils/oauth.js.map +1 -0
- package/dist/esm/utils/objects.js +153 -0
- package/dist/esm/utils/objects.js.map +1 -0
- package/dist/esm/utils/passkey.js +1 -0
- package/dist/esm/utils/passkey.js.map +1 -0
- package/dist/esm/utils/promises.js +233 -0
- package/dist/esm/utils/promises.js.map +1 -0
- package/dist/esm/utils/proxies.js +128 -0
- package/dist/esm/utils/proxies.js.map +1 -0
- package/dist/esm/utils/react.js +78 -0
- package/dist/esm/utils/react.js.map +1 -0
- package/dist/esm/utils/results.js +141 -0
- package/dist/esm/utils/results.js.map +1 -0
- package/dist/esm/utils/sentry.js +20 -0
- package/dist/esm/utils/sentry.js.map +1 -0
- package/dist/esm/utils/stores.js +195 -0
- package/dist/esm/utils/stores.js.map +1 -0
- package/dist/esm/utils/strings.js +294 -0
- package/dist/esm/utils/strings.js.map +1 -0
- package/dist/esm/utils/strings.nicify.test.js +222 -0
- package/dist/esm/utils/strings.nicify.test.js.map +1 -0
- package/dist/esm/utils/types.js +1 -0
- package/dist/esm/utils/types.js.map +1 -0
- package/dist/esm/utils/unicode.js +11 -0
- package/dist/esm/utils/unicode.js.map +1 -0
- package/dist/esm/utils/urls.js +53 -0
- package/dist/esm/utils/urls.js.map +1 -0
- package/dist/esm/utils/uuids.js +16 -0
- package/dist/esm/utils/uuids.js.map +1 -0
- package/dist/global.d.d.cts +1 -0
- package/dist/global.d.d.ts +1 -0
- package/dist/global.d.js +2 -0
- package/dist/global.d.js.map +1 -0
- package/dist/helpers/password.d.cts +11 -0
- package/dist/helpers/password.d.ts +11 -2
- package/dist/helpers/password.js +41 -11
- package/dist/helpers/password.js.map +1 -0
- package/dist/helpers/production-mode.d.cts +12 -0
- package/dist/helpers/production-mode.d.ts +9 -3
- package/dist/helpers/production-mode.js +72 -45
- package/dist/helpers/production-mode.js.map +1 -0
- package/dist/hooks/use-async-callback.d.cts +6 -0
- package/dist/hooks/use-async-callback.d.ts +6 -3
- package/dist/hooks/use-async-callback.js +72 -30
- package/dist/hooks/use-async-callback.js.map +1 -0
- package/dist/hooks/use-async-external-store.d.cts +7 -0
- package/dist/hooks/use-async-external-store.d.ts +5 -2
- package/dist/hooks/use-async-external-store.js +47 -19
- package/dist/hooks/use-async-external-store.js.map +1 -0
- package/dist/hooks/use-hash.d.cts +3 -0
- package/dist/hooks/use-hash.d.ts +3 -1
- package/dist/hooks/use-hash.js +41 -8
- package/dist/hooks/use-hash.js.map +1 -0
- package/dist/hooks/use-strict-memo.d.cts +8 -0
- package/dist/hooks/use-strict-memo.d.ts +3 -1
- package/dist/hooks/use-strict-memo.js +78 -131
- package/dist/hooks/use-strict-memo.js.map +1 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.ts +30 -4
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -0
- package/dist/interface/adminInterface.d.cts +94 -0
- package/dist/interface/adminInterface.d.ts +38 -15
- package/dist/interface/adminInterface.js +269 -174
- package/dist/interface/adminInterface.js.map +1 -0
- package/dist/interface/clientInterface.d.cts +260 -0
- package/dist/interface/clientInterface.d.ts +25 -18
- package/dist/interface/clientInterface.js +2054 -995
- package/dist/interface/clientInterface.js.map +1 -0
- package/dist/interface/crud/contact-channels.d.cts +180 -0
- package/dist/interface/crud/contact-channels.d.ts +30 -25
- package/dist/interface/crud/contact-channels.js +101 -59
- package/dist/interface/crud/contact-channels.js.map +1 -0
- package/dist/interface/crud/current-user.d.cts +205 -0
- package/dist/interface/crud/current-user.d.ts +17 -12
- package/dist/interface/crud/current-user.js +86 -56
- package/dist/interface/crud/current-user.js.map +1 -0
- package/dist/interface/crud/email-templates.d.cts +84 -0
- package/dist/interface/crud/email-templates.d.ts +24 -19
- package/dist/interface/crud/email-templates.js +77 -37
- package/dist/interface/crud/email-templates.js.map +1 -0
- package/dist/interface/crud/emails.d.cts +69 -0
- package/dist/interface/crud/emails.d.ts +12 -7
- package/dist/interface/crud/emails.js +54 -12
- package/dist/interface/crud/emails.js.map +1 -0
- package/dist/interface/crud/internal-api-keys.d.cts +139 -0
- package/dist/interface/crud/internal-api-keys.d.ts +22 -17
- package/dist/interface/crud/internal-api-keys.js +92 -54
- package/dist/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/interface/crud/oauth.d.cts +34 -0
- package/dist/interface/crud/oauth.d.ts +16 -11
- package/dist/interface/crud/oauth.js +48 -14
- package/dist/interface/crud/oauth.js.map +1 -0
- package/dist/interface/crud/project-api-keys.d.cts +196 -0
- package/dist/interface/crud/project-api-keys.d.ts +18 -10
- package/dist/interface/crud/project-api-keys.js +121 -74
- package/dist/interface/crud/project-api-keys.js.map +1 -0
- package/dist/interface/crud/project-permissions.d.cts +160 -0
- package/dist/interface/crud/project-permissions.d.ts +38 -33
- package/dist/interface/crud/project-permissions.js +148 -90
- package/dist/interface/crud/project-permissions.js.map +1 -0
- package/dist/interface/crud/projects.d.cts +640 -0
- package/dist/interface/crud/projects.d.ts +36 -31
- package/dist/interface/crud/projects.js +218 -156
- package/dist/interface/crud/projects.js.map +1 -0
- package/dist/interface/crud/sessions.d.cts +149 -0
- package/dist/interface/crud/sessions.d.ts +21 -16
- package/dist/interface/crud/sessions.js +86 -50
- package/dist/interface/crud/sessions.js.map +1 -0
- package/dist/interface/crud/svix-token.d.cts +26 -0
- package/dist/interface/crud/svix-token.d.ts +14 -9
- package/dist/interface/crud/svix-token.js +46 -12
- package/dist/interface/crud/svix-token.js.map +1 -0
- package/dist/interface/crud/team-invitation-details.d.cts +30 -0
- package/dist/interface/crud/team-invitation-details.d.ts +12 -7
- package/dist/interface/crud/team-invitation-details.js +57 -15
- package/dist/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/interface/crud/team-invitation.d.cts +49 -0
- package/dist/interface/crud/team-invitation.d.ts +13 -8
- package/dist/interface/crud/team-invitation.js +69 -27
- package/dist/interface/crud/team-invitation.js.map +1 -0
- package/dist/interface/crud/team-member-profiles.d.cts +229 -0
- package/dist/interface/crud/team-member-profiles.d.ts +20 -15
- package/dist/interface/crud/team-member-profiles.js +95 -49
- package/dist/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/interface/crud/team-memberships.d.cts +74 -0
- package/dist/interface/crud/team-memberships.d.ts +22 -17
- package/dist/interface/crud/team-memberships.js +85 -45
- package/dist/interface/crud/team-memberships.js.map +1 -0
- package/dist/interface/crud/team-permissions.d.cts +168 -0
- package/dist/interface/crud/team-permissions.d.ts +38 -33
- package/dist/interface/crud/team-permissions.js +149 -91
- package/dist/interface/crud/team-permissions.js.map +1 -0
- package/dist/interface/crud/teams.d.cts +298 -0
- package/dist/interface/crud/teams.d.ts +45 -40
- package/dist/interface/crud/teams.js +177 -119
- package/dist/interface/crud/teams.js.map +1 -0
- package/dist/interface/crud/users.d.cts +469 -0
- package/dist/interface/crud/users.d.ts +31 -26
- package/dist/interface/crud/users.js +172 -118
- package/dist/interface/crud/users.js.map +1 -0
- package/dist/interface/serverInterface.d.cts +128 -0
- package/dist/interface/serverInterface.d.ts +29 -17
- package/dist/interface/serverInterface.js +506 -339
- package/dist/interface/serverInterface.js.map +1 -0
- package/dist/interface/webhooks.d.cts +292 -0
- package/dist/interface/webhooks.d.ts +6 -3
- package/dist/interface/webhooks.js +45 -15
- package/dist/interface/webhooks.js.map +1 -0
- package/dist/known-errors.d.cts +444 -0
- package/dist/known-errors.d.ts +12 -9
- package/dist/known-errors.js +1088 -561
- package/dist/known-errors.js.map +1 -0
- package/dist/schema-fields.d.cts +163 -0
- package/dist/schema-fields.d.ts +116 -114
- package/dist/schema-fields.js +593 -427
- package/dist/schema-fields.js.map +1 -0
- package/dist/sessions.d.cts +109 -0
- package/dist/sessions.d.ts +6 -3
- package/dist/sessions.js +201 -172
- package/dist/sessions.js.map +1 -0
- package/dist/utils/api-keys.d.cts +24 -0
- package/dist/utils/api-keys.d.ts +5 -4
- package/dist/utils/api-keys.js +106 -66
- package/dist/utils/api-keys.js.map +1 -0
- package/dist/utils/arrays.d.cts +18 -0
- package/dist/utils/arrays.d.ts +15 -13
- package/dist/utils/arrays.js +101 -168
- package/dist/utils/arrays.js.map +1 -0
- package/dist/utils/base64.d.cts +4 -0
- package/dist/utils/base64.d.ts +4 -2
- package/dist/utils/base64.js +41 -20
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/booleans.d.cts +6 -0
- package/dist/utils/booleans.d.ts +6 -4
- package/dist/utils/booleans.js +35 -27
- package/dist/utils/booleans.js.map +1 -0
- package/dist/utils/browser-compat.d.cts +8 -0
- package/dist/utils/browser-compat.d.ts +3 -1
- package/dist/utils/browser-compat.js +45 -16
- package/dist/utils/browser-compat.js.map +1 -0
- package/dist/utils/bytes.d.cts +15 -0
- package/dist/utils/bytes.d.ts +15 -13
- package/dist/utils/bytes.js +182 -270
- package/dist/utils/bytes.js.map +1 -0
- package/dist/utils/caches.d.cts +98 -0
- package/dist/utils/caches.d.ts +17 -14
- package/dist/utils/caches.js +188 -193
- package/dist/utils/caches.js.map +1 -0
- package/dist/utils/compile-time.d.cts +8 -0
- package/dist/utils/compile-time.d.ts +3 -1
- package/dist/utils/compile-time.js +35 -10
- package/dist/utils/compile-time.js.map +1 -0
- package/dist/utils/crypto.d.cts +8 -0
- package/dist/utils/crypto.d.ts +4 -2
- package/dist/utils/crypto.js +49 -21
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/dates.d.cts +15 -0
- package/dist/utils/dates.d.ts +6 -4
- package/dist/utils/dates.js +83 -105
- package/dist/utils/dates.js.map +1 -0
- package/dist/utils/dom.d.cts +3 -0
- package/dist/utils/dom.d.ts +3 -1
- package/dist/utils/dom.js +35 -7
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/env.d.cts +9 -0
- package/dist/utils/env.d.ts +6 -4
- package/dist/utils/env.js +70 -43
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/errors.d.cts +223 -0
- package/dist/utils/errors.d.ts +14 -11
- package/dist/utils/errors.js +148 -126
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/fs.d.cts +7 -0
- package/dist/utils/fs.d.ts +5 -3
- package/dist/utils/fs.js +70 -27
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/functions.d.cts +4 -0
- package/dist/utils/functions.d.ts +4 -2
- package/dist/utils/functions.js +35 -18
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/geo.d.cts +22 -0
- package/dist/utils/geo.d.ts +6 -3
- package/dist/utils/geo.js +39 -9
- package/dist/utils/geo.js.map +1 -0
- package/dist/utils/globals.d.cts +5 -0
- package/dist/utils/globals.d.ts +4 -2
- package/dist/utils/globals.js +41 -14
- package/dist/utils/globals.js.map +1 -0
- package/dist/utils/hashes.d.cts +7 -0
- package/dist/utils/hashes.d.ts +7 -5
- package/dist/utils/hashes.js +87 -41
- package/dist/utils/hashes.js.map +1 -0
- package/dist/utils/html.d.cts +4 -0
- package/dist/utils/html.d.ts +4 -2
- package/dist/utils/html.js +36 -37
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/http.d.cts +43 -0
- package/dist/utils/http.d.ts +6 -4
- package/dist/utils/http.js +83 -83
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/ips.d.cts +6 -0
- package/dist/utils/ips.d.ts +6 -4
- package/dist/utils/ips.js +48 -35
- package/dist/utils/ips.js.map +1 -0
- package/dist/utils/json.d.cts +13 -0
- package/dist/utils/json.d.ts +9 -6
- package/dist/utils/json.js +54 -157
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/jwt.d.cts +44 -0
- package/dist/utils/jwt.d.ts +14 -11
- package/dist/utils/jwt.js +119 -84
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/locks.d.cts +15 -0
- package/dist/utils/locks.d.ts +3 -2
- package/dist/utils/locks.js +76 -56
- package/dist/utils/locks.js.map +1 -0
- package/dist/utils/maps.d.cts +59 -0
- package/dist/utils/maps.d.ts +6 -4
- package/dist/utils/maps.js +207 -343
- package/dist/utils/maps.js.map +1 -0
- package/dist/utils/math.d.cts +6 -0
- package/dist/utils/math.d.ts +3 -1
- package/dist/utils/math.js +31 -16
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/node-http.d.cts +15 -0
- package/dist/utils/node-http.d.ts +5 -5
- package/dist/utils/node-http.js +65 -36
- package/dist/utils/node-http.js.map +1 -0
- package/dist/utils/numbers.d.cts +5 -0
- package/dist/utils/numbers.d.ts +5 -3
- package/dist/utils/numbers.js +53 -66
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/oauth.d.cts +8 -0
- package/dist/utils/oauth.d.ts +8 -6
- package/dist/utils/oauth.js +37 -4
- package/dist/utils/oauth.js.map +1 -0
- package/dist/utils/objects.d.cts +65 -0
- package/dist/utils/objects.d.ts +31 -30
- package/dist/utils/objects.js +196 -374
- package/dist/utils/objects.js.map +1 -0
- package/dist/utils/passkey.d.cts +1 -0
- package/dist/utils/passkey.d.ts +1 -1
- package/dist/utils/passkey.js +19 -1
- package/dist/utils/passkey.js.map +1 -0
- package/dist/utils/promises.d.cts +74 -0
- package/dist/utils/promises.d.ts +20 -18
- package/dist/utils/promises.js +252 -393
- package/dist/utils/promises.js.map +1 -0
- package/dist/utils/proxies.d.cts +4 -0
- package/dist/utils/proxies.d.ts +4 -2
- package/dist/utils/proxies.js +150 -161
- package/dist/utils/proxies.js.map +1 -0
- package/dist/utils/react.d.cts +25 -0
- package/dist/utils/react.d.ts +9 -6
- package/dist/utils/react.js +88 -134
- package/dist/utils/react.js.map +1 -0
- package/dist/utils/results.d.cts +78 -0
- package/dist/utils/results.d.ts +10 -9
- package/dist/utils/results.js +143 -324
- package/dist/utils/results.js.map +1 -0
- package/dist/utils/sentry.d.cts +5 -0
- package/dist/utils/sentry.d.ts +5 -2
- package/dist/utils/sentry.js +44 -14
- package/dist/utils/sentry.js.map +1 -0
- package/dist/utils/stores.d.cts +102 -0
- package/dist/utils/stores.d.ts +12 -9
- package/dist/utils/stores.js +219 -189
- package/dist/utils/stores.js.map +1 -0
- package/dist/utils/strings.d.cts +72 -0
- package/dist/utils/strings.d.ts +22 -20
- package/dist/utils/strings.js +299 -580
- package/dist/utils/strings.js.map +1 -0
- package/dist/utils/strings.nicify.test.d.cts +2 -0
- package/dist/utils/strings.nicify.test.d.ts +2 -1
- package/dist/utils/strings.nicify.test.js +168 -158
- package/dist/utils/strings.nicify.test.js.map +1 -0
- package/dist/utils/types.d.cts +23 -0
- package/dist/utils/types.d.ts +8 -6
- package/dist/utils/types.js +19 -1
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/unicode.d.cts +3 -0
- package/dist/utils/unicode.d.ts +3 -1
- package/dist/utils/unicode.js +34 -21
- package/dist/utils/unicode.js.map +1 -0
- package/dist/utils/urls.d.cts +20 -0
- package/dist/utils/urls.d.ts +10 -8
- package/dist/utils/urls.js +76 -165
- package/dist/utils/urls.js.map +1 -0
- package/dist/utils/uuids.d.cts +4 -0
- package/dist/utils/uuids.d.ts +4 -2
- package/dist/utils/uuids.js +39 -35
- package/dist/utils/uuids.js.map +1 -0
- package/package.json +5 -5
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { CrudTypeOf } from
|
|
2
|
-
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.js';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.js';
|
|
4
|
+
|
|
5
|
+
declare const contactChannelsClientReadSchema: yup.ObjectSchema<{
|
|
3
6
|
user_id: string;
|
|
4
7
|
id: string;
|
|
5
8
|
value: string;
|
|
@@ -7,7 +10,7 @@ export declare const contactChannelsClientReadSchema: import("yup").ObjectSchema
|
|
|
7
10
|
used_for_auth: boolean;
|
|
8
11
|
is_verified: boolean;
|
|
9
12
|
is_primary: boolean;
|
|
10
|
-
},
|
|
13
|
+
}, yup.AnyObject, {
|
|
11
14
|
user_id: undefined;
|
|
12
15
|
id: undefined;
|
|
13
16
|
value: undefined;
|
|
@@ -16,45 +19,45 @@ export declare const contactChannelsClientReadSchema: import("yup").ObjectSchema
|
|
|
16
19
|
is_verified: undefined;
|
|
17
20
|
is_primary: undefined;
|
|
18
21
|
}, "">;
|
|
19
|
-
|
|
22
|
+
declare const contactChannelsCrudClientUpdateSchema: yup.ObjectSchema<{
|
|
20
23
|
value: string | undefined;
|
|
21
24
|
type: "email" | undefined;
|
|
22
25
|
used_for_auth: boolean | undefined;
|
|
23
26
|
is_primary: boolean | undefined;
|
|
24
|
-
},
|
|
27
|
+
}, yup.AnyObject, {
|
|
25
28
|
value: undefined;
|
|
26
29
|
type: undefined;
|
|
27
30
|
used_for_auth: undefined;
|
|
28
31
|
is_primary: undefined;
|
|
29
32
|
}, "">;
|
|
30
|
-
|
|
33
|
+
declare const contactChannelsCrudServerUpdateSchema: yup.ObjectSchema<{
|
|
31
34
|
value: string | undefined;
|
|
32
35
|
type: "email" | undefined;
|
|
33
36
|
used_for_auth: boolean | undefined;
|
|
34
37
|
is_primary: boolean | undefined;
|
|
35
38
|
} & {
|
|
36
39
|
is_verified: boolean | undefined;
|
|
37
|
-
},
|
|
40
|
+
}, yup.AnyObject, {
|
|
38
41
|
value: undefined;
|
|
39
42
|
type: undefined;
|
|
40
43
|
used_for_auth: undefined;
|
|
41
44
|
is_primary: undefined;
|
|
42
45
|
is_verified: undefined;
|
|
43
46
|
}, "">;
|
|
44
|
-
|
|
47
|
+
declare const contactChannelsCrudClientCreateSchema: yup.ObjectSchema<{
|
|
45
48
|
user_id: string;
|
|
46
49
|
value: string;
|
|
47
50
|
type: "email";
|
|
48
51
|
used_for_auth: boolean;
|
|
49
52
|
is_primary: boolean | undefined;
|
|
50
|
-
},
|
|
53
|
+
}, yup.AnyObject, {
|
|
51
54
|
user_id: undefined;
|
|
52
55
|
value: undefined;
|
|
53
56
|
type: undefined;
|
|
54
57
|
used_for_auth: undefined;
|
|
55
58
|
is_primary: undefined;
|
|
56
59
|
}, "">;
|
|
57
|
-
|
|
60
|
+
declare const contactChannelsCrudServerCreateSchema: yup.ObjectSchema<{
|
|
58
61
|
user_id: string;
|
|
59
62
|
value: string;
|
|
60
63
|
type: "email";
|
|
@@ -62,7 +65,7 @@ export declare const contactChannelsCrudServerCreateSchema: import("yup").Object
|
|
|
62
65
|
is_primary: boolean | undefined;
|
|
63
66
|
} & {
|
|
64
67
|
is_verified: boolean | undefined;
|
|
65
|
-
},
|
|
68
|
+
}, yup.AnyObject, {
|
|
66
69
|
user_id: undefined;
|
|
67
70
|
value: undefined;
|
|
68
71
|
type: undefined;
|
|
@@ -70,9 +73,9 @@ export declare const contactChannelsCrudServerCreateSchema: import("yup").Object
|
|
|
70
73
|
is_primary: undefined;
|
|
71
74
|
is_verified: undefined;
|
|
72
75
|
}, "">;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
clientReadSchema:
|
|
76
|
+
declare const contactChannelsCrudClientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
77
|
+
declare const contactChannelsCrud: CrudSchemaFromOptions<{
|
|
78
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
76
79
|
user_id: string;
|
|
77
80
|
id: string;
|
|
78
81
|
value: string;
|
|
@@ -80,7 +83,7 @@ export declare const contactChannelsCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
80
83
|
used_for_auth: boolean;
|
|
81
84
|
is_verified: boolean;
|
|
82
85
|
is_primary: boolean;
|
|
83
|
-
},
|
|
86
|
+
}, yup.AnyObject, {
|
|
84
87
|
user_id: undefined;
|
|
85
88
|
id: undefined;
|
|
86
89
|
value: undefined;
|
|
@@ -89,46 +92,46 @@ export declare const contactChannelsCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
89
92
|
is_verified: undefined;
|
|
90
93
|
is_primary: undefined;
|
|
91
94
|
}, "">;
|
|
92
|
-
clientUpdateSchema:
|
|
95
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
93
96
|
value: string | undefined;
|
|
94
97
|
type: "email" | undefined;
|
|
95
98
|
used_for_auth: boolean | undefined;
|
|
96
99
|
is_primary: boolean | undefined;
|
|
97
|
-
},
|
|
100
|
+
}, yup.AnyObject, {
|
|
98
101
|
value: undefined;
|
|
99
102
|
type: undefined;
|
|
100
103
|
used_for_auth: undefined;
|
|
101
104
|
is_primary: undefined;
|
|
102
105
|
}, "">;
|
|
103
|
-
clientCreateSchema:
|
|
106
|
+
clientCreateSchema: yup.ObjectSchema<{
|
|
104
107
|
user_id: string;
|
|
105
108
|
value: string;
|
|
106
109
|
type: "email";
|
|
107
110
|
used_for_auth: boolean;
|
|
108
111
|
is_primary: boolean | undefined;
|
|
109
|
-
},
|
|
112
|
+
}, yup.AnyObject, {
|
|
110
113
|
user_id: undefined;
|
|
111
114
|
value: undefined;
|
|
112
115
|
type: undefined;
|
|
113
116
|
used_for_auth: undefined;
|
|
114
117
|
is_primary: undefined;
|
|
115
118
|
}, "">;
|
|
116
|
-
clientDeleteSchema:
|
|
117
|
-
serverUpdateSchema:
|
|
119
|
+
clientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
120
|
+
serverUpdateSchema: yup.ObjectSchema<{
|
|
118
121
|
value: string | undefined;
|
|
119
122
|
type: "email" | undefined;
|
|
120
123
|
used_for_auth: boolean | undefined;
|
|
121
124
|
is_primary: boolean | undefined;
|
|
122
125
|
} & {
|
|
123
126
|
is_verified: boolean | undefined;
|
|
124
|
-
},
|
|
127
|
+
}, yup.AnyObject, {
|
|
125
128
|
value: undefined;
|
|
126
129
|
type: undefined;
|
|
127
130
|
used_for_auth: undefined;
|
|
128
131
|
is_primary: undefined;
|
|
129
132
|
is_verified: undefined;
|
|
130
133
|
}, "">;
|
|
131
|
-
serverCreateSchema:
|
|
134
|
+
serverCreateSchema: yup.ObjectSchema<{
|
|
132
135
|
user_id: string;
|
|
133
136
|
value: string;
|
|
134
137
|
type: "email";
|
|
@@ -136,7 +139,7 @@ export declare const contactChannelsCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
136
139
|
is_primary: boolean | undefined;
|
|
137
140
|
} & {
|
|
138
141
|
is_verified: boolean | undefined;
|
|
139
|
-
},
|
|
142
|
+
}, yup.AnyObject, {
|
|
140
143
|
user_id: undefined;
|
|
141
144
|
value: undefined;
|
|
142
145
|
type: undefined;
|
|
@@ -172,4 +175,6 @@ export declare const contactChannelsCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
172
175
|
};
|
|
173
176
|
};
|
|
174
177
|
}>;
|
|
175
|
-
|
|
178
|
+
type ContactChannelsCrud = CrudTypeOf<typeof contactChannelsCrud>;
|
|
179
|
+
|
|
180
|
+
export { type ContactChannelsCrud, contactChannelsClientReadSchema, contactChannelsCrud, contactChannelsCrudClientCreateSchema, contactChannelsCrudClientDeleteSchema, contactChannelsCrudClientUpdateSchema, contactChannelsCrudServerCreateSchema, contactChannelsCrudServerUpdateSchema };
|
|
@@ -1,66 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/interface/crud/contact-channels.ts
|
|
21
|
+
var contact_channels_exports = {};
|
|
22
|
+
__export(contact_channels_exports, {
|
|
23
|
+
contactChannelsClientReadSchema: () => contactChannelsClientReadSchema,
|
|
24
|
+
contactChannelsCrud: () => contactChannelsCrud,
|
|
25
|
+
contactChannelsCrudClientCreateSchema: () => contactChannelsCrudClientCreateSchema,
|
|
26
|
+
contactChannelsCrudClientDeleteSchema: () => contactChannelsCrudClientDeleteSchema,
|
|
27
|
+
contactChannelsCrudClientUpdateSchema: () => contactChannelsCrudClientUpdateSchema,
|
|
28
|
+
contactChannelsCrudServerCreateSchema: () => contactChannelsCrudServerCreateSchema,
|
|
29
|
+
contactChannelsCrudServerUpdateSchema: () => contactChannelsCrudServerUpdateSchema
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(contact_channels_exports);
|
|
32
|
+
var import_crud = require("../../crud");
|
|
33
|
+
var import_schema_fields = require("../../schema-fields");
|
|
34
|
+
var contactChannelsClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
35
|
+
user_id: import_schema_fields.userIdSchema.defined(),
|
|
36
|
+
id: import_schema_fields.contactChannelIdSchema.defined(),
|
|
37
|
+
value: import_schema_fields.contactChannelValueSchema.defined(),
|
|
38
|
+
type: import_schema_fields.contactChannelTypeSchema.defined(),
|
|
39
|
+
used_for_auth: import_schema_fields.contactChannelUsedForAuthSchema.defined(),
|
|
40
|
+
is_verified: import_schema_fields.contactChannelIsVerifiedSchema.defined(),
|
|
41
|
+
is_primary: import_schema_fields.contactChannelIsPrimarySchema.defined()
|
|
11
42
|
}).defined();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
43
|
+
var contactChannelsCrudClientUpdateSchema = (0, import_schema_fields.yupObject)({
|
|
44
|
+
value: import_schema_fields.contactChannelValueSchema.optional(),
|
|
45
|
+
type: import_schema_fields.contactChannelTypeSchema.optional(),
|
|
46
|
+
used_for_auth: import_schema_fields.contactChannelUsedForAuthSchema.optional(),
|
|
47
|
+
is_primary: import_schema_fields.contactChannelIsPrimarySchema.optional()
|
|
17
48
|
}).defined();
|
|
18
|
-
|
|
19
|
-
|
|
49
|
+
var contactChannelsCrudServerUpdateSchema = contactChannelsCrudClientUpdateSchema.concat((0, import_schema_fields.yupObject)({
|
|
50
|
+
is_verified: import_schema_fields.contactChannelIsVerifiedSchema.optional()
|
|
20
51
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
52
|
+
var contactChannelsCrudClientCreateSchema = (0, import_schema_fields.yupObject)({
|
|
53
|
+
user_id: import_schema_fields.userIdOrMeSchema.defined(),
|
|
54
|
+
value: import_schema_fields.contactChannelValueSchema.defined(),
|
|
55
|
+
type: import_schema_fields.contactChannelTypeSchema.defined(),
|
|
56
|
+
used_for_auth: import_schema_fields.contactChannelUsedForAuthSchema.defined(),
|
|
57
|
+
is_primary: import_schema_fields.contactChannelIsPrimarySchema.optional()
|
|
27
58
|
}).defined();
|
|
28
|
-
|
|
29
|
-
|
|
59
|
+
var contactChannelsCrudServerCreateSchema = contactChannelsCrudClientCreateSchema.concat((0, import_schema_fields.yupObject)({
|
|
60
|
+
is_verified: import_schema_fields.contactChannelIsVerifiedSchema.optional()
|
|
30
61
|
}));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
62
|
+
var contactChannelsCrudClientDeleteSchema = (0, import_schema_fields.yupMixed)();
|
|
63
|
+
var contactChannelsCrud = (0, import_crud.createCrud)({
|
|
64
|
+
clientReadSchema: contactChannelsClientReadSchema,
|
|
65
|
+
clientUpdateSchema: contactChannelsCrudClientUpdateSchema,
|
|
66
|
+
clientCreateSchema: contactChannelsCrudClientCreateSchema,
|
|
67
|
+
clientDeleteSchema: contactChannelsCrudClientDeleteSchema,
|
|
68
|
+
serverUpdateSchema: contactChannelsCrudServerUpdateSchema,
|
|
69
|
+
serverCreateSchema: contactChannelsCrudServerCreateSchema,
|
|
70
|
+
docs: {
|
|
71
|
+
clientRead: {
|
|
72
|
+
summary: "Get a contact channel",
|
|
73
|
+
description: "Retrieves a specific contact channel by the user ID and the contact channel ID.",
|
|
74
|
+
tags: ["Contact Channels"]
|
|
75
|
+
},
|
|
76
|
+
clientCreate: {
|
|
77
|
+
summary: "Create a contact channel",
|
|
78
|
+
description: "Add a new contact channel for a user.",
|
|
79
|
+
tags: ["Contact Channels"]
|
|
80
|
+
},
|
|
81
|
+
clientUpdate: {
|
|
82
|
+
summary: "Update a contact channel",
|
|
83
|
+
description: "Updates an existing contact channel. Only the values provided will be updated.",
|
|
84
|
+
tags: ["Contact Channels"]
|
|
85
|
+
},
|
|
86
|
+
clientDelete: {
|
|
87
|
+
summary: "Delete a contact channel",
|
|
88
|
+
description: "Removes a contact channel for a given user.",
|
|
89
|
+
tags: ["Contact Channels"]
|
|
90
|
+
},
|
|
91
|
+
clientList: {
|
|
92
|
+
summary: "List contact channels",
|
|
93
|
+
description: "Retrieves a list of all contact channels for a user.",
|
|
94
|
+
tags: ["Contact Channels"]
|
|
65
95
|
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
contactChannelsClientReadSchema,
|
|
101
|
+
contactChannelsCrud,
|
|
102
|
+
contactChannelsCrudClientCreateSchema,
|
|
103
|
+
contactChannelsCrudClientDeleteSchema,
|
|
104
|
+
contactChannelsCrudClientUpdateSchema,
|
|
105
|
+
contactChannelsCrudServerCreateSchema,
|
|
106
|
+
contactChannelsCrudServerUpdateSchema
|
|
66
107
|
});
|
|
108
|
+
//# sourceMappingURL=contact-channels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/contact-channels.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport { contactChannelIdSchema, contactChannelIsPrimarySchema, contactChannelIsVerifiedSchema, contactChannelTypeSchema, contactChannelUsedForAuthSchema, contactChannelValueSchema, userIdOrMeSchema, userIdSchema, yupMixed, yupObject } from \"../../schema-fields\";\n\nexport const contactChannelsClientReadSchema = yupObject({\n user_id: userIdSchema.defined(),\n id: contactChannelIdSchema.defined(),\n value: contactChannelValueSchema.defined(),\n type: contactChannelTypeSchema.defined(),\n used_for_auth: contactChannelUsedForAuthSchema.defined(),\n is_verified: contactChannelIsVerifiedSchema.defined(),\n is_primary: contactChannelIsPrimarySchema.defined(),\n}).defined();\n\nexport const contactChannelsCrudClientUpdateSchema = yupObject({\n value: contactChannelValueSchema.optional(),\n type: contactChannelTypeSchema.optional(),\n used_for_auth: contactChannelUsedForAuthSchema.optional(),\n is_primary: contactChannelIsPrimarySchema.optional(),\n}).defined();\n\nexport const contactChannelsCrudServerUpdateSchema = contactChannelsCrudClientUpdateSchema.concat(yupObject({\n is_verified: contactChannelIsVerifiedSchema.optional(),\n}));\n\nexport const contactChannelsCrudClientCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n value: contactChannelValueSchema.defined(),\n type: contactChannelTypeSchema.defined(),\n used_for_auth: contactChannelUsedForAuthSchema.defined(),\n is_primary: contactChannelIsPrimarySchema.optional(),\n}).defined();\n\nexport const contactChannelsCrudServerCreateSchema = contactChannelsCrudClientCreateSchema.concat(yupObject({\n is_verified: contactChannelIsVerifiedSchema.optional(),\n}));\n\nexport const contactChannelsCrudClientDeleteSchema = yupMixed();\n\nexport const contactChannelsCrud = createCrud({\n clientReadSchema: contactChannelsClientReadSchema,\n clientUpdateSchema: contactChannelsCrudClientUpdateSchema,\n clientCreateSchema: contactChannelsCrudClientCreateSchema,\n clientDeleteSchema: contactChannelsCrudClientDeleteSchema,\n serverUpdateSchema: contactChannelsCrudServerUpdateSchema,\n serverCreateSchema: contactChannelsCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get a contact channel\",\n description: \"Retrieves a specific contact channel by the user ID and the contact channel ID.\",\n tags: [\"Contact Channels\"],\n },\n clientCreate: {\n summary: \"Create a contact channel\",\n description: \"Add a new contact channel for a user.\",\n tags: [\"Contact Channels\"],\n },\n clientUpdate: {\n summary: \"Update a contact channel\",\n description: \"Updates an existing contact channel. Only the values provided will be updated.\",\n tags: [\"Contact Channels\"],\n },\n clientDelete: {\n summary: \"Delete a contact channel\",\n description: \"Removes a contact channel for a given user.\",\n tags: [\"Contact Channels\"],\n },\n clientList: {\n summary: \"List contact channels\",\n description: \"Retrieves a list of all contact channels for a user.\",\n tags: [\"Contact Channels\"],\n }\n }\n});\nexport type ContactChannelsCrud = CrudTypeOf<typeof contactChannelsCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAAiP;AAE1O,IAAM,sCAAkC,gCAAU;AAAA,EACvD,SAAS,kCAAa,QAAQ;AAAA,EAC9B,IAAI,4CAAuB,QAAQ;AAAA,EACnC,OAAO,+CAA0B,QAAQ;AAAA,EACzC,MAAM,8CAAyB,QAAQ;AAAA,EACvC,eAAe,qDAAgC,QAAQ;AAAA,EACvD,aAAa,oDAA+B,QAAQ;AAAA,EACpD,YAAY,mDAA8B,QAAQ;AACpD,CAAC,EAAE,QAAQ;AAEJ,IAAM,4CAAwC,gCAAU;AAAA,EAC7D,OAAO,+CAA0B,SAAS;AAAA,EAC1C,MAAM,8CAAyB,SAAS;AAAA,EACxC,eAAe,qDAAgC,SAAS;AAAA,EACxD,YAAY,mDAA8B,SAAS;AACrD,CAAC,EAAE,QAAQ;AAEJ,IAAM,wCAAwC,sCAAsC,WAAO,gCAAU;AAAA,EAC1G,aAAa,oDAA+B,SAAS;AACvD,CAAC,CAAC;AAEK,IAAM,4CAAwC,gCAAU;AAAA,EAC7D,SAAS,sCAAiB,QAAQ;AAAA,EAClC,OAAO,+CAA0B,QAAQ;AAAA,EACzC,MAAM,8CAAyB,QAAQ;AAAA,EACvC,eAAe,qDAAgC,QAAQ;AAAA,EACvD,YAAY,mDAA8B,SAAS;AACrD,CAAC,EAAE,QAAQ;AAEJ,IAAM,wCAAwC,sCAAsC,WAAO,gCAAU;AAAA,EAC1G,aAAa,oDAA+B,SAAS;AACvD,CAAC,CAAC;AAEK,IAAM,4CAAwC,+BAAS;AAEvD,IAAM,0BAAsB,wBAAW;AAAA,EAC5C,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,kBAAkB;AAAA,IAC3B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,kBAAkB;AAAA,IAC3B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,kBAAkB;AAAA,IAC3B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,kBAAkB;AAAA,IAC3B;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,kBAAkB;AAAA,IAC3B;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
6
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
7
|
+
id: string;
|
|
8
|
+
display_name: string | null;
|
|
9
|
+
oauth_providers: {
|
|
10
|
+
email?: string | null | undefined;
|
|
11
|
+
id: string;
|
|
12
|
+
account_id: string;
|
|
13
|
+
}[];
|
|
14
|
+
profile_image_url: string | null;
|
|
15
|
+
client_metadata: {} | null;
|
|
16
|
+
client_read_only_metadata: {} | null;
|
|
17
|
+
primary_email: string | null;
|
|
18
|
+
primary_email_verified: boolean;
|
|
19
|
+
passkey_auth_enabled: boolean;
|
|
20
|
+
otp_auth_enabled: boolean;
|
|
21
|
+
selected_team_id: string | null;
|
|
22
|
+
is_anonymous: boolean;
|
|
23
|
+
signed_up_at_millis: number;
|
|
24
|
+
has_password: boolean;
|
|
25
|
+
auth_with_email: boolean;
|
|
26
|
+
requires_totp_mfa: boolean;
|
|
27
|
+
} & {
|
|
28
|
+
selected_team: {
|
|
29
|
+
client_metadata?: {} | null | undefined;
|
|
30
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
display_name: string;
|
|
33
|
+
profile_image_url: string | null;
|
|
34
|
+
} | null;
|
|
35
|
+
}, yup.AnyObject, {
|
|
36
|
+
id: undefined;
|
|
37
|
+
primary_email: undefined;
|
|
38
|
+
primary_email_verified: undefined;
|
|
39
|
+
primary_email_auth_enabled: undefined;
|
|
40
|
+
display_name: undefined;
|
|
41
|
+
selected_team: {
|
|
42
|
+
id: undefined;
|
|
43
|
+
display_name: undefined;
|
|
44
|
+
profile_image_url: undefined;
|
|
45
|
+
client_metadata: undefined;
|
|
46
|
+
client_read_only_metadata: undefined;
|
|
47
|
+
};
|
|
48
|
+
selected_team_id: undefined;
|
|
49
|
+
profile_image_url: undefined;
|
|
50
|
+
signed_up_at_millis: undefined;
|
|
51
|
+
has_password: undefined;
|
|
52
|
+
otp_auth_enabled: undefined;
|
|
53
|
+
passkey_auth_enabled: undefined;
|
|
54
|
+
client_metadata: undefined;
|
|
55
|
+
client_read_only_metadata: undefined;
|
|
56
|
+
server_metadata: undefined;
|
|
57
|
+
last_active_at_millis: undefined;
|
|
58
|
+
is_anonymous: undefined;
|
|
59
|
+
oauth_providers: undefined;
|
|
60
|
+
auth_with_email: undefined;
|
|
61
|
+
requires_totp_mfa: undefined;
|
|
62
|
+
}, "">;
|
|
63
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
64
|
+
id: string;
|
|
65
|
+
primary_email: string | null;
|
|
66
|
+
primary_email_verified: boolean;
|
|
67
|
+
primary_email_auth_enabled: boolean;
|
|
68
|
+
display_name: string | null;
|
|
69
|
+
selected_team: {
|
|
70
|
+
client_metadata?: {} | null | undefined;
|
|
71
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
72
|
+
server_metadata?: {} | null | undefined;
|
|
73
|
+
id: string;
|
|
74
|
+
display_name: string;
|
|
75
|
+
created_at_millis: number;
|
|
76
|
+
profile_image_url: string | null;
|
|
77
|
+
} | null;
|
|
78
|
+
selected_team_id: string | null;
|
|
79
|
+
profile_image_url: string | null;
|
|
80
|
+
signed_up_at_millis: number;
|
|
81
|
+
has_password: boolean;
|
|
82
|
+
otp_auth_enabled: boolean;
|
|
83
|
+
passkey_auth_enabled: boolean;
|
|
84
|
+
client_metadata: {} | null;
|
|
85
|
+
client_read_only_metadata: {} | null;
|
|
86
|
+
server_metadata: {} | null;
|
|
87
|
+
last_active_at_millis: number;
|
|
88
|
+
is_anonymous: boolean;
|
|
89
|
+
oauth_providers: {
|
|
90
|
+
email?: string | null | undefined;
|
|
91
|
+
id: string;
|
|
92
|
+
account_id: string;
|
|
93
|
+
}[];
|
|
94
|
+
auth_with_email: boolean;
|
|
95
|
+
requires_totp_mfa: boolean;
|
|
96
|
+
}, yup.AnyObject, {
|
|
97
|
+
id: undefined;
|
|
98
|
+
primary_email: undefined;
|
|
99
|
+
primary_email_verified: undefined;
|
|
100
|
+
primary_email_auth_enabled: undefined;
|
|
101
|
+
display_name: undefined;
|
|
102
|
+
selected_team: {
|
|
103
|
+
id: undefined;
|
|
104
|
+
display_name: undefined;
|
|
105
|
+
profile_image_url: undefined;
|
|
106
|
+
client_metadata: undefined;
|
|
107
|
+
client_read_only_metadata: undefined;
|
|
108
|
+
created_at_millis: undefined;
|
|
109
|
+
server_metadata: undefined;
|
|
110
|
+
};
|
|
111
|
+
selected_team_id: undefined;
|
|
112
|
+
profile_image_url: undefined;
|
|
113
|
+
signed_up_at_millis: undefined;
|
|
114
|
+
has_password: undefined;
|
|
115
|
+
otp_auth_enabled: undefined;
|
|
116
|
+
passkey_auth_enabled: undefined;
|
|
117
|
+
client_metadata: undefined;
|
|
118
|
+
client_read_only_metadata: undefined;
|
|
119
|
+
server_metadata: undefined;
|
|
120
|
+
last_active_at_millis: undefined;
|
|
121
|
+
is_anonymous: undefined;
|
|
122
|
+
oauth_providers: undefined;
|
|
123
|
+
auth_with_email: undefined;
|
|
124
|
+
requires_totp_mfa: undefined;
|
|
125
|
+
}, "">;
|
|
126
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
127
|
+
display_name: string | null | undefined;
|
|
128
|
+
profile_image_url: string | null | undefined;
|
|
129
|
+
client_metadata: {} | null | undefined;
|
|
130
|
+
passkey_auth_enabled: boolean | undefined;
|
|
131
|
+
otp_auth_enabled: boolean | undefined;
|
|
132
|
+
totp_secret_base64: string | null | undefined;
|
|
133
|
+
selected_team_id: string | null | undefined;
|
|
134
|
+
}, yup.AnyObject, {
|
|
135
|
+
display_name: undefined;
|
|
136
|
+
profile_image_url: undefined;
|
|
137
|
+
client_metadata: undefined;
|
|
138
|
+
client_read_only_metadata: undefined;
|
|
139
|
+
server_metadata: undefined;
|
|
140
|
+
primary_email: undefined;
|
|
141
|
+
primary_email_verified: undefined;
|
|
142
|
+
primary_email_auth_enabled: undefined;
|
|
143
|
+
passkey_auth_enabled: undefined;
|
|
144
|
+
password: undefined;
|
|
145
|
+
password_hash: undefined;
|
|
146
|
+
otp_auth_enabled: undefined;
|
|
147
|
+
totp_secret_base64: undefined;
|
|
148
|
+
selected_team_id: undefined;
|
|
149
|
+
is_anonymous: undefined;
|
|
150
|
+
}, "">;
|
|
151
|
+
serverUpdateSchema: yup.ObjectSchema<{
|
|
152
|
+
display_name: string | null | undefined;
|
|
153
|
+
profile_image_url: string | null | undefined;
|
|
154
|
+
client_metadata: {} | null | undefined;
|
|
155
|
+
client_read_only_metadata: {} | null | undefined;
|
|
156
|
+
server_metadata: {} | null | undefined;
|
|
157
|
+
primary_email: string | null | undefined;
|
|
158
|
+
primary_email_verified: boolean | undefined;
|
|
159
|
+
primary_email_auth_enabled: boolean | undefined;
|
|
160
|
+
passkey_auth_enabled: boolean | undefined;
|
|
161
|
+
password: string | null | undefined;
|
|
162
|
+
password_hash: string | undefined;
|
|
163
|
+
otp_auth_enabled: boolean | undefined;
|
|
164
|
+
totp_secret_base64: string | null | undefined;
|
|
165
|
+
selected_team_id: string | null | undefined;
|
|
166
|
+
is_anonymous: boolean | undefined;
|
|
167
|
+
}, yup.AnyObject, {
|
|
168
|
+
display_name: undefined;
|
|
169
|
+
profile_image_url: undefined;
|
|
170
|
+
client_metadata: undefined;
|
|
171
|
+
client_read_only_metadata: undefined;
|
|
172
|
+
server_metadata: undefined;
|
|
173
|
+
primary_email: undefined;
|
|
174
|
+
primary_email_verified: undefined;
|
|
175
|
+
primary_email_auth_enabled: undefined;
|
|
176
|
+
passkey_auth_enabled: undefined;
|
|
177
|
+
password: undefined;
|
|
178
|
+
password_hash: undefined;
|
|
179
|
+
otp_auth_enabled: undefined;
|
|
180
|
+
totp_secret_base64: undefined;
|
|
181
|
+
selected_team_id: undefined;
|
|
182
|
+
is_anonymous: undefined;
|
|
183
|
+
}, "">;
|
|
184
|
+
clientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
185
|
+
docs: {
|
|
186
|
+
clientRead: {
|
|
187
|
+
summary: string;
|
|
188
|
+
description: string;
|
|
189
|
+
tags: string[];
|
|
190
|
+
};
|
|
191
|
+
clientUpdate: {
|
|
192
|
+
summary: string;
|
|
193
|
+
description: string;
|
|
194
|
+
tags: string[];
|
|
195
|
+
};
|
|
196
|
+
clientDelete: {
|
|
197
|
+
summary: string;
|
|
198
|
+
description: string;
|
|
199
|
+
tags: string[];
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
type CurrentUserCrud = CrudTypeOf<typeof currentUserCrud>;
|
|
204
|
+
|
|
205
|
+
export { type CurrentUserCrud, currentUserCrud };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { CrudTypeOf } from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.js';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.js';
|
|
4
|
+
|
|
5
|
+
declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
6
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
4
7
|
id: string;
|
|
5
8
|
display_name: string | null;
|
|
6
9
|
oauth_providers: {
|
|
@@ -29,7 +32,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
29
32
|
display_name: string;
|
|
30
33
|
profile_image_url: string | null;
|
|
31
34
|
} | null;
|
|
32
|
-
},
|
|
35
|
+
}, yup.AnyObject, {
|
|
33
36
|
id: undefined;
|
|
34
37
|
primary_email: undefined;
|
|
35
38
|
primary_email_verified: undefined;
|
|
@@ -57,7 +60,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
57
60
|
auth_with_email: undefined;
|
|
58
61
|
requires_totp_mfa: undefined;
|
|
59
62
|
}, "">;
|
|
60
|
-
serverReadSchema:
|
|
63
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
61
64
|
id: string;
|
|
62
65
|
primary_email: string | null;
|
|
63
66
|
primary_email_verified: boolean;
|
|
@@ -90,7 +93,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
90
93
|
}[];
|
|
91
94
|
auth_with_email: boolean;
|
|
92
95
|
requires_totp_mfa: boolean;
|
|
93
|
-
},
|
|
96
|
+
}, yup.AnyObject, {
|
|
94
97
|
id: undefined;
|
|
95
98
|
primary_email: undefined;
|
|
96
99
|
primary_email_verified: undefined;
|
|
@@ -120,7 +123,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
120
123
|
auth_with_email: undefined;
|
|
121
124
|
requires_totp_mfa: undefined;
|
|
122
125
|
}, "">;
|
|
123
|
-
clientUpdateSchema:
|
|
126
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
124
127
|
display_name: string | null | undefined;
|
|
125
128
|
profile_image_url: string | null | undefined;
|
|
126
129
|
client_metadata: {} | null | undefined;
|
|
@@ -128,7 +131,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
128
131
|
otp_auth_enabled: boolean | undefined;
|
|
129
132
|
totp_secret_base64: string | null | undefined;
|
|
130
133
|
selected_team_id: string | null | undefined;
|
|
131
|
-
},
|
|
134
|
+
}, yup.AnyObject, {
|
|
132
135
|
display_name: undefined;
|
|
133
136
|
profile_image_url: undefined;
|
|
134
137
|
client_metadata: undefined;
|
|
@@ -145,7 +148,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
145
148
|
selected_team_id: undefined;
|
|
146
149
|
is_anonymous: undefined;
|
|
147
150
|
}, "">;
|
|
148
|
-
serverUpdateSchema:
|
|
151
|
+
serverUpdateSchema: yup.ObjectSchema<{
|
|
149
152
|
display_name: string | null | undefined;
|
|
150
153
|
profile_image_url: string | null | undefined;
|
|
151
154
|
client_metadata: {} | null | undefined;
|
|
@@ -161,7 +164,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
161
164
|
totp_secret_base64: string | null | undefined;
|
|
162
165
|
selected_team_id: string | null | undefined;
|
|
163
166
|
is_anonymous: boolean | undefined;
|
|
164
|
-
},
|
|
167
|
+
}, yup.AnyObject, {
|
|
165
168
|
display_name: undefined;
|
|
166
169
|
profile_image_url: undefined;
|
|
167
170
|
client_metadata: undefined;
|
|
@@ -178,7 +181,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
178
181
|
selected_team_id: undefined;
|
|
179
182
|
is_anonymous: undefined;
|
|
180
183
|
}, "">;
|
|
181
|
-
clientDeleteSchema:
|
|
184
|
+
clientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
182
185
|
docs: {
|
|
183
186
|
clientRead: {
|
|
184
187
|
summary: string;
|
|
@@ -197,4 +200,6 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
197
200
|
};
|
|
198
201
|
};
|
|
199
202
|
}>;
|
|
200
|
-
|
|
203
|
+
type CurrentUserCrud = CrudTypeOf<typeof currentUserCrud>;
|
|
204
|
+
|
|
205
|
+
export { type CurrentUserCrud, currentUserCrud };
|