@ctx-core/auth0-management 9.3.0 → 9.4.3
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 +42 -12
- package/package.json +4 -4
- package/src/auth0__v2_client__GET__fetch/index.d.ts +4 -3
- package/src/auth0__v2_client__GET__fetch/index.js +2 -2
- package/src/auth0__v2_client_grants__GET__fetch/index.d.ts +4 -3
- package/src/auth0__v2_client_grants__GET__fetch/index.js +2 -2
- package/src/auth0__v2_user__GET__fetch/index.d.ts +4 -3
- package/src/auth0__v2_user__GET__fetch/index.js +2 -2
- package/src/auth0__v2_user__PATCH__fetch/index.d.ts +7 -5
- package/src/auth0__v2_user__PATCH__fetch/index.js +4 -4
- package/src/auth0__v2_users_by_email__GET__fetch/index.d.ts +4 -3
- package/src/auth0__v2_users_by_email__GET__fetch/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,51 @@
|
|
|
1
1
|
# @ctx-core/auth0-management
|
|
2
2
|
|
|
3
|
+
## 9.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies: @ctx-core/fetch: - workspace
|
|
8
|
+
|
|
9
|
+
## 9.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @ctx-core/auth0: ^38.2.9 -> ^38.2.10
|
|
14
|
+
- @ctx-core/env: ^17.2.89 -> ^17.2.90
|
|
15
|
+
|
|
16
|
+
## 9.4.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @ctx-core/nanostores@3.4.3
|
|
22
|
+
|
|
23
|
+
## 9.4.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- - auth0\_\_v2_user\_\_PATCH\_\_fetch\_\_data_T: aliased by auth0\_\_v2_user\_\_fetch_patch\_\_params_T
|
|
28
|
+
- - auth0\_\_v2_users_by_email\_\_GET\_\_fetch\_\_params_T: aliased by auth0\_\_v2_users_by_email\_\_fetch_get\_\_params_T
|
|
29
|
+
- - auth0\_\_v2_client_grants\_\_GET\_\_fetch\_\_params_T: aliased by auth0\_\_v2_client_grants\_\_fetch_get\_\_params_T
|
|
30
|
+
- - auth0\_\_v2_client\_\_GET\_\_fetch\_\_params_T: aliased by auth0\_\_v2_client\_\_fetch_get\_\_params_T
|
|
31
|
+
- - auth0\_\_v2_user\_\_GET\_\_fetch\_\_params_T: aliased by auth0\_\_v2_user\_\_fetch_get\_\_params_T
|
|
32
|
+
|
|
3
33
|
## 9.3.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
6
36
|
|
|
7
|
-
- - auth0
|
|
8
|
-
- - auth0
|
|
9
|
-
- - auth0
|
|
10
|
-
- - auth0
|
|
11
|
-
- -
|
|
12
|
-
- - auth0
|
|
13
|
-
- - auth0
|
|
14
|
-
- - auth0
|
|
15
|
-
- - auth0
|
|
16
|
-
- - auth0
|
|
17
|
-
- -
|
|
18
|
-
- - auth0
|
|
37
|
+
- - auth0\_\_v2_user\_\_PATCH\_\_fetch
|
|
38
|
+
- - auth0\_\_v2_user\_\_GET\_\_fetch
|
|
39
|
+
- - auth0\_\_v2_client\_\_GET\_\_fetch
|
|
40
|
+
- - auth0\_\_v2_user\_\_PATCH\_\_fetch2: aliased by auth0\_\_v2_user\_\_fetch_patch
|
|
41
|
+
- - auth0_management\__new: aliased by auth0_management_
|
|
42
|
+
- - auth0\_\_v2_users_by_email\_\_GET\_\_fetch
|
|
43
|
+
- - auth0\_\_v2_user\_\_GET\_\_fetch2: aliased by auth0\_\_v2_user\_\_fetch_get
|
|
44
|
+
- - auth0\_\_v2_client\_\_GET\_\_fetch2: aliased by auth0\_\_v2_client\_\_fetch_get
|
|
45
|
+
- - auth0\_\_v2_client_grants\_\_GET\_\_fetch
|
|
46
|
+
- - auth0\_\_v2_client_grants\_\_GET\_\_fetch2: aliased by auth0\_\_v2_client_grants\_\_fetch_get
|
|
47
|
+
- - auth0_management\_\_client_credentials\_\_body\_\_new: aliased by auth0_management\_\_client_credentials\__body_
|
|
48
|
+
- - auth0\_\_v2_users_by_email\_\_GET\_\_fetch2: aliased by auth0\_\_v2_users_by_email\_\_fetch_get
|
|
19
49
|
|
|
20
50
|
### Patch Changes
|
|
21
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/auth0-management",
|
|
3
|
-
"version": "9.3
|
|
3
|
+
"version": "9.4.3",
|
|
4
4
|
"description": "ctx-core auth0 management api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/auth0": "^38.2.
|
|
32
|
-
"@ctx-core/env": "^17.2.
|
|
31
|
+
"@ctx-core/auth0": "^38.2.10",
|
|
32
|
+
"@ctx-core/env": "^17.2.90",
|
|
33
33
|
"@ctx-core/error": "^12.3.28",
|
|
34
34
|
"@ctx-core/fetch": "^12.10.3",
|
|
35
35
|
"@ctx-core/fetch-undici": "^2.6.56",
|
|
36
|
-
"@ctx-core/nanostores": "3.4.
|
|
36
|
+
"@ctx-core/nanostores": "3.4.3",
|
|
37
37
|
"@ctx-core/object": "^27.4.25",
|
|
38
38
|
"@ctx-core/uri": "^12.4.40",
|
|
39
39
|
"auth0": "^3.4.0"
|
|
@@ -7,7 +7,7 @@ export declare const [
|
|
|
7
7
|
]:fetch__template_pair_T<
|
|
8
8
|
[
|
|
9
9
|
ctx:Ctx,
|
|
10
|
-
params:
|
|
10
|
+
params:auth0__v2_client__GET__fetch__params_T
|
|
11
11
|
],
|
|
12
12
|
Client
|
|
13
13
|
>
|
|
@@ -15,9 +15,10 @@ export {
|
|
|
15
15
|
auth0__v2_client__GET__fetch2 as auth0__v2_client__fetch_get,
|
|
16
16
|
auth0__v2_client__GET__fetch2 as patch_auth0_v2_client,
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface auth0__v2_client__GET__fetch__params_T {
|
|
19
19
|
client_id?:string
|
|
20
20
|
body?:string
|
|
21
21
|
json?:unknown
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type auth0__v2_client__fetch_get = auth0__v2_client__GET__fetch__params_T
|
|
24
|
+
export declare type patch_auth0_v2_client_params_T = auth0__v2_client__GET__fetch__params_T
|
|
@@ -4,14 +4,14 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
4
4
|
/** @typedef {import('@ctx-core/fetch').response_pair_T}response_pair_T */
|
|
5
5
|
/** @typedef {import('@ctx-core/object').Ctx}Ctx */
|
|
6
6
|
/** @typedef {import('auth0').Client}Client */
|
|
7
|
-
/** @typedef {import('./auth0__v2_client__GET__fetch2.d.ts').
|
|
7
|
+
/** @typedef {import('./auth0__v2_client__GET__fetch2.d.ts').auth0__v2_client__GET__fetch__params_T}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,
|
|
11
11
|
] = fetch__template_pair_(
|
|
12
12
|
/**
|
|
13
13
|
* @param {Ctx}ctx
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {auth0__v2_client__GET__fetch__params_T}params
|
|
15
15
|
* @returns {Promise<response_pair_T<Client>>}
|
|
16
16
|
*/
|
|
17
17
|
async(
|
|
@@ -7,7 +7,7 @@ export declare const [
|
|
|
7
7
|
]:fetch__template_pair_T<
|
|
8
8
|
[
|
|
9
9
|
ctx:Ctx,
|
|
10
|
-
params:
|
|
10
|
+
params:auth0__v2_client_grants__GET__fetch__params_T
|
|
11
11
|
],
|
|
12
12
|
CreateClientGrant
|
|
13
13
|
>
|
|
@@ -15,8 +15,9 @@ export {
|
|
|
15
15
|
auth0__v2_client_grants__GET__fetch2 as auth0__v2_client_grants__fetch_get,
|
|
16
16
|
auth0__v2_client_grants__GET__fetch2 as get_auth0_v2_client_grants,
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface auth0__v2_client_grants__GET__fetch__params_T {
|
|
19
19
|
query?:string
|
|
20
20
|
json?:any
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type auth0__v2_client_grants__fetch_get__params_T = auth0__v2_client_grants__GET__fetch__params_T
|
|
23
|
+
export declare type get_auth0_v2_client_grants_params_T = auth0__v2_client_grants__GET__fetch__params_T
|
|
@@ -5,14 +5,14 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
5
5
|
/** @typedef {import('@ctx-core/fetch').response_pair_T}response_pair_T */
|
|
6
6
|
/** @typedef {import('@ctx-core/object').Ctx}Ctx */
|
|
7
7
|
/** @typedef {import('auth0').CreateClientGrant}CreateClientGrant */
|
|
8
|
-
/** @typedef {import('./auth0__v2_client_grants__GET__fetch2.d.ts').
|
|
8
|
+
/** @typedef {import('./auth0__v2_client_grants__GET__fetch2.d.ts').auth0__v2_client_grants__GET__fetch__params_T}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,
|
|
12
12
|
] = fetch__template_pair_(
|
|
13
13
|
/**
|
|
14
14
|
* @param {Ctx}ctx
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {auth0__v2_client_grants__GET__fetch__params_T}params
|
|
16
16
|
* @returns {Promise<response_pair_T<CreateClientGrant>>}
|
|
17
17
|
*/
|
|
18
18
|
async(ctx, params)=>{
|
|
@@ -7,7 +7,7 @@ export declare const [
|
|
|
7
7
|
]:fetch__template_pair_T<
|
|
8
8
|
[
|
|
9
9
|
ctx:Ctx,
|
|
10
|
-
params:
|
|
10
|
+
params:auth0__v2_user__GET__fetch__params_T
|
|
11
11
|
],
|
|
12
12
|
User
|
|
13
13
|
>
|
|
@@ -15,9 +15,10 @@ export {
|
|
|
15
15
|
auth0__v2_user__GET__fetch2 as auth0__v2_user__fetch_get,
|
|
16
16
|
auth0__v2_user__GET__fetch2 as get_auth0_v2_user,
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface auth0__v2_user__GET__fetch__params_T {
|
|
19
19
|
AUTH0_DOMAIN?:string
|
|
20
20
|
user_id:string
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type auth0__v2_user__fetch_get__params_T = auth0__v2_user__GET__fetch__params_T
|
|
23
|
+
export declare type get_auth0_v2_user_params_T = auth0__v2_user__GET__fetch__params_T
|
|
23
24
|
|
|
@@ -3,14 +3,14 @@ import { fetch, fetch__template_pair_ } from '@ctx-core/fetch-undici'
|
|
|
3
3
|
import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
4
4
|
/** @typedef {import('@ctx-core/object').Ctx}Ctx */
|
|
5
5
|
/** @typedef {import('auth0').User}User */
|
|
6
|
-
/** @typedef {import('./auth0__v2_user__GET__fetch2.d.ts').
|
|
6
|
+
/** @typedef {import('./auth0__v2_user__GET__fetch2.d.ts').auth0__v2_user__GET__fetch__params_T}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,
|
|
10
10
|
] = fetch__template_pair_(
|
|
11
11
|
/**
|
|
12
12
|
* @param {Ctx}ctx
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {auth0__v2_user__GET__fetch__params_T}params
|
|
14
14
|
* @return {Promise<[User, Response]>}
|
|
15
15
|
*/
|
|
16
16
|
async(ctx, params)=>{
|
|
@@ -9,18 +9,20 @@ export declare const [
|
|
|
9
9
|
[
|
|
10
10
|
ctx:Ctx,
|
|
11
11
|
user_id:string,
|
|
12
|
-
data:
|
|
12
|
+
data:auth0__v2_user__PATCH__fetch__data_T
|
|
13
13
|
],
|
|
14
|
-
UpdateUserData|
|
|
14
|
+
UpdateUserData|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
|
|
20
|
+
export interface auth0__v2_user__PATCH__fetch__data_T extends Partial<UserData> {
|
|
21
21
|
password?:string
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type auth0__v2_user__fetch_patch__params_T = auth0__v2_user__PATCH__fetch__data_T
|
|
24
|
+
export declare type patch_auth0_v2_user_data_T = auth0__v2_user__PATCH__fetch__data_T
|
|
25
|
+
export interface auth0__v2_user__PATCH__error_T extends Auth0Error {
|
|
25
26
|
message:string
|
|
26
27
|
}
|
|
28
|
+
export type auth0__v2_user__fetch_patch__error_T = auth0__v2_user__PATCH__error_T
|
|
@@ -3,8 +3,8 @@ import { fetch, fetch__template_pair_ } from '@ctx-core/fetch-undici'
|
|
|
3
3
|
import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
4
4
|
/** @typedef {import('@ctx-core/object').Ctx}Ctx */
|
|
5
5
|
/** @typedef {import('auth0').UpdateUserData}UpdateUserData */
|
|
6
|
-
/** @typedef {import('./auth0__v2_user__PATCH__fetch2.d.ts').
|
|
7
|
-
/** @typedef {import('./index.d.ts').
|
|
6
|
+
/** @typedef {import('./auth0__v2_user__PATCH__fetch2.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 */
|
|
8
8
|
export const [
|
|
9
9
|
auth0__v2_user__PATCH__fetch,
|
|
10
10
|
auth0__v2_user__PATCH__fetch2,
|
|
@@ -12,8 +12,8 @@ export const [
|
|
|
12
12
|
/**
|
|
13
13
|
* @param {Ctx}ctx
|
|
14
14
|
* @param {string}user_id
|
|
15
|
-
* @param {
|
|
16
|
-
* @return {Promise<[UpdateUserData|
|
|
15
|
+
* @param {auth0__v2_user__PATCH__fetch__data_T}data
|
|
16
|
+
* @return {Promise<[UpdateUserData|auth0__v2_user__PATCH__error_T, Response]>}
|
|
17
17
|
* @see {@link https://auth0.com/docs/api-auth/tutorials/client-credentials}
|
|
18
18
|
* @see {@link https://auth0.com/docs/api-auth/which-oauth-flow-to-use}
|
|
19
19
|
* @see {@link https://auth0.com/docs/clients/client-grant-types}
|
|
@@ -7,7 +7,7 @@ export declare const [
|
|
|
7
7
|
]:fetch__template_pair_T<
|
|
8
8
|
[
|
|
9
9
|
ctx:Ctx,
|
|
10
|
-
params:
|
|
10
|
+
params:auth0__v2_users_by_email__GET__fetch__params_T
|
|
11
11
|
],
|
|
12
12
|
Auth0UserProfile[]
|
|
13
13
|
>
|
|
@@ -15,8 +15,9 @@ export {
|
|
|
15
15
|
auth0__v2_users_by_email__GET__fetch2 as auth0__v2_users_by_email__fetch_get,
|
|
16
16
|
auth0__v2_users_by_email__GET__fetch2 as get_auth0_v2_users_by_email,
|
|
17
17
|
}
|
|
18
|
-
export declare type
|
|
18
|
+
export declare type auth0__v2_users_by_email__GET__fetch__params_T = {
|
|
19
19
|
email:string
|
|
20
20
|
AUTH0_DOMAIN?:string
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type auth0__v2_users_by_email__fetch_get__params_T = auth0__v2_users_by_email__GET__fetch__params_T
|
|
23
|
+
export declare type get_auth0_v2_users_by_email_params_T = auth0__v2_users_by_email__GET__fetch__params_T
|
|
@@ -3,14 +3,14 @@ import { fetch, fetch__template_pair_ } from '@ctx-core/fetch-undici'
|
|
|
3
3
|
import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
4
4
|
/** @typedef {import('@ctx-core/object').Ctx}Ctx */
|
|
5
5
|
/** @type {import('auth0-js').Auth0UserProfile}Auth0UserProfile */
|
|
6
|
-
/** @typedef {import('./auth0__v2_users_by_email__GET__fetch2.d.ts').
|
|
6
|
+
/** @typedef {import('./auth0__v2_users_by_email__GET__fetch2.d.ts').auth0__v2_users_by_email__GET__fetch__params_T}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,
|
|
10
10
|
] = fetch__template_pair_(
|
|
11
11
|
/**
|
|
12
12
|
* @param {Ctx}ctx
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {auth0__v2_users_by_email__GET__fetch__params_T}params
|
|
14
14
|
* @return {Promise<[Auth0UserProfile[], Response]>}
|
|
15
15
|
*/
|
|
16
16
|
async (ctx, params)=>{
|