@ctx-core/auth0-management 9.0.65 → 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.
Files changed (22) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.json +6 -6
  3. package/src/{auth0_audience_.d.ts → auth0_audience_/index.d.ts} +1 -1
  4. package/src/{auth0_audience_.js → auth0_audience_/index.js} +0 -0
  5. package/src/{auth0_management_.d.ts → auth0_management_/index.d.ts} +1 -1
  6. package/src/{auth0_management_.js → auth0_management_/index.js} +0 -0
  7. package/src/{auth0_management_client_credentials_body_.d.ts → auth0_management_client_credentials_body_/index.d.ts} +2 -2
  8. package/src/{auth0_management_client_credentials_body_.js → auth0_management_client_credentials_body_/index.js} +1 -1
  9. package/src/auth0_management_token_/index.d.ts +3 -0
  10. package/src/{auth0_management_token_.js → auth0_management_token_/index.js} +1 -1
  11. package/src/{get_auth0_v2_client_grants.d.ts → get_auth0_v2_client_grants/index.d.ts} +2 -2
  12. package/src/{get_auth0_v2_client_grants.js → get_auth0_v2_client_grants/index.js} +1 -1
  13. package/src/{get_auth0_v2_user.d.ts → get_auth0_v2_user/index.d.ts} +2 -2
  14. package/src/{get_auth0_v2_user.js → get_auth0_v2_user/index.js} +1 -1
  15. package/src/{get_auth0_v2_users_by_email.d.ts → get_auth0_v2_users_by_email/index.d.ts} +2 -2
  16. package/src/{get_auth0_v2_users_by_email.js → get_auth0_v2_users_by_email/index.js} +1 -1
  17. package/src/index.js +9 -9
  18. package/src/{patch_auth0_v2_client.d.ts → patch_auth0_v2_client/index.d.ts} +2 -2
  19. package/src/{patch_auth0_v2_client.js → patch_auth0_v2_client/index.js} +1 -1
  20. package/src/{patch_auth0_v2_user.d.ts → patch_auth0_v2_user/index.d.ts} +2 -2
  21. package/src/{patch_auth0_v2_user.js → patch_auth0_v2_user/index.js} +1 -1
  22. package/src/auth0_management_token_.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ctx-core/auth0-management
2
2
 
3
+ ## 9.0.68
4
+
5
+ ### Patch Changes
6
+
7
+ - update dependencies
8
+
9
+ ## 9.0.67
10
+
11
+ ### Patch Changes
12
+
13
+ - update dependencies
14
+ - Updated dependencies
15
+ - @ctx-core/auth0@34.4.4
16
+ - @ctx-core/fetch-undici@2.2.1
17
+
18
+ ## 9.0.66
19
+
20
+ ### Patch Changes
21
+
22
+ - update dependencies
23
+ - Updated dependencies
24
+ - @ctx-core/fetch-undici@2.1.15
25
+
3
26
  ## 9.0.65
4
27
 
5
28
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "9.0.65",
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.3.1",
32
- "@ctx-core/fetch-undici": "^2.1.12",
31
+ "@ctx-core/auth0": "^34.4.10",
32
+ "@ctx-core/fetch-undici": "^2.2.3",
33
33
  "@ctx-core/object": "^22.2.1",
34
- "@ctx-core/uri": "^12.0.49",
34
+ "@ctx-core/uri": "^12.0.51",
35
35
  "auth0": "^2.42.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/auth0": "^2.35.0",
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.3"
44
+ "uvu": "^0.5.6"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public",
@@ -1,2 +1,2 @@
1
- import type { Ctx } from '@ctx-core/object'
1
+ import { type Ctx } from '@ctx-core/object'
2
2
  export declare function auth0_audience_(ctx:Ctx):string
@@ -1,4 +1,4 @@
1
- import { ManagementClient } from 'auth0'
1
+ import { type ManagementClient } from 'auth0'
2
2
  export declare function auth0_management_(
3
3
  params?:auth0_management_params_I
4
4
  ):ManagementClient<import('auth0').AppMetadata, import('auth0').UserMetadata>
@@ -1,3 +1,3 @@
1
- import type { post_auth0_oauth_token_body_I } from '@ctx-core/auth0'
2
- import type { Ctx } from '@ctx-core/object'
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,4 +1,4 @@
1
- import { auth0_audience_ } from './auth0_audience_.js'
1
+ import { auth0_audience_ } from '../auth0_audience_/index.js'
2
2
  /**
3
3
  * @param {import('@ctx-core/object').Ctx}ctx
4
4
  * @return {import('@ctx-core/auth0').post_auth0_oauth_token_body_I}
@@ -0,0 +1,3 @@
1
+ import { type auth0_token_T } from '@ctx-core/auth0'
2
+ import { type Ctx } from '@ctx-core/object'
3
+ export declare function auth0_management_token_(ctx:Ctx):Promise<auth0_token_T>
@@ -1,5 +1,5 @@
1
1
  import { post_auth0_oauth_token } from '@ctx-core/auth0'
2
- import { auth0_management_client_credentials_body_ } from './auth0_management_client_credentials_body_.js'
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 { CreateClientGrant } from 'auth0'
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 './auth0_management_token_.js'
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 './auth0_management_token_.js'
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 { Auth0UserProfile } from 'auth0-js'
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 './auth0_management_token_.js'
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 { Client } from 'auth0'
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 './auth0_management_token_.js'
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 { Auth0Error } from 'auth0-js'
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 './auth0_management_token_.js'
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
  /**
@@ -1,3 +0,0 @@
1
- import { auth0_token_T } from '@ctx-core/auth0'
2
- import { Ctx } from '@ctx-core/object'
3
- export declare function auth0_management_token_(ctx:Ctx):Promise<auth0_token_T>