@openworkers/api-types 1.0.4 → 1.0.6
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 +1 -1
- package/types.d.ts +5 -20
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated TypeScript types from Zod schemas
|
|
3
3
|
* DO NOT EDIT THIS FILE MANUALLY
|
|
4
|
-
* Generated on: 2025-11-
|
|
4
|
+
* Generated on: 2025-11-29T13:34:35.990Z
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Global types
|
|
@@ -30,6 +30,7 @@ export type ISelf = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export type IResourceLimits = {
|
|
33
|
+
databases: number;
|
|
33
34
|
environments: number;
|
|
34
35
|
secondPrecision: boolean;
|
|
35
36
|
workers: number;
|
|
@@ -133,26 +134,10 @@ export type IWorkerUpdateInput = {
|
|
|
133
134
|
|
|
134
135
|
export type IWorkerLanguage = 'javascript' | 'typescript';
|
|
135
136
|
|
|
136
|
-
export type IDatabase =
|
|
137
|
-
createdAt: Date;
|
|
138
|
-
updatedAt: Date;
|
|
139
|
-
id: string;
|
|
140
|
-
name: string;
|
|
141
|
-
desc?: (string | null) | undefined;
|
|
142
|
-
schemaName?: (string | null) | undefined;
|
|
143
|
-
};
|
|
137
|
+
export type IDatabase = IResource;
|
|
144
138
|
|
|
145
139
|
export type IDatabaseCreateInput = {
|
|
146
140
|
name: string;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
timeout_seconds?: number | undefined;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export type IDatabaseRules = {
|
|
153
|
-
allowed_operations: ISqlOperation[];
|
|
154
|
-
max_rows: number;
|
|
155
|
-
timeout_seconds: number;
|
|
141
|
+
desc?: (string | null) | undefined;
|
|
142
|
+
maxRows?: number | undefined;
|
|
156
143
|
};
|
|
157
|
-
|
|
158
|
-
export type ISqlOperation = 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE';
|