@aerostack/sdk-node 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -2
- 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 QueueGetJobRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface QueueGetJobRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof QueueGetJobRequest
|
|
26
|
-
*/
|
|
27
|
-
jobId: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the QueueGetJobRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfQueueGetJobRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "jobId" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function QueueGetJobRequestFromJSON(json: any): QueueGetJobRequest {
|
|
41
|
-
return QueueGetJobRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function QueueGetJobRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueGetJobRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'jobId': json['jobId'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function QueueGetJobRequestToJSON(value?: QueueGetJobRequest | null): any {
|
|
55
|
-
if (value === undefined) {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'jobId': value.jobId,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -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 { JobRecord } from './JobRecord.js';
|
|
17
|
-
import {
|
|
18
|
-
JobRecordFromJSON,
|
|
19
|
-
JobRecordFromJSONTyped,
|
|
20
|
-
JobRecordToJSON,
|
|
21
|
-
} from './JobRecord.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface QueueListJobs200Response
|
|
27
|
-
*/
|
|
28
|
-
export interface QueueListJobs200Response {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<JobRecord>}
|
|
32
|
-
* @memberof QueueListJobs200Response
|
|
33
|
-
*/
|
|
34
|
-
jobs?: Array<JobRecord>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof QueueListJobs200Response
|
|
39
|
-
*/
|
|
40
|
-
listComplete?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof QueueListJobs200Response
|
|
45
|
-
*/
|
|
46
|
-
cursor?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the QueueListJobs200Response interface.
|
|
51
|
-
*/
|
|
52
|
-
export function instanceOfQueueListJobs200Response(value: object): boolean {
|
|
53
|
-
let isInstance = true;
|
|
54
|
-
|
|
55
|
-
return isInstance;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function QueueListJobs200ResponseFromJSON(json: any): QueueListJobs200Response {
|
|
59
|
-
return QueueListJobs200ResponseFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function QueueListJobs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueListJobs200Response {
|
|
63
|
-
if ((json === undefined) || (json === null)) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'jobs': !exists(json, 'jobs') ? undefined : ((json['jobs'] as Array<any>).map(JobRecordFromJSON)),
|
|
69
|
-
'listComplete': !exists(json, 'list_complete') ? undefined : json['list_complete'],
|
|
70
|
-
'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function QueueListJobs200ResponseToJSON(value?: QueueListJobs200Response | null): any {
|
|
75
|
-
if (value === undefined) {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
if (value === null) {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'jobs': value.jobs === undefined ? undefined : ((value.jobs as Array<any>).map(JobRecordToJSON)),
|
|
84
|
-
'list_complete': value.listComplete,
|
|
85
|
-
'cursor': value.cursor,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
@@ -1,103 +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 QueueListJobsRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface QueueListJobsRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Filter by job status
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof QueueListJobsRequest
|
|
26
|
-
*/
|
|
27
|
-
status?: QueueListJobsRequestStatusEnum;
|
|
28
|
-
/**
|
|
29
|
-
* Filter by job type
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof QueueListJobsRequest
|
|
32
|
-
*/
|
|
33
|
-
type?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof QueueListJobsRequest
|
|
38
|
-
*/
|
|
39
|
-
limit?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Pagination cursor from previous response
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof QueueListJobsRequest
|
|
44
|
-
*/
|
|
45
|
-
cursor?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
export const QueueListJobsRequestStatusEnum = {
|
|
53
|
-
Queued: 'queued',
|
|
54
|
-
Processing: 'processing',
|
|
55
|
-
Completed: 'completed',
|
|
56
|
-
Failed: 'failed',
|
|
57
|
-
Cancelled: 'cancelled'
|
|
58
|
-
} as const;
|
|
59
|
-
export type QueueListJobsRequestStatusEnum = typeof QueueListJobsRequestStatusEnum[keyof typeof QueueListJobsRequestStatusEnum];
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the QueueListJobsRequest interface.
|
|
64
|
-
*/
|
|
65
|
-
export function instanceOfQueueListJobsRequest(value: object): boolean {
|
|
66
|
-
let isInstance = true;
|
|
67
|
-
|
|
68
|
-
return isInstance;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function QueueListJobsRequestFromJSON(json: any): QueueListJobsRequest {
|
|
72
|
-
return QueueListJobsRequestFromJSONTyped(json, false);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function QueueListJobsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueListJobsRequest {
|
|
76
|
-
if ((json === undefined) || (json === null)) {
|
|
77
|
-
return json;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
|
|
81
|
-
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
82
|
-
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
83
|
-
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
84
|
-
'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function QueueListJobsRequestToJSON(value?: QueueListJobsRequest | null): any {
|
|
89
|
-
if (value === undefined) {
|
|
90
|
-
return undefined;
|
|
91
|
-
}
|
|
92
|
-
if (value === null) {
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
|
|
97
|
-
'status': value.status,
|
|
98
|
-
'type': value.type,
|
|
99
|
-
'limit': value.limit,
|
|
100
|
-
'cursor': value.cursor,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
@@ -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 SearchCount200Response
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchCount200Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof SearchCount200Response
|
|
26
|
-
*/
|
|
27
|
-
count?: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the SearchCount200Response interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfSearchCount200Response(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function SearchCount200ResponseFromJSON(json: any): SearchCount200Response {
|
|
40
|
-
return SearchCount200ResponseFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function SearchCount200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCount200Response {
|
|
44
|
-
if ((json === undefined) || (json === null)) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
|
|
49
|
-
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function SearchCount200ResponseToJSON(value?: SearchCount200Response | null): any {
|
|
54
|
-
if (value === undefined) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'count': value.count,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -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 SearchCountRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchCountRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Filter count by type (omit for total count)
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SearchCountRequest
|
|
26
|
-
*/
|
|
27
|
-
type?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the SearchCountRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfSearchCountRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function SearchCountRequestFromJSON(json: any): SearchCountRequest {
|
|
40
|
-
return SearchCountRequestFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function SearchCountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCountRequest {
|
|
44
|
-
if ((json === undefined) || (json === null)) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
|
|
49
|
-
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function SearchCountRequestToJSON(value?: SearchCountRequest | null): any {
|
|
54
|
-
if (value === undefined) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'type': value.type,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -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 { SearchResult } from './SearchResult.js';
|
|
17
|
-
import {
|
|
18
|
-
SearchResultFromJSON,
|
|
19
|
-
SearchResultFromJSONTyped,
|
|
20
|
-
SearchResultToJSON,
|
|
21
|
-
} from './SearchResult.js';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface SearchGet200Response
|
|
27
|
-
*/
|
|
28
|
-
export interface SearchGet200Response {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {SearchResult}
|
|
32
|
-
* @memberof SearchGet200Response
|
|
33
|
-
*/
|
|
34
|
-
result?: SearchResult | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof SearchGet200Response
|
|
39
|
-
*/
|
|
40
|
-
_exists?: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the SearchGet200Response interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfSearchGet200Response(value: object): boolean {
|
|
47
|
-
let isInstance = true;
|
|
48
|
-
|
|
49
|
-
return isInstance;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function SearchGet200ResponseFromJSON(json: any): SearchGet200Response {
|
|
53
|
-
return SearchGet200ResponseFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function SearchGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchGet200Response {
|
|
57
|
-
if ((json === undefined) || (json === null)) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'result': !exists(json, 'result') ? undefined : SearchResultFromJSON(json['result']),
|
|
63
|
-
'_exists': !exists(json, 'exists') ? undefined : json['exists'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function SearchGet200ResponseToJSON(value?: SearchGet200Response | null): any {
|
|
68
|
-
if (value === undefined) {
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'result': SearchResultToJSON(value.result),
|
|
77
|
-
'exists': value._exists,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
@@ -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 SearchGetRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchGetRequest {
|
|
22
|
-
/**
|
|
23
|
-
* ID of the item to retrieve
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SearchGetRequest
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the SearchGetRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfSearchGetRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "id" in value;
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function SearchGetRequestFromJSON(json: any): SearchGetRequest {
|
|
41
|
-
return SearchGetRequestFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function SearchGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchGetRequest {
|
|
45
|
-
if ((json === undefined) || (json === null)) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
|
|
50
|
-
'id': json['id'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function SearchGetRequestToJSON(value?: SearchGetRequest | 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,97 +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 SearchResult
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchResult {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SearchResult
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof SearchResult
|
|
32
|
-
*/
|
|
33
|
-
content?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof SearchResult
|
|
38
|
-
*/
|
|
39
|
-
score?: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SearchResult
|
|
44
|
-
*/
|
|
45
|
-
type?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {{ [key: string]: any; }}
|
|
49
|
-
* @memberof SearchResult
|
|
50
|
-
*/
|
|
51
|
-
metadata?: { [key: string]: any; } | null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the SearchResult interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfSearchResult(value: object): boolean {
|
|
58
|
-
let isInstance = true;
|
|
59
|
-
|
|
60
|
-
return isInstance;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function SearchResultFromJSON(json: any): SearchResult {
|
|
64
|
-
return SearchResultFromJSONTyped(json, false);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function SearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResult {
|
|
68
|
-
if ((json === undefined) || (json === null)) {
|
|
69
|
-
return json;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
74
|
-
'content': !exists(json, 'content') ? undefined : json['content'],
|
|
75
|
-
'score': !exists(json, 'score') ? undefined : json['score'],
|
|
76
|
-
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
77
|
-
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function SearchResultToJSON(value?: SearchResult | null): any {
|
|
82
|
-
if (value === undefined) {
|
|
83
|
-
return undefined;
|
|
84
|
-
}
|
|
85
|
-
if (value === null) {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
'id': value.id,
|
|
91
|
-
'content': value.content,
|
|
92
|
-
'score': value.score,
|
|
93
|
-
'type': value.type,
|
|
94
|
-
'metadata': value.metadata,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|