@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.
- package/auth0__user/index.d.ts +2 -2
- package/auth0__user/index.test.ts +2 -2
- package/auth0__v2_client__GET__fetch/index.d.ts +2 -2
- package/auth0__v2_client_grants__GET__fetch/index.d.ts +2 -2
- package/auth0__v2_user__GET__fetch/index.d.ts +2 -2
- package/auth0__v2_user__GET__fetch/index.test.ts +3 -3
- package/auth0__v2_user__PATCH__fetch/index.d.ts +3 -3
- package/package.json +80 -80
- package/tsconfig.json +1 -1
- package/License.md +0 -13
package/auth0__user/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { be_sig_triple_T } from 'ctx-core/rmemo'
|
|
2
|
-
import type {
|
|
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<
|
|
7
|
+
]:be_sig_triple_T<Management.GetUserResponseContent>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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
|
|
48
|
+
} as Management.GetUserResponseContent
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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
|
|
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
|
|
74
|
+
} as Management.GetUserResponseContent
|
|
75
75
|
}
|
|
76
|
-
function api_v2_user__stub(auth0__user:
|
|
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 {
|
|
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
|
-
|
|
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<
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
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.
|