@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 { PermissionOut } from './PermissionOut';
|
|
17
|
+
import {
|
|
18
|
+
PermissionOutFromJSON,
|
|
19
|
+
PermissionOutFromJSONTyped,
|
|
20
|
+
PermissionOutToJSON,
|
|
21
|
+
PermissionOutToJSONTyped,
|
|
22
|
+
} from './PermissionOut';
|
|
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 SuccessResponseListPermissionOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponseListPermissionOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<PermissionOut>}
|
|
40
|
+
* @memberof SuccessResponseListPermissionOut
|
|
41
|
+
*/
|
|
42
|
+
data: Array<PermissionOut>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponseListPermissionOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponseListPermissionOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponseListPermissionOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponseListPermissionOut(value: object): value is SuccessResponseListPermissionOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponseListPermissionOutFromJSON(json: any): SuccessResponseListPermissionOut {
|
|
66
|
+
return SuccessResponseListPermissionOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponseListPermissionOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListPermissionOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': ((json['data'] as Array<any>).map(PermissionOutFromJSON)),
|
|
76
|
+
'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
|
|
77
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SuccessResponseListPermissionOutToJSON(json: any): SuccessResponseListPermissionOut {
|
|
82
|
+
return SuccessResponseListPermissionOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponseListPermissionOutToJSONTyped(value?: SuccessResponseListPermissionOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': ((value['data'] as Array<any>).map(PermissionOutToJSON)),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { PolicyOut } from './PolicyOut';
|
|
17
|
+
import {
|
|
18
|
+
PolicyOutFromJSON,
|
|
19
|
+
PolicyOutFromJSONTyped,
|
|
20
|
+
PolicyOutToJSON,
|
|
21
|
+
PolicyOutToJSONTyped,
|
|
22
|
+
} from './PolicyOut';
|
|
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 SuccessResponseListPolicyOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponseListPolicyOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<PolicyOut>}
|
|
40
|
+
* @memberof SuccessResponseListPolicyOut
|
|
41
|
+
*/
|
|
42
|
+
data: Array<PolicyOut>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponseListPolicyOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponseListPolicyOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponseListPolicyOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponseListPolicyOut(value: object): value is SuccessResponseListPolicyOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponseListPolicyOutFromJSON(json: any): SuccessResponseListPolicyOut {
|
|
66
|
+
return SuccessResponseListPolicyOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponseListPolicyOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListPolicyOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': ((json['data'] as Array<any>).map(PolicyOutFromJSON)),
|
|
76
|
+
'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
|
|
77
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SuccessResponseListPolicyOutToJSON(json: any): SuccessResponseListPolicyOut {
|
|
82
|
+
return SuccessResponseListPolicyOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponseListPolicyOutToJSONTyped(value?: SuccessResponseListPolicyOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': ((value['data'] as Array<any>).map(PolicyOutToJSON)),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { RoleOut } from './RoleOut';
|
|
17
|
+
import {
|
|
18
|
+
RoleOutFromJSON,
|
|
19
|
+
RoleOutFromJSONTyped,
|
|
20
|
+
RoleOutToJSON,
|
|
21
|
+
RoleOutToJSONTyped,
|
|
22
|
+
} from './RoleOut';
|
|
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 SuccessResponseListRoleOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponseListRoleOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<RoleOut>}
|
|
40
|
+
* @memberof SuccessResponseListRoleOut
|
|
41
|
+
*/
|
|
42
|
+
data: Array<RoleOut>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponseListRoleOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponseListRoleOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponseListRoleOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponseListRoleOut(value: object): value is SuccessResponseListRoleOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponseListRoleOutFromJSON(json: any): SuccessResponseListRoleOut {
|
|
66
|
+
return SuccessResponseListRoleOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponseListRoleOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListRoleOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': ((json['data'] as Array<any>).map(RoleOutFromJSON)),
|
|
76
|
+
'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
|
|
77
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SuccessResponseListRoleOutToJSON(json: any): SuccessResponseListRoleOut {
|
|
82
|
+
return SuccessResponseListRoleOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponseListRoleOutToJSONTyped(value?: SuccessResponseListRoleOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': ((value['data'] as Array<any>).map(RoleOutToJSON)),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { PermissionOut } from './PermissionOut';
|
|
17
|
+
import {
|
|
18
|
+
PermissionOutFromJSON,
|
|
19
|
+
PermissionOutFromJSONTyped,
|
|
20
|
+
PermissionOutToJSON,
|
|
21
|
+
PermissionOutToJSONTyped,
|
|
22
|
+
} from './PermissionOut';
|
|
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 SuccessResponsePermissionOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponsePermissionOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PermissionOut}
|
|
40
|
+
* @memberof SuccessResponsePermissionOut
|
|
41
|
+
*/
|
|
42
|
+
data: PermissionOut;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponsePermissionOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponsePermissionOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponsePermissionOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponsePermissionOut(value: object): value is SuccessResponsePermissionOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponsePermissionOutFromJSON(json: any): SuccessResponsePermissionOut {
|
|
66
|
+
return SuccessResponsePermissionOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponsePermissionOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponsePermissionOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': PermissionOutFromJSON(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 SuccessResponsePermissionOutToJSON(json: any): SuccessResponsePermissionOut {
|
|
82
|
+
return SuccessResponsePermissionOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponsePermissionOutToJSONTyped(value?: SuccessResponsePermissionOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': PermissionOutToJSON(value['data']),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { PolicyOut } from './PolicyOut';
|
|
17
|
+
import {
|
|
18
|
+
PolicyOutFromJSON,
|
|
19
|
+
PolicyOutFromJSONTyped,
|
|
20
|
+
PolicyOutToJSON,
|
|
21
|
+
PolicyOutToJSONTyped,
|
|
22
|
+
} from './PolicyOut';
|
|
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 SuccessResponsePolicyOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponsePolicyOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PolicyOut}
|
|
40
|
+
* @memberof SuccessResponsePolicyOut
|
|
41
|
+
*/
|
|
42
|
+
data: PolicyOut;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponsePolicyOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponsePolicyOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponsePolicyOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponsePolicyOut(value: object): value is SuccessResponsePolicyOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponsePolicyOutFromJSON(json: any): SuccessResponsePolicyOut {
|
|
66
|
+
return SuccessResponsePolicyOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponsePolicyOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponsePolicyOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': PolicyOutFromJSON(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 SuccessResponsePolicyOutToJSON(json: any): SuccessResponsePolicyOut {
|
|
82
|
+
return SuccessResponsePolicyOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponsePolicyOutToJSONTyped(value?: SuccessResponsePolicyOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': PolicyOutToJSON(value['data']),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { PolicySimulationResponse } from './PolicySimulationResponse';
|
|
17
|
+
import {
|
|
18
|
+
PolicySimulationResponseFromJSON,
|
|
19
|
+
PolicySimulationResponseFromJSONTyped,
|
|
20
|
+
PolicySimulationResponseToJSON,
|
|
21
|
+
PolicySimulationResponseToJSONTyped,
|
|
22
|
+
} from './PolicySimulationResponse';
|
|
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 SuccessResponsePolicySimulationResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponsePolicySimulationResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PolicySimulationResponse}
|
|
40
|
+
* @memberof SuccessResponsePolicySimulationResponse
|
|
41
|
+
*/
|
|
42
|
+
data: PolicySimulationResponse;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponsePolicySimulationResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponsePolicySimulationResponse
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponsePolicySimulationResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponsePolicySimulationResponse(value: object): value is SuccessResponsePolicySimulationResponse {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponsePolicySimulationResponseFromJSON(json: any): SuccessResponsePolicySimulationResponse {
|
|
66
|
+
return SuccessResponsePolicySimulationResponseFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponsePolicySimulationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponsePolicySimulationResponse {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': PolicySimulationResponseFromJSON(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 SuccessResponsePolicySimulationResponseToJSON(json: any): SuccessResponsePolicySimulationResponse {
|
|
82
|
+
return SuccessResponsePolicySimulationResponseToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponsePolicySimulationResponseToJSONTyped(value?: SuccessResponsePolicySimulationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': PolicySimulationResponseToJSON(value['data']),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 { RelationshipOut } from './RelationshipOut';
|
|
17
|
+
import {
|
|
18
|
+
RelationshipOutFromJSON,
|
|
19
|
+
RelationshipOutFromJSONTyped,
|
|
20
|
+
RelationshipOutToJSON,
|
|
21
|
+
RelationshipOutToJSONTyped,
|
|
22
|
+
} from './RelationshipOut';
|
|
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 SuccessResponseRelationshipOut
|
|
35
|
+
*/
|
|
36
|
+
export interface SuccessResponseRelationshipOut {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {RelationshipOut}
|
|
40
|
+
* @memberof SuccessResponseRelationshipOut
|
|
41
|
+
*/
|
|
42
|
+
data: RelationshipOut;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MetaBody}
|
|
46
|
+
* @memberof SuccessResponseRelationshipOut
|
|
47
|
+
*/
|
|
48
|
+
meta?: MetaBody;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {any}
|
|
52
|
+
* @memberof SuccessResponseRelationshipOut
|
|
53
|
+
*/
|
|
54
|
+
error?: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SuccessResponseRelationshipOut interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfSuccessResponseRelationshipOut(value: object): value is SuccessResponseRelationshipOut {
|
|
61
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SuccessResponseRelationshipOutFromJSON(json: any): SuccessResponseRelationshipOut {
|
|
66
|
+
return SuccessResponseRelationshipOutFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SuccessResponseRelationshipOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseRelationshipOut {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'data': RelationshipOutFromJSON(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 SuccessResponseRelationshipOutToJSON(json: any): SuccessResponseRelationshipOut {
|
|
82
|
+
return SuccessResponseRelationshipOutToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SuccessResponseRelationshipOutToJSONTyped(value?: SuccessResponseRelationshipOut | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'data': RelationshipOutToJSON(value['data']),
|
|
93
|
+
'meta': MetaBodyToJSON(value['meta']),
|
|
94
|
+
'error': value['error'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|