aws-iam-data 0.0.42 → 0.0.44
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/dist/index.d.ts +79 -0
- package/package.json +3 -3
- package/dist/awsIamData.d.ts +0 -85
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export interface AWSIamData extends Array<ServiceAuthReference> {
|
|
2
|
+
}
|
|
3
|
+
export interface ServiceAuthReference {
|
|
4
|
+
name: string;
|
|
5
|
+
servicePrefix: string;
|
|
6
|
+
authReferenceUrl?: string;
|
|
7
|
+
actions: Action[];
|
|
8
|
+
resourceTypes: ResourceType[];
|
|
9
|
+
conditionKeys: ConditionKey[];
|
|
10
|
+
}
|
|
11
|
+
export interface AWSIamMetadata {
|
|
12
|
+
serviceCount: number;
|
|
13
|
+
services: ServiceAuthMetadata[];
|
|
14
|
+
}
|
|
15
|
+
export interface ServiceAuthMetadata {
|
|
16
|
+
name: string;
|
|
17
|
+
servicePrefix: string;
|
|
18
|
+
authReferenceUrl?: string;
|
|
19
|
+
actionsCount: number;
|
|
20
|
+
actions: string[];
|
|
21
|
+
resourceTypesCount: number;
|
|
22
|
+
resourceTypes: string[];
|
|
23
|
+
conditionKeysCount: number;
|
|
24
|
+
conditionKeys: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface Topic {
|
|
27
|
+
name: string;
|
|
28
|
+
authReferenceUrl: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ResourceType {
|
|
31
|
+
name: string;
|
|
32
|
+
apiReferenceUrl?: string;
|
|
33
|
+
arnPattern: string;
|
|
34
|
+
conditionKeys: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface ActionResourceType {
|
|
37
|
+
resourceType?: string;
|
|
38
|
+
required?: boolean;
|
|
39
|
+
conditionKeys?: string[];
|
|
40
|
+
dependentActions?: string[];
|
|
41
|
+
}
|
|
42
|
+
export interface Action {
|
|
43
|
+
name: string;
|
|
44
|
+
permissionOnly?: boolean;
|
|
45
|
+
apiReferenceUrl?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
accessLevel?: string;
|
|
48
|
+
resourceTypes?: ActionResourceType[];
|
|
49
|
+
}
|
|
50
|
+
export interface ConditionKey {
|
|
51
|
+
name: string;
|
|
52
|
+
apiReferenceUrl?: string;
|
|
53
|
+
description: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}
|
|
56
|
+
export interface Changelog extends Array<ChangelogEntry> {
|
|
57
|
+
}
|
|
58
|
+
export interface ChangelogActions {
|
|
59
|
+
[key: string]: string[] | undefined;
|
|
60
|
+
}
|
|
61
|
+
export interface ChangelogEntry {
|
|
62
|
+
dateOfChange: string;
|
|
63
|
+
addedServices: string[];
|
|
64
|
+
removedServices: string[];
|
|
65
|
+
addedActions: ChangelogActions;
|
|
66
|
+
removedActions: ChangelogActions;
|
|
67
|
+
}
|
|
68
|
+
export interface ReportEntry {
|
|
69
|
+
key: string;
|
|
70
|
+
value: number;
|
|
71
|
+
}
|
|
72
|
+
export interface Report {
|
|
73
|
+
[key: string]: ReportEntry[];
|
|
74
|
+
}
|
|
75
|
+
declare const iamData: AWSIamData;
|
|
76
|
+
declare const metadata: AWSIamMetadata;
|
|
77
|
+
declare const changelog: Changelog;
|
|
78
|
+
declare const reports: Report;
|
|
79
|
+
export { iamData, metadata, changelog, reports, };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-iam-data",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"description": "Provides AWS IAM data gathered from the official AWS IAM docs as a convenient npm package that can be used in other OSS projects.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dist/index.js"
|
|
9
9
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"create-tables": "scripts/create_tables.sh",
|
|
16
16
|
"create-reports": "scripts/create_reports.sh",
|
|
17
17
|
"export-data": "scripts/export_data.sh",
|
|
18
|
-
"build": "rm -rf dist/ && mkdir -p src/data/json && cp data/json/*.json src/data/json && tsc --build src/ &&
|
|
18
|
+
"build": "rm -rf dist/ && mkdir -p src/data/json && cp data/json/*.json src/data/json && tsc --build src/ && rm -rf src/data"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
package/dist/awsIamData.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export interface AWSIamData extends Array<ServiceAuthReference>{}
|
|
2
|
-
|
|
3
|
-
export interface ServiceAuthReference {
|
|
4
|
-
name: string;
|
|
5
|
-
servicePrefix: string;
|
|
6
|
-
authReferenceUrl?: string;
|
|
7
|
-
actions: Action[];
|
|
8
|
-
resourceTypes: ResourceType[];
|
|
9
|
-
conditionKeys: ConditionKey[];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AWSIamMetadata {
|
|
13
|
-
serviceCount: number;
|
|
14
|
-
services: ServiceAuthMetadata[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ServiceAuthMetadata {
|
|
18
|
-
name: string;
|
|
19
|
-
servicePrefix: string;
|
|
20
|
-
authReferenceUrl?: string;
|
|
21
|
-
actionsCount: number;
|
|
22
|
-
actions: string[];
|
|
23
|
-
resourceTypesCount: number;
|
|
24
|
-
resourceTypes: string[];
|
|
25
|
-
conditionKeysCount: number;
|
|
26
|
-
conditionKeys: string[];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface Topic {
|
|
30
|
-
name: string;
|
|
31
|
-
authReferenceUrl: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface ResourceType {
|
|
35
|
-
name: string;
|
|
36
|
-
apiReferenceUrl?: string;
|
|
37
|
-
arnPattern: string;
|
|
38
|
-
conditionKeys: string[];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface ActionResourceType {
|
|
42
|
-
resourceType?: string;
|
|
43
|
-
required?: boolean;
|
|
44
|
-
conditionKeys?: string[];
|
|
45
|
-
dependentActions?: string[];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface Action {
|
|
49
|
-
name: string;
|
|
50
|
-
permissionOnly?: boolean;
|
|
51
|
-
apiReferenceUrl?: string;
|
|
52
|
-
description?: string;
|
|
53
|
-
accessLevel?: string;
|
|
54
|
-
resourceTypes?: ActionResourceType[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ConditionKey {
|
|
58
|
-
name: string;
|
|
59
|
-
apiReferenceUrl?: string;
|
|
60
|
-
description: string;
|
|
61
|
-
type: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface Changelog extends Array<ChangelogEntry>{}
|
|
65
|
-
|
|
66
|
-
export interface ChangelogActions {
|
|
67
|
-
[key: string]: string[] | undefined;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface ChangelogEntry {
|
|
71
|
-
dateOfChange: string;
|
|
72
|
-
addedServices: string[];
|
|
73
|
-
removedServices: string[];
|
|
74
|
-
addedActions: ChangelogActions;
|
|
75
|
-
removedActions: ChangelogActions;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface ReportEntry {
|
|
79
|
-
key: string;
|
|
80
|
-
value: number;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface Report {
|
|
84
|
-
[key: string]: ReportEntry[];
|
|
85
|
-
}
|