@openworkers/api-types 1.4.3 → 1.4.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +53 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openworkers/api-types",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
package/types.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Auto-generated TypeScript types from Zod schemas
3
3
  * DO NOT EDIT THIS FILE MANUALLY
4
- * Generated on: 2026-01-26T07:27:46.431Z
4
+ * Generated on: 2026-01-26T10:24:42.379Z
5
5
  * Repository: https://github.com/openworkers/openworkers-api.git
6
- * Version: 1.4.3
7
- * Build: eb30287388636db3efb2d1280230a6e33aef6907
6
+ * Version: 1.4.5
7
+ * Build: e1ce9ebdd6dd59aeae42a262cb074799c1c73ea4
8
8
  */
9
9
 
10
10
  // Global types
@@ -211,6 +211,56 @@ export type ITableDetails = { name: string; columns: IColumnInfo[] };
211
211
 
212
212
  export type ICreateTableInput = { name: string; columns: IColumnDefinition[] };
213
213
 
214
+ export type IDatabaseToken = {
215
+ id: string;
216
+ databaseId: string;
217
+ name: string;
218
+ tokenPrefix: string;
219
+ allowedOperations: (
220
+ | 'SELECT'
221
+ | 'INSERT'
222
+ | 'UPDATE'
223
+ | 'DELETE'
224
+ | 'CREATE'
225
+ | 'ALTER'
226
+ | 'DROP'
227
+ )[];
228
+ lastUsedAt: Date | null;
229
+ createdAt: Date;
230
+ };
231
+
232
+ export type IDatabaseTokenCreateInput = {
233
+ name: string;
234
+ allowedOperations: (
235
+ | 'SELECT'
236
+ | 'INSERT'
237
+ | 'UPDATE'
238
+ | 'DELETE'
239
+ | 'CREATE'
240
+ | 'ALTER'
241
+ | 'DROP'
242
+ )[];
243
+ };
244
+
245
+ export type IDatabaseTokenCreateResponse = {
246
+ id: string;
247
+ databaseId: string;
248
+ name: string;
249
+ tokenPrefix: string;
250
+ allowedOperations: (
251
+ | 'SELECT'
252
+ | 'INSERT'
253
+ | 'UPDATE'
254
+ | 'DELETE'
255
+ | 'CREATE'
256
+ | 'ALTER'
257
+ | 'DROP'
258
+ )[];
259
+ lastUsedAt: Date | null;
260
+ createdAt: Date;
261
+ token: string;
262
+ };
263
+
214
264
  export type IKvNamespace = IResource;
215
265
 
216
266
  export type IKvNamespaceCreateInput = {