@ctx-core/auth0-management 9.0.67 → 9.0.68
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 +6 -0
- package/package.json +5 -5
- package/src/{auth0_audience_.d.ts → auth0_audience_/index.d.ts} +1 -1
- package/src/{auth0_audience_.js → auth0_audience_/index.js} +0 -0
- package/src/{auth0_management_.d.ts → auth0_management_/index.d.ts} +1 -1
- package/src/{auth0_management_.js → auth0_management_/index.js} +0 -0
- package/src/{auth0_management_client_credentials_body_.d.ts → auth0_management_client_credentials_body_/index.d.ts} +2 -2
- package/src/{auth0_management_client_credentials_body_.js → auth0_management_client_credentials_body_/index.js} +1 -1
- package/src/auth0_management_token_/index.d.ts +3 -0
- package/src/{auth0_management_token_.js → auth0_management_token_/index.js} +1 -1
- package/src/{get_auth0_v2_client_grants.d.ts → get_auth0_v2_client_grants/index.d.ts} +2 -2
- package/src/{get_auth0_v2_client_grants.js → get_auth0_v2_client_grants/index.js} +1 -1
- package/src/{get_auth0_v2_user.d.ts → get_auth0_v2_user/index.d.ts} +2 -2
- package/src/{get_auth0_v2_user.js → get_auth0_v2_user/index.js} +1 -1
- package/src/{get_auth0_v2_users_by_email.d.ts → get_auth0_v2_users_by_email/index.d.ts} +2 -2
- package/src/{get_auth0_v2_users_by_email.js → get_auth0_v2_users_by_email/index.js} +1 -1
- package/src/index.js +9 -9
- package/src/{patch_auth0_v2_client.d.ts → patch_auth0_v2_client/index.d.ts} +2 -2
- package/src/{patch_auth0_v2_client.js → patch_auth0_v2_client/index.js} +1 -1
- package/src/{patch_auth0_v2_user.d.ts → patch_auth0_v2_user/index.d.ts} +2 -2
- package/src/{patch_auth0_v2_user.js → patch_auth0_v2_user/index.js} +1 -1
- package/src/auth0_management_token_.d.ts +0 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/auth0-management",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.68",
|
|
4
4
|
"description": "ctx-core auth0 management api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/auth0": "^34.4.
|
|
32
|
-
"@ctx-core/fetch-undici": "^2.2.
|
|
31
|
+
"@ctx-core/auth0": "^34.4.10",
|
|
32
|
+
"@ctx-core/fetch-undici": "^2.2.3",
|
|
33
33
|
"@ctx-core/object": "^22.2.1",
|
|
34
34
|
"@ctx-core/uri": "^12.0.51",
|
|
35
35
|
"auth0": "^2.42.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/auth0": "^2.35.
|
|
38
|
+
"@types/auth0": "^2.35.2",
|
|
39
39
|
"@types/auth0-js": "^9.14.6",
|
|
40
40
|
"c8": "^7.11.3",
|
|
41
41
|
"check-dts": "^0.6.7",
|
|
42
42
|
"tsm": "^2.2.1",
|
|
43
43
|
"typescript": "next",
|
|
44
|
-
"uvu": "^0.5.
|
|
44
|
+
"uvu": "^0.5.6"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Ctx } from '@ctx-core/object'
|
|
2
2
|
export declare function auth0_audience_(ctx:Ctx):string
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type post_auth0_oauth_token_body_I } from '@ctx-core/auth0'
|
|
2
|
+
import { type Ctx } from '@ctx-core/object'
|
|
3
3
|
export declare function auth0_management_client_credentials_body_(ctx:Ctx):post_auth0_oauth_token_body_I
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { post_auth0_oauth_token } from '@ctx-core/auth0'
|
|
2
|
-
import { auth0_management_client_credentials_body_ } from '
|
|
2
|
+
import { auth0_management_client_credentials_body_ } from '../auth0_management_client_credentials_body_/index.js'
|
|
3
3
|
/**
|
|
4
4
|
* @param {import('@ctx-core/object').Ctx}ctx
|
|
5
5
|
* @return {Promise<import('@ctx-core/auth0').auth0_token_T>}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
|
-
import { Ctx } from '@ctx-core/object'
|
|
3
|
-
import type
|
|
2
|
+
import { type Ctx } from '@ctx-core/object'
|
|
3
|
+
import { type CreateClientGrant } from 'auth0'
|
|
4
4
|
export declare function get_auth0_v2_client_grants(
|
|
5
5
|
ctx:Ctx, params:get_auth0_v2_client_grants_params_T
|
|
6
6
|
):Promise<[CreateClientGrant, Response]>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { verify_access_token_header_authorization, AUTH0_DOMAIN__ } from '@ctx-core/auth0'
|
|
2
2
|
import { fetch } from '@ctx-core/fetch-undici'
|
|
3
3
|
import { query_str_ } from '@ctx-core/uri'
|
|
4
|
-
import { auth0_management_token_ } from '
|
|
4
|
+
import { auth0_management_token_ } from '../auth0_management_token_/index.js'
|
|
5
5
|
/** @typedef {import('auth0').CreateClientGrant}CreateClientGrant */
|
|
6
6
|
/**
|
|
7
7
|
* @param {import('@ctx-core/object').Ctx}ctx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
|
-
import { Ctx } from '@ctx-core/object'
|
|
3
|
-
import { User } from 'auth0'
|
|
2
|
+
import { type Ctx } from '@ctx-core/object'
|
|
3
|
+
import { type User } from 'auth0'
|
|
4
4
|
export declare function get_auth0_v2_user(
|
|
5
5
|
ctx:Ctx, params:get_auth0_v2_user_params_T
|
|
6
6
|
):Promise<[User, Response]>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verify_access_token_header_authorization } from '@ctx-core/auth0'
|
|
2
2
|
import { fetch } from '@ctx-core/fetch-undici'
|
|
3
|
-
import { auth0_management_token_ } from '
|
|
3
|
+
import { auth0_management_token_ } from '../auth0_management_token_/index.js'
|
|
4
4
|
/** @typedef {import('auth0').User}User */
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('@ctx-core/object').Ctx}ctx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
|
-
import type
|
|
3
|
-
import { Ctx } from '@ctx-core/object'
|
|
2
|
+
import { type Auth0UserProfile } from 'auth0-js'
|
|
3
|
+
import { type Ctx } from '@ctx-core/object'
|
|
4
4
|
export declare function get_auth0_v2_users_by_email(
|
|
5
5
|
ctx:Ctx, params:get_auth0_v2_users_by_email_params_T
|
|
6
6
|
):Promise<[Auth0UserProfile[], Response]>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verify_access_token_header_authorization, AUTH0_DOMAIN__ } from '@ctx-core/auth0'
|
|
2
2
|
import { fetch } from '@ctx-core/fetch-undici'
|
|
3
|
-
import { auth0_management_token_ } from '
|
|
3
|
+
import { auth0_management_token_ } from '../auth0_management_token_/index.js'
|
|
4
4
|
/** @type {import('auth0-js').Auth0UserProfile}Auth0UserProfile */
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('@ctx-core/object').Ctx}ctx
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './auth0_audience_.js'
|
|
2
|
-
export * from './auth0_management_.js'
|
|
3
|
-
export * from './auth0_management_client_credentials_body_.js'
|
|
4
|
-
export * from './auth0_management_token_.js'
|
|
5
|
-
export * from './get_auth0_v2_client_grants.js'
|
|
6
|
-
export * from './get_auth0_v2_user.js'
|
|
7
|
-
export * from './get_auth0_v2_users_by_email.js'
|
|
8
|
-
export * from './patch_auth0_v2_client.js'
|
|
9
|
-
export * from './patch_auth0_v2_user.js'
|
|
1
|
+
export * from './auth0_audience_/index.js'
|
|
2
|
+
export * from './auth0_management_/index.js'
|
|
3
|
+
export * from './auth0_management_client_credentials_body_/index.js'
|
|
4
|
+
export * from './auth0_management_token_/index.js'
|
|
5
|
+
export * from './get_auth0_v2_client_grants/index.js'
|
|
6
|
+
export * from './get_auth0_v2_user/index.js'
|
|
7
|
+
export * from './get_auth0_v2_users_by_email/index.js'
|
|
8
|
+
export * from './patch_auth0_v2_client/index.js'
|
|
9
|
+
export * from './patch_auth0_v2_user/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
|
-
import { Ctx } from '@ctx-core/object'
|
|
3
|
-
import type
|
|
2
|
+
import { type Ctx } from '@ctx-core/object'
|
|
3
|
+
import { type Client } from 'auth0'
|
|
4
4
|
export declare function patch_auth0_v2_client(
|
|
5
5
|
ctx:Ctx, params:patch_auth0_v2_client_params_T
|
|
6
6
|
):Promise<[Client, Response]>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verify_access_token_header_authorization, AUTH0_DOMAIN__ } from '@ctx-core/auth0'
|
|
2
2
|
import { fetch } from '@ctx-core/fetch-undici'
|
|
3
|
-
import { auth0_management_token_ } from '
|
|
3
|
+
import { auth0_management_token_ } from '../auth0_management_token_/index.js'
|
|
4
4
|
/** @typedef {import('auth0').Client}Client */
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('@ctx-core/object').Ctx}ctx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
|
-
import { Ctx } from '@ctx-core/object'
|
|
2
|
+
import { type Ctx } from '@ctx-core/object'
|
|
3
3
|
import type { UserData, UpdateUserData } from 'auth0'
|
|
4
|
-
import type
|
|
4
|
+
import { type Auth0Error } from 'auth0-js'
|
|
5
5
|
export declare function patch_auth0_v2_user(
|
|
6
6
|
ctx:Ctx, user_id:string, data:patch_auth0_v2_user_data_T
|
|
7
7
|
):Promise<[UpdateUserData|Auth0Error, Response]>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verify_access_token_header_authorization, AUTH0_DOMAIN__ } from '@ctx-core/auth0'
|
|
2
2
|
import { fetch } from '@ctx-core/fetch-undici'
|
|
3
|
-
import { auth0_management_token_ } from '
|
|
3
|
+
import { auth0_management_token_ } from '../auth0_management_token_/index.js'
|
|
4
4
|
/** @typedef {import('auth0').UpdateUserData}UpdateUserData */
|
|
5
5
|
/** @typedef {import('auth0').Auth0Error}Auth0Error */
|
|
6
6
|
/**
|