@ctx-core/auth0-management 10.0.175 → 10.0.177

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,7 +1,7 @@
1
1
  import type { be_sig_triple_T } from 'ctx-core/rmemo'
2
- import type { UserProfile } from 'auth0'
2
+ import type { Management } from 'auth0'
3
3
  export declare const [
4
4
  auth0__user$_,
5
5
  auth0__user_,
6
6
  auth0__user__set,
7
- ]:be_sig_triple_T<UserProfile>
7
+ ]:be_sig_triple_T<Management.GetUserResponseContent>
@@ -1,4 +1,4 @@
1
- import type { UserProfile } from 'auth0'
1
+ import type { Management } from 'auth0'
2
2
  import { ctx__new } from 'ctx-core/be'
3
3
  import { test } from 'uvu'
4
4
  import { equal } from 'uvu/assert'
@@ -45,5 +45,5 @@ function auth0__user__new() {
45
45
  'blocked': false,
46
46
  'given_name': '',
47
47
  'family_name': ''
48
- } as UserProfile
48
+ } as Management.GetUserResponseContent
49
49
  }
@@ -1,4 +1,4 @@
1
- import type { Client } from 'auth0'
1
+ import type { Management } from 'auth0'
2
2
  import type { Auth0Error } from 'auth0-js'
3
3
  import type { ctx_T } from 'ctx-core/be'
4
4
  import type { fetch__template_pair_T } from 'ctx-core/fetch'
@@ -10,7 +10,7 @@ export declare const [
10
10
  ctx:ctx_T,
11
11
  params:auth0__v2_client__GET__fetch__params_T
12
12
  ],
13
- Client|Auth0Error
13
+ Management.Client|Auth0Error
14
14
  >
15
15
  export {
16
16
  auth0__v2_client__GET__fetch2 as auth0__v2_client__fetch_get,
@@ -1,4 +1,4 @@
1
- import type { ClientGrant } from 'auth0'
1
+ import type { Management } from 'auth0'
2
2
  import type { Auth0Error } from 'auth0-js'
3
3
  import type { ctx_T } from 'ctx-core/be'
4
4
  import type { fetch__template_pair_T } from 'ctx-core/fetch'
@@ -10,7 +10,7 @@ export declare const [
10
10
  ctx:ctx_T,
11
11
  params:auth0__v2_client_grants__GET__fetch__params_T
12
12
  ],
13
- ClientGrant|Auth0Error
13
+ Management.ClientGrantResponseContent|Auth0Error
14
14
  >
15
15
  export {
16
16
  auth0__v2_client_grants__GET__fetch2 as auth0__v2_client_grants__fetch_get,
@@ -1,4 +1,4 @@
1
- import type { UserProfile } from 'auth0'
1
+ import type { Management } from 'auth0'
2
2
  import type { Auth0Error } from 'auth0-js'
3
3
  import type { ctx_T } from 'ctx-core/be'
4
4
  import type { fetch__template_pair_T } from 'ctx-core/fetch'
@@ -10,7 +10,7 @@ export declare const [
10
10
  ctx:ctx_T,
11
11
  params:auth0__v2_user__GET__fetch__params_T
12
12
  ],
13
- UserProfile|Auth0Error
13
+ Management.GetUserResponseContent|Auth0Error
14
14
  >
15
15
  export {
16
16
  auth0__v2_user__GET__fetch2 as auth0__v2_user__fetch_get,
@@ -1,5 +1,5 @@
1
1
  import { AUTH0_DOMAIN__set } from '@ctx-core/auth0'
2
- import { type UserProfile } from 'auth0'
2
+ import { type Management } from 'auth0'
3
3
  import { ctx__new } from 'ctx-core/be'
4
4
  import { restore, stub } from 'sinon'
5
5
  import { test } from 'uvu'
@@ -71,9 +71,9 @@ function auth0__user__new() {
71
71
  'blocked': false,
72
72
  'given_name': '',
73
73
  'family_name': ''
74
- } as UserProfile
74
+ } as Management.GetUserResponseContent
75
75
  }
76
- function api_v2_user__stub(auth0__user:UserProfile) {
76
+ function api_v2_user__stub(auth0__user:Management.GetUserResponseContent) {
77
77
  const fetch = stub(globalThis, 'fetch')
78
78
  fetch
79
79
  .withArgs('https://myapp.auth0.com/oauth/token', {
@@ -1,4 +1,4 @@
1
- import type { UserProfile, UserUpdate } from 'auth0'
1
+ import type { Management } from 'auth0'
2
2
  import type { Auth0Error } from 'auth0-js'
3
3
  import type { ctx_T } from 'ctx-core/be'
4
4
  import type { fetch__template_pair_T } from 'ctx-core/fetch'
@@ -11,13 +11,13 @@ export declare const [
11
11
  user_id:string,
12
12
  data:auth0__v2_user__PATCH__fetch__data_T
13
13
  ],
14
- UserUpdate|auth0__v2_user__PATCH__error_T
14
+ Management.UpdateUserResponseContent|auth0__v2_user__PATCH__error_T
15
15
  >
16
16
  export {
17
17
  auth0__v2_user__PATCH__fetch2 as auth0__v2_user__fetch_patch,
18
18
  auth0__v2_user__PATCH__fetch2 as patch_auth0_v2_user,
19
19
  }
20
- export interface auth0__v2_user__PATCH__fetch__data_T extends Partial<UserProfile> {
20
+ export interface auth0__v2_user__PATCH__fetch__data_T extends Partial<Management.GetUserResponseContent> {
21
21
  password?:string
22
22
  }
23
23
  export type auth0__v2_user__fetch_patch__params_T = auth0__v2_user__PATCH__fetch__data_T
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "10.0.175",
3
+ "version": "10.0.177",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -50,18 +50,17 @@
50
50
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
51
51
  },
52
52
  "dependencies": {
53
- "@ctx-core/auth0": "^40.1.295",
54
- "auth0": "^4.9.0",
55
- "ctx-core": "^7.2.31"
53
+ "@ctx-core/auth0": "*",
54
+ "auth0": "^5.4.0",
55
+ "ctx-core": "*"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/auth0": "^3.3.10",
58
+ "@types/auth0": "^3.3.11",
59
59
  "@types/auth0-js": "^9.21.6",
60
- "@types/sinon": "^17.0.3",
61
- "c8": "^10.1.2",
62
- "check-dts": "^0.8.2",
63
- "sinon": "^18.0.0",
64
- "tsx": "^4.19.0",
60
+ "@types/sinon": "^21.0.0",
61
+ "c8": "^11.0.0",
62
+ "sinon": "^21.0.2",
63
+ "tsx": "^4.21.0",
65
64
  "typescript": "next",
66
65
  "uvu": "^0.5.6"
67
66
  },
@@ -74,7 +73,7 @@
74
73
  "clean": ":",
75
74
  "exec": "$@",
76
75
  "test": "pnpm run /^test:/",
77
- "test:types": "check-dts",
76
+ "test:types": "tsc --noEmit",
78
77
  "test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
79
78
  "disable:test:unit:coverage": "c8 pnpm test:unit"
80
79
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "module": "ESNext",
4
+ "module": "NodeNext",
5
5
  "moduleResolution": "nodenext",
6
6
  "target": "ESNext",
7
7
  "strict": true