@ctx-core/auth0-management 7.0.1 → 7.0.6

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 CHANGED
@@ -1,5 +1,61 @@
1
1
  # @ctx-core/auth0-management
2
2
 
3
+ ## 7.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: build
8
+ - Updated dependencies
9
+ - @ctx-core/auth0@27.0.6
10
+ - @ctx-core/fetch@11.0.98
11
+ - @ctx-core/object@22.0.5
12
+ - @ctx-core/store@27.0.52
13
+
14
+ ## 7.0.5
15
+
16
+ ### Patch Changes
17
+
18
+ - \*.d.ts export
19
+ - Updated dependencies
20
+ - @ctx-core/auth0@27.0.5
21
+ - @ctx-core/fetch@11.0.97
22
+ - @ctx-core/object@22.0.4
23
+ - @ctx-core/store@27.0.51
24
+
25
+ ## 7.0.4
26
+
27
+ ### Patch Changes
28
+
29
+ - fix: tsconfig.json: "rootDir": "."
30
+ - Updated dependencies
31
+ - @ctx-core/auth0@27.0.4
32
+ - @ctx-core/fetch@11.0.96
33
+ - @ctx-core/object@22.0.3
34
+ - @ctx-core/store@27.0.50
35
+
36
+ ## 7.0.3
37
+
38
+ ### Patch Changes
39
+
40
+ - fix: package.json: exports
41
+ - Updated dependencies
42
+ - @ctx-core/auth0@27.0.3
43
+ - @ctx-core/fetch@11.0.95
44
+ - @ctx-core/object@22.0.2
45
+ - @ctx-core/store@27.0.49
46
+
47
+ ## 7.0.2
48
+
49
+ ### Patch Changes
50
+
51
+ - package.json: svelte: ./dist/index.js
52
+ - Updated dependencies
53
+ - Updated dependencies
54
+ - @ctx-core/auth0@27.0.2
55
+ - @ctx-core/fetch@11.0.94
56
+ - @ctx-core/object@22.0.1
57
+ - @ctx-core/store@27.0.48
58
+
3
59
  ## 7.0.1
4
60
 
5
61
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const auth0_audience__b: B<auth0_audience__T>;
3
+ export declare type auth0_audience__T = () => string;
@@ -0,0 +1,7 @@
1
+ import { ManagementClient } from 'auth0';
2
+ export declare function auth0_management_(params?: auth0_management_params_I): ManagementClient<import("auth0").AppMetadata, import("auth0").UserMetadata>;
3
+ export interface auth0_management_params_I {
4
+ domain?: string;
5
+ clientId?: string;
6
+ clientSecret?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { post_auth0_oauth_token_body_I } from '@ctx-core/auth0';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const auth0_management_client_credentials_body__b: B<auth0_management_client_credentials_body__T>;
4
+ export declare type auth0_management_client_credentials_body__T = () => post_auth0_oauth_token_body_I;
@@ -0,0 +1,4 @@
1
+ import { auth0_token_T } from '@ctx-core/auth0';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const auth0_management_token__b: B<auth0_management_token__T>;
4
+ export declare type auth0_management_token__T = () => Promise<auth0_token_T>;
@@ -0,0 +1,7 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const get_auth0_v2_client_grants_b: B<get_auth0_v2_client_grants_T>;
3
+ export interface get_auth0_v2_client_grants_params_I {
4
+ query?: string;
5
+ json?: any;
6
+ }
7
+ export declare type get_auth0_v2_client_grants_T = (params: get_auth0_v2_client_grants_params_I) => Promise<Response>;
@@ -0,0 +1,7 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const get_auth0_v2_user_b: B<get_auth0_v2_user_T>;
3
+ export interface get_auth0_v2_user_params_T {
4
+ AUTH0_DOMAIN: string;
5
+ user_id: string;
6
+ }
7
+ export declare type get_auth0_v2_user_T = (params: get_auth0_v2_user_params_T) => Promise<Response>;
@@ -0,0 +1,9 @@
1
+ import type { Auth0UserProfile } from 'auth0-js';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const get_auth0_v2_users_by_email_b: B<get_auth0_v2_users_by_email_T>;
4
+ export declare type get_auth0_v2_users_by_email_params_I = {
5
+ email: string;
6
+ AUTH0_DOMAIN?: string;
7
+ };
8
+ export declare type get_auth0_v2_users_by_email_T = (params: get_auth0_v2_users_by_email_params_I) => Promise<Response>;
9
+ export declare type get_auth0_v2_users_by_email_response_T = Auth0UserProfile[];
@@ -0,0 +1,9 @@
1
+ export * from './auth0_audience__b.js';
2
+ export * from './auth0_management_.js';
3
+ export * from './auth0_management_client_credentials_body__b.js';
4
+ export * from './auth0_management_token__b.js';
5
+ export * from './get_auth0_v2_client_grants_b.js';
6
+ export * from './get_auth0_v2_user_b.js';
7
+ export * from './get_auth0_v2_users_by_email_b.js';
8
+ export * from './patch_auth0_v2_client_b.js';
9
+ export * from './patch_auth0_v2_user_b.js';
@@ -0,0 +1,8 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const patch_auth0_v2_client_b: B<patch_auth0_v2_client_T>;
3
+ export interface patch_auth0_v2_client_params_T {
4
+ client_id?: string;
5
+ body?: string;
6
+ json?: unknown;
7
+ }
8
+ export declare type patch_auth0_v2_client_T = (params: patch_auth0_v2_client_params_T) => Promise<Response>;
@@ -0,0 +1,7 @@
1
+ import type { Auth0UserProfile } from 'auth0-js';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const patch_auth0_v2_user_b: B<patch_auth0_v2_user_T>;
4
+ export interface patch_auth0_v2_user_data_I extends Partial<Auth0UserProfile> {
5
+ password?: string;
6
+ }
7
+ export declare type patch_auth0_v2_user_T = (user_id: string, data: patch_auth0_v2_user_data_I) => Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "7.0.1",
3
+ "version": "7.0.6",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -17,9 +17,9 @@
17
17
  "license": "Apache-2.0",
18
18
  "author": "Brian Takita",
19
19
  "type": "module",
20
+ "types": "./dist/index.d.ts",
20
21
  "exports": {
21
22
  ".": {
22
- "types": "./src/index.ts",
23
23
  "import": "./dist/index.js"
24
24
  },
25
25
  "./package.json": "./package.json"
@@ -30,27 +30,32 @@
30
30
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "@ctx-core/auth0": "^27.0.1",
34
- "@ctx-core/fetch": "^11.0.93",
35
- "@ctx-core/object": "^22.0.0",
36
- "@ctx-core/store": "^27.0.47",
33
+ "@ctx-core/auth0": "^27.0.6",
34
+ "@ctx-core/fetch": "^11.0.98",
35
+ "@ctx-core/object": "^22.0.5",
36
+ "@ctx-core/store": "^27.0.52",
37
37
  "auth0": "^2.37.0",
38
38
  "svelte": "^3.44.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@ctx-core/uri": "^12.0.26",
41
+ "@ctx-core/uri": "^12.0.31",
42
42
  "@swc/cli": "^0.1.55",
43
43
  "@swc/core": "^1.2.120",
44
+ "rimraf": "^3.0.2",
44
45
  "typescript": "next"
45
46
  },
46
47
  "publishConfig": {
47
48
  "access": "public",
48
49
  "cache": "~/.npm"
49
50
  },
51
+ "svelte": "./dist/index.js",
50
52
  "scripts": {
51
53
  "build": "npm run compile",
52
- "clean": "rm -rf dist",
53
- "compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
54
+ "clean": "rimraf dist && npm run clean_tsbuildinfo",
55
+ "clean_tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
56
+ "compile": "npm run compile_source && npm run compile_declaration",
57
+ "compile_source": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
58
+ "compile_declaration": "npm run clean_tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir dist",
54
59
  "exec": "$@"
55
60
  }
56
61
  }
package/tsconfig.json CHANGED
@@ -23,7 +23,6 @@
23
23
  ],
24
24
  "rootDir": "src",
25
25
  "outDir": "dist",
26
- "mapRoot": "",
27
26
  "declarationDir": "dist",
28
27
  "lib": ["dom", "ESNext"],
29
28
  "importsNotUsedAsValues": "error",