@openworkers/api-types 1.0.3 → 1.0.4
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 +25 -1
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-28T15:05:03.549Z
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Global types
|
|
@@ -132,3 +132,27 @@ export type IWorkerUpdateInput = {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
export type IWorkerLanguage = 'javascript' | 'typescript';
|
|
135
|
+
|
|
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
|
+
};
|
|
144
|
+
|
|
145
|
+
export type IDatabaseCreateInput = {
|
|
146
|
+
name: string;
|
|
147
|
+
allowed_operations?: ISqlOperation[] | undefined;
|
|
148
|
+
max_rows?: number | undefined;
|
|
149
|
+
timeout_seconds?: number | undefined;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type IDatabaseRules = {
|
|
153
|
+
allowed_operations: ISqlOperation[];
|
|
154
|
+
max_rows: number;
|
|
155
|
+
timeout_seconds: number;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type ISqlOperation = 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE';
|