@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.
- 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,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 DbQueryResult
|
|
20
|
-
*/
|
|
21
|
-
export interface DbQueryResult {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
25
|
-
* @memberof DbQueryResult
|
|
26
|
-
*/
|
|
27
|
-
results?: Array<{ [key: string]: any; }>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof DbQueryResult
|
|
32
|
-
*/
|
|
33
|
-
count?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the DbQueryResult interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfDbQueryResult(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function DbQueryResultFromJSON(json: any): DbQueryResult {
|
|
46
|
-
return DbQueryResultFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function DbQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbQueryResult {
|
|
50
|
-
if ((json === undefined) || (json === null)) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'results': !exists(json, 'results') ? undefined : json['results'],
|
|
56
|
-
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function DbQueryResultToJSON(value?: DbQueryResult | 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,
|
|
70
|
-
'count': value.count,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -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 DeleteByTypeRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DeleteByTypeRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DeleteByTypeRequest
|
|
26
|
-
*/
|
|
27
|
-
type: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DeleteByTypeRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDeleteByTypeRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "type" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function DeleteByTypeRequestFromJSON(json: any): DeleteByTypeRequest {
|
|
41
|
-
return DeleteByTypeRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function DeleteByTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteByTypeRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'type': json['type'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function DeleteByTypeRequestToJSON(value?: DeleteByTypeRequest | null): any {
|
|
55
|
-
if (value === undefined) {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'type': value.type,
|
|
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 DeleteRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DeleteRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DeleteRequest
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DeleteRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDeleteRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "id" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function DeleteRequestFromJSON(json: any): DeleteRequest {
|
|
41
|
-
return DeleteRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function DeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'id': json['id'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function DeleteRequestToJSON(value?: DeleteRequest | null): any {
|
|
55
|
-
if (value === undefined) {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'id': value.id,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,99 +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 ErrorResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface ErrorResponse {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ErrorResponse
|
|
26
|
-
*/
|
|
27
|
-
code: ErrorResponseCodeEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ErrorResponse
|
|
32
|
-
*/
|
|
33
|
-
message: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {{ [key: string]: any; }}
|
|
37
|
-
* @memberof ErrorResponse
|
|
38
|
-
*/
|
|
39
|
-
details?: { [key: string]: any; } | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export const ErrorResponseCodeEnum = {
|
|
47
|
-
AuthInvalidKey: 'AUTH_INVALID_KEY',
|
|
48
|
-
AuthInvalidCredentials: 'AUTH_INVALID_CREDENTIALS',
|
|
49
|
-
DbQueryFailed: 'DB_QUERY_FAILED',
|
|
50
|
-
RateLimitExceeded: 'RATE_LIMIT_EXCEEDED',
|
|
51
|
-
ValidationError: 'VALIDATION_ERROR',
|
|
52
|
-
InternalError: 'INTERNAL_ERROR',
|
|
53
|
-
Forbidden: 'FORBIDDEN'
|
|
54
|
-
} as const;
|
|
55
|
-
export type ErrorResponseCodeEnum = typeof ErrorResponseCodeEnum[keyof typeof ErrorResponseCodeEnum];
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Check if a given object implements the ErrorResponse interface.
|
|
60
|
-
*/
|
|
61
|
-
export function instanceOfErrorResponse(value: object): boolean {
|
|
62
|
-
let isInstance = true;
|
|
63
|
-
isInstance = isInstance && "code" in value;
|
|
64
|
-
isInstance = isInstance && "message" in value;
|
|
65
|
-
|
|
66
|
-
return isInstance;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function ErrorResponseFromJSON(json: any): ErrorResponse {
|
|
70
|
-
return ErrorResponseFromJSONTyped(json, false);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {
|
|
74
|
-
if ((json === undefined) || (json === null)) {
|
|
75
|
-
return json;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'code': json['code'],
|
|
80
|
-
'message': json['message'],
|
|
81
|
-
'details': !exists(json, 'details') ? undefined : json['details'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function ErrorResponseToJSON(value?: ErrorResponse | null): any {
|
|
86
|
-
if (value === undefined) {
|
|
87
|
-
return undefined;
|
|
88
|
-
}
|
|
89
|
-
if (value === null) {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
'code': value.code,
|
|
95
|
-
'message': value.message,
|
|
96
|
-
'details': value.details,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
@@ -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 GatewayBillingLog200Response
|
|
20
|
-
*/
|
|
21
|
-
export interface GatewayBillingLog200Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof GatewayBillingLog200Response
|
|
26
|
-
*/
|
|
27
|
-
success?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof GatewayBillingLog200Response
|
|
32
|
-
*/
|
|
33
|
-
loggedUnits?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the GatewayBillingLog200Response interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfGatewayBillingLog200Response(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function GatewayBillingLog200ResponseFromJSON(json: any): GatewayBillingLog200Response {
|
|
46
|
-
return GatewayBillingLog200ResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function GatewayBillingLog200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayBillingLog200Response {
|
|
50
|
-
if ((json === undefined) || (json === null)) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
56
|
-
'loggedUnits': !exists(json, 'loggedUnits') ? undefined : json['loggedUnits'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function GatewayBillingLog200ResponseToJSON(value?: GatewayBillingLog200Response | 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
|
-
'loggedUnits': value.loggedUnits,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,92 +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 GatewayBillingLogRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface GatewayBillingLogRequest {
|
|
22
|
-
/**
|
|
23
|
-
* The Consumer ID making the request
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof GatewayBillingLogRequest
|
|
26
|
-
*/
|
|
27
|
-
consumerId: string;
|
|
28
|
-
/**
|
|
29
|
-
* The Developer Gateway API ID being consumed
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof GatewayBillingLogRequest
|
|
32
|
-
*/
|
|
33
|
-
apiId: string;
|
|
34
|
-
/**
|
|
35
|
-
* Optional metric name (default: 'units')
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof GatewayBillingLogRequest
|
|
38
|
-
*/
|
|
39
|
-
metric?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Amount of usage to log
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof GatewayBillingLogRequest
|
|
44
|
-
*/
|
|
45
|
-
units: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the GatewayBillingLogRequest interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfGatewayBillingLogRequest(value: object): boolean {
|
|
52
|
-
let isInstance = true;
|
|
53
|
-
isInstance = isInstance && "consumerId" in value;
|
|
54
|
-
isInstance = isInstance && "apiId" in value;
|
|
55
|
-
isInstance = isInstance && "units" in value;
|
|
56
|
-
|
|
57
|
-
return isInstance;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function GatewayBillingLogRequestFromJSON(json: any): GatewayBillingLogRequest {
|
|
61
|
-
return GatewayBillingLogRequestFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function GatewayBillingLogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayBillingLogRequest {
|
|
65
|
-
if ((json === undefined) || (json === null)) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'consumerId': json['consumerId'],
|
|
71
|
-
'apiId': json['apiId'],
|
|
72
|
-
'metric': !exists(json, 'metric') ? undefined : json['metric'],
|
|
73
|
-
'units': json['units'],
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function GatewayBillingLogRequestToJSON(value?: GatewayBillingLogRequest | null): any {
|
|
78
|
-
if (value === undefined) {
|
|
79
|
-
return undefined;
|
|
80
|
-
}
|
|
81
|
-
if (value === null) {
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'consumerId': value.consumerId,
|
|
87
|
-
'apiId': value.apiId,
|
|
88
|
-
'metric': value.metric,
|
|
89
|
-
'units': value.units,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
@@ -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 { TokenWallet } from './TokenWallet.js';
|
|
17
|
-
import {
|
|
18
|
-
TokenWalletFromJSON,
|
|
19
|
-
TokenWalletFromJSONTyped,
|
|
20
|
-
TokenWalletToJSON,
|
|
21
|
-
} from './TokenWallet.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface GatewayGetWallet200Response
|
|
27
|
-
*/
|
|
28
|
-
export interface GatewayGetWallet200Response {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {TokenWallet}
|
|
32
|
-
* @memberof GatewayGetWallet200Response
|
|
33
|
-
*/
|
|
34
|
-
wallet?: TokenWallet;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the GatewayGetWallet200Response interface.
|
|
39
|
-
*/
|
|
40
|
-
export function instanceOfGatewayGetWallet200Response(value: object): boolean {
|
|
41
|
-
let isInstance = true;
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function GatewayGetWallet200ResponseFromJSON(json: any): GatewayGetWallet200Response {
|
|
47
|
-
return GatewayGetWallet200ResponseFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function GatewayGetWallet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayGetWallet200Response {
|
|
51
|
-
if ((json === undefined) || (json === null)) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
|
|
56
|
-
'wallet': !exists(json, 'wallet') ? undefined : TokenWalletFromJSON(json['wallet']),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function GatewayGetWallet200ResponseToJSON(value?: GatewayGetWallet200Response | null): any {
|
|
61
|
-
if (value === undefined) {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'wallet': TokenWalletToJSON(value.wallet),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
@@ -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 IngestRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IngestRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Text content to index
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof IngestRequest
|
|
26
|
-
*/
|
|
27
|
-
content: string;
|
|
28
|
-
/**
|
|
29
|
-
* Optional custom ID
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IngestRequest
|
|
32
|
-
*/
|
|
33
|
-
id?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Category/type of content
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof IngestRequest
|
|
38
|
-
*/
|
|
39
|
-
type: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {{ [key: string]: any; }}
|
|
43
|
-
* @memberof IngestRequest
|
|
44
|
-
*/
|
|
45
|
-
metadata?: { [key: string]: any; } | null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the IngestRequest interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfIngestRequest(value: object): boolean {
|
|
52
|
-
let isInstance = true;
|
|
53
|
-
isInstance = isInstance && "content" in value;
|
|
54
|
-
isInstance = isInstance && "type" in value;
|
|
55
|
-
|
|
56
|
-
return isInstance;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IngestRequestFromJSON(json: any): IngestRequest {
|
|
60
|
-
return IngestRequestFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IngestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestRequest {
|
|
64
|
-
if ((json === undefined) || (json === null)) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'content': json['content'],
|
|
70
|
-
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
71
|
-
'type': json['type'],
|
|
72
|
-
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function IngestRequestToJSON(value?: IngestRequest | null): any {
|
|
77
|
-
if (value === undefined) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
if (value === null) {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
|
|
85
|
-
'content': value.content,
|
|
86
|
-
'id': value.id,
|
|
87
|
-
'type': value.type,
|
|
88
|
-
'metadata': value.metadata,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|