@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.
Files changed (72) hide show
  1. package/README.md +53 -0
  2. package/package.json +26 -0
  3. package/src/apis/AccessApi.ts +326 -0
  4. package/src/apis/AuthApi.ts +193 -0
  5. package/src/apis/DevApi.ts +168 -0
  6. package/src/apis/HealthApi.ts +216 -0
  7. package/src/apis/ManagementApi.ts +2641 -0
  8. package/src/apis/PlaygroundApi.ts +131 -0
  9. package/src/apis/index.ts +8 -0
  10. package/src/index.ts +6 -0
  11. package/src/keynetra-client.ts +35 -0
  12. package/src/models/ACLCreate.ts +111 -0
  13. package/src/models/ACLOut.ts +137 -0
  14. package/src/models/AccessDecisionResponse.ts +115 -0
  15. package/src/models/AccessRequest.ts +106 -0
  16. package/src/models/AdminLoginRequest.ts +75 -0
  17. package/src/models/AdminLoginResponse.ts +100 -0
  18. package/src/models/AuditRecordOut.ts +172 -0
  19. package/src/models/AuthModelCreate.ts +66 -0
  20. package/src/models/AuthModelOut.ts +102 -0
  21. package/src/models/BatchAccessItem.ts +74 -0
  22. package/src/models/BatchAccessRequest.ts +98 -0
  23. package/src/models/BatchAccessResponse.ts +82 -0
  24. package/src/models/BatchAccessResult.ts +83 -0
  25. package/src/models/DataValue.ts +46 -0
  26. package/src/models/HTTPValidationError.ts +73 -0
  27. package/src/models/ImpactAnalysisRequest.ts +66 -0
  28. package/src/models/ImpactAnalysisResponse.ts +73 -0
  29. package/src/models/LocationInner.ts +46 -0
  30. package/src/models/MetaBody.ts +89 -0
  31. package/src/models/PermissionCreate.ts +66 -0
  32. package/src/models/PermissionOut.ts +75 -0
  33. package/src/models/PermissionUpdate.ts +66 -0
  34. package/src/models/PlaygroundEvaluateRequest.ts +90 -0
  35. package/src/models/PlaygroundInput.ts +89 -0
  36. package/src/models/PlaygroundPolicy.ts +98 -0
  37. package/src/models/PolicyCreate.ts +98 -0
  38. package/src/models/PolicyOut.ts +110 -0
  39. package/src/models/PolicySimulationInput.ts +81 -0
  40. package/src/models/PolicySimulationRequest.ts +81 -0
  41. package/src/models/PolicySimulationResponse.ts +75 -0
  42. package/src/models/RelationshipCreate.ts +102 -0
  43. package/src/models/RelationshipOut.ts +111 -0
  44. package/src/models/RoleCreate.ts +66 -0
  45. package/src/models/RoleOut.ts +75 -0
  46. package/src/models/RoleUpdate.ts +66 -0
  47. package/src/models/SimulationResponse.ts +115 -0
  48. package/src/models/SuccessResponseACLOut.ts +97 -0
  49. package/src/models/SuccessResponseAccessDecisionResponse.ts +97 -0
  50. package/src/models/SuccessResponseAdminLoginResponse.ts +97 -0
  51. package/src/models/SuccessResponseAuthModelOut.ts +97 -0
  52. package/src/models/SuccessResponseBatchAccessResponse.ts +97 -0
  53. package/src/models/SuccessResponseDictStrAny.ts +90 -0
  54. package/src/models/SuccessResponseDictStrInt.ts +90 -0
  55. package/src/models/SuccessResponseDictStrObject.ts +90 -0
  56. package/src/models/SuccessResponseDictStrStr.ts +90 -0
  57. package/src/models/SuccessResponseDictStrUnionIntStr.ts +97 -0
  58. package/src/models/SuccessResponseImpactAnalysisResponse.ts +97 -0
  59. package/src/models/SuccessResponseListACLOut.ts +97 -0
  60. package/src/models/SuccessResponseListAuditRecordOut.ts +97 -0
  61. package/src/models/SuccessResponseListDictStrStr.ts +90 -0
  62. package/src/models/SuccessResponseListPermissionOut.ts +97 -0
  63. package/src/models/SuccessResponseListPolicyOut.ts +97 -0
  64. package/src/models/SuccessResponseListRoleOut.ts +97 -0
  65. package/src/models/SuccessResponsePermissionOut.ts +97 -0
  66. package/src/models/SuccessResponsePolicyOut.ts +97 -0
  67. package/src/models/SuccessResponsePolicySimulationResponse.ts +97 -0
  68. package/src/models/SuccessResponseRelationshipOut.ts +97 -0
  69. package/src/models/SuccessResponseSimulationResponse.ts +97 -0
  70. package/src/models/ValidationError.ts +108 -0
  71. package/src/models/index.ts +61 -0
  72. package/src/runtime.ts +450 -0
@@ -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 { MetaBody } from './MetaBody';
17
+ import {
18
+ MetaBodyFromJSON,
19
+ MetaBodyFromJSONTyped,
20
+ MetaBodyToJSON,
21
+ MetaBodyToJSONTyped,
22
+ } from './MetaBody';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuccessResponseDictStrObject
28
+ */
29
+ export interface SuccessResponseDictStrObject {
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: any; }}
33
+ * @memberof SuccessResponseDictStrObject
34
+ */
35
+ data: { [key: string]: any; };
36
+ /**
37
+ *
38
+ * @type {MetaBody}
39
+ * @memberof SuccessResponseDictStrObject
40
+ */
41
+ meta?: MetaBody;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof SuccessResponseDictStrObject
46
+ */
47
+ error?: any;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SuccessResponseDictStrObject interface.
52
+ */
53
+ export function instanceOfSuccessResponseDictStrObject(value: object): value is SuccessResponseDictStrObject {
54
+ if (!('data' in value) || value['data'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function SuccessResponseDictStrObjectFromJSON(json: any): SuccessResponseDictStrObject {
59
+ return SuccessResponseDictStrObjectFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function SuccessResponseDictStrObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseDictStrObject {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'],
69
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
70
+ 'error': json['error'] == null ? undefined : json['error'],
71
+ };
72
+ }
73
+
74
+ export function SuccessResponseDictStrObjectToJSON(json: any): SuccessResponseDictStrObject {
75
+ return SuccessResponseDictStrObjectToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SuccessResponseDictStrObjectToJSONTyped(value?: SuccessResponseDictStrObject | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'data': value['data'],
86
+ 'meta': MetaBodyToJSON(value['meta']),
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+
@@ -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 { MetaBody } from './MetaBody';
17
+ import {
18
+ MetaBodyFromJSON,
19
+ MetaBodyFromJSONTyped,
20
+ MetaBodyToJSON,
21
+ MetaBodyToJSONTyped,
22
+ } from './MetaBody';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuccessResponseDictStrStr
28
+ */
29
+ export interface SuccessResponseDictStrStr {
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: string; }}
33
+ * @memberof SuccessResponseDictStrStr
34
+ */
35
+ data: { [key: string]: string; };
36
+ /**
37
+ *
38
+ * @type {MetaBody}
39
+ * @memberof SuccessResponseDictStrStr
40
+ */
41
+ meta?: MetaBody;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof SuccessResponseDictStrStr
46
+ */
47
+ error?: any;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SuccessResponseDictStrStr interface.
52
+ */
53
+ export function instanceOfSuccessResponseDictStrStr(value: object): value is SuccessResponseDictStrStr {
54
+ if (!('data' in value) || value['data'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function SuccessResponseDictStrStrFromJSON(json: any): SuccessResponseDictStrStr {
59
+ return SuccessResponseDictStrStrFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function SuccessResponseDictStrStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseDictStrStr {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'],
69
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
70
+ 'error': json['error'] == null ? undefined : json['error'],
71
+ };
72
+ }
73
+
74
+ export function SuccessResponseDictStrStrToJSON(json: any): SuccessResponseDictStrStr {
75
+ return SuccessResponseDictStrStrToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SuccessResponseDictStrStrToJSONTyped(value?: SuccessResponseDictStrStr | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'data': value['data'],
86
+ 'meta': MetaBodyToJSON(value['meta']),
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+
@@ -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 { DataValue } from './DataValue';
17
+ import {
18
+ DataValueFromJSON,
19
+ DataValueFromJSONTyped,
20
+ DataValueToJSON,
21
+ DataValueToJSONTyped,
22
+ } from './DataValue';
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 SuccessResponseDictStrUnionIntStr
35
+ */
36
+ export interface SuccessResponseDictStrUnionIntStr {
37
+ /**
38
+ *
39
+ * @type {{ [key: string]: DataValue; }}
40
+ * @memberof SuccessResponseDictStrUnionIntStr
41
+ */
42
+ data: { [key: string]: DataValue; };
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseDictStrUnionIntStr
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseDictStrUnionIntStr
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseDictStrUnionIntStr interface.
59
+ */
60
+ export function instanceOfSuccessResponseDictStrUnionIntStr(value: object): value is SuccessResponseDictStrUnionIntStr {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseDictStrUnionIntStrFromJSON(json: any): SuccessResponseDictStrUnionIntStr {
66
+ return SuccessResponseDictStrUnionIntStrFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseDictStrUnionIntStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseDictStrUnionIntStr {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': (mapValues(json['data'], DataValueFromJSON)),
76
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
77
+ 'error': json['error'] == null ? undefined : json['error'],
78
+ };
79
+ }
80
+
81
+ export function SuccessResponseDictStrUnionIntStrToJSON(json: any): SuccessResponseDictStrUnionIntStr {
82
+ return SuccessResponseDictStrUnionIntStrToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseDictStrUnionIntStrToJSONTyped(value?: SuccessResponseDictStrUnionIntStr | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': (mapValues(value['data'], DataValueToJSON)),
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 { ImpactAnalysisResponse } from './ImpactAnalysisResponse';
17
+ import {
18
+ ImpactAnalysisResponseFromJSON,
19
+ ImpactAnalysisResponseFromJSONTyped,
20
+ ImpactAnalysisResponseToJSON,
21
+ ImpactAnalysisResponseToJSONTyped,
22
+ } from './ImpactAnalysisResponse';
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 SuccessResponseImpactAnalysisResponse
35
+ */
36
+ export interface SuccessResponseImpactAnalysisResponse {
37
+ /**
38
+ *
39
+ * @type {ImpactAnalysisResponse}
40
+ * @memberof SuccessResponseImpactAnalysisResponse
41
+ */
42
+ data: ImpactAnalysisResponse;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseImpactAnalysisResponse
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseImpactAnalysisResponse
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseImpactAnalysisResponse interface.
59
+ */
60
+ export function instanceOfSuccessResponseImpactAnalysisResponse(value: object): value is SuccessResponseImpactAnalysisResponse {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseImpactAnalysisResponseFromJSON(json: any): SuccessResponseImpactAnalysisResponse {
66
+ return SuccessResponseImpactAnalysisResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseImpactAnalysisResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseImpactAnalysisResponse {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': ImpactAnalysisResponseFromJSON(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 SuccessResponseImpactAnalysisResponseToJSON(json: any): SuccessResponseImpactAnalysisResponse {
82
+ return SuccessResponseImpactAnalysisResponseToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseImpactAnalysisResponseToJSONTyped(value?: SuccessResponseImpactAnalysisResponse | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': ImpactAnalysisResponseToJSON(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 { ACLOut } from './ACLOut';
17
+ import {
18
+ ACLOutFromJSON,
19
+ ACLOutFromJSONTyped,
20
+ ACLOutToJSON,
21
+ ACLOutToJSONTyped,
22
+ } from './ACLOut';
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 SuccessResponseListACLOut
35
+ */
36
+ export interface SuccessResponseListACLOut {
37
+ /**
38
+ *
39
+ * @type {Array<ACLOut>}
40
+ * @memberof SuccessResponseListACLOut
41
+ */
42
+ data: Array<ACLOut>;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseListACLOut
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseListACLOut
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseListACLOut interface.
59
+ */
60
+ export function instanceOfSuccessResponseListACLOut(value: object): value is SuccessResponseListACLOut {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseListACLOutFromJSON(json: any): SuccessResponseListACLOut {
66
+ return SuccessResponseListACLOutFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseListACLOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListACLOut {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': ((json['data'] as Array<any>).map(ACLOutFromJSON)),
76
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
77
+ 'error': json['error'] == null ? undefined : json['error'],
78
+ };
79
+ }
80
+
81
+ export function SuccessResponseListACLOutToJSON(json: any): SuccessResponseListACLOut {
82
+ return SuccessResponseListACLOutToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseListACLOutToJSONTyped(value?: SuccessResponseListACLOut | 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(ACLOutToJSON)),
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 { AuditRecordOut } from './AuditRecordOut';
17
+ import {
18
+ AuditRecordOutFromJSON,
19
+ AuditRecordOutFromJSONTyped,
20
+ AuditRecordOutToJSON,
21
+ AuditRecordOutToJSONTyped,
22
+ } from './AuditRecordOut';
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 SuccessResponseListAuditRecordOut
35
+ */
36
+ export interface SuccessResponseListAuditRecordOut {
37
+ /**
38
+ *
39
+ * @type {Array<AuditRecordOut>}
40
+ * @memberof SuccessResponseListAuditRecordOut
41
+ */
42
+ data: Array<AuditRecordOut>;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseListAuditRecordOut
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseListAuditRecordOut
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseListAuditRecordOut interface.
59
+ */
60
+ export function instanceOfSuccessResponseListAuditRecordOut(value: object): value is SuccessResponseListAuditRecordOut {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseListAuditRecordOutFromJSON(json: any): SuccessResponseListAuditRecordOut {
66
+ return SuccessResponseListAuditRecordOutFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseListAuditRecordOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListAuditRecordOut {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': ((json['data'] as Array<any>).map(AuditRecordOutFromJSON)),
76
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
77
+ 'error': json['error'] == null ? undefined : json['error'],
78
+ };
79
+ }
80
+
81
+ export function SuccessResponseListAuditRecordOutToJSON(json: any): SuccessResponseListAuditRecordOut {
82
+ return SuccessResponseListAuditRecordOutToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseListAuditRecordOutToJSONTyped(value?: SuccessResponseListAuditRecordOut | 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(AuditRecordOutToJSON)),
93
+ 'meta': MetaBodyToJSON(value['meta']),
94
+ 'error': value['error'],
95
+ };
96
+ }
97
+
@@ -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 { MetaBody } from './MetaBody';
17
+ import {
18
+ MetaBodyFromJSON,
19
+ MetaBodyFromJSONTyped,
20
+ MetaBodyToJSON,
21
+ MetaBodyToJSONTyped,
22
+ } from './MetaBody';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuccessResponseListDictStrStr
28
+ */
29
+ export interface SuccessResponseListDictStrStr {
30
+ /**
31
+ *
32
+ * @type {Array<{ [key: string]: string; }>}
33
+ * @memberof SuccessResponseListDictStrStr
34
+ */
35
+ data: Array<{ [key: string]: string; }>;
36
+ /**
37
+ *
38
+ * @type {MetaBody}
39
+ * @memberof SuccessResponseListDictStrStr
40
+ */
41
+ meta?: MetaBody;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof SuccessResponseListDictStrStr
46
+ */
47
+ error?: any;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SuccessResponseListDictStrStr interface.
52
+ */
53
+ export function instanceOfSuccessResponseListDictStrStr(value: object): value is SuccessResponseListDictStrStr {
54
+ if (!('data' in value) || value['data'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function SuccessResponseListDictStrStrFromJSON(json: any): SuccessResponseListDictStrStr {
59
+ return SuccessResponseListDictStrStrFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function SuccessResponseListDictStrStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseListDictStrStr {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'],
69
+ 'meta': json['meta'] == null ? undefined : MetaBodyFromJSON(json['meta']),
70
+ 'error': json['error'] == null ? undefined : json['error'],
71
+ };
72
+ }
73
+
74
+ export function SuccessResponseListDictStrStrToJSON(json: any): SuccessResponseListDictStrStr {
75
+ return SuccessResponseListDictStrStrToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SuccessResponseListDictStrStrToJSONTyped(value?: SuccessResponseListDictStrStr | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'data': value['data'],
86
+ 'meta': MetaBodyToJSON(value['meta']),
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+