theauthapi 1.0.17 → 1.0.18
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/LICENSE +21 -21
- package/dist/index.cjs +285 -283
- package/dist/index.d.cts +177 -177
- package/dist/index.d.mts +177 -177
- package/dist/index.mjs +285 -283
- package/dist/types.d.cts +83 -83
- package/dist/types.d.ts +83 -83
- package/package.json +4 -1
package/dist/types.d.cts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
type ApiKey = {
|
|
2
|
-
key: string;
|
|
3
|
-
name: string;
|
|
4
|
-
customMetaData: AnyJson;
|
|
5
|
-
customAccountId: string;
|
|
6
|
-
customUserId: string;
|
|
7
|
-
env: Environment;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
rateLimitConfigs: RateLimitConfiguration;
|
|
12
|
-
expiry: Date;
|
|
13
|
-
};
|
|
14
|
-
type RateLimitConfiguration = {
|
|
15
|
-
rateLimit: number;
|
|
16
|
-
rateLimitTtl: number;
|
|
17
|
-
};
|
|
18
|
-
type ApiKeyInput = {
|
|
19
|
-
name: string;
|
|
20
|
-
projectId?: string;
|
|
21
|
-
key?: string;
|
|
22
|
-
customMetaData?: AnyJson;
|
|
23
|
-
customAccountId?: string;
|
|
24
|
-
customUserId?: string;
|
|
25
|
-
rateLimitConfigs?: RateLimitConfiguration;
|
|
26
|
-
expiry?: Date;
|
|
27
|
-
};
|
|
28
|
-
type ApiKeyFilter = {
|
|
29
|
-
projectId?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
customAccountId?: string | null;
|
|
32
|
-
customUserId?: string | null;
|
|
33
|
-
isActive?: boolean;
|
|
34
|
-
};
|
|
35
|
-
type UpdateApiKeyInput = {
|
|
36
|
-
name: string;
|
|
37
|
-
key?: string;
|
|
38
|
-
customMetaData?: AnyJson;
|
|
39
|
-
customAccountId?: string;
|
|
40
|
-
customUserId?: string;
|
|
41
|
-
expiry?: Date | null;
|
|
42
|
-
rateLimitConfigs?: RateLimitConfiguration | null;
|
|
43
|
-
};
|
|
44
|
-
declare enum AuthedEntityType {
|
|
45
|
-
USER = "USER",
|
|
46
|
-
ACCESS_KEY = "ACCESS_KEY"
|
|
47
|
-
}
|
|
48
|
-
type AuthBaseEntity = {
|
|
49
|
-
isActive: boolean;
|
|
50
|
-
createdBy: string;
|
|
51
|
-
createdByType?: AuthedEntityType;
|
|
52
|
-
createdIn: string;
|
|
53
|
-
lastChangedBy: string;
|
|
54
|
-
lastChangedByType?: AuthedEntityType;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
createdAt: Date;
|
|
57
|
-
};
|
|
58
|
-
type Project = AuthBaseEntity & {
|
|
59
|
-
id: string;
|
|
60
|
-
name: string;
|
|
61
|
-
accountId: string;
|
|
62
|
-
env: Environment;
|
|
63
|
-
};
|
|
64
|
-
declare enum Environment {
|
|
65
|
-
LIVE = "live",
|
|
66
|
-
TEST = "test"
|
|
67
|
-
}
|
|
68
|
-
type CreateProjectInput = {
|
|
69
|
-
name: string;
|
|
70
|
-
accountId: string;
|
|
71
|
-
env: Environment;
|
|
72
|
-
};
|
|
73
|
-
type UpdateProjectInput = {
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
type Account = AuthBaseEntity & {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
};
|
|
80
|
-
type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
|
|
81
|
-
type JsonMap = {
|
|
82
|
-
[key: string]: AnyJson;
|
|
83
|
-
};
|
|
1
|
+
type ApiKey = {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
customMetaData: AnyJson;
|
|
5
|
+
customAccountId: string;
|
|
6
|
+
customUserId: string;
|
|
7
|
+
env: Environment;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
rateLimitConfigs: RateLimitConfiguration;
|
|
12
|
+
expiry: Date;
|
|
13
|
+
};
|
|
14
|
+
type RateLimitConfiguration = {
|
|
15
|
+
rateLimit: number;
|
|
16
|
+
rateLimitTtl: number;
|
|
17
|
+
};
|
|
18
|
+
type ApiKeyInput = {
|
|
19
|
+
name: string;
|
|
20
|
+
projectId?: string;
|
|
21
|
+
key?: string;
|
|
22
|
+
customMetaData?: AnyJson;
|
|
23
|
+
customAccountId?: string;
|
|
24
|
+
customUserId?: string;
|
|
25
|
+
rateLimitConfigs?: RateLimitConfiguration;
|
|
26
|
+
expiry?: Date;
|
|
27
|
+
};
|
|
28
|
+
type ApiKeyFilter = {
|
|
29
|
+
projectId?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
customAccountId?: string | null;
|
|
32
|
+
customUserId?: string | null;
|
|
33
|
+
isActive?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type UpdateApiKeyInput = {
|
|
36
|
+
name: string;
|
|
37
|
+
key?: string;
|
|
38
|
+
customMetaData?: AnyJson;
|
|
39
|
+
customAccountId?: string;
|
|
40
|
+
customUserId?: string;
|
|
41
|
+
expiry?: Date | null;
|
|
42
|
+
rateLimitConfigs?: RateLimitConfiguration | null;
|
|
43
|
+
};
|
|
44
|
+
declare enum AuthedEntityType {
|
|
45
|
+
USER = "USER",
|
|
46
|
+
ACCESS_KEY = "ACCESS_KEY"
|
|
47
|
+
}
|
|
48
|
+
type AuthBaseEntity = {
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
createdBy: string;
|
|
51
|
+
createdByType?: AuthedEntityType;
|
|
52
|
+
createdIn: string;
|
|
53
|
+
lastChangedBy: string;
|
|
54
|
+
lastChangedByType?: AuthedEntityType;
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
};
|
|
58
|
+
type Project = AuthBaseEntity & {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
accountId: string;
|
|
62
|
+
env: Environment;
|
|
63
|
+
};
|
|
64
|
+
declare enum Environment {
|
|
65
|
+
LIVE = "live",
|
|
66
|
+
TEST = "test"
|
|
67
|
+
}
|
|
68
|
+
type CreateProjectInput = {
|
|
69
|
+
name: string;
|
|
70
|
+
accountId: string;
|
|
71
|
+
env: Environment;
|
|
72
|
+
};
|
|
73
|
+
type UpdateProjectInput = {
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
type Account = AuthBaseEntity & {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
|
|
81
|
+
type JsonMap = {
|
|
82
|
+
[key: string]: AnyJson;
|
|
83
|
+
};
|
|
84
84
|
type JsonArray = Array<AnyJson>;
|
|
85
85
|
|
|
86
86
|
export { AuthedEntityType, Environment };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
type ApiKey = {
|
|
2
|
-
key: string;
|
|
3
|
-
name: string;
|
|
4
|
-
customMetaData: AnyJson;
|
|
5
|
-
customAccountId: string;
|
|
6
|
-
customUserId: string;
|
|
7
|
-
env: Environment;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
rateLimitConfigs: RateLimitConfiguration;
|
|
12
|
-
expiry: Date;
|
|
13
|
-
};
|
|
14
|
-
type RateLimitConfiguration = {
|
|
15
|
-
rateLimit: number;
|
|
16
|
-
rateLimitTtl: number;
|
|
17
|
-
};
|
|
18
|
-
type ApiKeyInput = {
|
|
19
|
-
name: string;
|
|
20
|
-
projectId?: string;
|
|
21
|
-
key?: string;
|
|
22
|
-
customMetaData?: AnyJson;
|
|
23
|
-
customAccountId?: string;
|
|
24
|
-
customUserId?: string;
|
|
25
|
-
rateLimitConfigs?: RateLimitConfiguration;
|
|
26
|
-
expiry?: Date;
|
|
27
|
-
};
|
|
28
|
-
type ApiKeyFilter = {
|
|
29
|
-
projectId?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
customAccountId?: string | null;
|
|
32
|
-
customUserId?: string | null;
|
|
33
|
-
isActive?: boolean;
|
|
34
|
-
};
|
|
35
|
-
type UpdateApiKeyInput = {
|
|
36
|
-
name: string;
|
|
37
|
-
key?: string;
|
|
38
|
-
customMetaData?: AnyJson;
|
|
39
|
-
customAccountId?: string;
|
|
40
|
-
customUserId?: string;
|
|
41
|
-
expiry?: Date | null;
|
|
42
|
-
rateLimitConfigs?: RateLimitConfiguration | null;
|
|
43
|
-
};
|
|
44
|
-
declare enum AuthedEntityType {
|
|
45
|
-
USER = "USER",
|
|
46
|
-
ACCESS_KEY = "ACCESS_KEY"
|
|
47
|
-
}
|
|
48
|
-
type AuthBaseEntity = {
|
|
49
|
-
isActive: boolean;
|
|
50
|
-
createdBy: string;
|
|
51
|
-
createdByType?: AuthedEntityType;
|
|
52
|
-
createdIn: string;
|
|
53
|
-
lastChangedBy: string;
|
|
54
|
-
lastChangedByType?: AuthedEntityType;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
createdAt: Date;
|
|
57
|
-
};
|
|
58
|
-
type Project = AuthBaseEntity & {
|
|
59
|
-
id: string;
|
|
60
|
-
name: string;
|
|
61
|
-
accountId: string;
|
|
62
|
-
env: Environment;
|
|
63
|
-
};
|
|
64
|
-
declare enum Environment {
|
|
65
|
-
LIVE = "live",
|
|
66
|
-
TEST = "test"
|
|
67
|
-
}
|
|
68
|
-
type CreateProjectInput = {
|
|
69
|
-
name: string;
|
|
70
|
-
accountId: string;
|
|
71
|
-
env: Environment;
|
|
72
|
-
};
|
|
73
|
-
type UpdateProjectInput = {
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
type Account = AuthBaseEntity & {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
};
|
|
80
|
-
type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
|
|
81
|
-
type JsonMap = {
|
|
82
|
-
[key: string]: AnyJson;
|
|
83
|
-
};
|
|
1
|
+
type ApiKey = {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
customMetaData: AnyJson;
|
|
5
|
+
customAccountId: string;
|
|
6
|
+
customUserId: string;
|
|
7
|
+
env: Environment;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
rateLimitConfigs: RateLimitConfiguration;
|
|
12
|
+
expiry: Date;
|
|
13
|
+
};
|
|
14
|
+
type RateLimitConfiguration = {
|
|
15
|
+
rateLimit: number;
|
|
16
|
+
rateLimitTtl: number;
|
|
17
|
+
};
|
|
18
|
+
type ApiKeyInput = {
|
|
19
|
+
name: string;
|
|
20
|
+
projectId?: string;
|
|
21
|
+
key?: string;
|
|
22
|
+
customMetaData?: AnyJson;
|
|
23
|
+
customAccountId?: string;
|
|
24
|
+
customUserId?: string;
|
|
25
|
+
rateLimitConfigs?: RateLimitConfiguration;
|
|
26
|
+
expiry?: Date;
|
|
27
|
+
};
|
|
28
|
+
type ApiKeyFilter = {
|
|
29
|
+
projectId?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
customAccountId?: string | null;
|
|
32
|
+
customUserId?: string | null;
|
|
33
|
+
isActive?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type UpdateApiKeyInput = {
|
|
36
|
+
name: string;
|
|
37
|
+
key?: string;
|
|
38
|
+
customMetaData?: AnyJson;
|
|
39
|
+
customAccountId?: string;
|
|
40
|
+
customUserId?: string;
|
|
41
|
+
expiry?: Date | null;
|
|
42
|
+
rateLimitConfigs?: RateLimitConfiguration | null;
|
|
43
|
+
};
|
|
44
|
+
declare enum AuthedEntityType {
|
|
45
|
+
USER = "USER",
|
|
46
|
+
ACCESS_KEY = "ACCESS_KEY"
|
|
47
|
+
}
|
|
48
|
+
type AuthBaseEntity = {
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
createdBy: string;
|
|
51
|
+
createdByType?: AuthedEntityType;
|
|
52
|
+
createdIn: string;
|
|
53
|
+
lastChangedBy: string;
|
|
54
|
+
lastChangedByType?: AuthedEntityType;
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
};
|
|
58
|
+
type Project = AuthBaseEntity & {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
accountId: string;
|
|
62
|
+
env: Environment;
|
|
63
|
+
};
|
|
64
|
+
declare enum Environment {
|
|
65
|
+
LIVE = "live",
|
|
66
|
+
TEST = "test"
|
|
67
|
+
}
|
|
68
|
+
type CreateProjectInput = {
|
|
69
|
+
name: string;
|
|
70
|
+
accountId: string;
|
|
71
|
+
env: Environment;
|
|
72
|
+
};
|
|
73
|
+
type UpdateProjectInput = {
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
type Account = AuthBaseEntity & {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
|
|
81
|
+
type JsonMap = {
|
|
82
|
+
[key: string]: AnyJson;
|
|
83
|
+
};
|
|
84
84
|
type JsonArray = Array<AnyJson>;
|
|
85
85
|
|
|
86
86
|
export { AuthedEntityType, Environment };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theauthapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Client library for TheAuthAPI.com",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"types": "dist/index.d.cts",
|
|
@@ -84,5 +84,8 @@
|
|
|
84
84
|
"rollup-plugin-dts": "^6.2.1",
|
|
85
85
|
"ts-jest": "^29.1.1",
|
|
86
86
|
"typescript": "^4.9.5"
|
|
87
|
+
},
|
|
88
|
+
"optionalDependencies": {
|
|
89
|
+
"@rollup/rollup-darwin-arm64": "^4.62.2"
|
|
87
90
|
}
|
|
88
91
|
}
|