@ctx-core/auth0-management 9.8.27 → 9.8.35

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.
@@ -1,11 +1,9 @@
1
- import type { be_atom_triple_T, WritableAtom_ } from '@ctx-core/nanostores'
1
+ import type { be_atom_triple_T } from '@ctx-core/nanostores'
2
2
  export declare const [
3
3
  AUTH0_MANAGEMENT_ID$_,
4
4
  AUTH0_MANAGEMENT_ID_,
5
5
  AUTH0_MANAGEMENT_ID__set,
6
- ]:be_atom_triple_T<
7
- WritableAtom_<string>
8
- >
6
+ ]:be_atom_triple_T<string>
9
7
  export {
10
8
  AUTH0_MANAGEMENT_ID$_ as AUTH0_MANAGEMENT_ID__,
11
9
  }
@@ -1,11 +1,12 @@
1
1
  import { import_meta_env_ } from '@ctx-core/env'
2
- import { atom_, be_atom_triple_ } from '@ctx-core/nanostores'
2
+ import { be_atom_triple_ } from '@ctx-core/nanostores'
3
+ /** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
3
4
  export const [
4
5
  AUTH0_MANAGEMENT_ID$_,
5
6
  AUTH0_MANAGEMENT_ID_,
6
7
  AUTH0_MANAGEMENT_ID__set,
7
- ] = be_atom_triple_(()=>
8
- atom_(import_meta_env_().AUTH0_MANAGEMENT_ID))
8
+ ] = /** @type {be_atom_triple_T<string>} */ be_atom_triple_(()=>
9
+ import_meta_env_().AUTH0_MANAGEMENT_ID)
9
10
  export {
10
11
  AUTH0_MANAGEMENT_ID$_ as AUTH0_MANAGEMENT_ID__,
11
12
  }
@@ -1,11 +1,9 @@
1
- import type { be_atom_triple_T, WritableAtom_ } from '@ctx-core/nanostores'
1
+ import type { be_atom_triple_T } from '@ctx-core/nanostores'
2
2
  export declare const [
3
3
  AUTH0_MANAGEMENT_SECRET$_,
4
4
  AUTH0_MANAGEMENT_SECRET_,
5
5
  AUTH0_MANAGEMENT_SECRET__set,
6
- ]:be_atom_triple_T<
7
- WritableAtom_<string>
8
- >
6
+ ]:be_atom_triple_T<string>
9
7
  export {
10
8
  AUTH0_MANAGEMENT_SECRET$_ as AUTH0_MANAGEMENT_SECRET__,
11
9
  }
@@ -1,11 +1,12 @@
1
1
  import { import_meta_env_ } from '@ctx-core/env'
2
- import { atom_, be_atom_triple_ } from '@ctx-core/nanostores'
2
+ import { be_atom_triple_ } from '@ctx-core/nanostores'
3
+ /** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
3
4
  export const [
4
5
  AUTH0_MANAGEMENT_SECRET$_,
5
6
  AUTH0_MANAGEMENT_SECRET_,
6
7
  AUTH0_MANAGEMENT_SECRET__set,
7
- ] = be_atom_triple_(()=>
8
- atom_(import_meta_env_().AUTH0_MANAGEMENT_SECRET))
8
+ ] = /** @type {be_atom_triple_T<string>} */ be_atom_triple_(()=>
9
+ import_meta_env_().AUTH0_MANAGEMENT_SECRET)
9
10
  export {
10
11
  AUTH0_MANAGEMENT_SECRET$_ as AUTH0_MANAGEMENT_SECRET__,
11
12
  }
@@ -1,9 +1,7 @@
1
- import type { be_atom_triple_T, WritableAtom_ } from '@ctx-core/nanostores'
1
+ import type { be_atom_triple_T } from '@ctx-core/nanostores'
2
2
  import type { UserProfile } from 'auth0'
3
3
  export declare const [
4
4
  auth0__user$_,
5
5
  auth0__user_,
6
6
  auth0__user__set,
7
- ]:be_atom_triple_T<
8
- WritableAtom_<UserProfile>
9
- >
7
+ ]:be_atom_triple_T<UserProfile>
@@ -1,7 +1,8 @@
1
- import { atom_, be_atom_triple_ } from '@ctx-core/nanostores'
1
+ import { be_atom_triple_ } from '@ctx-core/nanostores'
2
+ /** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
2
3
  export const [
3
4
  auth0__user$_,
4
5
  auth0__user_,
5
6
  auth0__user__set,
6
- ] = be_atom_triple_(()=>
7
- atom_())
7
+ ] = /** @type {be_atom_triple_T<UserProfile>} */be_atom_triple_(()=>
8
+ undefined)
@@ -1,10 +1,10 @@
1
1
  import { AUTH0_CLIENT_ID_, AUTH0_DOMAIN_, header__access_token__verify } from '@ctx-core/auth0'
2
2
  import { fetch__template_pair__new } from '@ctx-core/fetch'
3
3
  import { auth0_management__token__new } from '../auth0_management__token__new/index.js'
4
- /** @typedef {import('@ctx-core/fetch').response_pair_T}response_pair_T */
5
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
6
- /** @typedef {import('auth0').Client}Client */
7
- /** @typedef {import('./index.d.ts').auth0__v2_client__GET__fetch__params_T}auth0__v2_client__GET__fetch__params_T */
4
+ /** @typedef {import('@ctx-core/fetch').response_pair_T} */
5
+ /** @typedef {import('@ctx-core/object').Ctx} */
6
+ /** @typedef {import('auth0').Client} */
7
+ /** @typedef {import('./index.d.ts').auth0__v2_client__GET__fetch__params_T} */
8
8
  export const [
9
9
  auth0__v2_client__GET__fetch,
10
10
  auth0__v2_client__GET__fetch2,
@@ -2,10 +2,10 @@ import { AUTH0_DOMAIN_, header__access_token__verify } from '@ctx-core/auth0'
2
2
  import { fetch__template_pair__new } from '@ctx-core/fetch'
3
3
  import { query_str_ } from '@ctx-core/uri'
4
4
  import { auth0_management__token__new } from '../auth0_management__token__new/index.js'
5
- /** @typedef {import('@ctx-core/fetch').response_pair_T}response_pair_T */
6
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
7
- /** @typedef {import('auth0').CreateClientGrant}CreateClientGrant */
8
- /** @typedef {import('./index.d.ts').auth0__v2_client_grants__GET__fetch__params_T}auth0__v2_client_grants__GET__fetch__params_T */
5
+ /** @typedef {import('@ctx-core/fetch').response_pair_T} */
6
+ /** @typedef {import('@ctx-core/object').Ctx} */
7
+ /** @typedef {import('auth0').CreateClientGrant} */
8
+ /** @typedef {import('./index.d.ts').auth0__v2_client_grants__GET__fetch__params_T} */
9
9
  export const [
10
10
  auth0__v2_client_grants__GET__fetch,
11
11
  auth0__v2_client_grants__GET__fetch2,
@@ -1,9 +1,9 @@
1
1
  import { AUTH0_DOMAIN_, header__access_token__verify } from '@ctx-core/auth0'
2
2
  import { fetch__template_pair__new } from '@ctx-core/fetch'
3
3
  import { auth0_management__token__new } from '../auth0_management__token__new/index.js'
4
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
5
- /** @typedef {import('auth0').User}User */
6
- /** @typedef {import('./index.d.ts').auth0__v2_user__GET__fetch__params_T}auth0__v2_user__GET__fetch__params_T */
4
+ /** @typedef {import('@ctx-core/object').Ctx} */
5
+ /** @typedef {import('auth0').User} */
6
+ /** @typedef {import('./index.d.ts').auth0__v2_user__GET__fetch__params_T} */
7
7
  export const [
8
8
  auth0__v2_user__GET__fetch,
9
9
  auth0__v2_user__GET__fetch2,
@@ -1,10 +1,10 @@
1
1
  import { AUTH0_DOMAIN_, header__access_token__verify } from '@ctx-core/auth0'
2
2
  import { fetch__template_pair__new } from '@ctx-core/fetch'
3
3
  import { auth0_management__token__new } from '../auth0_management__token__new/index.js'
4
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
5
- /** @typedef {import('auth0').UpdateUserData}UpdateUserData */
6
- /** @typedef {import('./index.d.ts').auth0__v2_user__PATCH__fetch__data_T}auth0__v2_user__PATCH__fetch__data_T */
7
- /** @typedef {import('./index.d.ts').auth0__v2_user__PATCH__error_T}auth0__v2_user__PATCH__error_T */
4
+ /** @typedef {import('@ctx-core/object').Ctx} */
5
+ /** @typedef {import('auth0').UpdateUserData} */
6
+ /** @typedef {import('./index.d.ts').auth0__v2_user__PATCH__fetch__data_T} */
7
+ /** @typedef {import('./index.d.ts').auth0__v2_user__PATCH__error_T} */
8
8
  export const [
9
9
  auth0__v2_user__PATCH__fetch,
10
10
  auth0__v2_user__PATCH__fetch2,
@@ -1,9 +1,9 @@
1
1
  import { AUTH0_DOMAIN_, header__access_token__verify } from '@ctx-core/auth0'
2
2
  import { fetch__template_pair__new } from '@ctx-core/fetch'
3
3
  import { auth0_management__token__new } from '../auth0_management__token__new/index.js'
4
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
5
- /** @type {import('auth0-js').Auth0UserProfile}Auth0UserProfile */
6
- /** @typedef {import('./index.d.ts').auth0__v2_users_by_email__GET__fetch__params_T}auth0__v2_users_by_email__GET__fetch__params_T */
4
+ /** @typedef {import('@ctx-core/object').Ctx} */
5
+ /** @type {import('auth0-js').Auth0UserProfile} */
6
+ /** @typedef {import('./index.d.ts').auth0__v2_users_by_email__GET__fetch__params_T} */
7
7
  export const [
8
8
  auth0__v2_users_by_email__GET__fetch,
9
9
  auth0__v2_users_by_email__GET__fetch2,
@@ -1,8 +1,8 @@
1
1
  import { import_meta_env_ } from '@ctx-core/env'
2
2
  import { AUTH0_MANAGEMENT_ID__set } from '../AUTH0_MANAGEMENT_ID/index.js'
3
3
  import { AUTH0_MANAGEMENT_SECRET__set } from '../AUTH0_MANAGEMENT_SECRET/index.js'
4
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
5
- /** @typedef {import('./index.d.ts').auth0_management__init__params_T}auth0_management__init__params_T */
4
+ /** @typedef {import('@ctx-core/object').Ctx} */
5
+ /** @typedef {import('./index.d.ts').auth0_management__init__params_T} */
6
6
  /**
7
7
  * @param {Ctx}ctx
8
8
  * @param {auth0_management__init__params_T}params
@@ -4,9 +4,9 @@ import { AUTH0_MANAGEMENT_ID_ } from '../AUTH0_MANAGEMENT_ID/index.js'
4
4
  import { AUTH0_MANAGEMENT_SECRET_ } from '../AUTH0_MANAGEMENT_SECRET/index.js'
5
5
  const require = createRequire(import.meta.url)
6
6
  const { ManagementClient } = require('auth0')
7
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
8
- /** @typedef {import('auth0').ManagementClient}ManagementClient */
9
- /** @typedef {import('./index.d.ts').auth0_management__params_T}auth0_management__params_T */
7
+ /** @typedef {import('@ctx-core/object').Ctx} */
8
+ /** @typedef {import('auth0').ManagementClient} */
9
+ /** @typedef {import('./index.d.ts').auth0_management__params_T} */
10
10
  /**
11
11
  * @param {Ctx}ctx
12
12
  * @param {auth0_management__params_T}params
@@ -3,9 +3,9 @@ import { http_error__throw } from '@ctx-core/error'
3
3
  import {
4
4
  auth0_management__client_credentials__body__new
5
5
  } from '../auth0_management__client_credentials__body__new/index.js'
6
- /** @typedef {import('@ctx-core/auth0').auth0__token_T}auth0__token_T */
7
- /** @typedef {import('@ctx-core/object').Ctx}Ctx */
8
- /** @typedef {import('auth0-js').Auth0Error}Auth0Error */
6
+ /** @typedef {import('@ctx-core/auth0').auth0__token_T} */
7
+ /** @typedef {import('@ctx-core/object').Ctx} */
8
+ /** @typedef {import('auth0-js').Auth0Error} */
9
9
  /**
10
10
  * @param {Ctx}ctx
11
11
  * @return {Promise<auth0__token_T>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "9.8.27",
3
+ "version": "9.8.35",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -46,13 +46,13 @@
46
46
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@ctx-core/auth0": "^40.1.25",
50
- "@ctx-core/env": "^17.4.15",
51
- "@ctx-core/error": "^12.4.14",
52
- "@ctx-core/fetch": "^13.1.14",
53
- "@ctx-core/nanostores": "7.1.16",
54
- "@ctx-core/object": "^30.4.7",
55
- "@ctx-core/uri": "^12.5.15",
49
+ "@ctx-core/auth0": "^40.1.33",
50
+ "@ctx-core/env": "^17.4.21",
51
+ "@ctx-core/error": "^12.4.18",
52
+ "@ctx-core/fetch": "^13.1.19",
53
+ "@ctx-core/nanostores": "9.0.3",
54
+ "@ctx-core/object": "^31.1.0",
55
+ "@ctx-core/uri": "^12.5.19",
56
56
  "auth0": "^4.1.0"
57
57
  },
58
58
  "devDependencies": {
@@ -62,7 +62,7 @@
62
62
  "c8": "^8.0.1",
63
63
  "check-dts": "^0.7.2",
64
64
  "sinon": "^17.0.1",
65
- "tsx": "^4.1.3",
65
+ "tsx": "^4.1.4",
66
66
  "typescript": "next",
67
67
  "uvu": "^0.5.6"
68
68
  },