@openworkers/api-types 1.0.3 → 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 +18 -11
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
|
};
|
|
@@ -132,3 +125,17 @@ export type IWorkerUpdateInput = {
|
|
|
132
125
|
};
|
|
133
126
|
|
|
134
127
|
export type IWorkerLanguage = 'javascript' | 'typescript';
|
|
128
|
+
|
|
129
|
+
export type IDatabase = {
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
desc?: (string | null) | undefined;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type IDatabaseCreateInput = {
|
|
138
|
+
name: string;
|
|
139
|
+
desc?: (string | null) | undefined;
|
|
140
|
+
max_rows?: number | undefined;
|
|
141
|
+
};
|