Skip to content

Commit 7c2e867

Browse files
committed
updates schema to v1.21.0-rc.1
1 parent 8ac971d commit 7c2e867

File tree

1 file changed

+68
-5
lines changed

1 file changed

+68
-5
lines changed

src/openapi/schema.ts

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export interface paths {
138138
'/schema/{className}/tenants': {
139139
/** get all tenants from a specific class */
140140
get: operations['tenants.get'];
141+
/** Update tenant of a specific class */
142+
put: operations['tenants.update'];
141143
/** Create a new tenant for a specific class */
142144
post: operations['tenants.create'];
143145
/** delete tenants from a specific class */
@@ -619,6 +621,19 @@ export interface definitions {
619621
*/
620622
objectCount?: number;
621623
};
624+
/** @description The summary of a nodes batch queue congestion status. */
625+
BatchStats: {
626+
/**
627+
* Format: int
628+
* @description How many objects are currently in the batch queue.
629+
*/
630+
queueLength?: number;
631+
/**
632+
* Format: int
633+
* @description How many objects are approximately processed from the batch queue per second.
634+
*/
635+
ratePerSecond?: number;
636+
};
622637
/** @description The definition of a node shard status response body */
623638
NodeShardStatus: {
624639
/** @description The name of the shard. */
@@ -647,6 +662,8 @@ export interface definitions {
647662
gitHash?: string;
648663
/** @description Weaviate overall statistics. */
649664
stats?: definitions['NodeStats'];
665+
/** @description Weaviate batch statistics. */
666+
batchStats?: definitions['BatchStats'];
650667
/** @description The list of the shards with it's statistics. */
651668
shards?: definitions['NodeShardStatus'][];
652669
};
@@ -1027,7 +1044,6 @@ export interface definitions {
10271044
| 'Or'
10281045
| 'Equal'
10291046
| 'Like'
1030-
| 'Not'
10311047
| 'NotEqual'
10321048
| 'GreaterThan'
10331049
| 'GreaterThanEqual'
@@ -1091,6 +1107,11 @@ export interface definitions {
10911107
Tenant: {
10921108
/** @description name of the tenant */
10931109
name?: string;
1110+
/**
1111+
* @description activity status of the tenant's shard. Optional for creating tenant (implicit `HOT`) and required for updating tenant. Allowed values are `HOT` - tenant is fully active, `WARM` - tenant is active, some restrictions are imposed (TBD; not supported yet), `COLD` - tenant is inactive; no actions can be performed on tenant, tenant's files are stored locally, `FROZEN` - as COLD, but files are stored on cloud storage (not supported yet)
1112+
* @enum {string}
1113+
*/
1114+
activityStatus?: 'HOT' | 'WARM' | 'COLD' | 'FROZEN';
10941115
};
10951116
}
10961117

@@ -1441,6 +1462,10 @@ export interface operations {
14411462
};
14421463
/** Successful query result but no resource was found. */
14431464
404: unknown;
1465+
/** Request is well-formed (i.e., syntactically correct), but erroneous. */
1466+
422: {
1467+
schema: definitions['ErrorResponse'];
1468+
};
14441469
/** An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. */
14451470
500: {
14461471
schema: definitions['ErrorResponse'];
@@ -1516,6 +1541,10 @@ export interface operations {
15161541
};
15171542
/** Successful query result but no resource was found. */
15181543
404: unknown;
1544+
/** Request is well-formed (i.e., syntactically correct), but erroneous. */
1545+
422: {
1546+
schema: definitions['ErrorResponse'];
1547+
};
15191548
/** An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. */
15201549
500: {
15211550
schema: definitions['ErrorResponse'];
@@ -1549,6 +1578,10 @@ export interface operations {
15491578
};
15501579
/** Object doesn't exist. */
15511580
404: unknown;
1581+
/** Request is well-formed (i.e., syntactically correct), but erroneous. */
1582+
422: {
1583+
schema: definitions['ErrorResponse'];
1584+
};
15521585
/** An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. */
15531586
500: {
15541587
schema: definitions['ErrorResponse'];
@@ -1577,7 +1610,9 @@ export interface operations {
15771610
/** Successfully applied. No content provided. */
15781611
204: never;
15791612
/** The patch-JSON is malformed. */
1580-
400: unknown;
1613+
400: {
1614+
schema: definitions['ErrorResponse'];
1615+
};
15811616
/** Unauthorized or invalid credentials. */
15821617
401: unknown;
15831618
/** Forbidden */
@@ -2184,9 +2219,6 @@ export interface operations {
21842219
path: {
21852220
className: string;
21862221
};
2187-
query: {
2188-
force?: boolean;
2189-
};
21902222
};
21912223
responses: {
21922224
/** Removed the Object class from the schema. */
@@ -2328,6 +2360,37 @@ export interface operations {
23282360
};
23292361
};
23302362
};
2363+
/** Update tenant of a specific class */
2364+
'tenants.update': {
2365+
parameters: {
2366+
path: {
2367+
className: string;
2368+
};
2369+
body: {
2370+
body: definitions['Tenant'][];
2371+
};
2372+
};
2373+
responses: {
2374+
/** Updated tenants of the specified class */
2375+
200: {
2376+
schema: definitions['Tenant'][];
2377+
};
2378+
/** Unauthorized or invalid credentials. */
2379+
401: unknown;
2380+
/** Forbidden */
2381+
403: {
2382+
schema: definitions['ErrorResponse'];
2383+
};
2384+
/** Invalid Tenant class */
2385+
422: {
2386+
schema: definitions['ErrorResponse'];
2387+
};
2388+
/** An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error. */
2389+
500: {
2390+
schema: definitions['ErrorResponse'];
2391+
};
2392+
};
2393+
};
23312394
/** Create a new tenant for a specific class */
23322395
'tenants.create': {
23332396
parameters: {

0 commit comments

Comments
 (0)