@aerostack/sdk-node 0.8.7 → 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.
- package/package.json +10 -3
- package/FUNCTIONS.md +0 -95
- package/RUNTIMES.md +0 -48
- package/examples/aiAIChat.example.ts +0 -31
- package/examples/databaseDbQuery.example.ts +0 -34
- package/examples/e2e/__tests__/e2e.test.ts +0 -118
- package/examples/e2e/package.json +0 -15
- package/examples/e2e/vitest.config.ts +0 -8
- package/examples/express-integration.ts +0 -67
- package/examples/next-api-route.ts +0 -46
- package/examples/package.json +0 -18
- package/examples/standalone-auth.ts +0 -44
- package/jsr.json +0 -27
- package/src/__tests__/realtime.test.ts +0 -430
- package/src/__tests__/sdk.test.ts +0 -412
- package/src/_generated/apis/AIApi.ts +0 -477
- package/src/_generated/apis/AuthenticationApi.ts +0 -121
- package/src/_generated/apis/CacheApi.ts +0 -551
- package/src/_generated/apis/DatabaseApi.ts +0 -138
- package/src/_generated/apis/GatewayApi.ts +0 -204
- package/src/_generated/apis/QueueApi.ts +0 -218
- package/src/_generated/apis/ServicesApi.ts +0 -74
- package/src/_generated/apis/StorageApi.ts +0 -476
- package/src/_generated/apis/index.ts +0 -10
- package/src/_generated/index.ts +0 -5
- package/src/_generated/models/AuthResponse.ts +0 -88
- package/src/_generated/models/AuthSigninRequest.ts +0 -75
- package/src/_generated/models/AuthSignupRequest.ts +0 -91
- package/src/_generated/models/CacheDeleteMany200Response.ts +0 -81
- package/src/_generated/models/CacheDeleteManyRequest.ts +0 -66
- package/src/_generated/models/CacheExpireRequest.ts +0 -75
- package/src/_generated/models/CacheFlush200Response.ts +0 -73
- package/src/_generated/models/CacheFlushRequest.ts +0 -65
- package/src/_generated/models/CacheGet200Response.ts +0 -73
- package/src/_generated/models/CacheGetMany200Response.ts +0 -72
- package/src/_generated/models/CacheGetManyEntry.ts +0 -81
- package/src/_generated/models/CacheGetManyRequest.ts +0 -66
- package/src/_generated/models/CacheGetRequest.ts +0 -66
- package/src/_generated/models/CacheIncrement200Response.ts +0 -65
- package/src/_generated/models/CacheIncrementRequest.ts +0 -90
- package/src/_generated/models/CacheKeyEntry.ts +0 -73
- package/src/_generated/models/CacheKeys200Response.ts +0 -73
- package/src/_generated/models/CacheKeysRequest.ts +0 -65
- package/src/_generated/models/CacheListRequest.ts +0 -81
- package/src/_generated/models/CacheListResult.ts +0 -88
- package/src/_generated/models/CacheSet200Response.ts +0 -65
- package/src/_generated/models/CacheSetEntry.ts +0 -83
- package/src/_generated/models/CacheSetMany200Response.ts +0 -73
- package/src/_generated/models/CacheSetManyRequest.ts +0 -73
- package/src/_generated/models/CacheSetRequest.ts +0 -83
- package/src/_generated/models/ChatCompletionRequest.ts +0 -130
- package/src/_generated/models/ChatCompletionRequestStreamOptions.ts +0 -67
- package/src/_generated/models/ChatCompletionResponse.ts +0 -128
- package/src/_generated/models/ChatCompletionResponseChoicesInner.ts +0 -100
- package/src/_generated/models/ChatMessage.ts +0 -87
- package/src/_generated/models/ConfigureRequest.ts +0 -77
- package/src/_generated/models/DbBatchRequest.ts +0 -73
- package/src/_generated/models/DbBatchRequestQueriesInner.ts +0 -74
- package/src/_generated/models/DbBatchResult.ts +0 -80
- package/src/_generated/models/DbBatchResultResultsInner.ts +0 -81
- package/src/_generated/models/DbQueryRequest.ts +0 -74
- package/src/_generated/models/DbQueryResult.ts +0 -73
- package/src/_generated/models/DeleteByTypeRequest.ts +0 -66
- package/src/_generated/models/DeleteRequest.ts +0 -66
- package/src/_generated/models/ErrorResponse.ts +0 -99
- package/src/_generated/models/GatewayBillingLog200Response.ts +0 -73
- package/src/_generated/models/GatewayBillingLogRequest.ts +0 -92
- package/src/_generated/models/GatewayGetWallet200Response.ts +0 -72
- package/src/_generated/models/IngestRequest.ts +0 -91
- package/src/_generated/models/JobRecord.ts +0 -119
- package/src/_generated/models/ListTypes200Response.ts +0 -72
- package/src/_generated/models/Query200Response.ts +0 -72
- package/src/_generated/models/QueryRequest.ts +0 -90
- package/src/_generated/models/QueueCancelJob200Response.ts +0 -73
- package/src/_generated/models/QueueEnqueue201Response.ts +0 -73
- package/src/_generated/models/QueueEnqueueRequest.ts +0 -83
- package/src/_generated/models/QueueGetJob200Response.ts +0 -80
- package/src/_generated/models/QueueGetJobRequest.ts +0 -66
- package/src/_generated/models/QueueListJobs200Response.ts +0 -88
- package/src/_generated/models/QueueListJobsRequest.ts +0 -103
- package/src/_generated/models/SearchCount200Response.ts +0 -65
- package/src/_generated/models/SearchCountRequest.ts +0 -65
- package/src/_generated/models/SearchGet200Response.ts +0 -80
- package/src/_generated/models/SearchGetRequest.ts +0 -66
- package/src/_generated/models/SearchResult.ts +0 -97
- package/src/_generated/models/SearchUpdateRequest.ts +0 -91
- package/src/_generated/models/ServicesInvoke200Response.ts +0 -73
- package/src/_generated/models/ServicesInvokeRequest.ts +0 -75
- package/src/_generated/models/StorageCopy200Response.ts +0 -73
- package/src/_generated/models/StorageCopyRequest.ts +0 -75
- package/src/_generated/models/StorageExists200Response.ts +0 -65
- package/src/_generated/models/StorageGetRequest.ts +0 -66
- package/src/_generated/models/StorageListRequest.ts +0 -81
- package/src/_generated/models/StorageListResult.ts +0 -88
- package/src/_generated/models/StorageMetadata.ts +0 -97
- package/src/_generated/models/StorageMove200Response.ts +0 -73
- package/src/_generated/models/StorageMoveRequest.ts +0 -75
- package/src/_generated/models/StorageObject.ts +0 -97
- package/src/_generated/models/StorageUpload200Response.ts +0 -65
- package/src/_generated/models/TokenUsage.ts +0 -81
- package/src/_generated/models/TokenWallet.ts +0 -73
- package/src/_generated/models/TypeStats.ts +0 -73
- package/src/_generated/models/User.ts +0 -97
- package/src/_generated/models/index.ts +0 -80
- package/src/_generated/runtime.ts +0 -431
- package/src/index.ts +0 -3
- package/src/realtime.ts +0 -439
- package/src/sdk.ts +0 -317
- package/test_sdk.ts +0 -19
- package/tsconfig.json +0 -43
|
@@ -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 CacheGetManyRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheGetManyRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Keys to fetch (max 100)
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof CacheGetManyRequest
|
|
26
|
-
*/
|
|
27
|
-
keys: Array<string>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the CacheGetManyRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfCacheGetManyRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "keys" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function CacheGetManyRequestFromJSON(json: any): CacheGetManyRequest {
|
|
41
|
-
return CacheGetManyRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function CacheGetManyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheGetManyRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'keys': json['keys'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function CacheGetManyRequestToJSON(value?: CacheGetManyRequest | 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,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 CacheGetRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheGetRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CacheGetRequest
|
|
26
|
-
*/
|
|
27
|
-
key: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the CacheGetRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfCacheGetRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "key" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function CacheGetRequestFromJSON(json: any): CacheGetRequest {
|
|
41
|
-
return CacheGetRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function CacheGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheGetRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'key': json['key'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function CacheGetRequestToJSON(value?: CacheGetRequest | 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,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 CacheIncrement200Response
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheIncrement200Response {
|
|
22
|
-
/**
|
|
23
|
-
* New value after increment
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof CacheIncrement200Response
|
|
26
|
-
*/
|
|
27
|
-
value?: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the CacheIncrement200Response interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfCacheIncrement200Response(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function CacheIncrement200ResponseFromJSON(json: any): CacheIncrement200Response {
|
|
40
|
-
return CacheIncrement200ResponseFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function CacheIncrement200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheIncrement200Response {
|
|
44
|
-
if ((json === undefined) || (json === null)) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
|
|
49
|
-
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function CacheIncrement200ResponseToJSON(value?: CacheIncrement200Response | null): any {
|
|
54
|
-
if (value === undefined) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'value': value.value,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,90 +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 CacheIncrementRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheIncrementRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CacheIncrementRequest
|
|
26
|
-
*/
|
|
27
|
-
key: string;
|
|
28
|
-
/**
|
|
29
|
-
* Amount to increment by (default 1, can be negative)
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof CacheIncrementRequest
|
|
32
|
-
*/
|
|
33
|
-
amount?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Starting value if key does not exist (default 0)
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof CacheIncrementRequest
|
|
38
|
-
*/
|
|
39
|
-
initialValue?: number;
|
|
40
|
-
/**
|
|
41
|
-
* TTL in seconds for newly created keys
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof CacheIncrementRequest
|
|
44
|
-
*/
|
|
45
|
-
ttl?: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the CacheIncrementRequest interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfCacheIncrementRequest(value: object): boolean {
|
|
52
|
-
let isInstance = true;
|
|
53
|
-
isInstance = isInstance && "key" in value;
|
|
54
|
-
|
|
55
|
-
return isInstance;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function CacheIncrementRequestFromJSON(json: any): CacheIncrementRequest {
|
|
59
|
-
return CacheIncrementRequestFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function CacheIncrementRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheIncrementRequest {
|
|
63
|
-
if ((json === undefined) || (json === null)) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'key': json['key'],
|
|
69
|
-
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
70
|
-
'initialValue': !exists(json, 'initialValue') ? undefined : json['initialValue'],
|
|
71
|
-
'ttl': !exists(json, 'ttl') ? undefined : json['ttl'],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function CacheIncrementRequestToJSON(value?: CacheIncrementRequest | null): any {
|
|
76
|
-
if (value === undefined) {
|
|
77
|
-
return undefined;
|
|
78
|
-
}
|
|
79
|
-
if (value === null) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'key': value.key,
|
|
85
|
-
'amount': value.amount,
|
|
86
|
-
'initialValue': value.initialValue,
|
|
87
|
-
'ttl': value.ttl,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -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 CacheKeyEntry
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheKeyEntry {
|
|
22
|
-
/**
|
|
23
|
-
* Cache key (project prefix stripped)
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CacheKeyEntry
|
|
26
|
-
*/
|
|
27
|
-
key?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Unix timestamp when this key expires (null if no TTL)
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof CacheKeyEntry
|
|
32
|
-
*/
|
|
33
|
-
expiration?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the CacheKeyEntry interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfCacheKeyEntry(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function CacheKeyEntryFromJSON(json: any): CacheKeyEntry {
|
|
46
|
-
return CacheKeyEntryFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CacheKeyEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheKeyEntry {
|
|
50
|
-
if ((json === undefined) || (json === null)) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
56
|
-
'expiration': !exists(json, 'expiration') ? undefined : json['expiration'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function CacheKeyEntryToJSON(value?: CacheKeyEntry | null): any {
|
|
61
|
-
if (value === undefined) {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'key': value.key,
|
|
70
|
-
'expiration': value.expiration,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -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 CacheKeys200Response
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheKeys200Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof CacheKeys200Response
|
|
26
|
-
*/
|
|
27
|
-
keys?: Array<string>;
|
|
28
|
-
/**
|
|
29
|
-
* True if the result was capped at 10,000 keys
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
* @memberof CacheKeys200Response
|
|
32
|
-
*/
|
|
33
|
-
truncated?: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the CacheKeys200Response interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfCacheKeys200Response(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function CacheKeys200ResponseFromJSON(json: any): CacheKeys200Response {
|
|
46
|
-
return CacheKeys200ResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CacheKeys200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheKeys200Response {
|
|
50
|
-
if ((json === undefined) || (json === null)) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'keys': !exists(json, 'keys') ? undefined : json['keys'],
|
|
56
|
-
'truncated': !exists(json, 'truncated') ? undefined : json['truncated'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function CacheKeys200ResponseToJSON(value?: CacheKeys200Response | null): any {
|
|
61
|
-
if (value === undefined) {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'keys': value.keys,
|
|
70
|
-
'truncated': value.truncated,
|
|
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 CacheKeysRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheKeysRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Key prefix to filter by
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CacheKeysRequest
|
|
26
|
-
*/
|
|
27
|
-
prefix?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the CacheKeysRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfCacheKeysRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function CacheKeysRequestFromJSON(json: any): CacheKeysRequest {
|
|
40
|
-
return CacheKeysRequestFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function CacheKeysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheKeysRequest {
|
|
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 CacheKeysRequestToJSON(value?: CacheKeysRequest | 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,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 CacheListRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CacheListRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Key prefix to filter by (e.g. "users:")
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CacheListRequest
|
|
26
|
-
*/
|
|
27
|
-
prefix?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Max keys to return per page (default 100, max 1000)
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof CacheListRequest
|
|
32
|
-
*/
|
|
33
|
-
limit?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Pagination cursor from previous response
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CacheListRequest
|
|
38
|
-
*/
|
|
39
|
-
cursor?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the CacheListRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfCacheListRequest(value: object): boolean {
|
|
46
|
-
let isInstance = true;
|
|
47
|
-
|
|
48
|
-
return isInstance;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function CacheListRequestFromJSON(json: any): CacheListRequest {
|
|
52
|
-
return CacheListRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function CacheListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheListRequest {
|
|
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 CacheListRequestToJSON(value?: CacheListRequest | 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 { CacheKeyEntry } from './CacheKeyEntry.js';
|
|
17
|
-
import {
|
|
18
|
-
CacheKeyEntryFromJSON,
|
|
19
|
-
CacheKeyEntryFromJSONTyped,
|
|
20
|
-
CacheKeyEntryToJSON,
|
|
21
|
-
} from './CacheKeyEntry.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface CacheListResult
|
|
27
|
-
*/
|
|
28
|
-
export interface CacheListResult {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<CacheKeyEntry>}
|
|
32
|
-
* @memberof CacheListResult
|
|
33
|
-
*/
|
|
34
|
-
keys?: Array<CacheKeyEntry>;
|
|
35
|
-
/**
|
|
36
|
-
* True if all keys were returned; false if more pages exist
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof CacheListResult
|
|
39
|
-
*/
|
|
40
|
-
listComplete?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Use this cursor to fetch the next page
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof CacheListResult
|
|
45
|
-
*/
|
|
46
|
-
cursor?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the CacheListResult interface.
|
|
51
|
-
*/
|
|
52
|
-
export function instanceOfCacheListResult(value: object): boolean {
|
|
53
|
-
let isInstance = true;
|
|
54
|
-
|
|
55
|
-
return isInstance;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function CacheListResultFromJSON(json: any): CacheListResult {
|
|
59
|
-
return CacheListResultFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function CacheListResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheListResult {
|
|
63
|
-
if ((json === undefined) || (json === null)) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'keys': !exists(json, 'keys') ? undefined : ((json['keys'] as Array<any>).map(CacheKeyEntryFromJSON)),
|
|
69
|
-
'listComplete': !exists(json, 'list_complete') ? undefined : json['list_complete'],
|
|
70
|
-
'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function CacheListResultToJSON(value?: CacheListResult | null): any {
|
|
75
|
-
if (value === undefined) {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
if (value === null) {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'keys': value.keys === undefined ? undefined : ((value.keys as Array<any>).map(CacheKeyEntryToJSON)),
|
|
84
|
-
'list_complete': value.listComplete,
|
|
85
|
-
'cursor': value.cursor,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|