@walkeros/cli 4.9.0 → 4.10.0-next-1794522704623
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/CHANGELOG.md +88 -0
- package/dist/cli.js +5018 -2795
- package/dist/examples/flow-complete.json +28 -37
- package/dist/examples/flow-complete.md +4 -10
- package/dist/examples/index.d.ts +6 -40
- package/dist/examples/index.js +35 -73
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +258 -81
- package/dist/index.js +1539 -545
- package/dist/index.js.map +1 -1
- package/dist/validate.js +58 -1
- package/dist/validate.js.map +1 -1
- package/examples/flow-complete.json +28 -37
- package/examples/flow-complete.md +4 -10
- package/package.json +30 -30
package/dist/validate.js
CHANGED
|
@@ -133,6 +133,63 @@ import fs4 from "fs-extra";
|
|
|
133
133
|
// src/core/stdin.ts
|
|
134
134
|
import fs5 from "fs-extra";
|
|
135
135
|
|
|
136
|
+
// src/lib/credentials.ts
|
|
137
|
+
import { z } from "zod";
|
|
138
|
+
var LoginSchema = z.object({
|
|
139
|
+
issuer: z.string(),
|
|
140
|
+
client_id: z.string(),
|
|
141
|
+
token_endpoint: z.string(),
|
|
142
|
+
revocation_endpoint: z.string(),
|
|
143
|
+
access_token: z.string(),
|
|
144
|
+
/** Epoch milliseconds. */
|
|
145
|
+
expires_at: z.number(),
|
|
146
|
+
refresh_token: z.string().optional(),
|
|
147
|
+
scope: z.string().optional()
|
|
148
|
+
});
|
|
149
|
+
var CredentialsSchema = z.record(z.string(), z.unknown());
|
|
150
|
+
var PENDING_TTL_MS = 15 * 60 * 1e3;
|
|
151
|
+
var STATE_SHAPE = /^[A-Za-z0-9_-]{1,128}$/;
|
|
152
|
+
var PendingSchema = z.object({
|
|
153
|
+
code_verifier: z.string(),
|
|
154
|
+
state: z.string().regex(STATE_SHAPE),
|
|
155
|
+
redirect_uri: z.string(),
|
|
156
|
+
issuer: z.string(),
|
|
157
|
+
client_id: z.string(),
|
|
158
|
+
token_endpoint: z.string(),
|
|
159
|
+
/** Epoch milliseconds. */
|
|
160
|
+
created_at: z.number()
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// src/core/oauth-login.ts
|
|
164
|
+
import { z as z3 } from "zod";
|
|
165
|
+
|
|
166
|
+
// src/core/app-fetch.ts
|
|
167
|
+
import { z as z2 } from "zod";
|
|
168
|
+
var AppErrorSchema = z2.object({
|
|
169
|
+
error: z2.object({ message: z2.string().min(1) })
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// src/core/oauth-login.ts
|
|
173
|
+
var MetadataSchema = z3.object({
|
|
174
|
+
issuer: z3.string(),
|
|
175
|
+
authorization_endpoint: z3.string(),
|
|
176
|
+
token_endpoint: z3.string(),
|
|
177
|
+
revocation_endpoint: z3.string(),
|
|
178
|
+
code_challenge_methods_supported: z3.array(z3.string()).optional()
|
|
179
|
+
});
|
|
180
|
+
var ClientDocumentSchema = z3.object({
|
|
181
|
+
client_id: z3.string(),
|
|
182
|
+
redirect_uris: z3.array(z3.string())
|
|
183
|
+
});
|
|
184
|
+
var TokenSetSchema = z3.object({
|
|
185
|
+
access_token: z3.string().min(1),
|
|
186
|
+
token_type: z3.string().refine((type) => type.toLowerCase() === "bearer"),
|
|
187
|
+
expires_in: z3.number(),
|
|
188
|
+
refresh_token: z3.string().min(1).optional(),
|
|
189
|
+
scope: z3.string().optional()
|
|
190
|
+
});
|
|
191
|
+
var OAuthErrorSchema = z3.object({ error: z3.string() });
|
|
192
|
+
|
|
136
193
|
// src/core/event-validation.ts
|
|
137
194
|
import { schemas } from "@walkeros/core/dev";
|
|
138
195
|
var { PartialEventSchema } = schemas;
|
|
@@ -870,7 +927,7 @@ async function readStepPackageInfo(resolved, options) {
|
|
|
870
927
|
}
|
|
871
928
|
|
|
872
929
|
// src/commands/validate/validators/settings.ts
|
|
873
|
-
var CLIENT_HEADER = "walkeros-cli/4.
|
|
930
|
+
var CLIENT_HEADER = "walkeros-cli/4.10.0-next-1794522704623";
|
|
874
931
|
var LOGGER = createLogger();
|
|
875
932
|
function createSettingsContext(configDir) {
|
|
876
933
|
return { configDir, cache: /* @__PURE__ */ new Map(), compiled: /* @__PURE__ */ new Map() };
|