@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,100 +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 { ChatMessage } from './ChatMessage.js';
|
|
17
|
-
import {
|
|
18
|
-
ChatMessageFromJSON,
|
|
19
|
-
ChatMessageFromJSONTyped,
|
|
20
|
-
ChatMessageToJSON,
|
|
21
|
-
} from './ChatMessage.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ChatCompletionResponseChoicesInner
|
|
27
|
-
*/
|
|
28
|
-
export interface ChatCompletionResponseChoicesInner {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof ChatCompletionResponseChoicesInner
|
|
33
|
-
*/
|
|
34
|
-
index?: number;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {ChatMessage}
|
|
38
|
-
* @memberof ChatCompletionResponseChoicesInner
|
|
39
|
-
*/
|
|
40
|
-
message?: ChatMessage;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof ChatCompletionResponseChoicesInner
|
|
45
|
-
*/
|
|
46
|
-
finishReason?: ChatCompletionResponseChoicesInnerFinishReasonEnum;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @export
|
|
52
|
-
*/
|
|
53
|
-
export const ChatCompletionResponseChoicesInnerFinishReasonEnum = {
|
|
54
|
-
Stop: 'stop',
|
|
55
|
-
Length: 'length',
|
|
56
|
-
ContentFilter: 'content_filter'
|
|
57
|
-
} as const;
|
|
58
|
-
export type ChatCompletionResponseChoicesInnerFinishReasonEnum = typeof ChatCompletionResponseChoicesInnerFinishReasonEnum[keyof typeof ChatCompletionResponseChoicesInnerFinishReasonEnum];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the ChatCompletionResponseChoicesInner interface.
|
|
63
|
-
*/
|
|
64
|
-
export function instanceOfChatCompletionResponseChoicesInner(value: object): boolean {
|
|
65
|
-
let isInstance = true;
|
|
66
|
-
|
|
67
|
-
return isInstance;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function ChatCompletionResponseChoicesInnerFromJSON(json: any): ChatCompletionResponseChoicesInner {
|
|
71
|
-
return ChatCompletionResponseChoicesInnerFromJSONTyped(json, false);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ChatCompletionResponseChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatCompletionResponseChoicesInner {
|
|
75
|
-
if ((json === undefined) || (json === null)) {
|
|
76
|
-
return json;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
|
|
80
|
-
'index': !exists(json, 'index') ? undefined : json['index'],
|
|
81
|
-
'message': !exists(json, 'message') ? undefined : ChatMessageFromJSON(json['message']),
|
|
82
|
-
'finishReason': !exists(json, 'finish_reason') ? undefined : json['finish_reason'],
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function ChatCompletionResponseChoicesInnerToJSON(value?: ChatCompletionResponseChoicesInner | null): any {
|
|
87
|
-
if (value === undefined) {
|
|
88
|
-
return undefined;
|
|
89
|
-
}
|
|
90
|
-
if (value === null) {
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
'index': value.index,
|
|
96
|
-
'message': ChatMessageToJSON(value.message),
|
|
97
|
-
'finish_reason': value.finishReason,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,87 +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 ChatMessage
|
|
20
|
-
*/
|
|
21
|
-
export interface ChatMessage {
|
|
22
|
-
/**
|
|
23
|
-
* Message author role
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ChatMessage
|
|
26
|
-
*/
|
|
27
|
-
role: ChatMessageRoleEnum;
|
|
28
|
-
/**
|
|
29
|
-
* Message text content
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ChatMessage
|
|
32
|
-
*/
|
|
33
|
-
content: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export const ChatMessageRoleEnum = {
|
|
41
|
-
System: 'system',
|
|
42
|
-
User: 'user',
|
|
43
|
-
Assistant: 'assistant'
|
|
44
|
-
} as const;
|
|
45
|
-
export type ChatMessageRoleEnum = typeof ChatMessageRoleEnum[keyof typeof ChatMessageRoleEnum];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the ChatMessage interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfChatMessage(value: object): boolean {
|
|
52
|
-
let isInstance = true;
|
|
53
|
-
isInstance = isInstance && "role" in value;
|
|
54
|
-
isInstance = isInstance && "content" in value;
|
|
55
|
-
|
|
56
|
-
return isInstance;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ChatMessageFromJSON(json: any): ChatMessage {
|
|
60
|
-
return ChatMessageFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessage {
|
|
64
|
-
if ((json === undefined) || (json === null)) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'role': json['role'],
|
|
70
|
-
'content': json['content'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ChatMessageToJSON(value?: ChatMessage | null): any {
|
|
75
|
-
if (value === undefined) {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
if (value === null) {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'role': value.role,
|
|
84
|
-
'content': value.content,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
@@ -1,77 +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 ConfigureRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ConfigureRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ConfigureRequest
|
|
26
|
-
*/
|
|
27
|
-
embeddingModel: ConfigureRequestEmbeddingModelEnum;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export const ConfigureRequestEmbeddingModelEnum = {
|
|
35
|
-
English: 'english',
|
|
36
|
-
Multilingual: 'multilingual'
|
|
37
|
-
} as const;
|
|
38
|
-
export type ConfigureRequestEmbeddingModelEnum = typeof ConfigureRequestEmbeddingModelEnum[keyof typeof ConfigureRequestEmbeddingModelEnum];
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the ConfigureRequest interface.
|
|
43
|
-
*/
|
|
44
|
-
export function instanceOfConfigureRequest(value: object): boolean {
|
|
45
|
-
let isInstance = true;
|
|
46
|
-
isInstance = isInstance && "embeddingModel" in value;
|
|
47
|
-
|
|
48
|
-
return isInstance;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ConfigureRequestFromJSON(json: any): ConfigureRequest {
|
|
52
|
-
return ConfigureRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function ConfigureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigureRequest {
|
|
56
|
-
if ((json === undefined) || (json === null)) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'embeddingModel': json['embeddingModel'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ConfigureRequestToJSON(value?: ConfigureRequest | null): any {
|
|
66
|
-
if (value === undefined) {
|
|
67
|
-
return undefined;
|
|
68
|
-
}
|
|
69
|
-
if (value === null) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'embeddingModel': value.embeddingModel,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
@@ -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
|
-
import type { DbBatchRequestQueriesInner } from './DbBatchRequestQueriesInner.js';
|
|
17
|
-
import {
|
|
18
|
-
DbBatchRequestQueriesInnerFromJSON,
|
|
19
|
-
DbBatchRequestQueriesInnerFromJSONTyped,
|
|
20
|
-
DbBatchRequestQueriesInnerToJSON,
|
|
21
|
-
} from './DbBatchRequestQueriesInner.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface DbBatchRequest
|
|
27
|
-
*/
|
|
28
|
-
export interface DbBatchRequest {
|
|
29
|
-
/**
|
|
30
|
-
* Array of queries to execute (max 25)
|
|
31
|
-
* @type {Array<DbBatchRequestQueriesInner>}
|
|
32
|
-
* @memberof DbBatchRequest
|
|
33
|
-
*/
|
|
34
|
-
queries: Array<DbBatchRequestQueriesInner>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the DbBatchRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export function instanceOfDbBatchRequest(value: object): boolean {
|
|
41
|
-
let isInstance = true;
|
|
42
|
-
isInstance = isInstance && "queries" in value;
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function DbBatchRequestFromJSON(json: any): DbBatchRequest {
|
|
48
|
-
return DbBatchRequestFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function DbBatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbBatchRequest {
|
|
52
|
-
if ((json === undefined) || (json === null)) {
|
|
53
|
-
return json;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
|
|
57
|
-
'queries': ((json['queries'] as Array<any>).map(DbBatchRequestQueriesInnerFromJSON)),
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function DbBatchRequestToJSON(value?: DbBatchRequest | null): any {
|
|
62
|
-
if (value === undefined) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'queries': ((value.queries as Array<any>).map(DbBatchRequestQueriesInnerToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,74 +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 DbBatchRequestQueriesInner
|
|
20
|
-
*/
|
|
21
|
-
export interface DbBatchRequestQueriesInner {
|
|
22
|
-
/**
|
|
23
|
-
* SQL query to execute
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DbBatchRequestQueriesInner
|
|
26
|
-
*/
|
|
27
|
-
sql: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<any>}
|
|
31
|
-
* @memberof DbBatchRequestQueriesInner
|
|
32
|
-
*/
|
|
33
|
-
params?: Array<any>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the DbBatchRequestQueriesInner interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfDbBatchRequestQueriesInner(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
isInstance = isInstance && "sql" in value;
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function DbBatchRequestQueriesInnerFromJSON(json: any): DbBatchRequestQueriesInner {
|
|
47
|
-
return DbBatchRequestQueriesInnerFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function DbBatchRequestQueriesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbBatchRequestQueriesInner {
|
|
51
|
-
if ((json === undefined) || (json === null)) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
|
|
56
|
-
'sql': json['sql'],
|
|
57
|
-
'params': !exists(json, 'params') ? undefined : json['params'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function DbBatchRequestQueriesInnerToJSON(value?: DbBatchRequestQueriesInner | null): any {
|
|
62
|
-
if (value === undefined) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'sql': value.sql,
|
|
71
|
-
'params': value.params,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
@@ -1,80 +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 { DbBatchResultResultsInner } from './DbBatchResultResultsInner.js';
|
|
17
|
-
import {
|
|
18
|
-
DbBatchResultResultsInnerFromJSON,
|
|
19
|
-
DbBatchResultResultsInnerFromJSONTyped,
|
|
20
|
-
DbBatchResultResultsInnerToJSON,
|
|
21
|
-
} from './DbBatchResultResultsInner.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface DbBatchResult
|
|
27
|
-
*/
|
|
28
|
-
export interface DbBatchResult {
|
|
29
|
-
/**
|
|
30
|
-
* One entry per query, in request order
|
|
31
|
-
* @type {Array<DbBatchResultResultsInner>}
|
|
32
|
-
* @memberof DbBatchResult
|
|
33
|
-
*/
|
|
34
|
-
results?: Array<DbBatchResultResultsInner>;
|
|
35
|
-
/**
|
|
36
|
-
* True only if ALL queries succeeded
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof DbBatchResult
|
|
39
|
-
*/
|
|
40
|
-
success?: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the DbBatchResult interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfDbBatchResult(value: object): boolean {
|
|
47
|
-
let isInstance = true;
|
|
48
|
-
|
|
49
|
-
return isInstance;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DbBatchResultFromJSON(json: any): DbBatchResult {
|
|
53
|
-
return DbBatchResultFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DbBatchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbBatchResult {
|
|
57
|
-
if ((json === undefined) || (json === null)) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(DbBatchResultResultsInnerFromJSON)),
|
|
63
|
-
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function DbBatchResultToJSON(value?: DbBatchResult | null): any {
|
|
68
|
-
if (value === undefined) {
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(DbBatchResultResultsInnerToJSON)),
|
|
77
|
-
'success': value.success,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
@@ -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 DbBatchResultResultsInner
|
|
20
|
-
*/
|
|
21
|
-
export interface DbBatchResultResultsInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
25
|
-
* @memberof DbBatchResultResultsInner
|
|
26
|
-
*/
|
|
27
|
-
results?: Array<{ [key: string]: any; }>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
* @memberof DbBatchResultResultsInner
|
|
32
|
-
*/
|
|
33
|
-
success?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Error message if this query failed
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof DbBatchResultResultsInner
|
|
38
|
-
*/
|
|
39
|
-
error?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the DbBatchResultResultsInner interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfDbBatchResultResultsInner(value: object): boolean {
|
|
46
|
-
let isInstance = true;
|
|
47
|
-
|
|
48
|
-
return isInstance;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function DbBatchResultResultsInnerFromJSON(json: any): DbBatchResultResultsInner {
|
|
52
|
-
return DbBatchResultResultsInnerFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function DbBatchResultResultsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbBatchResultResultsInner {
|
|
56
|
-
if ((json === undefined) || (json === null)) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'results': !exists(json, 'results') ? undefined : json['results'],
|
|
62
|
-
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
63
|
-
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function DbBatchResultResultsInnerToJSON(value?: DbBatchResultResultsInner | null): any {
|
|
68
|
-
if (value === undefined) {
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'results': value.results,
|
|
77
|
-
'success': value.success,
|
|
78
|
-
'error': value.error,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
@@ -1,74 +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 DbQueryRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DbQueryRequest {
|
|
22
|
-
/**
|
|
23
|
-
* SQL query to execute
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DbQueryRequest
|
|
26
|
-
*/
|
|
27
|
-
sql: string;
|
|
28
|
-
/**
|
|
29
|
-
* Query parameters for prepared statements
|
|
30
|
-
* @type {Array<any>}
|
|
31
|
-
* @memberof DbQueryRequest
|
|
32
|
-
*/
|
|
33
|
-
params?: Array<any>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the DbQueryRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfDbQueryRequest(value: object): boolean {
|
|
40
|
-
let isInstance = true;
|
|
41
|
-
isInstance = isInstance && "sql" in value;
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function DbQueryRequestFromJSON(json: any): DbQueryRequest {
|
|
47
|
-
return DbQueryRequestFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function DbQueryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DbQueryRequest {
|
|
51
|
-
if ((json === undefined) || (json === null)) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
|
|
56
|
-
'sql': json['sql'],
|
|
57
|
-
'params': !exists(json, 'params') ? undefined : json['params'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function DbQueryRequestToJSON(value?: DbQueryRequest | null): any {
|
|
62
|
-
if (value === undefined) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'sql': value.sql,
|
|
71
|
-
'params': value.params,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|