@stackframe/stack-shared 2.8.8 → 2.8.11
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 +14 -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 +729 -0
- package/dist/config/schema.d.ts +59 -51
- package/dist/config/schema.js +232 -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 +201 -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 +180 -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 +1238 -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 +177 -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 +295 -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 +20 -12
- 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 +627 -0
- package/dist/interface/crud/projects.d.ts +43 -51
- package/dist/interface/crud/projects.js +210 -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 +447 -0
- package/dist/known-errors.d.ts +15 -9
- package/dist/known-errors.js +1104 -562
- 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 +69 -0
- package/dist/utils/objects.d.ts +37 -32
- package/dist/utils/objects.js +224 -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 +300 -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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const internalApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
6
|
+
description: string;
|
|
7
|
+
expires_at_millis: number;
|
|
8
|
+
has_publishable_client_key: boolean;
|
|
9
|
+
has_secret_server_key: boolean;
|
|
10
|
+
has_super_secret_admin_key: boolean;
|
|
11
|
+
}, yup.AnyObject, {
|
|
12
|
+
description: undefined;
|
|
13
|
+
expires_at_millis: undefined;
|
|
14
|
+
has_publishable_client_key: undefined;
|
|
15
|
+
has_secret_server_key: undefined;
|
|
16
|
+
has_super_secret_admin_key: undefined;
|
|
17
|
+
}, "">;
|
|
18
|
+
declare const internalApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
19
|
+
id: string;
|
|
20
|
+
description: string;
|
|
21
|
+
expires_at_millis: number;
|
|
22
|
+
manually_revoked_at_millis: number | undefined;
|
|
23
|
+
created_at_millis: number;
|
|
24
|
+
} & {
|
|
25
|
+
publishable_client_key: string | undefined;
|
|
26
|
+
secret_server_key: string | undefined;
|
|
27
|
+
super_secret_admin_key: string | undefined;
|
|
28
|
+
}, yup.AnyObject, {
|
|
29
|
+
id: undefined;
|
|
30
|
+
description: undefined;
|
|
31
|
+
expires_at_millis: undefined;
|
|
32
|
+
manually_revoked_at_millis: undefined;
|
|
33
|
+
created_at_millis: undefined;
|
|
34
|
+
publishable_client_key: undefined;
|
|
35
|
+
secret_server_key: undefined;
|
|
36
|
+
super_secret_admin_key: undefined;
|
|
37
|
+
}, "">;
|
|
38
|
+
declare const internalApiKeysCrudAdminObfuscatedReadSchema: yup.ObjectSchema<{
|
|
39
|
+
id: string;
|
|
40
|
+
description: string;
|
|
41
|
+
expires_at_millis: number;
|
|
42
|
+
manually_revoked_at_millis: number | undefined;
|
|
43
|
+
created_at_millis: number;
|
|
44
|
+
} & {
|
|
45
|
+
publishable_client_key: {
|
|
46
|
+
last_four: string;
|
|
47
|
+
} | undefined;
|
|
48
|
+
secret_server_key: {
|
|
49
|
+
last_four: string;
|
|
50
|
+
} | undefined;
|
|
51
|
+
super_secret_admin_key: {
|
|
52
|
+
last_four: string;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}, yup.AnyObject, {
|
|
55
|
+
id: undefined;
|
|
56
|
+
description: undefined;
|
|
57
|
+
expires_at_millis: undefined;
|
|
58
|
+
manually_revoked_at_millis: undefined;
|
|
59
|
+
created_at_millis: undefined;
|
|
60
|
+
publishable_client_key: {
|
|
61
|
+
last_four: undefined;
|
|
62
|
+
};
|
|
63
|
+
secret_server_key: {
|
|
64
|
+
last_four: undefined;
|
|
65
|
+
};
|
|
66
|
+
super_secret_admin_key: {
|
|
67
|
+
last_four: undefined;
|
|
68
|
+
};
|
|
69
|
+
}, "">;
|
|
70
|
+
declare const internalApiKeysCrudAdminUpdateSchema: yup.ObjectSchema<{
|
|
71
|
+
description: string | undefined;
|
|
72
|
+
revoked: boolean | undefined;
|
|
73
|
+
}, yup.AnyObject, {
|
|
74
|
+
description: undefined;
|
|
75
|
+
revoked: undefined;
|
|
76
|
+
}, "">;
|
|
77
|
+
declare const internalApiKeysCrudAdminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
78
|
+
declare const internalApiKeysCrud: CrudSchemaFromOptions<{
|
|
79
|
+
adminReadSchema: yup.ObjectSchema<{
|
|
80
|
+
id: string;
|
|
81
|
+
description: string;
|
|
82
|
+
expires_at_millis: number;
|
|
83
|
+
manually_revoked_at_millis: number | undefined;
|
|
84
|
+
created_at_millis: number;
|
|
85
|
+
} & {
|
|
86
|
+
publishable_client_key: {
|
|
87
|
+
last_four: string;
|
|
88
|
+
} | undefined;
|
|
89
|
+
secret_server_key: {
|
|
90
|
+
last_four: string;
|
|
91
|
+
} | undefined;
|
|
92
|
+
super_secret_admin_key: {
|
|
93
|
+
last_four: string;
|
|
94
|
+
} | undefined;
|
|
95
|
+
}, yup.AnyObject, {
|
|
96
|
+
id: undefined;
|
|
97
|
+
description: undefined;
|
|
98
|
+
expires_at_millis: undefined;
|
|
99
|
+
manually_revoked_at_millis: undefined;
|
|
100
|
+
created_at_millis: undefined;
|
|
101
|
+
publishable_client_key: {
|
|
102
|
+
last_four: undefined;
|
|
103
|
+
};
|
|
104
|
+
secret_server_key: {
|
|
105
|
+
last_four: undefined;
|
|
106
|
+
};
|
|
107
|
+
super_secret_admin_key: {
|
|
108
|
+
last_four: undefined;
|
|
109
|
+
};
|
|
110
|
+
}, "">;
|
|
111
|
+
adminUpdateSchema: yup.ObjectSchema<{
|
|
112
|
+
description: string | undefined;
|
|
113
|
+
revoked: boolean | undefined;
|
|
114
|
+
}, yup.AnyObject, {
|
|
115
|
+
description: undefined;
|
|
116
|
+
revoked: undefined;
|
|
117
|
+
}, "">;
|
|
118
|
+
adminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
119
|
+
docs: {
|
|
120
|
+
adminList: {
|
|
121
|
+
hidden: true;
|
|
122
|
+
};
|
|
123
|
+
adminRead: {
|
|
124
|
+
hidden: true;
|
|
125
|
+
};
|
|
126
|
+
adminCreate: {
|
|
127
|
+
hidden: true;
|
|
128
|
+
};
|
|
129
|
+
adminUpdate: {
|
|
130
|
+
hidden: true;
|
|
131
|
+
};
|
|
132
|
+
adminDelete: {
|
|
133
|
+
hidden: true;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}>;
|
|
137
|
+
type InternalApiKeysCrud = CrudTypeOf<typeof internalApiKeysCrud>;
|
|
138
|
+
|
|
139
|
+
export { type InternalApiKeysCrud, internalApiKeysCreateInputSchema, internalApiKeysCreateOutputSchema, internalApiKeysCrud, internalApiKeysCrudAdminDeleteSchema, internalApiKeysCrudAdminObfuscatedReadSchema, internalApiKeysCrudAdminUpdateSchema };
|
|
@@ -1,18 +1,21 @@
|
|
|
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 internalApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
3
6
|
description: string;
|
|
4
7
|
expires_at_millis: number;
|
|
5
8
|
has_publishable_client_key: boolean;
|
|
6
9
|
has_secret_server_key: boolean;
|
|
7
10
|
has_super_secret_admin_key: boolean;
|
|
8
|
-
},
|
|
11
|
+
}, yup.AnyObject, {
|
|
9
12
|
description: undefined;
|
|
10
13
|
expires_at_millis: undefined;
|
|
11
14
|
has_publishable_client_key: undefined;
|
|
12
15
|
has_secret_server_key: undefined;
|
|
13
16
|
has_super_secret_admin_key: undefined;
|
|
14
17
|
}, "">;
|
|
15
|
-
|
|
18
|
+
declare const internalApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
16
19
|
id: string;
|
|
17
20
|
description: string;
|
|
18
21
|
expires_at_millis: number;
|
|
@@ -22,7 +25,7 @@ export declare const internalApiKeysCreateOutputSchema: import("yup").ObjectSche
|
|
|
22
25
|
publishable_client_key: string | undefined;
|
|
23
26
|
secret_server_key: string | undefined;
|
|
24
27
|
super_secret_admin_key: string | undefined;
|
|
25
|
-
},
|
|
28
|
+
}, yup.AnyObject, {
|
|
26
29
|
id: undefined;
|
|
27
30
|
description: undefined;
|
|
28
31
|
expires_at_millis: undefined;
|
|
@@ -32,7 +35,7 @@ export declare const internalApiKeysCreateOutputSchema: import("yup").ObjectSche
|
|
|
32
35
|
secret_server_key: undefined;
|
|
33
36
|
super_secret_admin_key: undefined;
|
|
34
37
|
}, "">;
|
|
35
|
-
|
|
38
|
+
declare const internalApiKeysCrudAdminObfuscatedReadSchema: yup.ObjectSchema<{
|
|
36
39
|
id: string;
|
|
37
40
|
description: string;
|
|
38
41
|
expires_at_millis: number;
|
|
@@ -48,7 +51,7 @@ export declare const internalApiKeysCrudAdminObfuscatedReadSchema: import("yup")
|
|
|
48
51
|
super_secret_admin_key: {
|
|
49
52
|
last_four: string;
|
|
50
53
|
} | undefined;
|
|
51
|
-
},
|
|
54
|
+
}, yup.AnyObject, {
|
|
52
55
|
id: undefined;
|
|
53
56
|
description: undefined;
|
|
54
57
|
expires_at_millis: undefined;
|
|
@@ -64,16 +67,16 @@ export declare const internalApiKeysCrudAdminObfuscatedReadSchema: import("yup")
|
|
|
64
67
|
last_four: undefined;
|
|
65
68
|
};
|
|
66
69
|
}, "">;
|
|
67
|
-
|
|
70
|
+
declare const internalApiKeysCrudAdminUpdateSchema: yup.ObjectSchema<{
|
|
68
71
|
description: string | undefined;
|
|
69
72
|
revoked: boolean | undefined;
|
|
70
|
-
},
|
|
73
|
+
}, yup.AnyObject, {
|
|
71
74
|
description: undefined;
|
|
72
75
|
revoked: undefined;
|
|
73
76
|
}, "">;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
adminReadSchema:
|
|
77
|
+
declare const internalApiKeysCrudAdminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
78
|
+
declare const internalApiKeysCrud: CrudSchemaFromOptions<{
|
|
79
|
+
adminReadSchema: yup.ObjectSchema<{
|
|
77
80
|
id: string;
|
|
78
81
|
description: string;
|
|
79
82
|
expires_at_millis: number;
|
|
@@ -89,7 +92,7 @@ export declare const internalApiKeysCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
89
92
|
super_secret_admin_key: {
|
|
90
93
|
last_four: string;
|
|
91
94
|
} | undefined;
|
|
92
|
-
},
|
|
95
|
+
}, yup.AnyObject, {
|
|
93
96
|
id: undefined;
|
|
94
97
|
description: undefined;
|
|
95
98
|
expires_at_millis: undefined;
|
|
@@ -105,14 +108,14 @@ export declare const internalApiKeysCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
105
108
|
last_four: undefined;
|
|
106
109
|
};
|
|
107
110
|
}, "">;
|
|
108
|
-
adminUpdateSchema:
|
|
111
|
+
adminUpdateSchema: yup.ObjectSchema<{
|
|
109
112
|
description: string | undefined;
|
|
110
113
|
revoked: boolean | undefined;
|
|
111
|
-
},
|
|
114
|
+
}, yup.AnyObject, {
|
|
112
115
|
description: undefined;
|
|
113
116
|
revoked: undefined;
|
|
114
117
|
}, "">;
|
|
115
|
-
adminDeleteSchema:
|
|
118
|
+
adminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
116
119
|
docs: {
|
|
117
120
|
adminList: {
|
|
118
121
|
hidden: true;
|
|
@@ -131,4 +134,6 @@ export declare const internalApiKeysCrud: import("../../crud").CrudSchemaFromOpt
|
|
|
131
134
|
};
|
|
132
135
|
};
|
|
133
136
|
}>;
|
|
134
|
-
|
|
137
|
+
type InternalApiKeysCrud = CrudTypeOf<typeof internalApiKeysCrud>;
|
|
138
|
+
|
|
139
|
+
export { type InternalApiKeysCrud, internalApiKeysCreateInputSchema, internalApiKeysCreateOutputSchema, internalApiKeysCrud, internalApiKeysCrudAdminDeleteSchema, internalApiKeysCrudAdminObfuscatedReadSchema, internalApiKeysCrudAdminUpdateSchema };
|
|
@@ -1,61 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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/internal-api-keys.ts
|
|
21
|
+
var internal_api_keys_exports = {};
|
|
22
|
+
__export(internal_api_keys_exports, {
|
|
23
|
+
internalApiKeysCreateInputSchema: () => internalApiKeysCreateInputSchema,
|
|
24
|
+
internalApiKeysCreateOutputSchema: () => internalApiKeysCreateOutputSchema,
|
|
25
|
+
internalApiKeysCrud: () => internalApiKeysCrud,
|
|
26
|
+
internalApiKeysCrudAdminDeleteSchema: () => internalApiKeysCrudAdminDeleteSchema,
|
|
27
|
+
internalApiKeysCrudAdminObfuscatedReadSchema: () => internalApiKeysCrudAdminObfuscatedReadSchema,
|
|
28
|
+
internalApiKeysCrudAdminUpdateSchema: () => internalApiKeysCrudAdminUpdateSchema
|
|
9
29
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
module.exports = __toCommonJS(internal_api_keys_exports);
|
|
31
|
+
var import_crud = require("../../crud");
|
|
32
|
+
var import_schema_fields = require("../../schema-fields");
|
|
33
|
+
var baseInternalApiKeysReadSchema = (0, import_schema_fields.yupObject)({
|
|
34
|
+
id: (0, import_schema_fields.yupString)().defined(),
|
|
35
|
+
description: (0, import_schema_fields.yupString)().defined(),
|
|
36
|
+
expires_at_millis: (0, import_schema_fields.yupNumber)().defined(),
|
|
37
|
+
manually_revoked_at_millis: (0, import_schema_fields.yupNumber)().optional(),
|
|
38
|
+
created_at_millis: (0, import_schema_fields.yupNumber)().defined()
|
|
17
39
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
40
|
+
var internalApiKeysCreateInputSchema = (0, import_schema_fields.yupObject)({
|
|
41
|
+
description: (0, import_schema_fields.yupString)().defined(),
|
|
42
|
+
expires_at_millis: (0, import_schema_fields.yupNumber)().defined(),
|
|
43
|
+
has_publishable_client_key: (0, import_schema_fields.yupBoolean)().defined(),
|
|
44
|
+
has_secret_server_key: (0, import_schema_fields.yupBoolean)().defined(),
|
|
45
|
+
has_super_secret_admin_key: (0, import_schema_fields.yupBoolean)().defined()
|
|
46
|
+
});
|
|
47
|
+
var internalApiKeysCreateOutputSchema = baseInternalApiKeysReadSchema.concat((0, import_schema_fields.yupObject)({
|
|
48
|
+
publishable_client_key: (0, import_schema_fields.yupString)().optional(),
|
|
49
|
+
secret_server_key: (0, import_schema_fields.yupString)().optional(),
|
|
50
|
+
super_secret_admin_key: (0, import_schema_fields.yupString)().optional()
|
|
22
51
|
}).defined());
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}).optional(),
|
|
52
|
+
var internalApiKeysCrudAdminObfuscatedReadSchema = baseInternalApiKeysReadSchema.concat((0, import_schema_fields.yupObject)({
|
|
53
|
+
publishable_client_key: (0, import_schema_fields.yupObject)({
|
|
54
|
+
last_four: (0, import_schema_fields.yupString)().defined()
|
|
55
|
+
}).optional(),
|
|
56
|
+
secret_server_key: (0, import_schema_fields.yupObject)({
|
|
57
|
+
last_four: (0, import_schema_fields.yupString)().defined()
|
|
58
|
+
}).optional(),
|
|
59
|
+
super_secret_admin_key: (0, import_schema_fields.yupObject)({
|
|
60
|
+
last_four: (0, import_schema_fields.yupString)().defined()
|
|
61
|
+
}).optional()
|
|
34
62
|
}));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
63
|
+
var internalApiKeysCrudAdminUpdateSchema = (0, import_schema_fields.yupObject)({
|
|
64
|
+
description: (0, import_schema_fields.yupString)().optional(),
|
|
65
|
+
revoked: (0, import_schema_fields.yupBoolean)().oneOf([true]).optional()
|
|
38
66
|
}).defined();
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
adminUpdate: {
|
|
55
|
-
hidden: true,
|
|
56
|
-
},
|
|
57
|
-
adminDelete: {
|
|
58
|
-
hidden: true,
|
|
59
|
-
},
|
|
67
|
+
var internalApiKeysCrudAdminDeleteSchema = (0, import_schema_fields.yupMixed)();
|
|
68
|
+
var internalApiKeysCrud = (0, import_crud.createCrud)({
|
|
69
|
+
adminReadSchema: internalApiKeysCrudAdminObfuscatedReadSchema,
|
|
70
|
+
adminUpdateSchema: internalApiKeysCrudAdminUpdateSchema,
|
|
71
|
+
adminDeleteSchema: internalApiKeysCrudAdminDeleteSchema,
|
|
72
|
+
docs: {
|
|
73
|
+
adminList: {
|
|
74
|
+
hidden: true
|
|
75
|
+
},
|
|
76
|
+
adminRead: {
|
|
77
|
+
hidden: true
|
|
78
|
+
},
|
|
79
|
+
adminCreate: {
|
|
80
|
+
hidden: true
|
|
60
81
|
},
|
|
82
|
+
adminUpdate: {
|
|
83
|
+
hidden: true
|
|
84
|
+
},
|
|
85
|
+
adminDelete: {
|
|
86
|
+
hidden: true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
internalApiKeysCreateInputSchema,
|
|
93
|
+
internalApiKeysCreateOutputSchema,
|
|
94
|
+
internalApiKeysCrud,
|
|
95
|
+
internalApiKeysCrudAdminDeleteSchema,
|
|
96
|
+
internalApiKeysCrudAdminObfuscatedReadSchema,
|
|
97
|
+
internalApiKeysCrudAdminUpdateSchema
|
|
61
98
|
});
|
|
99
|
+
//# sourceMappingURL=internal-api-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/internal-api-keys.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport { yupBoolean, yupMixed, yupNumber, yupObject, yupString } from \"../../schema-fields\";\n\nconst baseInternalApiKeysReadSchema = yupObject({\n id: yupString().defined(),\n description: yupString().defined(),\n expires_at_millis: yupNumber().defined(),\n manually_revoked_at_millis: yupNumber().optional(),\n created_at_millis: yupNumber().defined(),\n});\n\n// Used for the result of the create endpoint\nexport const internalApiKeysCreateInputSchema = yupObject({\n description: yupString().defined(),\n expires_at_millis: yupNumber().defined(),\n has_publishable_client_key: yupBoolean().defined(),\n has_secret_server_key: yupBoolean().defined(),\n has_super_secret_admin_key: yupBoolean().defined(),\n});\n\nexport const internalApiKeysCreateOutputSchema = baseInternalApiKeysReadSchema.concat(yupObject({\n publishable_client_key: yupString().optional(),\n secret_server_key: yupString().optional(),\n super_secret_admin_key: yupString().optional(),\n}).defined());\n\n// Used for list, read and update endpoints after the initial creation\nexport const internalApiKeysCrudAdminObfuscatedReadSchema = baseInternalApiKeysReadSchema.concat(yupObject({\n publishable_client_key: yupObject({\n last_four: yupString().defined(),\n }).optional(),\n secret_server_key: yupObject({\n last_four: yupString().defined(),\n }).optional(),\n super_secret_admin_key: yupObject({\n last_four: yupString().defined(),\n }).optional(),\n}));\n\nexport const internalApiKeysCrudAdminUpdateSchema = yupObject({\n description: yupString().optional(),\n revoked: yupBoolean().oneOf([true]).optional(),\n}).defined();\n\nexport const internalApiKeysCrudAdminDeleteSchema = yupMixed();\n\nexport const internalApiKeysCrud = createCrud({\n adminReadSchema: internalApiKeysCrudAdminObfuscatedReadSchema,\n adminUpdateSchema: internalApiKeysCrudAdminUpdateSchema,\n adminDeleteSchema: internalApiKeysCrudAdminDeleteSchema,\n docs: {\n adminList: {\n hidden: true,\n },\n adminRead: {\n hidden: true,\n },\n adminCreate: {\n hidden: true,\n },\n adminUpdate: {\n hidden: true,\n },\n adminDelete: {\n hidden: true,\n },\n },\n});\nexport type InternalApiKeysCrud = CrudTypeOf<typeof internalApiKeysCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAAsE;AAEtE,IAAM,oCAAgC,gCAAU;AAAA,EAC9C,QAAI,gCAAU,EAAE,QAAQ;AAAA,EACxB,iBAAa,gCAAU,EAAE,QAAQ;AAAA,EACjC,uBAAmB,gCAAU,EAAE,QAAQ;AAAA,EACvC,gCAA4B,gCAAU,EAAE,SAAS;AAAA,EACjD,uBAAmB,gCAAU,EAAE,QAAQ;AACzC,CAAC;AAGM,IAAM,uCAAmC,gCAAU;AAAA,EACxD,iBAAa,gCAAU,EAAE,QAAQ;AAAA,EACjC,uBAAmB,gCAAU,EAAE,QAAQ;AAAA,EACvC,gCAA4B,iCAAW,EAAE,QAAQ;AAAA,EACjD,2BAAuB,iCAAW,EAAE,QAAQ;AAAA,EAC5C,gCAA4B,iCAAW,EAAE,QAAQ;AACnD,CAAC;AAEM,IAAM,oCAAoC,8BAA8B,WAAO,gCAAU;AAAA,EAC9F,4BAAwB,gCAAU,EAAE,SAAS;AAAA,EAC7C,uBAAmB,gCAAU,EAAE,SAAS;AAAA,EACxC,4BAAwB,gCAAU,EAAE,SAAS;AAC/C,CAAC,EAAE,QAAQ,CAAC;AAGL,IAAM,+CAA+C,8BAA8B,WAAO,gCAAU;AAAA,EACzG,4BAAwB,gCAAU;AAAA,IAChC,eAAW,gCAAU,EAAE,QAAQ;AAAA,EACjC,CAAC,EAAE,SAAS;AAAA,EACZ,uBAAmB,gCAAU;AAAA,IAC3B,eAAW,gCAAU,EAAE,QAAQ;AAAA,EACjC,CAAC,EAAE,SAAS;AAAA,EACZ,4BAAwB,gCAAU;AAAA,IAChC,eAAW,gCAAU,EAAE,QAAQ;AAAA,EACjC,CAAC,EAAE,SAAS;AACd,CAAC,CAAC;AAEK,IAAM,2CAAuC,gCAAU;AAAA,EAC5D,iBAAa,gCAAU,EAAE,SAAS;AAAA,EAClC,aAAS,iCAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS;AAC/C,CAAC,EAAE,QAAQ;AAEJ,IAAM,2CAAuC,+BAAS;AAEtD,IAAM,0BAAsB,wBAAW;AAAA,EAC5C,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,MAAM;AAAA,IACJ,WAAW;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,WAAW;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,aAAa;AAAA,MACX,QAAQ;AAAA,IACV;AAAA,IACA,aAAa;AAAA,MACX,QAAQ;AAAA,IACV;AAAA,IACA,aAAa;AAAA,MACX,QAAQ;AAAA,IACV;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.cjs';
|
|
4
|
+
|
|
5
|
+
declare const connectedAccountAccessTokenReadSchema: yup.ObjectSchema<{
|
|
6
|
+
access_token: string;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
access_token: undefined;
|
|
9
|
+
}, "">;
|
|
10
|
+
declare const connectedAccountAccessTokenCreateSchema: yup.ObjectSchema<{
|
|
11
|
+
scope: string | undefined;
|
|
12
|
+
}, yup.AnyObject, {
|
|
13
|
+
scope: undefined;
|
|
14
|
+
}, "">;
|
|
15
|
+
declare const connectedAccountAccessTokenCrud: CrudSchemaFromOptions<{
|
|
16
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
17
|
+
access_token: string;
|
|
18
|
+
}, yup.AnyObject, {
|
|
19
|
+
access_token: undefined;
|
|
20
|
+
}, "">;
|
|
21
|
+
clientCreateSchema: yup.ObjectSchema<{
|
|
22
|
+
scope: string | undefined;
|
|
23
|
+
}, yup.AnyObject, {
|
|
24
|
+
scope: undefined;
|
|
25
|
+
}, "">;
|
|
26
|
+
docs: {
|
|
27
|
+
clientCreate: {
|
|
28
|
+
hidden: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
type ConnectedAccountAccessTokenCrud = CrudTypeOf<typeof connectedAccountAccessTokenCrud>;
|
|
33
|
+
|
|
34
|
+
export { type ConnectedAccountAccessTokenCrud, connectedAccountAccessTokenCreateSchema, connectedAccountAccessTokenCrud, connectedAccountAccessTokenReadSchema };
|
|
@@ -1,23 +1,26 @@
|
|
|
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 connectedAccountAccessTokenReadSchema: yup.ObjectSchema<{
|
|
3
6
|
access_token: string;
|
|
4
|
-
},
|
|
7
|
+
}, yup.AnyObject, {
|
|
5
8
|
access_token: undefined;
|
|
6
9
|
}, "">;
|
|
7
|
-
|
|
10
|
+
declare const connectedAccountAccessTokenCreateSchema: yup.ObjectSchema<{
|
|
8
11
|
scope: string | undefined;
|
|
9
|
-
},
|
|
12
|
+
}, yup.AnyObject, {
|
|
10
13
|
scope: undefined;
|
|
11
14
|
}, "">;
|
|
12
|
-
|
|
13
|
-
clientReadSchema:
|
|
15
|
+
declare const connectedAccountAccessTokenCrud: CrudSchemaFromOptions<{
|
|
16
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
14
17
|
access_token: string;
|
|
15
|
-
},
|
|
18
|
+
}, yup.AnyObject, {
|
|
16
19
|
access_token: undefined;
|
|
17
20
|
}, "">;
|
|
18
|
-
clientCreateSchema:
|
|
21
|
+
clientCreateSchema: yup.ObjectSchema<{
|
|
19
22
|
scope: string | undefined;
|
|
20
|
-
},
|
|
23
|
+
}, yup.AnyObject, {
|
|
21
24
|
scope: undefined;
|
|
22
25
|
}, "">;
|
|
23
26
|
docs: {
|
|
@@ -26,4 +29,6 @@ export declare const connectedAccountAccessTokenCrud: import("../../crud").CrudS
|
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
31
|
}>;
|
|
29
|
-
|
|
32
|
+
type ConnectedAccountAccessTokenCrud = CrudTypeOf<typeof connectedAccountAccessTokenCrud>;
|
|
33
|
+
|
|
34
|
+
export { type ConnectedAccountAccessTokenCrud, connectedAccountAccessTokenCreateSchema, connectedAccountAccessTokenCrud, connectedAccountAccessTokenReadSchema };
|
|
@@ -1,17 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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/oauth.ts
|
|
21
|
+
var oauth_exports = {};
|
|
22
|
+
__export(oauth_exports, {
|
|
23
|
+
connectedAccountAccessTokenCreateSchema: () => connectedAccountAccessTokenCreateSchema,
|
|
24
|
+
connectedAccountAccessTokenCrud: () => connectedAccountAccessTokenCrud,
|
|
25
|
+
connectedAccountAccessTokenReadSchema: () => connectedAccountAccessTokenReadSchema
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(oauth_exports);
|
|
28
|
+
var import_crud = require("../../crud");
|
|
29
|
+
var import_schema_fields = require("../../schema-fields");
|
|
30
|
+
var connectedAccountAccessTokenReadSchema = (0, import_schema_fields.yupObject)({
|
|
31
|
+
access_token: (0, import_schema_fields.yupString)().defined()
|
|
5
32
|
}).defined();
|
|
6
|
-
|
|
7
|
-
|
|
33
|
+
var connectedAccountAccessTokenCreateSchema = (0, import_schema_fields.yupObject)({
|
|
34
|
+
scope: (0, import_schema_fields.yupString)().optional()
|
|
8
35
|
}).defined();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
36
|
+
var connectedAccountAccessTokenCrud = (0, import_crud.createCrud)({
|
|
37
|
+
clientReadSchema: connectedAccountAccessTokenReadSchema,
|
|
38
|
+
clientCreateSchema: connectedAccountAccessTokenCreateSchema,
|
|
39
|
+
docs: {
|
|
40
|
+
clientCreate: {
|
|
41
|
+
hidden: true
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
connectedAccountAccessTokenCreateSchema,
|
|
48
|
+
connectedAccountAccessTokenCrud,
|
|
49
|
+
connectedAccountAccessTokenReadSchema
|
|
17
50
|
});
|
|
51
|
+
//# sourceMappingURL=oauth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/oauth.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport { yupObject, yupString } from \"../../schema-fields\";\n\nexport const connectedAccountAccessTokenReadSchema = yupObject({\n access_token: yupString().defined(),\n}).defined();\n\nexport const connectedAccountAccessTokenCreateSchema = yupObject({\n scope: yupString().optional(),\n}).defined();\n\nexport const connectedAccountAccessTokenCrud = createCrud({\n clientReadSchema: connectedAccountAccessTokenReadSchema,\n clientCreateSchema: connectedAccountAccessTokenCreateSchema,\n docs: {\n clientCreate: {\n hidden: true,\n }\n },\n});\nexport type ConnectedAccountAccessTokenCrud = CrudTypeOf<typeof connectedAccountAccessTokenCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAAqC;AAE9B,IAAM,4CAAwC,gCAAU;AAAA,EAC7D,kBAAc,gCAAU,EAAE,QAAQ;AACpC,CAAC,EAAE,QAAQ;AAEJ,IAAM,8CAA0C,gCAAU;AAAA,EAC/D,WAAO,gCAAU,EAAE,SAAS;AAC9B,CAAC,EAAE,QAAQ;AAEJ,IAAM,sCAAkC,wBAAW;AAAA,EACxD,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,MACZ,QAAQ;AAAA,IACV;AAAA,EACF;AACF,CAAC;","names":[]}
|