@flowrunner/cli 0.1.9-dev.2 → 0.1.10-dev.1
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/ai-docs/instructions/service-code-format/03-parameters.md +22 -7
- package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +4 -1
- package/ai-docs/instructions/service-code-format/16-gotchas.md +8 -0
- package/dist/cli.js +10398 -32
- package/dist/cli.js.map +4 -4
- package/dist/index.js +10367 -25
- package/dist/index.js.map +4 -4
- package/dist/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/dist/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/dist/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +1 -1
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/package.json +1 -4
- package/runtime/index.js +10356 -4
- package/runtime/index.js.map +4 -4
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/runtime/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +1 -1
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/templates/qa-test/files/src/index.js +7 -5
|
@@ -6,6 +6,18 @@ export declare const SharedExtensionStatuses: {
|
|
|
6
6
|
readonly MISSING_DB: "missing_db";
|
|
7
7
|
};
|
|
8
8
|
export type SharedExtensionStatusesT = typeof SharedExtensionStatuses[keyof typeof SharedExtensionStatuses];
|
|
9
|
+
export declare const SharedExtensionListStatuses: {
|
|
10
|
+
readonly UP_TO_DATE: "up_to_date";
|
|
11
|
+
readonly UPDATE_AVAILABLE: "update_available";
|
|
12
|
+
readonly LEGACY: "legacy";
|
|
13
|
+
};
|
|
14
|
+
export type SharedExtensionListStatusesT = typeof SharedExtensionListStatuses[keyof typeof SharedExtensionListStatuses];
|
|
15
|
+
export declare const SharedExtensionConfigStatuses: {
|
|
16
|
+
readonly CONFIGURED: "configured";
|
|
17
|
+
readonly MISSING: "missing";
|
|
18
|
+
readonly NOT_NEEDED: "not_needed";
|
|
19
|
+
};
|
|
20
|
+
export type SharedExtensionConfigStatusesT = typeof SharedExtensionConfigStatuses[keyof typeof SharedExtensionConfigStatuses];
|
|
9
21
|
export declare const SharedExtensionRegisterAs: {
|
|
10
22
|
readonly ACTION: "ACTION";
|
|
11
23
|
readonly DICTIONARY: "DICTIONARY";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import '../../extensions/zod';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const AccessKeyStatus: {
|
|
4
|
+
readonly ACTIVE: "active";
|
|
5
|
+
readonly REVOKED: "revoked";
|
|
6
|
+
};
|
|
7
|
+
export type AccessKeyStatus = typeof AccessKeyStatus[keyof typeof AccessKeyStatus];
|
|
8
|
+
export declare const AccessKeyStatusSchema: z.ZodEnum<{
|
|
9
|
+
readonly ACTIVE: "active";
|
|
10
|
+
readonly REVOKED: "revoked";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const AccessKeyRole: {
|
|
13
|
+
readonly INTERNAL: "INTERNAL";
|
|
14
|
+
readonly PUBLIC: "PUBLIC";
|
|
15
|
+
};
|
|
16
|
+
export type AccessKeyRole = typeof AccessKeyRole[keyof typeof AccessKeyRole];
|
|
17
|
+
export declare const AccessKeyRoleSchema: z.ZodEnum<{
|
|
18
|
+
readonly INTERNAL: "INTERNAL";
|
|
19
|
+
readonly PUBLIC: "PUBLIC";
|
|
20
|
+
}>;
|
|
21
|
+
export declare const AccessKeyTransport: {
|
|
22
|
+
readonly HEADER: "header";
|
|
23
|
+
readonly QUERY: "query";
|
|
24
|
+
readonly PATH: "path";
|
|
25
|
+
};
|
|
26
|
+
export type AccessKeyTransport = typeof AccessKeyTransport[keyof typeof AccessKeyTransport];
|
|
27
|
+
export declare const AccessKeyTransportSchema: z.ZodEnum<{
|
|
28
|
+
readonly HEADER: "header";
|
|
29
|
+
readonly QUERY: "query";
|
|
30
|
+
readonly PATH: "path";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const DEFAULT_NEW_KEY_TRANSPORTS: AccessKeyTransport[];
|
|
33
|
+
export declare const AccessKeyScopeSchema: z.ZodObject<{
|
|
34
|
+
flows: z.ZodArray<z.ZodString>;
|
|
35
|
+
ipRanges: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type AccessKeyScope = z.infer<typeof AccessKeyScopeSchema>;
|
|
38
|
+
export declare const AccessKeyLimitsSchema: z.ZodObject<{
|
|
39
|
+
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type AccessKeyLimits = z.infer<typeof AccessKeyLimitsSchema>;
|
|
44
|
+
export declare const AccessKeySchema: z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
label: z.ZodString;
|
|
47
|
+
secret: z.ZodString;
|
|
48
|
+
prefix: z.ZodString;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
readonly ACTIVE: "active";
|
|
51
|
+
readonly REVOKED: "revoked";
|
|
52
|
+
}>;
|
|
53
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
readonly INTERNAL: "INTERNAL";
|
|
55
|
+
readonly PUBLIC: "PUBLIC";
|
|
56
|
+
}>>;
|
|
57
|
+
createdAt: z.ZodNumber;
|
|
58
|
+
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
flows: z.ZodArray<z.ZodString>;
|
|
61
|
+
ipRanges: z.ZodArray<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
69
|
+
readonly HEADER: "header";
|
|
70
|
+
readonly QUERY: "query";
|
|
71
|
+
readonly PATH: "path";
|
|
72
|
+
}>>>;
|
|
73
|
+
usageThisMonth: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type AccessKey = z.infer<typeof AccessKeySchema>;
|
|
76
|
+
export declare const NewAccessKeySchema: z.ZodObject<{
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type NewAccessKey = z.infer<typeof NewAccessKeySchema>;
|
|
80
|
+
export declare const UpdateAccessKeySchema: z.ZodObject<{
|
|
81
|
+
label: z.ZodOptional<z.ZodString>;
|
|
82
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
+
flows: z.ZodArray<z.ZodString>;
|
|
84
|
+
ipRanges: z.ZodArray<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
87
|
+
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
transports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
92
|
+
readonly HEADER: "header";
|
|
93
|
+
readonly QUERY: "query";
|
|
94
|
+
readonly PATH: "path";
|
|
95
|
+
}>>>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type UpdateAccessKey = z.infer<typeof UpdateAccessKeySchema>;
|
|
98
|
+
export declare const AccessKeysWorkspaceStateSchema: z.ZodObject<{
|
|
99
|
+
externalInvocationSuspended: z.ZodBoolean;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type AccessKeysWorkspaceState = z.infer<typeof AccessKeysWorkspaceStateSchema>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const MCPOAuthClientInfoJavaDTOSchema: z.ZodObject<{
|
|
3
|
+
client_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
is_mcp: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
|
+
approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
logo_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
redirect_uris: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
|
-
export type
|
|
9
|
+
export type MCPOAuthClientInfoJavaDTO = z.infer<typeof MCPOAuthClientInfoJavaDTOSchema>;
|
|
@@ -90,8 +90,8 @@ export declare const CustomExtensionDTOSchema: z.ZodObject<{
|
|
|
90
90
|
export declare const CustomExtensionVersionDetailSchema: z.ZodObject<{
|
|
91
91
|
serviceId: z.ZodString;
|
|
92
92
|
enabled: z.ZodBoolean;
|
|
93
|
-
serviceName: z.ZodString;
|
|
94
93
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
94
|
+
serviceName: z.ZodString;
|
|
95
95
|
sourceHash: z.ZodString;
|
|
96
96
|
serviceInfo: z.ZodObject<{
|
|
97
97
|
serviceClassName: z.ZodString;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SHARED_EXTENSIONS_LIST_MAX_LIMIT = 100;
|
|
3
|
+
export declare const SharedExtensionListStatusSchema: z.ZodEnum<{
|
|
4
|
+
up_to_date: "up_to_date";
|
|
5
|
+
update_available: "update_available";
|
|
6
|
+
legacy: "legacy";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const SharedExtensionConfigStatusSchema: z.ZodEnum<{
|
|
9
|
+
configured: "configured";
|
|
10
|
+
missing: "missing";
|
|
11
|
+
not_needed: "not_needed";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const InstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
14
|
+
name: "name";
|
|
15
|
+
serviceId: "serviceId";
|
|
16
|
+
status: "status";
|
|
17
|
+
updatedAt: "updatedAt";
|
|
18
|
+
runnerVersion: "runnerVersion";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const InstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
21
|
+
runnerVersion: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
v1: "v1";
|
|
23
|
+
v2: "v2";
|
|
24
|
+
}>>;
|
|
25
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
up_to_date: "up_to_date";
|
|
27
|
+
update_available: "update_available";
|
|
28
|
+
legacy: "legacy";
|
|
29
|
+
}>>;
|
|
30
|
+
oauth: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
true: "true";
|
|
32
|
+
false: "false";
|
|
33
|
+
}>>;
|
|
34
|
+
config: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
configured: "configured";
|
|
36
|
+
missing: "missing";
|
|
37
|
+
}>>;
|
|
38
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
39
|
+
name: "name";
|
|
40
|
+
serviceId: "serviceId";
|
|
41
|
+
status: "status";
|
|
42
|
+
updatedAt: "updatedAt";
|
|
43
|
+
runnerVersion: "runnerVersion";
|
|
44
|
+
}>>;
|
|
45
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
asc: "asc";
|
|
47
|
+
desc: "desc";
|
|
48
|
+
}>>;
|
|
49
|
+
search: z.ZodOptional<z.ZodString>;
|
|
50
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
51
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const InstalledSharedExtensionListItemSchema: z.ZodObject<{
|
|
54
|
+
serviceId: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
sourceHash: z.ZodString;
|
|
57
|
+
sourceLatestHash: z.ZodNullable<z.ZodString>;
|
|
58
|
+
runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
v1: "v1";
|
|
60
|
+
v2: "v2";
|
|
61
|
+
}>>>;
|
|
62
|
+
enabled: z.ZodBoolean;
|
|
63
|
+
status: z.ZodEnum<{
|
|
64
|
+
up_to_date: "up_to_date";
|
|
65
|
+
update_available: "update_available";
|
|
66
|
+
legacy: "legacy";
|
|
67
|
+
}>;
|
|
68
|
+
requireOAuth: z.ZodBoolean;
|
|
69
|
+
configStatus: z.ZodEnum<{
|
|
70
|
+
configured: "configured";
|
|
71
|
+
missing: "missing";
|
|
72
|
+
not_needed: "not_needed";
|
|
73
|
+
}>;
|
|
74
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
75
|
+
updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const InstalledSharedExtensionsCountsSchema: z.ZodObject<{
|
|
78
|
+
all: z.ZodNumber;
|
|
79
|
+
runner: z.ZodObject<{
|
|
80
|
+
any: z.ZodNumber;
|
|
81
|
+
v1: z.ZodNumber;
|
|
82
|
+
v2: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
status: z.ZodObject<{
|
|
85
|
+
any: z.ZodNumber;
|
|
86
|
+
upToDate: z.ZodNumber;
|
|
87
|
+
updateAvailable: z.ZodNumber;
|
|
88
|
+
legacy: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
oauth: z.ZodObject<{
|
|
91
|
+
any: z.ZodNumber;
|
|
92
|
+
enabled: z.ZodNumber;
|
|
93
|
+
none: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
config: z.ZodObject<{
|
|
96
|
+
any: z.ZodNumber;
|
|
97
|
+
configured: z.ZodNumber;
|
|
98
|
+
missing: z.ZodNumber;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const InstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
102
|
+
items: z.ZodArray<z.ZodObject<{
|
|
103
|
+
serviceId: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
sourceHash: z.ZodString;
|
|
106
|
+
sourceLatestHash: z.ZodNullable<z.ZodString>;
|
|
107
|
+
runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
108
|
+
v1: "v1";
|
|
109
|
+
v2: "v2";
|
|
110
|
+
}>>>;
|
|
111
|
+
enabled: z.ZodBoolean;
|
|
112
|
+
status: z.ZodEnum<{
|
|
113
|
+
up_to_date: "up_to_date";
|
|
114
|
+
update_available: "update_available";
|
|
115
|
+
legacy: "legacy";
|
|
116
|
+
}>;
|
|
117
|
+
requireOAuth: z.ZodBoolean;
|
|
118
|
+
configStatus: z.ZodEnum<{
|
|
119
|
+
configured: "configured";
|
|
120
|
+
missing: "missing";
|
|
121
|
+
not_needed: "not_needed";
|
|
122
|
+
}>;
|
|
123
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
124
|
+
updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
total: z.ZodNumber;
|
|
127
|
+
page: z.ZodNumber;
|
|
128
|
+
limit: z.ZodNumber;
|
|
129
|
+
counts: z.ZodObject<{
|
|
130
|
+
all: z.ZodNumber;
|
|
131
|
+
runner: z.ZodObject<{
|
|
132
|
+
any: z.ZodNumber;
|
|
133
|
+
v1: z.ZodNumber;
|
|
134
|
+
v2: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
status: z.ZodObject<{
|
|
137
|
+
any: z.ZodNumber;
|
|
138
|
+
upToDate: z.ZodNumber;
|
|
139
|
+
updateAvailable: z.ZodNumber;
|
|
140
|
+
legacy: z.ZodNumber;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
oauth: z.ZodObject<{
|
|
143
|
+
any: z.ZodNumber;
|
|
144
|
+
enabled: z.ZodNumber;
|
|
145
|
+
none: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
config: z.ZodObject<{
|
|
148
|
+
any: z.ZodNumber;
|
|
149
|
+
configured: z.ZodNumber;
|
|
150
|
+
missing: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export declare const NotInstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
155
|
+
name: "name";
|
|
156
|
+
serviceId: "serviceId";
|
|
157
|
+
}>;
|
|
158
|
+
export declare const NotInstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
159
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
160
|
+
name: "name";
|
|
161
|
+
serviceId: "serviceId";
|
|
162
|
+
}>>;
|
|
163
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
164
|
+
asc: "asc";
|
|
165
|
+
desc: "desc";
|
|
166
|
+
}>>;
|
|
167
|
+
search: z.ZodOptional<z.ZodString>;
|
|
168
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
169
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const NotInstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
172
|
+
items: z.ZodArray<z.ZodObject<{
|
|
173
|
+
serviceId: z.ZodString;
|
|
174
|
+
serviceName: z.ZodString;
|
|
175
|
+
sourceHash: z.ZodString;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
total: z.ZodNumber;
|
|
178
|
+
page: z.ZodNumber;
|
|
179
|
+
limit: z.ZodNumber;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
export declare const SharedExtensionBulkTargetSchema: z.ZodObject<{
|
|
182
|
+
serviceId: z.ZodString;
|
|
183
|
+
enabled: z.ZodBoolean;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export declare const SharedExtensionBulkTargetsSchema: z.ZodObject<{
|
|
186
|
+
update: z.ZodArray<z.ZodObject<{
|
|
187
|
+
serviceId: z.ZodString;
|
|
188
|
+
enabled: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
reinstall: z.ZodArray<z.ZodObject<{
|
|
191
|
+
serviceId: z.ZodString;
|
|
192
|
+
enabled: z.ZodBoolean;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
install: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type SharedExtensionListStatus = z.infer<typeof SharedExtensionListStatusSchema>;
|
|
197
|
+
export type SharedExtensionConfigStatus = z.infer<typeof SharedExtensionConfigStatusSchema>;
|
|
198
|
+
export type InstalledSharedExtensionsSortField = z.infer<typeof InstalledSharedExtensionsSortFieldSchema>;
|
|
199
|
+
export type InstalledSharedExtensionsQuery = z.infer<typeof InstalledSharedExtensionsQuerySchema>;
|
|
200
|
+
export type InstalledSharedExtensionsQueryInput = z.input<typeof InstalledSharedExtensionsQuerySchema>;
|
|
201
|
+
export type InstalledSharedExtensionListItem = z.infer<typeof InstalledSharedExtensionListItemSchema>;
|
|
202
|
+
export type InstalledSharedExtensionsCounts = z.infer<typeof InstalledSharedExtensionsCountsSchema>;
|
|
203
|
+
export type InstalledSharedExtensionsPage = z.infer<typeof InstalledSharedExtensionsPageSchema>;
|
|
204
|
+
export type NotInstalledSharedExtensionsSortField = z.infer<typeof NotInstalledSharedExtensionsSortFieldSchema>;
|
|
205
|
+
export type NotInstalledSharedExtensionsQuery = z.infer<typeof NotInstalledSharedExtensionsQuerySchema>;
|
|
206
|
+
export type NotInstalledSharedExtensionsQueryInput = z.input<typeof NotInstalledSharedExtensionsQuerySchema>;
|
|
207
|
+
export type NotInstalledSharedExtensionsPage = z.infer<typeof NotInstalledSharedExtensionsPageSchema>;
|
|
208
|
+
export type SharedExtensionBulkTarget = z.infer<typeof SharedExtensionBulkTargetSchema>;
|
|
209
|
+
export type SharedExtensionBulkTargets = z.infer<typeof SharedExtensionBulkTargetsSchema>;
|
|
@@ -449,7 +449,8 @@ const getRecordTypesDictionary = ext.dictionary({
|
|
|
449
449
|
})
|
|
450
450
|
|
|
451
451
|
// The fields of one record type — every kind of field a loader can return. Built per call: a loader answers
|
|
452
|
-
// with fresh zod each time.
|
|
452
|
+
// with fresh zod each time. Their rules and defaults apply in the forms only: at run time a loaded field
|
|
453
|
+
// reaches the handler as the flow supplied it.
|
|
453
454
|
const recordFields = recordType => {
|
|
454
455
|
switch (recordType) {
|
|
455
456
|
case 'contact':
|
|
@@ -457,7 +458,7 @@ const recordFields = recordType => {
|
|
|
457
458
|
name : z.string().label('Name'),
|
|
458
459
|
email: z.email().optional().label('Email (format-checked)'),
|
|
459
460
|
age : z.number().int().min(0).max(150).optional().label('Age (0–150)'),
|
|
460
|
-
vip : z.boolean().optional().default(false).label('VIP (
|
|
461
|
+
vip : z.boolean().optional().default(false).label('VIP (form default: false)'),
|
|
461
462
|
tier : z.enum(['free', 'pro', 'enterprise'])
|
|
462
463
|
.labels({ free: 'Free', pro: 'Pro', enterprise: 'Enterprise' })
|
|
463
464
|
.optional()
|
|
@@ -471,7 +472,7 @@ const recordFields = recordType => {
|
|
|
471
472
|
price : z.number().min(0).label('Price (≥ 0)'),
|
|
472
473
|
inStock : z.boolean().label('In Stock'),
|
|
473
474
|
tags : z.array(z.string()).optional().label('Tags (list of text)'),
|
|
474
|
-
category: z.enum(['books', 'games', 'music']).default('books').label('Category (
|
|
475
|
+
category: z.enum(['books', 'games', 'music']).default('books').label('Category (form default: books)'),
|
|
475
476
|
}
|
|
476
477
|
|
|
477
478
|
case 'event':
|
|
@@ -503,7 +504,8 @@ ext.addAction({
|
|
|
503
504
|
}),
|
|
504
505
|
}),
|
|
505
506
|
result : { params: {} },
|
|
506
|
-
// The loaded fields arrive nested under `record
|
|
507
|
+
// The loaded fields arrive nested under `record` as the flow supplied them: they are not re-checked, converted
|
|
508
|
+
// or defaulted at run time — `types` shows what each one actually is
|
|
507
509
|
execute : ({ params }) => ({ params, types: typesOf(params.record) }),
|
|
508
510
|
})
|
|
509
511
|
|
|
@@ -583,7 +585,7 @@ ext.addAction({
|
|
|
583
585
|
execute: () => ({
|
|
584
586
|
costCenter: z.string().optional().label('Cost Center'),
|
|
585
587
|
priority : z.enum(['low', 'normal', 'high']).optional().label('Priority'),
|
|
586
|
-
loadedAt : z.string().optional().default(new Date().toISOString()).label('Loaded At (default
|
|
588
|
+
loadedAt : z.string().optional().default(new Date().toISOString()).label('Loaded At (form default: when it loaded)'),
|
|
587
589
|
}),
|
|
588
590
|
}),
|
|
589
591
|
}),
|