@stackframe/stack-shared 2.8.7 → 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 +10 -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,17 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/interface/crud/team-invitation-details.ts
|
|
31
|
+
var team_invitation_details_exports = {};
|
|
32
|
+
__export(team_invitation_details_exports, {
|
|
33
|
+
teamInvitationDetailsClientReadSchema: () => teamInvitationDetailsClientReadSchema,
|
|
34
|
+
teamInvitationDetailsCrud: () => teamInvitationDetailsCrud
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(team_invitation_details_exports);
|
|
37
|
+
var import_crud = require("../../crud");
|
|
38
|
+
var schemaFields = __toESM(require("../../schema-fields"), 1);
|
|
39
|
+
var import_schema_fields = require("../../schema-fields");
|
|
40
|
+
var teamInvitationDetailsClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
41
|
+
team_id: schemaFields.teamIdSchema.defined(),
|
|
42
|
+
team_display_name: schemaFields.teamDisplayNameSchema.defined()
|
|
7
43
|
}).defined();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
44
|
+
var teamInvitationDetailsCrud = (0, import_crud.createCrud)({
|
|
45
|
+
clientReadSchema: teamInvitationDetailsClientReadSchema,
|
|
46
|
+
docs: {
|
|
47
|
+
clientRead: {
|
|
48
|
+
summary: "Get the team details with invitation code",
|
|
49
|
+
description: "",
|
|
50
|
+
tags: ["Teams"]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
teamInvitationDetailsClientReadSchema,
|
|
57
|
+
teamInvitationDetailsCrud
|
|
17
58
|
});
|
|
59
|
+
//# sourceMappingURL=team-invitation-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/team-invitation-details.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupObject } from \"../../schema-fields\";\n\n\nexport const teamInvitationDetailsClientReadSchema = yupObject({\n team_id: schemaFields.teamIdSchema.defined(),\n team_display_name: schemaFields.teamDisplayNameSchema.defined(),\n}).defined();\n\nexport const teamInvitationDetailsCrud = createCrud({\n clientReadSchema: teamInvitationDetailsClientReadSchema,\n docs: {\n clientRead: {\n summary: \"Get the team details with invitation code\",\n description: \"\",\n tags: [\"Teams\"],\n },\n },\n});\n\nexport type TeamInvitationDetailsCrud = CrudTypeOf<typeof teamInvitationDetailsCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,mBAA8B;AAC9B,2BAA0B;AAGnB,IAAM,4CAAwC,gCAAU;AAAA,EAC7D,SAAsB,0BAAa,QAAQ;AAAA,EAC3C,mBAAgC,mCAAsB,QAAQ;AAChE,CAAC,EAAE,QAAQ;AAEJ,IAAM,gCAA4B,wBAAW;AAAA,EAClD,kBAAkB;AAAA,EAClB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const teamInvitationDetailsClientReadSchema: yup.ObjectSchema<{
|
|
6
|
+
id: string;
|
|
7
|
+
team_id: string;
|
|
8
|
+
expires_at_millis: number;
|
|
9
|
+
recipient_email: string;
|
|
10
|
+
}, yup.AnyObject, {
|
|
11
|
+
id: undefined;
|
|
12
|
+
team_id: undefined;
|
|
13
|
+
expires_at_millis: undefined;
|
|
14
|
+
recipient_email: undefined;
|
|
15
|
+
}, "">;
|
|
16
|
+
declare const teamInvitationCrud: CrudSchemaFromOptions<{
|
|
17
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
18
|
+
id: string;
|
|
19
|
+
team_id: string;
|
|
20
|
+
expires_at_millis: number;
|
|
21
|
+
recipient_email: string;
|
|
22
|
+
}, yup.AnyObject, {
|
|
23
|
+
id: undefined;
|
|
24
|
+
team_id: undefined;
|
|
25
|
+
expires_at_millis: undefined;
|
|
26
|
+
recipient_email: undefined;
|
|
27
|
+
}, "">;
|
|
28
|
+
clientDeleteSchema: yup.MixedSchema<any, yup.AnyObject, undefined, "">;
|
|
29
|
+
docs: {
|
|
30
|
+
clientRead: {
|
|
31
|
+
summary: string;
|
|
32
|
+
description: string;
|
|
33
|
+
tags: string[];
|
|
34
|
+
};
|
|
35
|
+
clientList: {
|
|
36
|
+
summary: string;
|
|
37
|
+
description: string;
|
|
38
|
+
tags: string[];
|
|
39
|
+
};
|
|
40
|
+
clientDelete: {
|
|
41
|
+
summary: string;
|
|
42
|
+
description: string;
|
|
43
|
+
tags: string[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
type TeamInvitationCrud = CrudTypeOf<typeof teamInvitationCrud>;
|
|
48
|
+
|
|
49
|
+
export { type TeamInvitationCrud, teamInvitationCrud, teamInvitationDetailsClientReadSchema };
|
|
@@ -1,28 +1,31 @@
|
|
|
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 teamInvitationDetailsClientReadSchema: yup.ObjectSchema<{
|
|
3
6
|
id: string;
|
|
4
7
|
team_id: string;
|
|
5
8
|
expires_at_millis: number;
|
|
6
9
|
recipient_email: string;
|
|
7
|
-
},
|
|
10
|
+
}, yup.AnyObject, {
|
|
8
11
|
id: undefined;
|
|
9
12
|
team_id: undefined;
|
|
10
13
|
expires_at_millis: undefined;
|
|
11
14
|
recipient_email: undefined;
|
|
12
15
|
}, "">;
|
|
13
|
-
|
|
14
|
-
clientReadSchema:
|
|
16
|
+
declare const teamInvitationCrud: CrudSchemaFromOptions<{
|
|
17
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
15
18
|
id: string;
|
|
16
19
|
team_id: string;
|
|
17
20
|
expires_at_millis: number;
|
|
18
21
|
recipient_email: string;
|
|
19
|
-
},
|
|
22
|
+
}, yup.AnyObject, {
|
|
20
23
|
id: undefined;
|
|
21
24
|
team_id: undefined;
|
|
22
25
|
expires_at_millis: undefined;
|
|
23
26
|
recipient_email: undefined;
|
|
24
27
|
}, "">;
|
|
25
|
-
clientDeleteSchema:
|
|
28
|
+
clientDeleteSchema: yup.MixedSchema<any, yup.AnyObject, undefined, "">;
|
|
26
29
|
docs: {
|
|
27
30
|
clientRead: {
|
|
28
31
|
summary: string;
|
|
@@ -41,4 +44,6 @@ export declare const teamInvitationCrud: import("../../crud").CrudSchemaFromOpti
|
|
|
41
44
|
};
|
|
42
45
|
};
|
|
43
46
|
}>;
|
|
44
|
-
|
|
47
|
+
type TeamInvitationCrud = CrudTypeOf<typeof teamInvitationCrud>;
|
|
48
|
+
|
|
49
|
+
export { type TeamInvitationCrud, teamInvitationCrud, teamInvitationDetailsClientReadSchema };
|
|
@@ -1,30 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/interface/crud/team-invitation.ts
|
|
31
|
+
var team_invitation_exports = {};
|
|
32
|
+
__export(team_invitation_exports, {
|
|
33
|
+
teamInvitationCrud: () => teamInvitationCrud,
|
|
34
|
+
teamInvitationDetailsClientReadSchema: () => teamInvitationDetailsClientReadSchema
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(team_invitation_exports);
|
|
37
|
+
var import_crud = require("../../crud");
|
|
38
|
+
var schemaFields = __toESM(require("../../schema-fields"), 1);
|
|
39
|
+
var import_schema_fields = require("../../schema-fields");
|
|
40
|
+
var teamInvitationDetailsClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
41
|
+
id: schemaFields.yupString().uuid().defined(),
|
|
42
|
+
team_id: schemaFields.teamIdSchema.defined(),
|
|
43
|
+
expires_at_millis: schemaFields.yupNumber().defined(),
|
|
44
|
+
recipient_email: schemaFields.emailSchema.defined()
|
|
9
45
|
}).defined();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
clientDelete: {
|
|
25
|
-
summary: "Delete a team invitation",
|
|
26
|
-
description: "",
|
|
27
|
-
tags: ["Teams"],
|
|
28
|
-
},
|
|
46
|
+
var teamInvitationCrud = (0, import_crud.createCrud)({
|
|
47
|
+
clientReadSchema: teamInvitationDetailsClientReadSchema,
|
|
48
|
+
clientDeleteSchema: schemaFields.yupMixed(),
|
|
49
|
+
docs: {
|
|
50
|
+
clientRead: {
|
|
51
|
+
summary: "Get the team details with invitation code",
|
|
52
|
+
description: "",
|
|
53
|
+
tags: ["Teams"]
|
|
54
|
+
},
|
|
55
|
+
clientList: {
|
|
56
|
+
summary: "List team invitations",
|
|
57
|
+
description: "",
|
|
58
|
+
tags: ["Teams"]
|
|
29
59
|
},
|
|
60
|
+
clientDelete: {
|
|
61
|
+
summary: "Delete a team invitation",
|
|
62
|
+
description: "",
|
|
63
|
+
tags: ["Teams"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
teamInvitationCrud,
|
|
70
|
+
teamInvitationDetailsClientReadSchema
|
|
30
71
|
});
|
|
72
|
+
//# sourceMappingURL=team-invitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/team-invitation.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupObject } from \"../../schema-fields\";\n\nexport const teamInvitationDetailsClientReadSchema = yupObject({\n id: schemaFields.yupString().uuid().defined(),\n team_id: schemaFields.teamIdSchema.defined(),\n expires_at_millis: schemaFields.yupNumber().defined(),\n recipient_email: schemaFields.emailSchema.defined(),\n}).defined();\n\nexport const teamInvitationCrud = createCrud({\n clientReadSchema: teamInvitationDetailsClientReadSchema,\n clientDeleteSchema: schemaFields.yupMixed(),\n docs: {\n clientRead: {\n summary: \"Get the team details with invitation code\",\n description: \"\",\n tags: [\"Teams\"],\n },\n clientList: {\n summary: \"List team invitations\",\n description: \"\",\n tags: [\"Teams\"],\n },\n clientDelete: {\n summary: \"Delete a team invitation\",\n description: \"\",\n tags: [\"Teams\"],\n },\n },\n});\n\nexport type TeamInvitationCrud = CrudTypeOf<typeof teamInvitationCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,mBAA8B;AAC9B,2BAA0B;AAEnB,IAAM,4CAAwC,gCAAU;AAAA,EAC7D,IAAiB,uBAAU,EAAE,KAAK,EAAE,QAAQ;AAAA,EAC5C,SAAsB,0BAAa,QAAQ;AAAA,EAC3C,mBAAgC,uBAAU,EAAE,QAAQ;AAAA,EACpD,iBAA8B,yBAAY,QAAQ;AACpD,CAAC,EAAE,QAAQ;AAEJ,IAAM,yBAAqB,wBAAW;AAAA,EAC3C,kBAAkB;AAAA,EAClB,oBAAiC,sBAAS;AAAA,EAC1C,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const teamMemberProfilesCrudClientReadSchema: yup.ObjectSchema<{
|
|
6
|
+
team_id: string;
|
|
7
|
+
user_id: string;
|
|
8
|
+
display_name: string | null;
|
|
9
|
+
profile_image_url: string | null;
|
|
10
|
+
}, yup.AnyObject, {
|
|
11
|
+
team_id: undefined;
|
|
12
|
+
user_id: undefined;
|
|
13
|
+
display_name: undefined;
|
|
14
|
+
profile_image_url: undefined;
|
|
15
|
+
}, "">;
|
|
16
|
+
declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
17
|
+
team_id: string;
|
|
18
|
+
user_id: string;
|
|
19
|
+
display_name: string | null;
|
|
20
|
+
profile_image_url: string | null;
|
|
21
|
+
} & {
|
|
22
|
+
user: {
|
|
23
|
+
id: string;
|
|
24
|
+
display_name: string | null;
|
|
25
|
+
oauth_providers: {
|
|
26
|
+
email?: string | null | undefined;
|
|
27
|
+
id: string;
|
|
28
|
+
account_id: string;
|
|
29
|
+
}[];
|
|
30
|
+
profile_image_url: string | null;
|
|
31
|
+
client_metadata: {} | null;
|
|
32
|
+
client_read_only_metadata: {} | null;
|
|
33
|
+
server_metadata: {} | null;
|
|
34
|
+
primary_email: string | null;
|
|
35
|
+
primary_email_verified: boolean;
|
|
36
|
+
primary_email_auth_enabled: boolean;
|
|
37
|
+
passkey_auth_enabled: boolean;
|
|
38
|
+
otp_auth_enabled: boolean;
|
|
39
|
+
selected_team_id: string | null;
|
|
40
|
+
is_anonymous: boolean;
|
|
41
|
+
selected_team: {
|
|
42
|
+
client_metadata?: {} | null | undefined;
|
|
43
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
44
|
+
server_metadata?: {} | null | undefined;
|
|
45
|
+
id: string;
|
|
46
|
+
display_name: string;
|
|
47
|
+
created_at_millis: number;
|
|
48
|
+
profile_image_url: string | null;
|
|
49
|
+
} | null;
|
|
50
|
+
signed_up_at_millis: number;
|
|
51
|
+
has_password: boolean;
|
|
52
|
+
last_active_at_millis: number;
|
|
53
|
+
auth_with_email: boolean;
|
|
54
|
+
requires_totp_mfa: boolean;
|
|
55
|
+
};
|
|
56
|
+
}, yup.AnyObject, {
|
|
57
|
+
team_id: undefined;
|
|
58
|
+
user_id: undefined;
|
|
59
|
+
display_name: undefined;
|
|
60
|
+
profile_image_url: undefined;
|
|
61
|
+
user: {
|
|
62
|
+
id: undefined;
|
|
63
|
+
primary_email: undefined;
|
|
64
|
+
primary_email_verified: undefined;
|
|
65
|
+
primary_email_auth_enabled: undefined;
|
|
66
|
+
display_name: undefined;
|
|
67
|
+
selected_team: {
|
|
68
|
+
id: undefined;
|
|
69
|
+
display_name: undefined;
|
|
70
|
+
profile_image_url: undefined;
|
|
71
|
+
client_metadata: undefined;
|
|
72
|
+
client_read_only_metadata: undefined;
|
|
73
|
+
created_at_millis: undefined;
|
|
74
|
+
server_metadata: undefined;
|
|
75
|
+
};
|
|
76
|
+
selected_team_id: undefined;
|
|
77
|
+
profile_image_url: undefined;
|
|
78
|
+
signed_up_at_millis: undefined;
|
|
79
|
+
has_password: undefined;
|
|
80
|
+
otp_auth_enabled: undefined;
|
|
81
|
+
passkey_auth_enabled: undefined;
|
|
82
|
+
client_metadata: undefined;
|
|
83
|
+
client_read_only_metadata: undefined;
|
|
84
|
+
server_metadata: undefined;
|
|
85
|
+
last_active_at_millis: undefined;
|
|
86
|
+
is_anonymous: undefined;
|
|
87
|
+
oauth_providers: undefined;
|
|
88
|
+
auth_with_email: undefined;
|
|
89
|
+
requires_totp_mfa: undefined;
|
|
90
|
+
};
|
|
91
|
+
}, "">;
|
|
92
|
+
declare const teamMemberProfilesCrudClientUpdateSchema: yup.ObjectSchema<{
|
|
93
|
+
display_name: string | undefined;
|
|
94
|
+
profile_image_url: string | null | undefined;
|
|
95
|
+
}, yup.AnyObject, {
|
|
96
|
+
display_name: undefined;
|
|
97
|
+
profile_image_url: undefined;
|
|
98
|
+
}, "">;
|
|
99
|
+
declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
100
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
101
|
+
team_id: string;
|
|
102
|
+
user_id: string;
|
|
103
|
+
display_name: string | null;
|
|
104
|
+
profile_image_url: string | null;
|
|
105
|
+
}, yup.AnyObject, {
|
|
106
|
+
team_id: undefined;
|
|
107
|
+
user_id: undefined;
|
|
108
|
+
display_name: undefined;
|
|
109
|
+
profile_image_url: undefined;
|
|
110
|
+
}, "">;
|
|
111
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
112
|
+
team_id: string;
|
|
113
|
+
user_id: string;
|
|
114
|
+
display_name: string | null;
|
|
115
|
+
profile_image_url: string | null;
|
|
116
|
+
} & {
|
|
117
|
+
user: {
|
|
118
|
+
id: string;
|
|
119
|
+
display_name: string | null;
|
|
120
|
+
oauth_providers: {
|
|
121
|
+
email?: string | null | undefined;
|
|
122
|
+
id: string;
|
|
123
|
+
account_id: string;
|
|
124
|
+
}[];
|
|
125
|
+
profile_image_url: string | null;
|
|
126
|
+
client_metadata: {} | null;
|
|
127
|
+
client_read_only_metadata: {} | null;
|
|
128
|
+
server_metadata: {} | null;
|
|
129
|
+
primary_email: string | null;
|
|
130
|
+
primary_email_verified: boolean;
|
|
131
|
+
primary_email_auth_enabled: boolean;
|
|
132
|
+
passkey_auth_enabled: boolean;
|
|
133
|
+
otp_auth_enabled: boolean;
|
|
134
|
+
selected_team_id: string | null;
|
|
135
|
+
is_anonymous: boolean;
|
|
136
|
+
selected_team: {
|
|
137
|
+
client_metadata?: {} | null | undefined;
|
|
138
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
139
|
+
server_metadata?: {} | null | undefined;
|
|
140
|
+
id: string;
|
|
141
|
+
display_name: string;
|
|
142
|
+
created_at_millis: number;
|
|
143
|
+
profile_image_url: string | null;
|
|
144
|
+
} | null;
|
|
145
|
+
signed_up_at_millis: number;
|
|
146
|
+
has_password: boolean;
|
|
147
|
+
last_active_at_millis: number;
|
|
148
|
+
auth_with_email: boolean;
|
|
149
|
+
requires_totp_mfa: boolean;
|
|
150
|
+
};
|
|
151
|
+
}, yup.AnyObject, {
|
|
152
|
+
team_id: undefined;
|
|
153
|
+
user_id: undefined;
|
|
154
|
+
display_name: undefined;
|
|
155
|
+
profile_image_url: undefined;
|
|
156
|
+
user: {
|
|
157
|
+
id: undefined;
|
|
158
|
+
primary_email: undefined;
|
|
159
|
+
primary_email_verified: undefined;
|
|
160
|
+
primary_email_auth_enabled: undefined;
|
|
161
|
+
display_name: undefined;
|
|
162
|
+
selected_team: {
|
|
163
|
+
id: undefined;
|
|
164
|
+
display_name: undefined;
|
|
165
|
+
profile_image_url: undefined;
|
|
166
|
+
client_metadata: undefined;
|
|
167
|
+
client_read_only_metadata: undefined;
|
|
168
|
+
created_at_millis: undefined;
|
|
169
|
+
server_metadata: undefined;
|
|
170
|
+
};
|
|
171
|
+
selected_team_id: undefined;
|
|
172
|
+
profile_image_url: undefined;
|
|
173
|
+
signed_up_at_millis: undefined;
|
|
174
|
+
has_password: undefined;
|
|
175
|
+
otp_auth_enabled: undefined;
|
|
176
|
+
passkey_auth_enabled: undefined;
|
|
177
|
+
client_metadata: undefined;
|
|
178
|
+
client_read_only_metadata: undefined;
|
|
179
|
+
server_metadata: undefined;
|
|
180
|
+
last_active_at_millis: undefined;
|
|
181
|
+
is_anonymous: undefined;
|
|
182
|
+
oauth_providers: undefined;
|
|
183
|
+
auth_with_email: undefined;
|
|
184
|
+
requires_totp_mfa: undefined;
|
|
185
|
+
};
|
|
186
|
+
}, "">;
|
|
187
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
188
|
+
display_name: string | undefined;
|
|
189
|
+
profile_image_url: string | null | undefined;
|
|
190
|
+
}, yup.AnyObject, {
|
|
191
|
+
display_name: undefined;
|
|
192
|
+
profile_image_url: undefined;
|
|
193
|
+
}, "">;
|
|
194
|
+
docs: {
|
|
195
|
+
clientList: {
|
|
196
|
+
summary: string;
|
|
197
|
+
description: string;
|
|
198
|
+
tags: string[];
|
|
199
|
+
};
|
|
200
|
+
serverList: {
|
|
201
|
+
summary: string;
|
|
202
|
+
description: string;
|
|
203
|
+
tags: string[];
|
|
204
|
+
};
|
|
205
|
+
clientRead: {
|
|
206
|
+
summary: string;
|
|
207
|
+
description: string;
|
|
208
|
+
tags: string[];
|
|
209
|
+
};
|
|
210
|
+
serverRead: {
|
|
211
|
+
summary: string;
|
|
212
|
+
description: string;
|
|
213
|
+
tags: string[];
|
|
214
|
+
};
|
|
215
|
+
clientUpdate: {
|
|
216
|
+
summary: string;
|
|
217
|
+
description: string;
|
|
218
|
+
tags: string[];
|
|
219
|
+
};
|
|
220
|
+
serverUpdate: {
|
|
221
|
+
summary: string;
|
|
222
|
+
description: string;
|
|
223
|
+
tags: string[];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
}>;
|
|
227
|
+
type TeamMemberProfilesCrud = CrudTypeOf<typeof teamMemberProfilesCrud>;
|
|
228
|
+
|
|
229
|
+
export { type TeamMemberProfilesCrud, teamMemberProfilesCrud, teamMemberProfilesCrudClientReadSchema, teamMemberProfilesCrudClientUpdateSchema, teamMemberProfilesCrudServerReadSchema };
|
|
@@ -1,16 +1,19 @@
|
|
|
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 teamMemberProfilesCrudClientReadSchema: yup.ObjectSchema<{
|
|
3
6
|
team_id: string;
|
|
4
7
|
user_id: string;
|
|
5
8
|
display_name: string | null;
|
|
6
9
|
profile_image_url: string | null;
|
|
7
|
-
},
|
|
10
|
+
}, yup.AnyObject, {
|
|
8
11
|
team_id: undefined;
|
|
9
12
|
user_id: undefined;
|
|
10
13
|
display_name: undefined;
|
|
11
14
|
profile_image_url: undefined;
|
|
12
15
|
}, "">;
|
|
13
|
-
|
|
16
|
+
declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
14
17
|
team_id: string;
|
|
15
18
|
user_id: string;
|
|
16
19
|
display_name: string | null;
|
|
@@ -50,7 +53,7 @@ export declare const teamMemberProfilesCrudServerReadSchema: import("yup").Objec
|
|
|
50
53
|
auth_with_email: boolean;
|
|
51
54
|
requires_totp_mfa: boolean;
|
|
52
55
|
};
|
|
53
|
-
},
|
|
56
|
+
}, yup.AnyObject, {
|
|
54
57
|
team_id: undefined;
|
|
55
58
|
user_id: undefined;
|
|
56
59
|
display_name: undefined;
|
|
@@ -86,26 +89,26 @@ export declare const teamMemberProfilesCrudServerReadSchema: import("yup").Objec
|
|
|
86
89
|
requires_totp_mfa: undefined;
|
|
87
90
|
};
|
|
88
91
|
}, "">;
|
|
89
|
-
|
|
92
|
+
declare const teamMemberProfilesCrudClientUpdateSchema: yup.ObjectSchema<{
|
|
90
93
|
display_name: string | undefined;
|
|
91
94
|
profile_image_url: string | null | undefined;
|
|
92
|
-
},
|
|
95
|
+
}, yup.AnyObject, {
|
|
93
96
|
display_name: undefined;
|
|
94
97
|
profile_image_url: undefined;
|
|
95
98
|
}, "">;
|
|
96
|
-
|
|
97
|
-
clientReadSchema:
|
|
99
|
+
declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
100
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
98
101
|
team_id: string;
|
|
99
102
|
user_id: string;
|
|
100
103
|
display_name: string | null;
|
|
101
104
|
profile_image_url: string | null;
|
|
102
|
-
},
|
|
105
|
+
}, yup.AnyObject, {
|
|
103
106
|
team_id: undefined;
|
|
104
107
|
user_id: undefined;
|
|
105
108
|
display_name: undefined;
|
|
106
109
|
profile_image_url: undefined;
|
|
107
110
|
}, "">;
|
|
108
|
-
serverReadSchema:
|
|
111
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
109
112
|
team_id: string;
|
|
110
113
|
user_id: string;
|
|
111
114
|
display_name: string | null;
|
|
@@ -145,7 +148,7 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
145
148
|
auth_with_email: boolean;
|
|
146
149
|
requires_totp_mfa: boolean;
|
|
147
150
|
};
|
|
148
|
-
},
|
|
151
|
+
}, yup.AnyObject, {
|
|
149
152
|
team_id: undefined;
|
|
150
153
|
user_id: undefined;
|
|
151
154
|
display_name: undefined;
|
|
@@ -181,10 +184,10 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
181
184
|
requires_totp_mfa: undefined;
|
|
182
185
|
};
|
|
183
186
|
}, "">;
|
|
184
|
-
clientUpdateSchema:
|
|
187
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
185
188
|
display_name: string | undefined;
|
|
186
189
|
profile_image_url: string | null | undefined;
|
|
187
|
-
},
|
|
190
|
+
}, yup.AnyObject, {
|
|
188
191
|
display_name: undefined;
|
|
189
192
|
profile_image_url: undefined;
|
|
190
193
|
}, "">;
|
|
@@ -221,4 +224,6 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
221
224
|
};
|
|
222
225
|
};
|
|
223
226
|
}>;
|
|
224
|
-
|
|
227
|
+
type TeamMemberProfilesCrud = CrudTypeOf<typeof teamMemberProfilesCrud>;
|
|
228
|
+
|
|
229
|
+
export { type TeamMemberProfilesCrud, teamMemberProfilesCrud, teamMemberProfilesCrudClientReadSchema, teamMemberProfilesCrudClientUpdateSchema, teamMemberProfilesCrudServerReadSchema };
|