@keynetra/client 0.1.1
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/README.md +53 -0
- package/package.json +26 -0
- package/src/apis/AccessApi.ts +326 -0
- package/src/apis/AuthApi.ts +193 -0
- package/src/apis/DevApi.ts +168 -0
- package/src/apis/HealthApi.ts +216 -0
- package/src/apis/ManagementApi.ts +2641 -0
- package/src/apis/PlaygroundApi.ts +131 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +6 -0
- package/src/keynetra-client.ts +35 -0
- package/src/models/ACLCreate.ts +111 -0
- package/src/models/ACLOut.ts +137 -0
- package/src/models/AccessDecisionResponse.ts +115 -0
- package/src/models/AccessRequest.ts +106 -0
- package/src/models/AdminLoginRequest.ts +75 -0
- package/src/models/AdminLoginResponse.ts +100 -0
- package/src/models/AuditRecordOut.ts +172 -0
- package/src/models/AuthModelCreate.ts +66 -0
- package/src/models/AuthModelOut.ts +102 -0
- package/src/models/BatchAccessItem.ts +74 -0
- package/src/models/BatchAccessRequest.ts +98 -0
- package/src/models/BatchAccessResponse.ts +82 -0
- package/src/models/BatchAccessResult.ts +83 -0
- package/src/models/DataValue.ts +46 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/ImpactAnalysisRequest.ts +66 -0
- package/src/models/ImpactAnalysisResponse.ts +73 -0
- package/src/models/LocationInner.ts +46 -0
- package/src/models/MetaBody.ts +89 -0
- package/src/models/PermissionCreate.ts +66 -0
- package/src/models/PermissionOut.ts +75 -0
- package/src/models/PermissionUpdate.ts +66 -0
- package/src/models/PlaygroundEvaluateRequest.ts +90 -0
- package/src/models/PlaygroundInput.ts +89 -0
- package/src/models/PlaygroundPolicy.ts +98 -0
- package/src/models/PolicyCreate.ts +98 -0
- package/src/models/PolicyOut.ts +110 -0
- package/src/models/PolicySimulationInput.ts +81 -0
- package/src/models/PolicySimulationRequest.ts +81 -0
- package/src/models/PolicySimulationResponse.ts +75 -0
- package/src/models/RelationshipCreate.ts +102 -0
- package/src/models/RelationshipOut.ts +111 -0
- package/src/models/RoleCreate.ts +66 -0
- package/src/models/RoleOut.ts +75 -0
- package/src/models/RoleUpdate.ts +66 -0
- package/src/models/SimulationResponse.ts +115 -0
- package/src/models/SuccessResponseACLOut.ts +97 -0
- package/src/models/SuccessResponseAccessDecisionResponse.ts +97 -0
- package/src/models/SuccessResponseAdminLoginResponse.ts +97 -0
- package/src/models/SuccessResponseAuthModelOut.ts +97 -0
- package/src/models/SuccessResponseBatchAccessResponse.ts +97 -0
- package/src/models/SuccessResponseDictStrAny.ts +90 -0
- package/src/models/SuccessResponseDictStrInt.ts +90 -0
- package/src/models/SuccessResponseDictStrObject.ts +90 -0
- package/src/models/SuccessResponseDictStrStr.ts +90 -0
- package/src/models/SuccessResponseDictStrUnionIntStr.ts +97 -0
- package/src/models/SuccessResponseImpactAnalysisResponse.ts +97 -0
- package/src/models/SuccessResponseListACLOut.ts +97 -0
- package/src/models/SuccessResponseListAuditRecordOut.ts +97 -0
- package/src/models/SuccessResponseListDictStrStr.ts +90 -0
- package/src/models/SuccessResponseListPermissionOut.ts +97 -0
- package/src/models/SuccessResponseListPolicyOut.ts +97 -0
- package/src/models/SuccessResponseListRoleOut.ts +97 -0
- package/src/models/SuccessResponsePermissionOut.ts +97 -0
- package/src/models/SuccessResponsePolicyOut.ts +97 -0
- package/src/models/SuccessResponsePolicySimulationResponse.ts +97 -0
- package/src/models/SuccessResponseRelationshipOut.ts +97 -0
- package/src/models/SuccessResponseSimulationResponse.ts +97 -0
- package/src/models/ValidationError.ts +108 -0
- package/src/models/index.ts +61 -0
- package/src/runtime.ts +450 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KeyNetra
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SimulationResponse } from './SimulationResponse';
|
|
17
|
+
import {
|
|
18
|
+
SimulationResponseFromJSON,
|
|
19
|
+
SimulationResponseFromJSONTyped,
|
|
20
|
+
SimulationResponseToJSON,
|
|
21
|
+
SimulationResponseToJSONTyped,
|
|
22
|
+
} from './SimulationResponse';
|
|
23
|
+
import type { MetaBody } from './MetaBody';
|
|
24
|
+
import {
|
|
25
|
+
MetaBodyFromJSON,
|
|
26
|
+
MetaBodyFromJSONTyped,
|
|
27
|
+
MetaBodyToJSON,
|
|
28
|
+
MetaBodyToJSONTyped,
|
|
29
|
+
} from './MetaBody';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface SuccessResponseSimulationResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponseSimulationResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {SimulationResponse}
|
|
40
|
+
* @memberof SuccessResponseSimulationResponse
|
|
41
|
+
*/
|
|
42
|
+
data: SimulationResponse;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponseSimulationResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponseSimulationResponse
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponseSimulationResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponseSimulationResponse(value: object): value is SuccessResponseSimulationResponse {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponseSimulationResponseFromJSON(json: any): SuccessResponseSimulationResponse {
|
|
66
|
+
return SuccessResponseSimulationResponseFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponseSimulationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseSimulationResponse {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': SimulationResponseFromJSON(json['data']),
|
|
76
|
+
'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
|
|
77
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SuccessResponseSimulationResponseToJSON(json: any): SuccessResponseSimulationResponse {
|
|
82
|
+
return SuccessResponseSimulationResponseToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponseSimulationResponseToJSONTyped(value?: SuccessResponseSimulationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': SimulationResponseToJSON(value['data']),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KeyNetra
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LocationInner } from './LocationInner';
|
|
17
|
+
import {
|
|
18
|
+
LocationInnerFromJSON,
|
|
19
|
+
LocationInnerFromJSONTyped,
|
|
20
|
+
LocationInnerToJSON,
|
|
21
|
+
LocationInnerToJSONTyped,
|
|
22
|
+
} from './LocationInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ValidationError
|
|
28
|
+
*/
|
|
29
|
+
export interface ValidationError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LocationInner>}
|
|
33
|
+
* @memberof ValidationError
|
|
34
|
+
*/
|
|
35
|
+
loc: Array<LocationInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidationError
|
|
40
|
+
*/
|
|
41
|
+
msg: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ValidationError
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {any}
|
|
51
|
+
* @memberof ValidationError
|
|
52
|
+
*/
|
|
53
|
+
input?: any | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {object}
|
|
57
|
+
* @memberof ValidationError
|
|
58
|
+
*/
|
|
59
|
+
ctx?: object;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ValidationError interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
66
|
+
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
67
|
+
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
68
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
73
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'loc': ((json['loc'] as Array<any>).map(LocationInnerFromJSON)),
|
|
83
|
+
'msg': json['msg'],
|
|
84
|
+
'type': json['type'],
|
|
85
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
86
|
+
'ctx': json['ctx'] == null ? undefined : json['ctx'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ValidationErrorToJSON(json: any): ValidationError {
|
|
91
|
+
return ValidationErrorToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'loc': ((value['loc'] as Array<any>).map(LocationInnerToJSON)),
|
|
102
|
+
'msg': value['msg'],
|
|
103
|
+
'type': value['type'],
|
|
104
|
+
'input': value['input'],
|
|
105
|
+
'ctx': value['ctx'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './ACLCreate';
|
|
4
|
+
export * from './ACLOut';
|
|
5
|
+
export * from './AccessDecisionResponse';
|
|
6
|
+
export * from './AccessRequest';
|
|
7
|
+
export * from './AdminLoginRequest';
|
|
8
|
+
export * from './AdminLoginResponse';
|
|
9
|
+
export * from './AuditRecordOut';
|
|
10
|
+
export * from './AuthModelCreate';
|
|
11
|
+
export * from './AuthModelOut';
|
|
12
|
+
export * from './BatchAccessItem';
|
|
13
|
+
export * from './BatchAccessRequest';
|
|
14
|
+
export * from './BatchAccessResponse';
|
|
15
|
+
export * from './BatchAccessResult';
|
|
16
|
+
export * from './DataValue';
|
|
17
|
+
export * from './HTTPValidationError';
|
|
18
|
+
export * from './ImpactAnalysisRequest';
|
|
19
|
+
export * from './ImpactAnalysisResponse';
|
|
20
|
+
export * from './LocationInner';
|
|
21
|
+
export * from './MetaBody';
|
|
22
|
+
export * from './PermissionCreate';
|
|
23
|
+
export * from './PermissionOut';
|
|
24
|
+
export * from './PermissionUpdate';
|
|
25
|
+
export * from './PlaygroundEvaluateRequest';
|
|
26
|
+
export * from './PlaygroundInput';
|
|
27
|
+
export * from './PlaygroundPolicy';
|
|
28
|
+
export * from './PolicyCreate';
|
|
29
|
+
export * from './PolicyOut';
|
|
30
|
+
export * from './PolicySimulationInput';
|
|
31
|
+
export * from './PolicySimulationRequest';
|
|
32
|
+
export * from './PolicySimulationResponse';
|
|
33
|
+
export * from './RelationshipCreate';
|
|
34
|
+
export * from './RelationshipOut';
|
|
35
|
+
export * from './RoleCreate';
|
|
36
|
+
export * from './RoleOut';
|
|
37
|
+
export * from './RoleUpdate';
|
|
38
|
+
export * from './SimulationResponse';
|
|
39
|
+
export * from './SuccessResponseACLOut';
|
|
40
|
+
export * from './SuccessResponseAccessDecisionResponse';
|
|
41
|
+
export * from './SuccessResponseAdminLoginResponse';
|
|
42
|
+
export * from './SuccessResponseAuthModelOut';
|
|
43
|
+
export * from './SuccessResponseBatchAccessResponse';
|
|
44
|
+
export * from './SuccessResponseDictStrAny';
|
|
45
|
+
export * from './SuccessResponseDictStrInt';
|
|
46
|
+
export * from './SuccessResponseDictStrObject';
|
|
47
|
+
export * from './SuccessResponseDictStrStr';
|
|
48
|
+
export * from './SuccessResponseDictStrUnionIntStr';
|
|
49
|
+
export * from './SuccessResponseImpactAnalysisResponse';
|
|
50
|
+
export * from './SuccessResponseListACLOut';
|
|
51
|
+
export * from './SuccessResponseListAuditRecordOut';
|
|
52
|
+
export * from './SuccessResponseListDictStrStr';
|
|
53
|
+
export * from './SuccessResponseListPermissionOut';
|
|
54
|
+
export * from './SuccessResponseListPolicyOut';
|
|
55
|
+
export * from './SuccessResponseListRoleOut';
|
|
56
|
+
export * from './SuccessResponsePermissionOut';
|
|
57
|
+
export * from './SuccessResponsePolicyOut';
|
|
58
|
+
export * from './SuccessResponsePolicySimulationResponse';
|
|
59
|
+
export * from './SuccessResponseRelationshipOut';
|
|
60
|
+
export * from './SuccessResponseSimulationResponse';
|
|
61
|
+
export * from './ValidationError';
|