@ctx-core/auth0-management 10.0.176 → 10.0.178

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,81 +1,81 @@
1
1
  {
2
- "name": "@ctx-core/auth0-management",
3
- "version": "10.0.176",
4
- "description": "ctx-core auth0 management api",
5
- "keywords": [
6
- "ctx-core",
7
- "auth0"
8
- ],
9
- "homepage": "https://github.com/ctx-core/auth0-management#readme",
10
- "bugs": {
11
- "url": "https://github.com/ctx-core/auth0-management/issues"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/ctx-core/auth0-management.git"
16
- },
17
- "license": "Apache-2.0",
18
- "author": {
19
- "name": "Brian Takita",
20
- "url": "https://briantakita.me",
21
- "email": "info+ctx-core-auth0-management@briantakita.me"
22
- },
23
- "type": "module",
24
- "files": [
25
- "*.d.ts",
26
- "*.js",
27
- "*.json",
28
- "./bin",
29
- "./auth0__user",
30
- "./auth0__v2_client__GET__fetch",
31
- "./auth0__v2_client_grants__GET__fetch",
32
- "./auth0__v2_user__GET__fetch",
33
- "./auth0__v2_user__PATCH__fetch",
34
- "./auth0__v2_users_by_email__GET__fetch",
35
- "./auth0_management__client_credentials__body__new",
36
- "./auth0_management__init",
37
- "./auth0_management__new",
38
- "./auth0_management__token__new",
39
- "./AUTH0_MANAGEMENT_ID",
40
- "./AUTH0_MANAGEMENT_SECRET"
41
- ],
42
- "types": "./index.d.ts",
43
- "exports": {
44
- ".": "./index.js",
45
- "./package.json": "./package.json"
46
- },
47
- "bin": {
48
- "add-grant-password-auth0": "./bin/add-grant-password-auth0.mjs",
49
- "auth0": "./bin/auth0.mjs",
50
- "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
51
- },
52
- "dependencies": {
53
- "@ctx-core/auth0": "^40.1.296",
54
- "auth0": "^4.9.0",
55
- "ctx-core": "^7.2.32"
56
- },
57
- "devDependencies": {
58
- "@types/auth0": "^3.3.10",
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",
65
- "typescript": "next",
66
- "uvu": "^0.5.6"
67
- },
68
- "publishConfig": {
69
- "access": "public"
70
- },
71
- "sideEffects": false,
72
- "scripts": {
73
- "build": ":",
74
- "clean": ":",
75
- "exec": "$@",
76
- "test": "pnpm run /^test:/",
77
- "test:types": "check-dts",
78
- "test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
79
- "disable:test:unit:coverage": "c8 pnpm test:unit"
80
- }
81
- }
2
+ "name": "@ctx-core/auth0-management",
3
+ "version": "10.0.178",
4
+ "description": "ctx-core auth0 management api",
5
+ "keywords": [
6
+ "ctx-core",
7
+ "auth0"
8
+ ],
9
+ "homepage": "https://github.com/ctx-core/auth0-management#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/ctx-core/auth0-management/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/ctx-core/auth0-management.git"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "author": {
19
+ "name": "Brian Takita",
20
+ "url": "https://briantakita.me",
21
+ "email": "info+ctx-core-auth0-management@briantakita.me"
22
+ },
23
+ "type": "module",
24
+ "files": [
25
+ "*.d.ts",
26
+ "*.js",
27
+ "*.json",
28
+ "./bin",
29
+ "./auth0__user",
30
+ "./auth0__v2_client__GET__fetch",
31
+ "./auth0__v2_client_grants__GET__fetch",
32
+ "./auth0__v2_user__GET__fetch",
33
+ "./auth0__v2_user__PATCH__fetch",
34
+ "./auth0__v2_users_by_email__GET__fetch",
35
+ "./auth0_management__client_credentials__body__new",
36
+ "./auth0_management__init",
37
+ "./auth0_management__new",
38
+ "./auth0_management__token__new",
39
+ "./AUTH0_MANAGEMENT_ID",
40
+ "./AUTH0_MANAGEMENT_SECRET"
41
+ ],
42
+ "types": "./index.d.ts",
43
+ "exports": {
44
+ ".": "./index.js",
45
+ "./package.json": "./package.json"
46
+ },
47
+ "bin": {
48
+ "add-grant-password-auth0": "./bin/add-grant-password-auth0.mjs",
49
+ "auth0": "./bin/auth0.mjs",
50
+ "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
51
+ },
52
+ "scripts": {
53
+ "build": ":",
54
+ "clean": ":",
55
+ "exec": "$@",
56
+ "prepublishOnly": "bun run clean && bun run build && bun run test && publint && attw --pack --ignore-rules cjs-resolves-to-esm",
57
+ "test": "bun run test:types && bun run test:unit",
58
+ "test:types": "tsc --noEmit",
59
+ "test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
60
+ "disable:test:unit:coverage": "c8 bun run test:unit"
61
+ },
62
+ "dependencies": {
63
+ "@ctx-core/auth0": "*",
64
+ "auth0": "^5.4.0",
65
+ "ctx-core": "*"
66
+ },
67
+ "devDependencies": {
68
+ "@types/auth0": "^3.3.11",
69
+ "@types/auth0-js": "^9.21.6",
70
+ "@types/sinon": "^21.0.0",
71
+ "c8": "^11.0.0",
72
+ "sinon": "^21.0.2",
73
+ "tsx": "^4.21.0",
74
+ "typescript": "next",
75
+ "uvu": "^0.5.6"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "sideEffects": false
81
+ }
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
package/License.md DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2016 Brian Takita
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.