@aerostack/sdk-node 0.8.8 → 0.8.10

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 +10 -3
  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 SearchUpdateRequest
20
- */
21
- export interface SearchUpdateRequest {
22
- /**
23
- * ID of the item to update
24
- * @type {string}
25
- * @memberof SearchUpdateRequest
26
- */
27
- id: string;
28
- /**
29
- * New text content to re-embed
30
- * @type {string}
31
- * @memberof SearchUpdateRequest
32
- */
33
- content: string;
34
- /**
35
- * New type (replaces existing type)
36
- * @type {string}
37
- * @memberof SearchUpdateRequest
38
- */
39
- type?: string;
40
- /**
41
- * New metadata (replaces existing metadata)
42
- * @type {{ [key: string]: any; }}
43
- * @memberof SearchUpdateRequest
44
- */
45
- metadata?: { [key: string]: any; } | null;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the SearchUpdateRequest interface.
50
- */
51
- export function instanceOfSearchUpdateRequest(value: object): boolean {
52
- let isInstance = true;
53
- isInstance = isInstance && "id" in value;
54
- isInstance = isInstance && "content" in value;
55
-
56
- return isInstance;
57
- }
58
-
59
- export function SearchUpdateRequestFromJSON(json: any): SearchUpdateRequest {
60
- return SearchUpdateRequestFromJSONTyped(json, false);
61
- }
62
-
63
- export function SearchUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchUpdateRequest {
64
- if ((json === undefined) || (json === null)) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'id': json['id'],
70
- 'content': json['content'],
71
- 'type': !exists(json, 'type') ? undefined : json['type'],
72
- 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
73
- };
74
- }
75
-
76
- export function SearchUpdateRequestToJSON(value?: SearchUpdateRequest | null): any {
77
- if (value === undefined) {
78
- return undefined;
79
- }
80
- if (value === null) {
81
- return null;
82
- }
83
- return {
84
-
85
- 'id': value.id,
86
- 'content': value.content,
87
- 'type': value.type,
88
- 'metadata': value.metadata,
89
- };
90
- }
91
-
@@ -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 ServicesInvoke200Response
20
- */
21
- export interface ServicesInvoke200Response {
22
- /**
23
- *
24
- * @type {boolean}
25
- * @memberof ServicesInvoke200Response
26
- */
27
- success?: boolean;
28
- /**
29
- *
30
- * @type {any}
31
- * @memberof ServicesInvoke200Response
32
- */
33
- result?: any | null;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ServicesInvoke200Response interface.
38
- */
39
- export function instanceOfServicesInvoke200Response(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
43
- }
44
-
45
- export function ServicesInvoke200ResponseFromJSON(json: any): ServicesInvoke200Response {
46
- return ServicesInvoke200ResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function ServicesInvoke200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServicesInvoke200Response {
50
- if ((json === undefined) || (json === null)) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'success': !exists(json, 'success') ? undefined : json['success'],
56
- 'result': !exists(json, 'result') ? undefined : json['result'],
57
- };
58
- }
59
-
60
- export function ServicesInvoke200ResponseToJSON(value?: ServicesInvoke200Response | 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
- 'result': value.result,
71
- };
72
- }
73
-
@@ -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 ServicesInvokeRequest
20
- */
21
- export interface ServicesInvokeRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ServicesInvokeRequest
26
- */
27
- serviceName: string;
28
- /**
29
- *
30
- * @type {{ [key: string]: any; }}
31
- * @memberof ServicesInvokeRequest
32
- */
33
- data: { [key: string]: any; } | null;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ServicesInvokeRequest interface.
38
- */
39
- export function instanceOfServicesInvokeRequest(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "serviceName" in value;
42
- isInstance = isInstance && "data" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function ServicesInvokeRequestFromJSON(json: any): ServicesInvokeRequest {
48
- return ServicesInvokeRequestFromJSONTyped(json, false);
49
- }
50
-
51
- export function ServicesInvokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServicesInvokeRequest {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'serviceName': json['serviceName'],
58
- 'data': json['data'],
59
- };
60
- }
61
-
62
- export function ServicesInvokeRequestToJSON(value?: ServicesInvokeRequest | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
68
- }
69
- return {
70
-
71
- 'serviceName': value.serviceName,
72
- 'data': value.data,
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 StorageCopy200Response
20
- */
21
- export interface StorageCopy200Response {
22
- /**
23
- *
24
- * @type {boolean}
25
- * @memberof StorageCopy200Response
26
- */
27
- success?: boolean;
28
- /**
29
- * CDN URL of the new file
30
- * @type {string}
31
- * @memberof StorageCopy200Response
32
- */
33
- url?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the StorageCopy200Response interface.
38
- */
39
- export function instanceOfStorageCopy200Response(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
43
- }
44
-
45
- export function StorageCopy200ResponseFromJSON(json: any): StorageCopy200Response {
46
- return StorageCopy200ResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function StorageCopy200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageCopy200Response {
50
- if ((json === undefined) || (json === null)) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'success': !exists(json, 'success') ? undefined : json['success'],
56
- 'url': !exists(json, 'url') ? undefined : json['url'],
57
- };
58
- }
59
-
60
- export function StorageCopy200ResponseToJSON(value?: StorageCopy200Response | 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
- 'url': value.url,
71
- };
72
- }
73
-
@@ -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 StorageCopyRequest
20
- */
21
- export interface StorageCopyRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof StorageCopyRequest
26
- */
27
- sourceKey: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof StorageCopyRequest
32
- */
33
- destKey: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the StorageCopyRequest interface.
38
- */
39
- export function instanceOfStorageCopyRequest(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "sourceKey" in value;
42
- isInstance = isInstance && "destKey" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function StorageCopyRequestFromJSON(json: any): StorageCopyRequest {
48
- return StorageCopyRequestFromJSONTyped(json, false);
49
- }
50
-
51
- export function StorageCopyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageCopyRequest {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'sourceKey': json['sourceKey'],
58
- 'destKey': json['destKey'],
59
- };
60
- }
61
-
62
- export function StorageCopyRequestToJSON(value?: StorageCopyRequest | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
68
- }
69
- return {
70
-
71
- 'sourceKey': value.sourceKey,
72
- 'destKey': value.destKey,
73
- };
74
- }
75
-
@@ -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 StorageExists200Response
20
- */
21
- export interface StorageExists200Response {
22
- /**
23
- *
24
- * @type {boolean}
25
- * @memberof StorageExists200Response
26
- */
27
- _exists?: boolean;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the StorageExists200Response interface.
32
- */
33
- export function instanceOfStorageExists200Response(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
37
- }
38
-
39
- export function StorageExists200ResponseFromJSON(json: any): StorageExists200Response {
40
- return StorageExists200ResponseFromJSONTyped(json, false);
41
- }
42
-
43
- export function StorageExists200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageExists200Response {
44
- if ((json === undefined) || (json === null)) {
45
- return json;
46
- }
47
- return {
48
-
49
- '_exists': !exists(json, 'exists') ? undefined : json['exists'],
50
- };
51
- }
52
-
53
- export function StorageExists200ResponseToJSON(value?: StorageExists200Response | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
59
- }
60
- return {
61
-
62
- 'exists': value._exists,
63
- };
64
- }
65
-
@@ -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 StorageGetRequest
20
- */
21
- export interface StorageGetRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof StorageGetRequest
26
- */
27
- key: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the StorageGetRequest interface.
32
- */
33
- export function instanceOfStorageGetRequest(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "key" in value;
36
-
37
- return isInstance;
38
- }
39
-
40
- export function StorageGetRequestFromJSON(json: any): StorageGetRequest {
41
- return StorageGetRequestFromJSONTyped(json, false);
42
- }
43
-
44
- export function StorageGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageGetRequest {
45
- if ((json === undefined) || (json === null)) {
46
- return json;
47
- }
48
- return {
49
-
50
- 'key': json['key'],
51
- };
52
- }
53
-
54
- export function StorageGetRequestToJSON(value?: StorageGetRequest | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
60
- }
61
- return {
62
-
63
- 'key': value.key,
64
- };
65
- }
66
-
@@ -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 StorageListRequest
20
- */
21
- export interface StorageListRequest {
22
- /**
23
- * Key prefix to filter by
24
- * @type {string}
25
- * @memberof StorageListRequest
26
- */
27
- prefix?: string;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof StorageListRequest
32
- */
33
- limit?: number;
34
- /**
35
- * Pagination cursor from previous response
36
- * @type {string}
37
- * @memberof StorageListRequest
38
- */
39
- cursor?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the StorageListRequest interface.
44
- */
45
- export function instanceOfStorageListRequest(value: object): boolean {
46
- let isInstance = true;
47
-
48
- return isInstance;
49
- }
50
-
51
- export function StorageListRequestFromJSON(json: any): StorageListRequest {
52
- return StorageListRequestFromJSONTyped(json, false);
53
- }
54
-
55
- export function StorageListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageListRequest {
56
- if ((json === undefined) || (json === null)) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'prefix': !exists(json, 'prefix') ? undefined : json['prefix'],
62
- 'limit': !exists(json, 'limit') ? undefined : json['limit'],
63
- 'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
64
- };
65
- }
66
-
67
- export function StorageListRequestToJSON(value?: StorageListRequest | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
73
- }
74
- return {
75
-
76
- 'prefix': value.prefix,
77
- 'limit': value.limit,
78
- 'cursor': value.cursor,
79
- };
80
- }
81
-
@@ -1,88 +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 { StorageObject } from './StorageObject.js';
17
- import {
18
- StorageObjectFromJSON,
19
- StorageObjectFromJSONTyped,
20
- StorageObjectToJSON,
21
- } from './StorageObject.js';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface StorageListResult
27
- */
28
- export interface StorageListResult {
29
- /**
30
- *
31
- * @type {Array<StorageObject>}
32
- * @memberof StorageListResult
33
- */
34
- objects?: Array<StorageObject>;
35
- /**
36
- * True if more files exist beyond this page
37
- * @type {boolean}
38
- * @memberof StorageListResult
39
- */
40
- truncated?: boolean;
41
- /**
42
- * Use this cursor to fetch the next page
43
- * @type {string}
44
- * @memberof StorageListResult
45
- */
46
- cursor?: string;
47
- }
48
-
49
- /**
50
- * Check if a given object implements the StorageListResult interface.
51
- */
52
- export function instanceOfStorageListResult(value: object): boolean {
53
- let isInstance = true;
54
-
55
- return isInstance;
56
- }
57
-
58
- export function StorageListResultFromJSON(json: any): StorageListResult {
59
- return StorageListResultFromJSONTyped(json, false);
60
- }
61
-
62
- export function StorageListResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageListResult {
63
- if ((json === undefined) || (json === null)) {
64
- return json;
65
- }
66
- return {
67
-
68
- 'objects': !exists(json, 'objects') ? undefined : ((json['objects'] as Array<any>).map(StorageObjectFromJSON)),
69
- 'truncated': !exists(json, 'truncated') ? undefined : json['truncated'],
70
- 'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
71
- };
72
- }
73
-
74
- export function StorageListResultToJSON(value?: StorageListResult | null): any {
75
- if (value === undefined) {
76
- return undefined;
77
- }
78
- if (value === null) {
79
- return null;
80
- }
81
- return {
82
-
83
- 'objects': value.objects === undefined ? undefined : ((value.objects as Array<any>).map(StorageObjectToJSON)),
84
- 'truncated': value.truncated,
85
- 'cursor': value.cursor,
86
- };
87
- }
88
-