@aerostack/sdk-node 0.8.8 → 0.8.9

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 (110) hide show
  1. package/package.json +9 -2
  2. package/FUNCTIONS.md +0 -95
  3. package/RUNTIMES.md +0 -48
  4. package/examples/aiAIChat.example.ts +0 -31
  5. package/examples/databaseDbQuery.example.ts +0 -34
  6. package/examples/e2e/__tests__/e2e.test.ts +0 -118
  7. package/examples/e2e/package.json +0 -15
  8. package/examples/e2e/vitest.config.ts +0 -8
  9. package/examples/express-integration.ts +0 -67
  10. package/examples/next-api-route.ts +0 -46
  11. package/examples/package.json +0 -18
  12. package/examples/standalone-auth.ts +0 -44
  13. package/jsr.json +0 -27
  14. package/src/__tests__/realtime.test.ts +0 -430
  15. package/src/__tests__/sdk.test.ts +0 -412
  16. package/src/_generated/apis/AIApi.ts +0 -477
  17. package/src/_generated/apis/AuthenticationApi.ts +0 -121
  18. package/src/_generated/apis/CacheApi.ts +0 -551
  19. package/src/_generated/apis/DatabaseApi.ts +0 -138
  20. package/src/_generated/apis/GatewayApi.ts +0 -204
  21. package/src/_generated/apis/QueueApi.ts +0 -218
  22. package/src/_generated/apis/ServicesApi.ts +0 -74
  23. package/src/_generated/apis/StorageApi.ts +0 -476
  24. package/src/_generated/apis/index.ts +0 -10
  25. package/src/_generated/index.ts +0 -5
  26. package/src/_generated/models/AuthResponse.ts +0 -88
  27. package/src/_generated/models/AuthSigninRequest.ts +0 -75
  28. package/src/_generated/models/AuthSignupRequest.ts +0 -91
  29. package/src/_generated/models/CacheDeleteMany200Response.ts +0 -81
  30. package/src/_generated/models/CacheDeleteManyRequest.ts +0 -66
  31. package/src/_generated/models/CacheExpireRequest.ts +0 -75
  32. package/src/_generated/models/CacheFlush200Response.ts +0 -73
  33. package/src/_generated/models/CacheFlushRequest.ts +0 -65
  34. package/src/_generated/models/CacheGet200Response.ts +0 -73
  35. package/src/_generated/models/CacheGetMany200Response.ts +0 -72
  36. package/src/_generated/models/CacheGetManyEntry.ts +0 -81
  37. package/src/_generated/models/CacheGetManyRequest.ts +0 -66
  38. package/src/_generated/models/CacheGetRequest.ts +0 -66
  39. package/src/_generated/models/CacheIncrement200Response.ts +0 -65
  40. package/src/_generated/models/CacheIncrementRequest.ts +0 -90
  41. package/src/_generated/models/CacheKeyEntry.ts +0 -73
  42. package/src/_generated/models/CacheKeys200Response.ts +0 -73
  43. package/src/_generated/models/CacheKeysRequest.ts +0 -65
  44. package/src/_generated/models/CacheListRequest.ts +0 -81
  45. package/src/_generated/models/CacheListResult.ts +0 -88
  46. package/src/_generated/models/CacheSet200Response.ts +0 -65
  47. package/src/_generated/models/CacheSetEntry.ts +0 -83
  48. package/src/_generated/models/CacheSetMany200Response.ts +0 -73
  49. package/src/_generated/models/CacheSetManyRequest.ts +0 -73
  50. package/src/_generated/models/CacheSetRequest.ts +0 -83
  51. package/src/_generated/models/ChatCompletionRequest.ts +0 -130
  52. package/src/_generated/models/ChatCompletionRequestStreamOptions.ts +0 -67
  53. package/src/_generated/models/ChatCompletionResponse.ts +0 -128
  54. package/src/_generated/models/ChatCompletionResponseChoicesInner.ts +0 -100
  55. package/src/_generated/models/ChatMessage.ts +0 -87
  56. package/src/_generated/models/ConfigureRequest.ts +0 -77
  57. package/src/_generated/models/DbBatchRequest.ts +0 -73
  58. package/src/_generated/models/DbBatchRequestQueriesInner.ts +0 -74
  59. package/src/_generated/models/DbBatchResult.ts +0 -80
  60. package/src/_generated/models/DbBatchResultResultsInner.ts +0 -81
  61. package/src/_generated/models/DbQueryRequest.ts +0 -74
  62. package/src/_generated/models/DbQueryResult.ts +0 -73
  63. package/src/_generated/models/DeleteByTypeRequest.ts +0 -66
  64. package/src/_generated/models/DeleteRequest.ts +0 -66
  65. package/src/_generated/models/ErrorResponse.ts +0 -99
  66. package/src/_generated/models/GatewayBillingLog200Response.ts +0 -73
  67. package/src/_generated/models/GatewayBillingLogRequest.ts +0 -92
  68. package/src/_generated/models/GatewayGetWallet200Response.ts +0 -72
  69. package/src/_generated/models/IngestRequest.ts +0 -91
  70. package/src/_generated/models/JobRecord.ts +0 -119
  71. package/src/_generated/models/ListTypes200Response.ts +0 -72
  72. package/src/_generated/models/Query200Response.ts +0 -72
  73. package/src/_generated/models/QueryRequest.ts +0 -90
  74. package/src/_generated/models/QueueCancelJob200Response.ts +0 -73
  75. package/src/_generated/models/QueueEnqueue201Response.ts +0 -73
  76. package/src/_generated/models/QueueEnqueueRequest.ts +0 -83
  77. package/src/_generated/models/QueueGetJob200Response.ts +0 -80
  78. package/src/_generated/models/QueueGetJobRequest.ts +0 -66
  79. package/src/_generated/models/QueueListJobs200Response.ts +0 -88
  80. package/src/_generated/models/QueueListJobsRequest.ts +0 -103
  81. package/src/_generated/models/SearchCount200Response.ts +0 -65
  82. package/src/_generated/models/SearchCountRequest.ts +0 -65
  83. package/src/_generated/models/SearchGet200Response.ts +0 -80
  84. package/src/_generated/models/SearchGetRequest.ts +0 -66
  85. package/src/_generated/models/SearchResult.ts +0 -97
  86. package/src/_generated/models/SearchUpdateRequest.ts +0 -91
  87. package/src/_generated/models/ServicesInvoke200Response.ts +0 -73
  88. package/src/_generated/models/ServicesInvokeRequest.ts +0 -75
  89. package/src/_generated/models/StorageCopy200Response.ts +0 -73
  90. package/src/_generated/models/StorageCopyRequest.ts +0 -75
  91. package/src/_generated/models/StorageExists200Response.ts +0 -65
  92. package/src/_generated/models/StorageGetRequest.ts +0 -66
  93. package/src/_generated/models/StorageListRequest.ts +0 -81
  94. package/src/_generated/models/StorageListResult.ts +0 -88
  95. package/src/_generated/models/StorageMetadata.ts +0 -97
  96. package/src/_generated/models/StorageMove200Response.ts +0 -73
  97. package/src/_generated/models/StorageMoveRequest.ts +0 -75
  98. package/src/_generated/models/StorageObject.ts +0 -97
  99. package/src/_generated/models/StorageUpload200Response.ts +0 -65
  100. package/src/_generated/models/TokenUsage.ts +0 -81
  101. package/src/_generated/models/TokenWallet.ts +0 -73
  102. package/src/_generated/models/TypeStats.ts +0 -73
  103. package/src/_generated/models/User.ts +0 -97
  104. package/src/_generated/models/index.ts +0 -80
  105. package/src/_generated/runtime.ts +0 -431
  106. package/src/index.ts +0 -3
  107. package/src/realtime.ts +0 -439
  108. package/src/sdk.ts +0 -317
  109. package/test_sdk.ts +0 -19
  110. package/tsconfig.json +0 -43
@@ -1,91 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface AuthSignupRequest
20
- */
21
- export interface AuthSignupRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof AuthSignupRequest
26
- */
27
- email: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof AuthSignupRequest
32
- */
33
- password: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof AuthSignupRequest
38
- */
39
- name?: string;
40
- /**
41
- *
42
- * @type {{ [key: string]: any; }}
43
- * @memberof AuthSignupRequest
44
- */
45
- metadata?: { [key: string]: any; } | null;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the AuthSignupRequest interface.
50
- */
51
- export function instanceOfAuthSignupRequest(value: object): boolean {
52
- let isInstance = true;
53
- isInstance = isInstance && "email" in value;
54
- isInstance = isInstance && "password" in value;
55
-
56
- return isInstance;
57
- }
58
-
59
- export function AuthSignupRequestFromJSON(json: any): AuthSignupRequest {
60
- return AuthSignupRequestFromJSONTyped(json, false);
61
- }
62
-
63
- export function AuthSignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSignupRequest {
64
- if ((json === undefined) || (json === null)) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'email': json['email'],
70
- 'password': json['password'],
71
- 'name': !exists(json, 'name') ? undefined : json['name'],
72
- 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
73
- };
74
- }
75
-
76
- export function AuthSignupRequestToJSON(value?: AuthSignupRequest | null): any {
77
- if (value === undefined) {
78
- return undefined;
79
- }
80
- if (value === null) {
81
- return null;
82
- }
83
- return {
84
-
85
- 'email': value.email,
86
- 'password': value.password,
87
- 'name': value.name,
88
- 'metadata': value.metadata,
89
- };
90
- }
91
-
@@ -1,81 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheDeleteMany200Response
20
- */
21
- export interface CacheDeleteMany200Response {
22
- /**
23
- *
24
- * @type {boolean}
25
- * @memberof CacheDeleteMany200Response
26
- */
27
- success?: boolean;
28
- /**
29
- * Number of keys requested for deletion
30
- * @type {number}
31
- * @memberof CacheDeleteMany200Response
32
- */
33
- count?: number;
34
- /**
35
- * Number of keys actually deleted
36
- * @type {number}
37
- * @memberof CacheDeleteMany200Response
38
- */
39
- deleted?: number;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the CacheDeleteMany200Response interface.
44
- */
45
- export function instanceOfCacheDeleteMany200Response(value: object): boolean {
46
- let isInstance = true;
47
-
48
- return isInstance;
49
- }
50
-
51
- export function CacheDeleteMany200ResponseFromJSON(json: any): CacheDeleteMany200Response {
52
- return CacheDeleteMany200ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function CacheDeleteMany200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheDeleteMany200Response {
56
- if ((json === undefined) || (json === null)) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'success': !exists(json, 'success') ? undefined : json['success'],
62
- 'count': !exists(json, 'count') ? undefined : json['count'],
63
- 'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
64
- };
65
- }
66
-
67
- export function CacheDeleteMany200ResponseToJSON(value?: CacheDeleteMany200Response | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
73
- }
74
- return {
75
-
76
- 'success': value.success,
77
- 'count': value.count,
78
- 'deleted': value.deleted,
79
- };
80
- }
81
-
@@ -1,66 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheDeleteManyRequest
20
- */
21
- export interface CacheDeleteManyRequest {
22
- /**
23
- * Keys to delete (max 500)
24
- * @type {Array<string>}
25
- * @memberof CacheDeleteManyRequest
26
- */
27
- keys: Array<string>;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CacheDeleteManyRequest interface.
32
- */
33
- export function instanceOfCacheDeleteManyRequest(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "keys" in value;
36
-
37
- return isInstance;
38
- }
39
-
40
- export function CacheDeleteManyRequestFromJSON(json: any): CacheDeleteManyRequest {
41
- return CacheDeleteManyRequestFromJSONTyped(json, false);
42
- }
43
-
44
- export function CacheDeleteManyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheDeleteManyRequest {
45
- if ((json === undefined) || (json === null)) {
46
- return json;
47
- }
48
- return {
49
-
50
- 'keys': json['keys'],
51
- };
52
- }
53
-
54
- export function CacheDeleteManyRequestToJSON(value?: CacheDeleteManyRequest | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
60
- }
61
- return {
62
-
63
- 'keys': value.keys,
64
- };
65
- }
66
-
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheExpireRequest
20
- */
21
- export interface CacheExpireRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CacheExpireRequest
26
- */
27
- key: string;
28
- /**
29
- * New TTL in seconds from now
30
- * @type {number}
31
- * @memberof CacheExpireRequest
32
- */
33
- ttl: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CacheExpireRequest interface.
38
- */
39
- export function instanceOfCacheExpireRequest(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "key" in value;
42
- isInstance = isInstance && "ttl" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function CacheExpireRequestFromJSON(json: any): CacheExpireRequest {
48
- return CacheExpireRequestFromJSONTyped(json, false);
49
- }
50
-
51
- export function CacheExpireRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheExpireRequest {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'key': json['key'],
58
- 'ttl': json['ttl'],
59
- };
60
- }
61
-
62
- export function CacheExpireRequestToJSON(value?: CacheExpireRequest | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
68
- }
69
- return {
70
-
71
- 'key': value.key,
72
- 'ttl': value.ttl,
73
- };
74
- }
75
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheFlush200Response
20
- */
21
- export interface CacheFlush200Response {
22
- /**
23
- *
24
- * @type {boolean}
25
- * @memberof CacheFlush200Response
26
- */
27
- success?: boolean;
28
- /**
29
- * Number of keys deleted
30
- * @type {number}
31
- * @memberof CacheFlush200Response
32
- */
33
- deleted?: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CacheFlush200Response interface.
38
- */
39
- export function instanceOfCacheFlush200Response(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
43
- }
44
-
45
- export function CacheFlush200ResponseFromJSON(json: any): CacheFlush200Response {
46
- return CacheFlush200ResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CacheFlush200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheFlush200Response {
50
- if ((json === undefined) || (json === null)) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'success': !exists(json, 'success') ? undefined : json['success'],
56
- 'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
57
- };
58
- }
59
-
60
- export function CacheFlush200ResponseToJSON(value?: CacheFlush200Response | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
66
- }
67
- return {
68
-
69
- 'success': value.success,
70
- 'deleted': value.deleted,
71
- };
72
- }
73
-
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheFlushRequest
20
- */
21
- export interface CacheFlushRequest {
22
- /**
23
- * Key prefix to flush. Omit to flush all project keys.
24
- * @type {string}
25
- * @memberof CacheFlushRequest
26
- */
27
- prefix?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CacheFlushRequest interface.
32
- */
33
- export function instanceOfCacheFlushRequest(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
37
- }
38
-
39
- export function CacheFlushRequestFromJSON(json: any): CacheFlushRequest {
40
- return CacheFlushRequestFromJSONTyped(json, false);
41
- }
42
-
43
- export function CacheFlushRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheFlushRequest {
44
- if ((json === undefined) || (json === null)) {
45
- return json;
46
- }
47
- return {
48
-
49
- 'prefix': !exists(json, 'prefix') ? undefined : json['prefix'],
50
- };
51
- }
52
-
53
- export function CacheFlushRequestToJSON(value?: CacheFlushRequest | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
59
- }
60
- return {
61
-
62
- 'prefix': value.prefix,
63
- };
64
- }
65
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheGet200Response
20
- */
21
- export interface CacheGet200Response {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CacheGet200Response
26
- */
27
- value?: string | null;
28
- /**
29
- *
30
- * @type {boolean}
31
- * @memberof CacheGet200Response
32
- */
33
- _exists?: boolean;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CacheGet200Response interface.
38
- */
39
- export function instanceOfCacheGet200Response(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
43
- }
44
-
45
- export function CacheGet200ResponseFromJSON(json: any): CacheGet200Response {
46
- return CacheGet200ResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CacheGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheGet200Response {
50
- if ((json === undefined) || (json === null)) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'value': !exists(json, 'value') ? undefined : json['value'],
56
- '_exists': !exists(json, 'exists') ? undefined : json['exists'],
57
- };
58
- }
59
-
60
- export function CacheGet200ResponseToJSON(value?: CacheGet200Response | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
66
- }
67
- return {
68
-
69
- 'value': value.value,
70
- 'exists': value._exists,
71
- };
72
- }
73
-
@@ -1,72 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- import type { CacheGetManyEntry } from './CacheGetManyEntry.js';
17
- import {
18
- CacheGetManyEntryFromJSON,
19
- CacheGetManyEntryFromJSONTyped,
20
- CacheGetManyEntryToJSON,
21
- } from './CacheGetManyEntry.js';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface CacheGetMany200Response
27
- */
28
- export interface CacheGetMany200Response {
29
- /**
30
- *
31
- * @type {Array<CacheGetManyEntry>}
32
- * @memberof CacheGetMany200Response
33
- */
34
- results?: Array<CacheGetManyEntry>;
35
- }
36
-
37
- /**
38
- * Check if a given object implements the CacheGetMany200Response interface.
39
- */
40
- export function instanceOfCacheGetMany200Response(value: object): boolean {
41
- let isInstance = true;
42
-
43
- return isInstance;
44
- }
45
-
46
- export function CacheGetMany200ResponseFromJSON(json: any): CacheGetMany200Response {
47
- return CacheGetMany200ResponseFromJSONTyped(json, false);
48
- }
49
-
50
- export function CacheGetMany200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheGetMany200Response {
51
- if ((json === undefined) || (json === null)) {
52
- return json;
53
- }
54
- return {
55
-
56
- 'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(CacheGetManyEntryFromJSON)),
57
- };
58
- }
59
-
60
- export function CacheGetMany200ResponseToJSON(value?: CacheGetMany200Response | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
66
- }
67
- return {
68
-
69
- 'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(CacheGetManyEntryToJSON)),
70
- };
71
- }
72
-
@@ -1,81 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Aerostack API
5
- * Aerostack Platform API - Unified access to database, authentication, caching, queues, storage, and AI services.
6
- *
7
- * The version of the OpenAPI document: 1.5.0
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 { exists, mapValues } from '../runtime.js';
16
- /**
17
- *
18
- * @export
19
- * @interface CacheGetManyEntry
20
- */
21
- export interface CacheGetManyEntry {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CacheGetManyEntry
26
- */
27
- key?: string;
28
- /**
29
- *
30
- * @type {any}
31
- * @memberof CacheGetManyEntry
32
- */
33
- value?: any | null;
34
- /**
35
- *
36
- * @type {boolean}
37
- * @memberof CacheGetManyEntry
38
- */
39
- _exists?: boolean;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the CacheGetManyEntry interface.
44
- */
45
- export function instanceOfCacheGetManyEntry(value: object): boolean {
46
- let isInstance = true;
47
-
48
- return isInstance;
49
- }
50
-
51
- export function CacheGetManyEntryFromJSON(json: any): CacheGetManyEntry {
52
- return CacheGetManyEntryFromJSONTyped(json, false);
53
- }
54
-
55
- export function CacheGetManyEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheGetManyEntry {
56
- if ((json === undefined) || (json === null)) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'key': !exists(json, 'key') ? undefined : json['key'],
62
- 'value': !exists(json, 'value') ? undefined : json['value'],
63
- '_exists': !exists(json, 'exists') ? undefined : json['exists'],
64
- };
65
- }
66
-
67
- export function CacheGetManyEntryToJSON(value?: CacheGetManyEntry | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
73
- }
74
- return {
75
-
76
- 'key': value.key,
77
- 'value': value.value,
78
- 'exists': value._exists,
79
- };
80
- }
81
-