@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,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 SuccessResponseACLOut
35
+ */
36
+ export interface SuccessResponseACLOut {
37
+ /**
38
+ *
39
+ * @type {ACLOut}
40
+ * @memberof SuccessResponseACLOut
41
+ */
42
+ data: ACLOut;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseACLOut
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseACLOut
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseACLOut interface.
59
+ */
60
+ export function instanceOfSuccessResponseACLOut(value: object): value is SuccessResponseACLOut {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseACLOutFromJSON(json: any): SuccessResponseACLOut {
66
+ return SuccessResponseACLOutFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseACLOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseACLOut {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': ACLOutFromJSON(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 SuccessResponseACLOutToJSON(json: any): SuccessResponseACLOut {
82
+ return SuccessResponseACLOutToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseACLOutToJSONTyped(value?: SuccessResponseACLOut | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': ACLOutToJSON(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 { AccessDecisionResponse } from './AccessDecisionResponse';
17
+ import {
18
+ AccessDecisionResponseFromJSON,
19
+ AccessDecisionResponseFromJSONTyped,
20
+ AccessDecisionResponseToJSON,
21
+ AccessDecisionResponseToJSONTyped,
22
+ } from './AccessDecisionResponse';
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 SuccessResponseAccessDecisionResponse
35
+ */
36
+ export interface SuccessResponseAccessDecisionResponse {
37
+ /**
38
+ *
39
+ * @type {AccessDecisionResponse}
40
+ * @memberof SuccessResponseAccessDecisionResponse
41
+ */
42
+ data: AccessDecisionResponse;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseAccessDecisionResponse
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseAccessDecisionResponse
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseAccessDecisionResponse interface.
59
+ */
60
+ export function instanceOfSuccessResponseAccessDecisionResponse(value: object): value is SuccessResponseAccessDecisionResponse {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseAccessDecisionResponseFromJSON(json: any): SuccessResponseAccessDecisionResponse {
66
+ return SuccessResponseAccessDecisionResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseAccessDecisionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseAccessDecisionResponse {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': AccessDecisionResponseFromJSON(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 SuccessResponseAccessDecisionResponseToJSON(json: any): SuccessResponseAccessDecisionResponse {
82
+ return SuccessResponseAccessDecisionResponseToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseAccessDecisionResponseToJSONTyped(value?: SuccessResponseAccessDecisionResponse | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': AccessDecisionResponseToJSON(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 { AdminLoginResponse } from './AdminLoginResponse';
17
+ import {
18
+ AdminLoginResponseFromJSON,
19
+ AdminLoginResponseFromJSONTyped,
20
+ AdminLoginResponseToJSON,
21
+ AdminLoginResponseToJSONTyped,
22
+ } from './AdminLoginResponse';
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 SuccessResponseAdminLoginResponse
35
+ */
36
+ export interface SuccessResponseAdminLoginResponse {
37
+ /**
38
+ *
39
+ * @type {AdminLoginResponse}
40
+ * @memberof SuccessResponseAdminLoginResponse
41
+ */
42
+ data: AdminLoginResponse;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseAdminLoginResponse
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseAdminLoginResponse
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseAdminLoginResponse interface.
59
+ */
60
+ export function instanceOfSuccessResponseAdminLoginResponse(value: object): value is SuccessResponseAdminLoginResponse {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseAdminLoginResponseFromJSON(json: any): SuccessResponseAdminLoginResponse {
66
+ return SuccessResponseAdminLoginResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseAdminLoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseAdminLoginResponse {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': AdminLoginResponseFromJSON(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 SuccessResponseAdminLoginResponseToJSON(json: any): SuccessResponseAdminLoginResponse {
82
+ return SuccessResponseAdminLoginResponseToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseAdminLoginResponseToJSONTyped(value?: SuccessResponseAdminLoginResponse | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': AdminLoginResponseToJSON(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 { AuthModelOut } from './AuthModelOut';
17
+ import {
18
+ AuthModelOutFromJSON,
19
+ AuthModelOutFromJSONTyped,
20
+ AuthModelOutToJSON,
21
+ AuthModelOutToJSONTyped,
22
+ } from './AuthModelOut';
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 SuccessResponseAuthModelOut
35
+ */
36
+ export interface SuccessResponseAuthModelOut {
37
+ /**
38
+ *
39
+ * @type {AuthModelOut}
40
+ * @memberof SuccessResponseAuthModelOut
41
+ */
42
+ data: AuthModelOut;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseAuthModelOut
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseAuthModelOut
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseAuthModelOut interface.
59
+ */
60
+ export function instanceOfSuccessResponseAuthModelOut(value: object): value is SuccessResponseAuthModelOut {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseAuthModelOutFromJSON(json: any): SuccessResponseAuthModelOut {
66
+ return SuccessResponseAuthModelOutFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseAuthModelOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseAuthModelOut {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': AuthModelOutFromJSON(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 SuccessResponseAuthModelOutToJSON(json: any): SuccessResponseAuthModelOut {
82
+ return SuccessResponseAuthModelOutToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseAuthModelOutToJSONTyped(value?: SuccessResponseAuthModelOut | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': AuthModelOutToJSON(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 { BatchAccessResponse } from './BatchAccessResponse';
17
+ import {
18
+ BatchAccessResponseFromJSON,
19
+ BatchAccessResponseFromJSONTyped,
20
+ BatchAccessResponseToJSON,
21
+ BatchAccessResponseToJSONTyped,
22
+ } from './BatchAccessResponse';
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 SuccessResponseBatchAccessResponse
35
+ */
36
+ export interface SuccessResponseBatchAccessResponse {
37
+ /**
38
+ *
39
+ * @type {BatchAccessResponse}
40
+ * @memberof SuccessResponseBatchAccessResponse
41
+ */
42
+ data: BatchAccessResponse;
43
+ /**
44
+ *
45
+ * @type {MetaBody}
46
+ * @memberof SuccessResponseBatchAccessResponse
47
+ */
48
+ meta?: MetaBody;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SuccessResponseBatchAccessResponse
53
+ */
54
+ error?: any;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SuccessResponseBatchAccessResponse interface.
59
+ */
60
+ export function instanceOfSuccessResponseBatchAccessResponse(value: object): value is SuccessResponseBatchAccessResponse {
61
+ if (!('data' in value) || value['data'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function SuccessResponseBatchAccessResponseFromJSON(json: any): SuccessResponseBatchAccessResponse {
66
+ return SuccessResponseBatchAccessResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function SuccessResponseBatchAccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseBatchAccessResponse {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'data': BatchAccessResponseFromJSON(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 SuccessResponseBatchAccessResponseToJSON(json: any): SuccessResponseBatchAccessResponse {
82
+ return SuccessResponseBatchAccessResponseToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SuccessResponseBatchAccessResponseToJSONTyped(value?: SuccessResponseBatchAccessResponse | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'data': BatchAccessResponseToJSON(value['data']),
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 SuccessResponseDictStrAny
28
+ */
29
+ export interface SuccessResponseDictStrAny {
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: any; }}
33
+ * @memberof SuccessResponseDictStrAny
34
+ */
35
+ data: { [key: string]: any; };
36
+ /**
37
+ *
38
+ * @type {MetaBody}
39
+ * @memberof SuccessResponseDictStrAny
40
+ */
41
+ meta?: MetaBody;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof SuccessResponseDictStrAny
46
+ */
47
+ error?: any;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SuccessResponseDictStrAny interface.
52
+ */
53
+ export function instanceOfSuccessResponseDictStrAny(value: object): value is SuccessResponseDictStrAny {
54
+ if (!('data' in value) || value['data'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function SuccessResponseDictStrAnyFromJSON(json: any): SuccessResponseDictStrAny {
59
+ return SuccessResponseDictStrAnyFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function SuccessResponseDictStrAnyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseDictStrAny {
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 SuccessResponseDictStrAnyToJSON(json: any): SuccessResponseDictStrAny {
75
+ return SuccessResponseDictStrAnyToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SuccessResponseDictStrAnyToJSONTyped(value?: SuccessResponseDictStrAny | 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 SuccessResponseDictStrInt
28
+ */
29
+ export interface SuccessResponseDictStrInt {
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: number; }}
33
+ * @memberof SuccessResponseDictStrInt
34
+ */
35
+ data: { [key: string]: number; };
36
+ /**
37
+ *
38
+ * @type {MetaBody}
39
+ * @memberof SuccessResponseDictStrInt
40
+ */
41
+ meta?: MetaBody;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof SuccessResponseDictStrInt
46
+ */
47
+ error?: any;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SuccessResponseDictStrInt interface.
52
+ */
53
+ export function instanceOfSuccessResponseDictStrInt(value: object): value is SuccessResponseDictStrInt {
54
+ if (!('data' in value) || value['data'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function SuccessResponseDictStrIntFromJSON(json: any): SuccessResponseDictStrInt {
59
+ return SuccessResponseDictStrIntFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function SuccessResponseDictStrIntFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponseDictStrInt {
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 SuccessResponseDictStrIntToJSON(json: any): SuccessResponseDictStrInt {
75
+ return SuccessResponseDictStrIntToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SuccessResponseDictStrIntToJSONTyped(value?: SuccessResponseDictStrInt | 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
+