@openworkers/api-types 1.0.4 → 1.0.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.
- package/package.json +1 -1
- package/types.d.ts +5 -22
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:11:31.983Z
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Global types
|
|
@@ -10,14 +10,6 @@ export type uuid = string;
|
|
|
10
10
|
export type timestamp = number;
|
|
11
11
|
export type Dictionary<T> = Record<string, T>;
|
|
12
12
|
|
|
13
|
-
export type IResource = {
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
desc?: (string | null) | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
13
|
export type ITimestamps = { createdAt: Date; updatedAt: Date };
|
|
22
14
|
|
|
23
15
|
export type ILoginResponse = { accessToken: string; refreshToken: string };
|
|
@@ -30,6 +22,7 @@ export type ISelf = {
|
|
|
30
22
|
};
|
|
31
23
|
|
|
32
24
|
export type IResourceLimits = {
|
|
25
|
+
databases: number;
|
|
33
26
|
environments: number;
|
|
34
27
|
secondPrecision: boolean;
|
|
35
28
|
workers: number;
|
|
@@ -42,7 +35,7 @@ export type IEnvironment = {
|
|
|
42
35
|
name: string;
|
|
43
36
|
desc?: (string | null) | undefined;
|
|
44
37
|
values?: (IEnvironmentValue[] | null) | undefined;
|
|
45
|
-
workers?: (
|
|
38
|
+
workers?: (IDatabase[] | null) | undefined;
|
|
46
39
|
};
|
|
47
40
|
|
|
48
41
|
export type IEnvironmentCreateInput = {
|
|
@@ -111,7 +104,7 @@ export type IWorker = {
|
|
|
111
104
|
desc?: (string | null) | undefined;
|
|
112
105
|
language: IWorkerLanguage;
|
|
113
106
|
script: string;
|
|
114
|
-
environment?: (
|
|
107
|
+
environment?: (IDatabase | undefined) | null;
|
|
115
108
|
crons?: ICron[] | undefined;
|
|
116
109
|
domains?: { name: string }[] | undefined;
|
|
117
110
|
};
|
|
@@ -139,20 +132,10 @@ export type IDatabase = {
|
|
|
139
132
|
id: string;
|
|
140
133
|
name: string;
|
|
141
134
|
desc?: (string | null) | undefined;
|
|
142
|
-
schemaName?: (string | null) | undefined;
|
|
143
135
|
};
|
|
144
136
|
|
|
145
137
|
export type IDatabaseCreateInput = {
|
|
146
138
|
name: string;
|
|
147
|
-
|
|
139
|
+
desc?: (string | null) | undefined;
|
|
148
140
|
max_rows?: number | undefined;
|
|
149
|
-
timeout_seconds?: number | undefined;
|
|
150
141
|
};
|
|
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';
|