@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,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PermissionUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface PermissionUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PermissionUpdate
|
|
26
|
+
*/
|
|
27
|
+
action: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PermissionUpdate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPermissionUpdate(value: object): value is PermissionUpdate {
|
|
34
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PermissionUpdateFromJSON(json: any): PermissionUpdate {
|
|
39
|
+
return PermissionUpdateFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PermissionUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionUpdate {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'action': json['action'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PermissionUpdateToJSON(json: any): PermissionUpdate {
|
|
53
|
+
return PermissionUpdateToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PermissionUpdateToJSONTyped(value?: PermissionUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'action': value['action'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PlaygroundInput } from './PlaygroundInput';
|
|
17
|
+
import {
|
|
18
|
+
PlaygroundInputFromJSON,
|
|
19
|
+
PlaygroundInputFromJSONTyped,
|
|
20
|
+
PlaygroundInputToJSON,
|
|
21
|
+
PlaygroundInputToJSONTyped,
|
|
22
|
+
} from './PlaygroundInput';
|
|
23
|
+
import type { PlaygroundPolicy } from './PlaygroundPolicy';
|
|
24
|
+
import {
|
|
25
|
+
PlaygroundPolicyFromJSON,
|
|
26
|
+
PlaygroundPolicyFromJSONTyped,
|
|
27
|
+
PlaygroundPolicyToJSON,
|
|
28
|
+
PlaygroundPolicyToJSONTyped,
|
|
29
|
+
} from './PlaygroundPolicy';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PlaygroundEvaluateRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface PlaygroundEvaluateRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<PlaygroundPolicy>}
|
|
40
|
+
* @memberof PlaygroundEvaluateRequest
|
|
41
|
+
*/
|
|
42
|
+
policies: Array<PlaygroundPolicy>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PlaygroundInput}
|
|
46
|
+
* @memberof PlaygroundEvaluateRequest
|
|
47
|
+
*/
|
|
48
|
+
input: PlaygroundInput;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PlaygroundEvaluateRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPlaygroundEvaluateRequest(value: object): value is PlaygroundEvaluateRequest {
|
|
55
|
+
if (!('policies' in value) || value['policies'] === undefined) return false;
|
|
56
|
+
if (!('input' in value) || value['input'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PlaygroundEvaluateRequestFromJSON(json: any): PlaygroundEvaluateRequest {
|
|
61
|
+
return PlaygroundEvaluateRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PlaygroundEvaluateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaygroundEvaluateRequest {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'policies': ((json['policies'] as Array<any>).map(PlaygroundPolicyFromJSON)),
|
|
71
|
+
'input': PlaygroundInputFromJSON(json['input']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PlaygroundEvaluateRequestToJSON(json: any): PlaygroundEvaluateRequest {
|
|
76
|
+
return PlaygroundEvaluateRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PlaygroundEvaluateRequestToJSONTyped(value?: PlaygroundEvaluateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'policies': ((value['policies'] as Array<any>).map(PlaygroundPolicyToJSON)),
|
|
87
|
+
'input': PlaygroundInputToJSON(value['input']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PlaygroundInput
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaygroundInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {{ [key: string]: any; }}
|
|
25
|
+
* @memberof PlaygroundInput
|
|
26
|
+
*/
|
|
27
|
+
user?: { [key: string]: any; };
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PlaygroundInput
|
|
32
|
+
*/
|
|
33
|
+
resource?: { [key: string]: any; };
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlaygroundInput
|
|
38
|
+
*/
|
|
39
|
+
action?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof PlaygroundInput
|
|
44
|
+
*/
|
|
45
|
+
context?: { [key: string]: any; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PlaygroundInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPlaygroundInput(value: object): value is PlaygroundInput {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PlaygroundInputFromJSON(json: any): PlaygroundInput {
|
|
56
|
+
return PlaygroundInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PlaygroundInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaygroundInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
66
|
+
'resource': json['resource'] == null ? undefined : json['resource'],
|
|
67
|
+
'action': json['action'] == null ? undefined : json['action'],
|
|
68
|
+
'context': json['context'] == null ? undefined : json['context'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PlaygroundInputToJSON(json: any): PlaygroundInput {
|
|
73
|
+
return PlaygroundInputToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PlaygroundInputToJSONTyped(value?: PlaygroundInput | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'user': value['user'],
|
|
84
|
+
'resource': value['resource'],
|
|
85
|
+
'action': value['action'],
|
|
86
|
+
'context': value['context'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PlaygroundPolicy
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaygroundPolicy {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlaygroundPolicy
|
|
26
|
+
*/
|
|
27
|
+
action: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlaygroundPolicy
|
|
32
|
+
*/
|
|
33
|
+
effect?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PlaygroundPolicy
|
|
38
|
+
*/
|
|
39
|
+
priority?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlaygroundPolicy
|
|
44
|
+
*/
|
|
45
|
+
policyId?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof PlaygroundPolicy
|
|
50
|
+
*/
|
|
51
|
+
conditions?: { [key: string]: any; };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PlaygroundPolicy interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPlaygroundPolicy(value: object): value is PlaygroundPolicy {
|
|
58
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PlaygroundPolicyFromJSON(json: any): PlaygroundPolicy {
|
|
63
|
+
return PlaygroundPolicyFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PlaygroundPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaygroundPolicy {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'action': json['action'],
|
|
73
|
+
'effect': json['effect'] == null ? undefined : json['effect'],
|
|
74
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
75
|
+
'policyId': json['policy_id'] == null ? undefined : json['policy_id'],
|
|
76
|
+
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PlaygroundPolicyToJSON(json: any): PlaygroundPolicy {
|
|
81
|
+
return PlaygroundPolicyToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PlaygroundPolicyToJSONTyped(value?: PlaygroundPolicy | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'action': value['action'],
|
|
92
|
+
'effect': value['effect'],
|
|
93
|
+
'priority': value['priority'],
|
|
94
|
+
'policy_id': value['policyId'],
|
|
95
|
+
'conditions': value['conditions'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PolicyCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface PolicyCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PolicyCreate
|
|
26
|
+
*/
|
|
27
|
+
action: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PolicyCreate
|
|
32
|
+
*/
|
|
33
|
+
effect?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PolicyCreate
|
|
38
|
+
*/
|
|
39
|
+
priority?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PolicyCreate
|
|
44
|
+
*/
|
|
45
|
+
state?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof PolicyCreate
|
|
50
|
+
*/
|
|
51
|
+
conditions?: { [key: string]: any; };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PolicyCreate interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPolicyCreate(value: object): value is PolicyCreate {
|
|
58
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PolicyCreateFromJSON(json: any): PolicyCreate {
|
|
63
|
+
return PolicyCreateFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PolicyCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyCreate {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'action': json['action'],
|
|
73
|
+
'effect': json['effect'] == null ? undefined : json['effect'],
|
|
74
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
75
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
76
|
+
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PolicyCreateToJSON(json: any): PolicyCreate {
|
|
81
|
+
return PolicyCreateToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PolicyCreateToJSONTyped(value?: PolicyCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'action': value['action'],
|
|
92
|
+
'effect': value['effect'],
|
|
93
|
+
'priority': value['priority'],
|
|
94
|
+
'state': value['state'],
|
|
95
|
+
'conditions': value['conditions'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PolicyOut
|
|
20
|
+
*/
|
|
21
|
+
export interface PolicyOut {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PolicyOut
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PolicyOut
|
|
32
|
+
*/
|
|
33
|
+
action: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PolicyOut
|
|
38
|
+
*/
|
|
39
|
+
effect: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PolicyOut
|
|
44
|
+
*/
|
|
45
|
+
priority: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PolicyOut
|
|
50
|
+
*/
|
|
51
|
+
state?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof PolicyOut
|
|
56
|
+
*/
|
|
57
|
+
conditions: { [key: string]: any; };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PolicyOut interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPolicyOut(value: object): value is PolicyOut {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
66
|
+
if (!('effect' in value) || value['effect'] === undefined) return false;
|
|
67
|
+
if (!('priority' in value) || value['priority'] === undefined) return false;
|
|
68
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PolicyOutFromJSON(json: any): PolicyOut {
|
|
73
|
+
return PolicyOutFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PolicyOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyOut {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'action': json['action'],
|
|
84
|
+
'effect': json['effect'],
|
|
85
|
+
'priority': json['priority'],
|
|
86
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
87
|
+
'conditions': json['conditions'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PolicyOutToJSON(json: any): PolicyOut {
|
|
92
|
+
return PolicyOutToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PolicyOutToJSONTyped(value?: PolicyOut | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'action': value['action'],
|
|
104
|
+
'effect': value['effect'],
|
|
105
|
+
'priority': value['priority'],
|
|
106
|
+
'state': value['state'],
|
|
107
|
+
'conditions': value['conditions'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PolicySimulationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface PolicySimulationInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PolicySimulationInput
|
|
26
|
+
*/
|
|
27
|
+
policyChange?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PolicySimulationInput
|
|
32
|
+
*/
|
|
33
|
+
relationshipChange?: { [key: string]: any; } | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: any; }}
|
|
37
|
+
* @memberof PolicySimulationInput
|
|
38
|
+
*/
|
|
39
|
+
roleChange?: { [key: string]: any; } | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PolicySimulationInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPolicySimulationInput(value: object): value is PolicySimulationInput {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PolicySimulationInputFromJSON(json: any): PolicySimulationInput {
|
|
50
|
+
return PolicySimulationInputFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PolicySimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicySimulationInput {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'policyChange': json['policy_change'] == null ? undefined : json['policy_change'],
|
|
60
|
+
'relationshipChange': json['relationship_change'] == null ? undefined : json['relationship_change'],
|
|
61
|
+
'roleChange': json['role_change'] == null ? undefined : json['role_change'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PolicySimulationInputToJSON(json: any): PolicySimulationInput {
|
|
66
|
+
return PolicySimulationInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PolicySimulationInputToJSONTyped(value?: PolicySimulationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'policy_change': value['policyChange'],
|
|
77
|
+
'relationship_change': value['relationshipChange'],
|
|
78
|
+
'role_change': value['roleChange'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|