eve 0.13.0 → 0.13.2
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 +13 -0
- package/dist/src/chunks/use-eve-agent-B18LYpfZ.js +5765 -0
- package/dist/src/chunks/use-eve-agent-BPI1nbo5.js +5795 -0
- package/dist/src/cli/dev/tui/provider-picker.d.ts +64 -0
- package/dist/src/cli/dev/tui/provider-picker.js +1 -0
- package/dist/src/cli/dev/tui/remote-auth-result.d.ts +21 -0
- package/dist/src/cli/dev/tui/remote-auth-result.js +1 -0
- package/dist/src/cli/dev/tui/remote-connection-probe.d.ts +9 -0
- package/dist/src/cli/dev/tui/remote-connection-probe.js +1 -0
- package/dist/src/cli/dev/tui/remote-connection-types.d.ts +67 -0
- package/dist/src/cli/dev/tui/remote-connection-types.js +1 -0
- package/dist/src/cli/dev/tui/remote-connection.d.ts +3 -0
- package/dist/src/cli/dev/tui/remote-connection.js +1 -0
- package/dist/src/cli/dev/tui/runner.js +1 -1
- package/dist/src/cli/dev/tui/setup-commands.d.ts +1 -1
- package/dist/src/cli/dev/tui/setup-commands.js +2 -2
- package/dist/src/cli/dev/tui/setup-flow.d.ts +3 -0
- package/dist/src/cli/dev/tui/setup-issues.d.ts +7 -0
- package/dist/src/cli/dev/tui/setup-issues.js +1 -1
- package/dist/src/cli/dev/tui/setup-panel.d.ts +25 -12
- package/dist/src/cli/dev/tui/setup-panel.js +3 -2
- package/dist/src/cli/dev/tui/target.d.ts +2 -0
- package/dist/src/cli/dev/tui/target.js +1 -1
- package/dist/src/cli/dev/tui/terminal-renderer.js +9 -9
- package/dist/src/cli/dev/tui/test/fake-setup-flow-renderer.js +1 -1
- package/dist/src/cli/dev/tui/tui.js +1 -1
- package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.d.ts +22 -0
- package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.js +1 -0
- package/dist/src/cli/dev/tui/vercel-trusted-sources.d.ts +48 -0
- package/dist/src/cli/dev/tui/vercel-trusted-sources.js +1 -0
- package/dist/src/client/agent-info-schema.d.ts +532 -0
- package/dist/src/client/agent-info-schema.js +1 -0
- package/dist/src/client/client.js +1 -1
- package/dist/src/client/types.d.ts +11 -169
- package/dist/src/client/types.js +1 -1
- package/dist/src/execution/durable-session-store.d.ts +3 -2
- package/dist/src/execution/session.d.ts +4 -10
- package/dist/src/execution/session.js +2 -2
- package/dist/src/execution/workflow-steps.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/lib/primitives.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/lib/schemas.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/aclaction.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/sdkvalidationerror.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/updateprojectprojectsaction.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/updateprojectprojectsoptionsallowlist.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/defaultToZeroValue.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/fp.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/primitives.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/rfcdate.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/smartUnion.js +1 -0
- package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/unrecognized.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.js +1 -0
- package/dist/src/services/dev-client/client-options.js +1 -1
- package/dist/src/services/dev-client/credential-gate.d.ts +11 -6
- package/dist/src/services/dev-client/credential-gate.js +1 -1
- package/dist/src/services/dev-client/request-headers.d.ts +0 -12
- package/dist/src/services/dev-client/request-headers.js +1 -1
- package/dist/src/services/dev-client/vercel-auth-error.js +1 -1
- package/dist/src/setup/flows/model.d.ts +5 -5
- package/dist/src/setup/flows/model.js +1 -1
- package/dist/src/setup/flows/provider.d.ts +57 -0
- package/dist/src/setup/flows/provider.js +4 -0
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/concepts/execution-model-and-durability.md +2 -0
- package/docs/guides/client/overview.mdx +24 -0
- package/docs/guides/dev-tui.md +4 -4
- package/package.json +2 -1
- package/dist/src/chunks/use-eve-agent-DEm_Jg4k.js +0 -1343
- package/dist/src/chunks/use-eve-agent-DsXOQMFZ.js +0 -1313
- package/dist/src/setup/flows/vercel.d.ts +0 -37
- package/dist/src/setup/flows/vercel.js +0 -2
|
@@ -3,8 +3,7 @@ import type { StandardJSONSchemaV1 } from "#compiled/@standard-schema/spec/index
|
|
|
3
3
|
import type { HandleMessageStreamEvent } from "#protocol/message.js";
|
|
4
4
|
import type { InputRequest, InputResponse } from "#runtime/input/types.js";
|
|
5
5
|
import type { JsonObject } from "#shared/json.js";
|
|
6
|
-
|
|
7
|
-
import type { ModelEndpointStatus } from "#shared/model-endpoint-status.js";
|
|
6
|
+
export type { AgentInfoChannelEntry, AgentInfoChannels, AgentInfoConnectionEntry, AgentInfoDynamicResolverEntry, AgentInfoEntry, AgentInfoFrameworkChannelEntry, AgentInfoFrameworkToolEntry, AgentInfoHookEntry, AgentInfoInstructions, AgentInfoInstructionsEntry, AgentInfoResult, AgentInfoSandboxEntry, AgentInfoScheduleEntry, AgentInfoSkillEntry, AgentInfoSource, AgentInfoSubagentEntry, AgentInfoToolEntry, AgentInfoTools, } from "./agent-info-schema.js";
|
|
8
7
|
/**
|
|
9
8
|
* Static credential value or per-request credential resolver.
|
|
10
9
|
*/
|
|
@@ -27,7 +26,17 @@ export type ClientAuth = {
|
|
|
27
26
|
};
|
|
28
27
|
} | {
|
|
29
28
|
readonly bearer: TokenValue;
|
|
29
|
+
} | {
|
|
30
|
+
readonly vercelOidc: {
|
|
31
|
+
readonly token: TokenValue;
|
|
32
|
+
};
|
|
30
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Vercel header that presents a trusted OIDC token as proof the caller is
|
|
36
|
+
* authorized for a protected deployment. The client emits it alongside
|
|
37
|
+
* `Authorization` for the {@link ClientAuth} `vercelOidc` variant.
|
|
38
|
+
*/
|
|
39
|
+
export declare const VERCEL_TRUSTED_OIDC_IDP_TOKEN_HEADER = "x-vercel-trusted-oidc-idp-token";
|
|
31
40
|
/** Redirect modes supported by the configured fetch implementation. */
|
|
32
41
|
export type ClientRedirectPolicy = NonNullable<RequestInit["redirect"]>;
|
|
33
42
|
/**
|
|
@@ -182,173 +191,6 @@ export interface HealthResult {
|
|
|
182
191
|
readonly status: "ready";
|
|
183
192
|
readonly workflowId: string;
|
|
184
193
|
}
|
|
185
|
-
/**
|
|
186
|
-
* Source reference shared by entries in {@link AgentInfoResult}.
|
|
187
|
-
*/
|
|
188
|
-
export interface AgentInfoSource {
|
|
189
|
-
readonly exportName?: string;
|
|
190
|
-
readonly logicalPath: string;
|
|
191
|
-
readonly sourceId?: string;
|
|
192
|
-
readonly sourceKind: string;
|
|
193
|
-
}
|
|
194
|
-
export interface AgentInfoEntry extends AgentInfoSource {
|
|
195
|
-
readonly name: string;
|
|
196
|
-
}
|
|
197
|
-
export interface AgentInfoToolEntry extends AgentInfoEntry {
|
|
198
|
-
readonly description: string;
|
|
199
|
-
readonly hasAuth: boolean;
|
|
200
|
-
readonly hasExecute: boolean;
|
|
201
|
-
readonly hasModelOutputProjection: boolean;
|
|
202
|
-
readonly hasOutputSchema: boolean;
|
|
203
|
-
readonly inputSchema: unknown;
|
|
204
|
-
readonly origin: "authored" | "framework";
|
|
205
|
-
readonly outputSchema: unknown;
|
|
206
|
-
readonly replacesFrameworkTool: boolean;
|
|
207
|
-
readonly requiresApproval: boolean;
|
|
208
|
-
}
|
|
209
|
-
export interface AgentInfoFrameworkToolEntry extends AgentInfoToolEntry {
|
|
210
|
-
readonly disabledByAuthor: boolean;
|
|
211
|
-
readonly replacedByAuthoredTool: boolean;
|
|
212
|
-
readonly status: "active" | "disabled" | "replaced";
|
|
213
|
-
}
|
|
214
|
-
export interface AgentInfoDynamicResolverEntry extends AgentInfoSource {
|
|
215
|
-
readonly eventNames: readonly string[];
|
|
216
|
-
readonly origin: "authored" | "framework";
|
|
217
|
-
readonly slug: string;
|
|
218
|
-
}
|
|
219
|
-
export interface AgentInfoTools {
|
|
220
|
-
readonly authored: readonly AgentInfoToolEntry[];
|
|
221
|
-
readonly available: readonly AgentInfoToolEntry[];
|
|
222
|
-
readonly disabledFramework: readonly string[];
|
|
223
|
-
readonly dynamic: readonly AgentInfoDynamicResolverEntry[];
|
|
224
|
-
readonly framework: readonly AgentInfoFrameworkToolEntry[];
|
|
225
|
-
readonly reserved: readonly string[];
|
|
226
|
-
}
|
|
227
|
-
export interface AgentInfoSkillEntry extends AgentInfoEntry {
|
|
228
|
-
readonly description: string;
|
|
229
|
-
readonly license?: string;
|
|
230
|
-
readonly markdown: string;
|
|
231
|
-
readonly metadata?: Readonly<Record<string, string>>;
|
|
232
|
-
}
|
|
233
|
-
export interface AgentInfoInstructionsEntry extends AgentInfoEntry {
|
|
234
|
-
readonly markdown: string;
|
|
235
|
-
}
|
|
236
|
-
export interface AgentInfoInstructions {
|
|
237
|
-
readonly dynamic: readonly AgentInfoDynamicResolverEntry[];
|
|
238
|
-
readonly static: AgentInfoInstructionsEntry | null;
|
|
239
|
-
}
|
|
240
|
-
export interface AgentInfoScheduleEntry extends AgentInfoEntry {
|
|
241
|
-
readonly cron: string;
|
|
242
|
-
readonly hasRun: boolean;
|
|
243
|
-
readonly markdown?: string;
|
|
244
|
-
}
|
|
245
|
-
export interface AgentInfoSubagentEntry extends AgentInfoEntry {
|
|
246
|
-
readonly description: string;
|
|
247
|
-
readonly entryPath: string;
|
|
248
|
-
readonly nodeId: string;
|
|
249
|
-
readonly rootPath: string;
|
|
250
|
-
readonly summary: {
|
|
251
|
-
readonly channels: number;
|
|
252
|
-
readonly connections: number;
|
|
253
|
-
readonly hooks: number;
|
|
254
|
-
readonly instructions: boolean;
|
|
255
|
-
readonly schedules: number;
|
|
256
|
-
readonly skills: number;
|
|
257
|
-
readonly tools: number;
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
export interface AgentInfoChannelEntry extends AgentInfoEntry {
|
|
261
|
-
readonly adapterKind?: string;
|
|
262
|
-
readonly method: string;
|
|
263
|
-
readonly origin: "authored" | "framework";
|
|
264
|
-
readonly urlPath: string;
|
|
265
|
-
}
|
|
266
|
-
export interface AgentInfoFrameworkChannelEntry extends AgentInfoChannelEntry {
|
|
267
|
-
readonly disabledByAuthor: boolean;
|
|
268
|
-
readonly replacedByAuthoredChannel: boolean;
|
|
269
|
-
readonly status: "active" | "disabled" | "replaced";
|
|
270
|
-
}
|
|
271
|
-
export interface AgentInfoChannels {
|
|
272
|
-
readonly authored: readonly AgentInfoChannelEntry[];
|
|
273
|
-
readonly available: readonly AgentInfoChannelEntry[];
|
|
274
|
-
readonly disabledFramework: readonly string[];
|
|
275
|
-
readonly framework: readonly AgentInfoFrameworkChannelEntry[];
|
|
276
|
-
}
|
|
277
|
-
export interface AgentInfoConnectionEntry extends AgentInfoSource {
|
|
278
|
-
readonly connectionName: string;
|
|
279
|
-
readonly description: string;
|
|
280
|
-
readonly hasApproval: boolean;
|
|
281
|
-
readonly hasAuthorization: boolean;
|
|
282
|
-
readonly hasHeaders: boolean;
|
|
283
|
-
readonly protocol: string;
|
|
284
|
-
readonly toolFilter?: unknown;
|
|
285
|
-
readonly url: string;
|
|
286
|
-
}
|
|
287
|
-
export interface AgentInfoHookEntry extends AgentInfoSource {
|
|
288
|
-
readonly eventNames: readonly string[];
|
|
289
|
-
readonly slug: string;
|
|
290
|
-
}
|
|
291
|
-
export interface AgentInfoSandboxEntry extends AgentInfoSource {
|
|
292
|
-
readonly backendKind?: string;
|
|
293
|
-
readonly description?: string;
|
|
294
|
-
readonly hasBootstrap: boolean;
|
|
295
|
-
readonly hasOnSession: boolean;
|
|
296
|
-
readonly revalidationKey?: string;
|
|
297
|
-
readonly sourceHash?: string;
|
|
298
|
-
}
|
|
299
|
-
export interface AgentInfoResult {
|
|
300
|
-
readonly agent: {
|
|
301
|
-
readonly agentRoot: string;
|
|
302
|
-
readonly appRoot: string;
|
|
303
|
-
readonly configSource?: AgentInfoSource;
|
|
304
|
-
readonly description?: string;
|
|
305
|
-
readonly model: {
|
|
306
|
-
readonly contextWindowTokens?: number;
|
|
307
|
-
readonly id: string;
|
|
308
|
-
readonly providerOptions?: unknown;
|
|
309
|
-
readonly source?: AgentInfoSource;
|
|
310
|
-
/** How the model is routed (gateway vs external), decided at compile time. */
|
|
311
|
-
readonly routing?: ModelRouting;
|
|
312
|
-
/** Composed routing + runtime credential readiness; absent only on legacy payloads. */
|
|
313
|
-
readonly endpoint?: ModelEndpointStatus;
|
|
314
|
-
};
|
|
315
|
-
readonly name: string;
|
|
316
|
-
readonly outputSchema?: unknown;
|
|
317
|
-
};
|
|
318
|
-
readonly capabilities: {
|
|
319
|
-
readonly devRoutes: boolean;
|
|
320
|
-
};
|
|
321
|
-
readonly channels: AgentInfoChannels;
|
|
322
|
-
readonly connections: readonly AgentInfoConnectionEntry[];
|
|
323
|
-
readonly diagnostics: {
|
|
324
|
-
readonly discoveryErrors: number;
|
|
325
|
-
readonly discoveryWarnings: number;
|
|
326
|
-
};
|
|
327
|
-
readonly hooks: readonly AgentInfoHookEntry[];
|
|
328
|
-
readonly instructions: AgentInfoInstructions;
|
|
329
|
-
readonly kind: "eve-agent-info";
|
|
330
|
-
readonly mode: "development" | "production";
|
|
331
|
-
readonly sandbox: AgentInfoSandboxEntry | null;
|
|
332
|
-
readonly schedules: readonly AgentInfoScheduleEntry[];
|
|
333
|
-
readonly skills: {
|
|
334
|
-
readonly dynamic: readonly AgentInfoDynamicResolverEntry[];
|
|
335
|
-
readonly static: readonly AgentInfoSkillEntry[];
|
|
336
|
-
};
|
|
337
|
-
readonly subagents: {
|
|
338
|
-
readonly local: readonly AgentInfoSubagentEntry[];
|
|
339
|
-
readonly total: number;
|
|
340
|
-
};
|
|
341
|
-
readonly tools: AgentInfoTools;
|
|
342
|
-
readonly version: 1;
|
|
343
|
-
readonly workflow: {
|
|
344
|
-
readonly enabled: boolean;
|
|
345
|
-
readonly toolName: string;
|
|
346
|
-
};
|
|
347
|
-
readonly workspace: {
|
|
348
|
-
readonly resourceRoot: unknown;
|
|
349
|
-
readonly rootEntries: readonly string[];
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
194
|
/**
|
|
353
195
|
* Serializable session cursor. Persist this value and pass it back to
|
|
354
196
|
* {@link Client.session} to resume a conversation later.
|
package/dist/src/client/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
const VERCEL_TRUSTED_OIDC_IDP_TOKEN_HEADER=`x-vercel-trusted-oidc-idp-token`;export{VERCEL_TRUSTED_OIDC_IDP_TOKEN_HEADER};
|
|
@@ -54,8 +54,9 @@ export interface DurableSessionState {
|
|
|
54
54
|
* `agent.compactionModelReference`, and the `compaction` thresholds —
|
|
55
55
|
* those are rebuilt every turn from `bundle.turnAgent` by
|
|
56
56
|
* {@link import("#execution/session.js").hydrateDurableSession}.
|
|
57
|
-
* `agent.system` is the
|
|
58
|
-
*
|
|
57
|
+
* `agent.system` is the last applied prompt snapshot. Before each model step,
|
|
58
|
+
* the execution layer replaces it from the current deployment's
|
|
59
|
+
* `bundle.turnAgent`.
|
|
59
60
|
*/
|
|
60
61
|
export interface DurableSession {
|
|
61
62
|
readonly sessionId: string;
|
|
@@ -33,22 +33,16 @@ export interface CreateSessionInput {
|
|
|
33
33
|
readonly turnAgent: RuntimeTurnAgent;
|
|
34
34
|
readonly outputSchema?: HarnessSession["outputSchema"];
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Creates a fresh {@link HarnessSession}. The only site that derives
|
|
38
|
-
* `session.agent.system` from a `turnAgent` — every subsequent turn
|
|
39
|
-
* preserves the prompt via {@link refreshSessionFromTurnAgent}.
|
|
40
|
-
*/
|
|
36
|
+
/** Creates a fresh {@link HarnessSession} from the current `turnAgent`. */
|
|
41
37
|
export declare function createSession(input: CreateSessionInput): HarnessSession;
|
|
42
38
|
/**
|
|
43
|
-
* Refreshes a session with the latest `turnAgent` — replaces
|
|
44
|
-
* metadata and
|
|
45
|
-
*
|
|
46
|
-
* while dev HMR callers can opt into refreshing it from authored source.
|
|
39
|
+
* Refreshes a session with the latest `turnAgent` — replaces the system
|
|
40
|
+
* prompt, model/tool metadata, and compaction thresholds while preserving
|
|
41
|
+
* conversation history and state.
|
|
47
42
|
*/
|
|
48
43
|
export declare function refreshSessionFromTurnAgent(input: {
|
|
49
44
|
readonly session: HarnessSession;
|
|
50
45
|
readonly turnAgent: RuntimeTurnAgent;
|
|
51
|
-
readonly refreshSystemPrompt?: boolean;
|
|
52
46
|
readonly compactionOverrides?: {
|
|
53
47
|
readonly thresholdPercent?: number;
|
|
54
48
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function createCompactionConfig(e={}){let t=e.thresholdPercent??.9,n={recentWindowSize:10,threshold:e.contextWindowTokens===void 0?1e5:Math.max(1,Math.floor(e.contextWindowTokens*t))};return e.lastKnownInputTokens===void 0?n:{...n,lastKnownInputTokens:e.lastKnownInputTokens,lastKnownPromptMessageCount:e.lastKnownPromptMessageCount}}function createSession(e){let{turnAgent:t}=e,n=createSessionToolDefinitions(t),r={agent:{compactionModelReference:t.compactionModel,modelReference:t.model,system:t.instructions.join(`
|
|
2
2
|
|
|
3
|
-
`),tools:n},compaction:createCompactionConfig({contextWindowTokens:t.model.contextWindowTokens,thresholdPercent:e.compactionOverrides?.thresholdPercent}),continuationToken:e.continuationToken,history:[],sessionId:e.sessionId};return e.rootSessionId!==void 0&&(r.rootSessionId=e.rootSessionId),e.outputSchema!==void 0&&(r.outputSchema=e.outputSchema),r}function refreshSessionFromTurnAgent(e){return{...e.session,agent:{compactionModelReference:e.turnAgent.compactionModel,modelReference:e.turnAgent.model,system:e.
|
|
3
|
+
`),tools:n},compaction:createCompactionConfig({contextWindowTokens:t.model.contextWindowTokens,thresholdPercent:e.compactionOverrides?.thresholdPercent}),continuationToken:e.continuationToken,history:[],sessionId:e.sessionId};return e.rootSessionId!==void 0&&(r.rootSessionId=e.rootSessionId),e.outputSchema!==void 0&&(r.outputSchema=e.outputSchema),r}function refreshSessionFromTurnAgent(e){return{...e.session,agent:{compactionModelReference:e.turnAgent.compactionModel,modelReference:e.turnAgent.model,system:e.turnAgent.instructions.join(`
|
|
4
4
|
|
|
5
|
-
`)
|
|
5
|
+
`),tools:createSessionToolDefinitions(e.turnAgent)},compaction:createCompactionConfig({contextWindowTokens:e.turnAgent.model.contextWindowTokens,lastKnownInputTokens:e.session.compaction.lastKnownInputTokens,lastKnownPromptMessageCount:e.session.compaction.lastKnownPromptMessageCount,thresholdPercent:e.compactionOverrides?.thresholdPercent})}}function mintSubagentContinuationToken(e){return`subagent:${e??crypto.randomUUID()}`}function projectToDurableSession(e){let t={agent:{system:e.agent.system},continuationToken:e.continuationToken,history:e.history,sessionId:e.sessionId};return(e.compaction.lastKnownInputTokens!==void 0||e.compaction.lastKnownPromptMessageCount!==void 0)&&(t.compaction={lastKnownInputTokens:e.compaction.lastKnownInputTokens,lastKnownPromptMessageCount:e.compaction.lastKnownPromptMessageCount}),e.rootSessionId!==void 0&&(t.rootSessionId=e.rootSessionId),e.outputSchema!==void 0&&(t.outputSchema=e.outputSchema),e.sandboxState!==void 0&&(t.sandboxState=e.sandboxState),e.state!==void 0&&(t.state=e.state),t}function hydrateDurableSession(e){let{durable:t,turnAgent:n}=e,r=createSessionToolDefinitions(n),i={agent:{compactionModelReference:n.compactionModel,modelReference:n.model,system:t.agent.system,tools:r},compaction:createCompactionConfig({contextWindowTokens:n.model.contextWindowTokens,lastKnownInputTokens:t.compaction?.lastKnownInputTokens,lastKnownPromptMessageCount:t.compaction?.lastKnownPromptMessageCount,thresholdPercent:e.compactionOverrides?.thresholdPercent}),continuationToken:t.continuationToken,history:t.history,sessionId:t.sessionId};return t.rootSessionId!==void 0&&(i.rootSessionId=t.rootSessionId),t.outputSchema!==void 0&&(i.outputSchema=t.outputSchema),t.sandboxState!==void 0&&(i.sandboxState=t.sandboxState),t.state!==void 0&&(i.state=t.state),i}function createSessionToolDefinitions(e){return e.tools.map(e=>({description:e.description??``,inputSchema:e.inputSchema,name:e.name,outputSchema:e.outputSchema}))}export{createCompactionConfig,createSession,hydrateDurableSession,mintSubagentContinuationToken,projectToDurableSession,refreshSessionFromTurnAgent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createLogger,formatError}from"#internal/logging.js";import{callAdapterEventHandler,defaultDeliverResult}from"#channel/adapter.js";import{AuthKey,CapabilitiesKey,ContinuationTokenKey,ModeKey}from"#context/keys.js";import{createAuthorizationCompletedEvent,createSessionFailedEvent,encodeMessageStreamEvent,timestampHandleMessageStreamEvent}from"#protocol/message.js";import{BundleKey,ChannelKey}from"#runtime/sessions/runtime-context-keys.js";import{getHarnessEmissionState}from"#harness/emission.js";import{createDurableSessionState,readDurableSession}from"#execution/durable-session-store.js";import{hydrateDurableSession,refreshSessionFromTurnAgent}from"#execution/session.js";import{buildTurnAttributes,readRootSessionId}from"#execution/eve-workflow-attributes.js";import{setEveAttributes}from"#runtime/attributes/emit.js";import{deserializeContext,serializeContext}from"#context/serialize.js";import{getRuntimeActionKeyFromInterrupt,isCodeModeRuntimeActionInterrupt}from"#harness/code-mode-runtime-action-state.js";import{getPendingCodeModeInterrupt}from"#harness/code-mode-interrupt-state.js";import{getPendingRuntimeActionBatch}from"#harness/runtime-actions.js";import{buildAdapterContext}from"#channel/adapter-context.js";import{createWorkflowRuntime,startWorkflowPreferLatest}from"#execution/workflow-runtime.js";import{upsertProxyInputRequests}from"#harness/proxy-input-requests.js";import{setChannelContext}from"#execution/channel-context.js";import{CallbackBaseUrlKey,PendingAuthorizationResultKey,getPendingAuthorization}from"#harness/authorization.js";import{createTurnWorkflowInput}from"#execution/durable-session-migrations/turn-workflow.js";import{coalesceTurnInputs}from"#harness/messages.js";import{dispatchStreamEventHooks}from"#context/hook-lifecycle.js";import{dispatchDynamicInstructionEvent}from"#context/dynamic-instruction-lifecycle.js";import{dispatchDynamicSkillEvent}from"#context/dynamic-skill-lifecycle.js";import{dispatchDynamicToolEvent}from"#context/dynamic-tool-lifecycle.js";import{runStep,withContextScope}from"#context/run-step.js";import{hasPendingInputBatch}from"#harness/input-requests.js";import{getRuntimeActionRequestKey}from"#runtime/actions/keys.js";import{createExecutionNodeStep}from"#execution/node-step.js";import{emitProxiedInputRequest,routeDeliverPayload}from"#execution/subagent-hitl-proxy.js";import{turnWorkflow}from"#execution/turn-workflow.js";async function turnStep(e){"use step";let t=e;await setEveAttributes(buildTurnAttributes({parentSessionId:t.sessionState.sessionId,rootSessionId:readRootSessionId(t.serializedContext)??t.sessionState.sessionId}));let o=await readDurableSession(t.sessionState),l=await deserializeContext(t.serializedContext),f=l.require(ChannelKey),p=l.require(BundleKey),m=hydrateDurableSession({compactionOverrides:{thresholdPercent:p.resolvedAgent.config.compaction?.thresholdPercent},durable:o,turnAgent:p.turnAgent});try{let{getWorkflowMetadata:e}=await import(`#compiled/@workflow/core/index.js`),t=e();typeof t.url==`string`&&l.set(CallbackBaseUrlKey,t.url.replace(/\/$/,``))}catch{}let h=getPendingAuthorization(o.state),g;if(h&&t.input?.kind===`deliver`){let e=[],n=[],r=[];for(let i of t.input.payloads){let t=i.authorizationCallback;if(t){let r=h.challenges.find(e=>e.name===t.connectionName);r&&(e.push({name:r.name,resume:r.resume,callback:t.callback,hookUrl:r.hookUrl}),n.push({name:r.name,authorization:r.challenge}))}else r.push(i)}e.length>0&&(l.set(PendingAuthorizationResultKey,e),g=n,t=r.length>0?{...t,input:{...t.input,payloads:r}}:{...t,input:void 0})}t.input?.kind===`deliver`&&t.input.auth!==void 0&&l.set(AuthKey,t.input.auth??null);let _=buildAdapterContext(f,l),v;if(t.input?.kind===`deliver`){let e=[];for(let n of t.input.payloads){let t=f.deliver?await f.deliver(n,_):defaultDeliverResult(n);t!=null&&e.push(t)}v=e.length===0?void 0:e.reduce(coalesceTurnInputs)}else t.input?.kind===`runtime-action-result`&&(v={runtimeActionResults:t.input.results});if(t.input?.kind===`deliver`&&setChannelContext(l,{...f,state:{..._.state}}),t.input?.kind===`deliver`&&v===void 0){let e=reconcileSessionContinuationToken(l,m),n=serializeContext(l),r=e===m?t.sessionState:createDurableSessionState({session:e});return{action:`park`,...derivePendingState(e),serializedContext:n,sessionState:r}}let y=t.parentWritable.getWriter(),b=p.hookRegistry,x=p.resolvedAgent.dynamicInstructionsResolvers??[],S=p.resolvedAgent.dynamicSkillResolvers??[],C=p.resolvedAgent.dynamicToolResolvers??[],emit=async e=>{let t=await callAdapterEventHandler(f,e,_);return setChannelContext(l,{...f,state:{..._.state}}),await y.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(t))),t},handleEvent=async(e,t)=>{let n=await emit(e);await dispatchStreamEventHooks({ctx:l,registry:b,event:n}),await dispatchDynamicToolEvent({ctx:l,resolvers:C,event:n,messages:t??[]}),await dispatchDynamicSkillEvent({ctx:l,resolvers:S,event:n,messages:t??[]}),await dispatchDynamicInstructionEvent({ctx:l,resolvers:x,event:n,messages:t??[]})},w=l.require(ModeKey),T=await runStep(l,m,async e=>{let t=resolveEffectiveOutputSchema({agentOutputSchema:p.turnAgent.outputSchema,input:v,mode:w,session:e});if(g){let e=getHarnessEmissionState(t.state);for(let{name:t,authorization:n}of g)await handleEvent(createAuthorizationCompletedEvent({authorization:n,name:t,outcome:`authorized`,sequence:e.sequence,stepIndex:e.stepIndex,turnId:e.turnId}))}let n=l.get(CapabilitiesKey);return(async(e,t)=>{let r=refreshSessionFromTurnAgent({compactionOverrides:{thresholdPercent:p.resolvedAgent.config.compaction?.thresholdPercent},refreshSystemPrompt:shouldRefreshSystemPromptFromTurnAgent(p.compiledArtifactsSource),session:e,turnAgent:p.turnAgent});return createExecutionNodeStep({capabilities:n,createRuntime:createWorkflowRuntime,handleEvent,mode:w,modelResolutionScope:{moduleMap:p.moduleMap,nodeId:p.nodeId},node:p.graph.root})(r,t)})(t,v)}),E=reconcileSessionContinuationToken(l,T.session),D=serializeContext(l);T={...T,session:E};let O=createDurableSessionState({session:T.session});if(T.next!==null&&typeof T.next==`object`&&`done`in T.next)return await y.close(),{action:`done`,output:T.next.output,isError:T.next.isError,serializedContext:D,sessionState:O};if(T.next===null){y.releaseLock();let e=getPendingCodeModeInterrupt(T.session.state);return e!==void 0&&isCodeModeRuntimeActionInterrupt(e.interrupt)?{action:`dispatch-code-mode-runtime-actions`,pendingRuntimeActionKeys:[getRuntimeActionKeyFromInterrupt(e.interrupt)],serializedContext:D,sessionState:O}:{action:`park`,...derivePendingState(T.session),serializedContext:D,sessionState:O}}return y.releaseLock(),{action:`continue`,serializedContext:D,sessionState:O}}function shouldRefreshSystemPromptFromTurnAgent(e){return e.kind===`disk`&&e.moduleMapLoaderPath!==void 0}function derivePendingState(e){let t=getPendingRuntimeActionBatch(e.state),n=getPendingAuthorization(e.state),r={authorizationNames:n?.challenges.map(e=>e.name),hasPendingAuthorization:n!==void 0,hasPendingInputBatch:hasPendingInputBatch(e.state)};return t===void 0?r:{...r,pendingRuntimeActionKeys:t.actions.map(e=>getRuntimeActionRequestKey(e))}}function reconcileSessionContinuationToken(e,t){let n=e.get(ContinuationTokenKey);return n===void 0||n===t.continuationToken?t:{...t,continuationToken:n}}function resolveEffectiveOutputSchema(e){let{agentOutputSchema:t,input:n,mode:r,session:i}=e;return n?.outputSchema===void 0?r===`task`&&i.outputSchema===void 0&&t!==void 0?{...i,outputSchema:t}:i:{...i,outputSchema:n.outputSchema}}const log=createLogger(`execution.workflow-entry`);async function emitTerminalSessionFailureStep(e){"use step";let r=formatError(e.error),i=typeof r.name==`string`?r.name:`WORKFLOW_EXECUTION_FAILED`,a=typeof r.message==`string`?r.message:String(e.error),o=e.serializedContext[`eve.sessionId`]??``;log.error(`workflow loop threw — emitting terminal session.failed`,{sessionId:o,errorId:typeof r.errorId==`string`?r.errorId:void 0,code:i,message:a,detail:typeof r.detail==`string`?r.detail:void 0});let s=createSessionFailedEvent({code:i,details:r,message:a,sessionId:o});try{let t=await deserializeContext(e.serializedContext),r=t.get(ChannelKey);r!==void 0&&await callAdapterEventHandler(r,s,buildAdapterContext(r,t))}catch(e){log.error(`adapter failed to handle terminal session.failed event`,{errorId:typeof r.errorId==`string`?r.errorId:void 0,sessionId:o,error:e})}try{let t=e.parentWritable.getWriter();try{await t.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(s)))}finally{t.releaseLock()}}catch(e){log.error(`failed to write terminal session.failed event to durable stream`,{errorId:typeof r.errorId==`string`?r.errorId:void 0,sessionId:o,error:e})}}async function runProxyInputRequestStep(e){"use step";let t=await readDurableSession(e.sessionState),r=await deserializeContext(e.serializedContext),i=r.require(ChannelKey),a=buildAdapterContext(i,r),o=r.require(ModeKey),c=r.require(BundleKey),l=hydrateDurableSession({compactionOverrides:{thresholdPercent:c.resolvedAgent.config.compaction?.thresholdPercent},durable:t,turnAgent:c.turnAgent}),u=e.parentWritable.getWriter(),d;try{let emit=async e=>{let t=await callAdapterEventHandler(i,e,a);await u.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(t)))};d=await withContextScope(r,l,async t=>{let n=await emitProxiedInputRequest({emit,hookPayload:e.hookPayload,mode:o,session:t});return{result:n.entries,session:n.session}})}finally{u.releaseLock()}return setChannelContext(r,{...i,state:{...a.state}}),{serializedContext:serializeContext(r),sessionState:createDurableSessionState({session:reconcileSessionContinuationToken(r,upsertProxyInputRequests({entries:d.result,forChildContinuationToken:e.hookPayload.childContinuationToken,session:d.session}))})}}async function routeProxiedDeliverStep(e){"use step";let t=await readDurableSession(e.sessionState),n=routeDeliverPayload({payload:e.payload,state:t.state}),{resumeHook:r}=await import(`#compiled/@workflow/core/runtime.js`);process.env.WORKFLOW_QUEUE_NAMESPACE=`eve`;for(let t of n.forChildren)await r(t.childContinuationToken,{auth:e.auth,kind:`deliver`,payloads:[t.payload]});return{remainder:n.forSelf}}async function dispatchTurnStep(e){"use step";return{runId:(await startWorkflowPreferLatest(turnWorkflow,[createTurnWorkflowInput(e)])).runId}}export{dispatchTurnStep,emitTerminalSessionFailureStep,reconcileSessionContinuationToken,resolveEffectiveOutputSchema,routeProxiedDeliverStep,runProxyInputRequestStep,turnStep};
|
|
1
|
+
import{createLogger,formatError}from"#internal/logging.js";import{callAdapterEventHandler,defaultDeliverResult}from"#channel/adapter.js";import{AuthKey,CapabilitiesKey,ContinuationTokenKey,ModeKey}from"#context/keys.js";import{createAuthorizationCompletedEvent,createSessionFailedEvent,encodeMessageStreamEvent,timestampHandleMessageStreamEvent}from"#protocol/message.js";import{BundleKey,ChannelKey}from"#runtime/sessions/runtime-context-keys.js";import{getHarnessEmissionState}from"#harness/emission.js";import{createDurableSessionState,readDurableSession}from"#execution/durable-session-store.js";import{hydrateDurableSession,refreshSessionFromTurnAgent}from"#execution/session.js";import{buildTurnAttributes,readRootSessionId}from"#execution/eve-workflow-attributes.js";import{setEveAttributes}from"#runtime/attributes/emit.js";import{deserializeContext,serializeContext}from"#context/serialize.js";import{getRuntimeActionKeyFromInterrupt,isCodeModeRuntimeActionInterrupt}from"#harness/code-mode-runtime-action-state.js";import{getPendingCodeModeInterrupt}from"#harness/code-mode-interrupt-state.js";import{getPendingRuntimeActionBatch}from"#harness/runtime-actions.js";import{buildAdapterContext}from"#channel/adapter-context.js";import{createWorkflowRuntime,startWorkflowPreferLatest}from"#execution/workflow-runtime.js";import{upsertProxyInputRequests}from"#harness/proxy-input-requests.js";import{setChannelContext}from"#execution/channel-context.js";import{CallbackBaseUrlKey,PendingAuthorizationResultKey,getPendingAuthorization}from"#harness/authorization.js";import{createTurnWorkflowInput}from"#execution/durable-session-migrations/turn-workflow.js";import{coalesceTurnInputs}from"#harness/messages.js";import{dispatchStreamEventHooks}from"#context/hook-lifecycle.js";import{dispatchDynamicInstructionEvent}from"#context/dynamic-instruction-lifecycle.js";import{dispatchDynamicSkillEvent}from"#context/dynamic-skill-lifecycle.js";import{dispatchDynamicToolEvent}from"#context/dynamic-tool-lifecycle.js";import{runStep,withContextScope}from"#context/run-step.js";import{hasPendingInputBatch}from"#harness/input-requests.js";import{getRuntimeActionRequestKey}from"#runtime/actions/keys.js";import{createExecutionNodeStep}from"#execution/node-step.js";import{emitProxiedInputRequest,routeDeliverPayload}from"#execution/subagent-hitl-proxy.js";import{turnWorkflow}from"#execution/turn-workflow.js";async function turnStep(e){"use step";let t=e;await setEveAttributes(buildTurnAttributes({parentSessionId:t.sessionState.sessionId,rootSessionId:readRootSessionId(t.serializedContext)??t.sessionState.sessionId}));let o=await readDurableSession(t.sessionState),l=await deserializeContext(t.serializedContext),f=l.require(ChannelKey),p=l.require(BundleKey),m=hydrateDurableSession({compactionOverrides:{thresholdPercent:p.resolvedAgent.config.compaction?.thresholdPercent},durable:o,turnAgent:p.turnAgent});try{let{getWorkflowMetadata:e}=await import(`#compiled/@workflow/core/index.js`),t=e();typeof t.url==`string`&&l.set(CallbackBaseUrlKey,t.url.replace(/\/$/,``))}catch{}let h=getPendingAuthorization(o.state),g;if(h&&t.input?.kind===`deliver`){let e=[],n=[],r=[];for(let i of t.input.payloads){let t=i.authorizationCallback;if(t){let r=h.challenges.find(e=>e.name===t.connectionName);r&&(e.push({name:r.name,resume:r.resume,callback:t.callback,hookUrl:r.hookUrl}),n.push({name:r.name,authorization:r.challenge}))}else r.push(i)}e.length>0&&(l.set(PendingAuthorizationResultKey,e),g=n,t=r.length>0?{...t,input:{...t.input,payloads:r}}:{...t,input:void 0})}t.input?.kind===`deliver`&&t.input.auth!==void 0&&l.set(AuthKey,t.input.auth??null);let _=buildAdapterContext(f,l),v;if(t.input?.kind===`deliver`){let e=[];for(let n of t.input.payloads){let t=f.deliver?await f.deliver(n,_):defaultDeliverResult(n);t!=null&&e.push(t)}v=e.length===0?void 0:e.reduce(coalesceTurnInputs)}else t.input?.kind===`runtime-action-result`&&(v={runtimeActionResults:t.input.results});if(t.input?.kind===`deliver`&&setChannelContext(l,{...f,state:{..._.state}}),t.input?.kind===`deliver`&&v===void 0){let e=reconcileSessionContinuationToken(l,m),n=serializeContext(l),r=e===m?t.sessionState:createDurableSessionState({session:e});return{action:`park`,...derivePendingState(e),serializedContext:n,sessionState:r}}let y=t.parentWritable.getWriter(),b=p.hookRegistry,x=p.resolvedAgent.dynamicInstructionsResolvers??[],S=p.resolvedAgent.dynamicSkillResolvers??[],C=p.resolvedAgent.dynamicToolResolvers??[],emit=async e=>{let t=await callAdapterEventHandler(f,e,_);return setChannelContext(l,{...f,state:{..._.state}}),await y.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(t))),t},handleEvent=async(e,t)=>{let n=await emit(e);await dispatchStreamEventHooks({ctx:l,registry:b,event:n}),await dispatchDynamicToolEvent({ctx:l,resolvers:C,event:n,messages:t??[]}),await dispatchDynamicSkillEvent({ctx:l,resolvers:S,event:n,messages:t??[]}),await dispatchDynamicInstructionEvent({ctx:l,resolvers:x,event:n,messages:t??[]})},w=l.require(ModeKey),T=await runStep(l,m,async e=>{let t=resolveEffectiveOutputSchema({agentOutputSchema:p.turnAgent.outputSchema,input:v,mode:w,session:e});if(g){let e=getHarnessEmissionState(t.state);for(let{name:t,authorization:n}of g)await handleEvent(createAuthorizationCompletedEvent({authorization:n,name:t,outcome:`authorized`,sequence:e.sequence,stepIndex:e.stepIndex,turnId:e.turnId}))}let n=l.get(CapabilitiesKey);return(async(e,t)=>{let r=refreshSessionFromTurnAgent({compactionOverrides:{thresholdPercent:p.resolvedAgent.config.compaction?.thresholdPercent},session:e,turnAgent:p.turnAgent});return createExecutionNodeStep({capabilities:n,createRuntime:createWorkflowRuntime,handleEvent,mode:w,modelResolutionScope:{moduleMap:p.moduleMap,nodeId:p.nodeId},node:p.graph.root})(r,t)})(t,v)}),E=reconcileSessionContinuationToken(l,T.session),D=serializeContext(l);T={...T,session:E};let O=createDurableSessionState({session:T.session});if(T.next!==null&&typeof T.next==`object`&&`done`in T.next)return await y.close(),{action:`done`,output:T.next.output,isError:T.next.isError,serializedContext:D,sessionState:O};if(T.next===null){y.releaseLock();let e=getPendingCodeModeInterrupt(T.session.state);return e!==void 0&&isCodeModeRuntimeActionInterrupt(e.interrupt)?{action:`dispatch-code-mode-runtime-actions`,pendingRuntimeActionKeys:[getRuntimeActionKeyFromInterrupt(e.interrupt)],serializedContext:D,sessionState:O}:{action:`park`,...derivePendingState(T.session),serializedContext:D,sessionState:O}}return y.releaseLock(),{action:`continue`,serializedContext:D,sessionState:O}}function derivePendingState(e){let t=getPendingRuntimeActionBatch(e.state),n=getPendingAuthorization(e.state),r={authorizationNames:n?.challenges.map(e=>e.name),hasPendingAuthorization:n!==void 0,hasPendingInputBatch:hasPendingInputBatch(e.state)};return t===void 0?r:{...r,pendingRuntimeActionKeys:t.actions.map(e=>getRuntimeActionRequestKey(e))}}function reconcileSessionContinuationToken(e,t){let n=e.get(ContinuationTokenKey);return n===void 0||n===t.continuationToken?t:{...t,continuationToken:n}}function resolveEffectiveOutputSchema(e){let{agentOutputSchema:t,input:n,mode:r,session:i}=e;return n?.outputSchema===void 0?r===`task`&&i.outputSchema===void 0&&t!==void 0?{...i,outputSchema:t}:i:{...i,outputSchema:n.outputSchema}}const log=createLogger(`execution.workflow-entry`);async function emitTerminalSessionFailureStep(e){"use step";let r=formatError(e.error),i=typeof r.name==`string`?r.name:`WORKFLOW_EXECUTION_FAILED`,a=typeof r.message==`string`?r.message:String(e.error),o=e.serializedContext[`eve.sessionId`]??``;log.error(`workflow loop threw — emitting terminal session.failed`,{sessionId:o,errorId:typeof r.errorId==`string`?r.errorId:void 0,code:i,message:a,detail:typeof r.detail==`string`?r.detail:void 0});let s=createSessionFailedEvent({code:i,details:r,message:a,sessionId:o});try{let t=await deserializeContext(e.serializedContext),r=t.get(ChannelKey);r!==void 0&&await callAdapterEventHandler(r,s,buildAdapterContext(r,t))}catch(e){log.error(`adapter failed to handle terminal session.failed event`,{errorId:typeof r.errorId==`string`?r.errorId:void 0,sessionId:o,error:e})}try{let t=e.parentWritable.getWriter();try{await t.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(s)))}finally{t.releaseLock()}}catch(e){log.error(`failed to write terminal session.failed event to durable stream`,{errorId:typeof r.errorId==`string`?r.errorId:void 0,sessionId:o,error:e})}}async function runProxyInputRequestStep(e){"use step";let t=await readDurableSession(e.sessionState),r=await deserializeContext(e.serializedContext),i=r.require(ChannelKey),a=buildAdapterContext(i,r),o=r.require(ModeKey),c=r.require(BundleKey),l=hydrateDurableSession({compactionOverrides:{thresholdPercent:c.resolvedAgent.config.compaction?.thresholdPercent},durable:t,turnAgent:c.turnAgent}),u=e.parentWritable.getWriter(),d;try{let emit=async e=>{let t=await callAdapterEventHandler(i,e,a);await u.write(encodeMessageStreamEvent(timestampHandleMessageStreamEvent(t)))};d=await withContextScope(r,l,async t=>{let n=await emitProxiedInputRequest({emit,hookPayload:e.hookPayload,mode:o,session:t});return{result:n.entries,session:n.session}})}finally{u.releaseLock()}return setChannelContext(r,{...i,state:{...a.state}}),{serializedContext:serializeContext(r),sessionState:createDurableSessionState({session:reconcileSessionContinuationToken(r,upsertProxyInputRequests({entries:d.result,forChildContinuationToken:e.hookPayload.childContinuationToken,session:d.session}))})}}async function routeProxiedDeliverStep(e){"use step";let t=await readDurableSession(e.sessionState),n=routeDeliverPayload({payload:e.payload,state:t.state}),{resumeHook:r}=await import(`#compiled/@workflow/core/runtime.js`);process.env.WORKFLOW_QUEUE_NAMESPACE=`eve`;for(let t of n.forChildren)await r(t.childContinuationToken,{auth:e.auth,kind:`deliver`,payloads:[t.payload]});return{remainder:n.forSelf}}async function dispatchTurnStep(e){"use step";return{runId:(await startWorkflowPreferLatest(turnWorkflow,[createTurnWorkflowInput(e)])).runId}}export{dispatchTurnStep,emitTerminalSessionFailureStep,reconcileSessionContinuationToken,resolveEffectiveOutputSchema,routeProxiedDeliverStep,runProxyInputRequestStep,turnStep};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire}from"node:module";import{existsSync,readFileSync,realpathSync}from"node:fs";import{basename,dirname,join}from"node:path";import{EVE_PACKAGE_NAME}from"#internal/package-name.js";import{fileURLToPath}from"node:url";let cachedPackageInfo;const BUNDLED_FALLBACK_PACKAGE_VERSION=`0.13.
|
|
1
|
+
import{createRequire}from"node:module";import{existsSync,readFileSync,realpathSync}from"node:fs";import{basename,dirname,join}from"node:path";import{EVE_PACKAGE_NAME}from"#internal/package-name.js";import{fileURLToPath}from"node:url";let cachedPackageInfo;const BUNDLED_FALLBACK_PACKAGE_VERSION=`0.13.2`,WORKFLOW_MODULE_ALIASES={"workflow/api":`src/compiled/@workflow/core/runtime.js`,"workflow/errors":`src/compiled/@workflow/errors/index.js`,"workflow/internal/private":`src/compiled/@workflow/core/private.js`,"workflow/runtime":`src/compiled/@workflow/core/runtime.js`};function resolveFallbackPackageVersion(){return BUNDLED_FALLBACK_PACKAGE_VERSION.startsWith(`__`)?`0.0.0`:BUNDLED_FALLBACK_PACKAGE_VERSION}const FALLBACK_PACKAGE_INFO={name:EVE_PACKAGE_NAME,version:resolveFallbackPackageVersion()};function resolveCurrentModulePath(){return typeof __filename==`string`?__filename:resolveCurrentModulePathFromStack()}function resolveCurrentModulePathFromStack(){let e=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let e=Error().stack?.[0]?.getFileName();if(typeof e!=`string`||e.length===0)throw Error(`Failed to resolve the current module path from the stack trace.`);return e.startsWith(`file:`)?fileURLToPath(e):e}finally{Error.prepareStackTrace=e}}const require=createRequire(resolveCurrentModulePath());function isBuildOutputPackageRoot(e){return basename(e)===`dist`&&existsSync(join(dirname(e),`package.json`))}function resolvePackageBuildRoot(){let e=dirname(realpathSync(resolveCurrentModulePath()));for(;;){if(isBuildOutputPackageRoot(e))return e;let t=dirname(e);if(t===e)return null;e=t}}function findNearestPackageRoot(e){let n=e;for(;;){if(existsSync(join(n,`package.json`))&&!isBuildOutputPackageRoot(n))return n;let r=dirname(n);if(r===n)throw Error(`Failed to resolve package root from "${e}".`);n=r}}function resolvePackageRoot(){return findNearestPackageRoot(dirname(realpathSync(resolveCurrentModulePath())))}function tryResolvePackageRoot(){try{return resolvePackageRoot()}catch{return}}function rewriteSourceFilePathForBuild(e){return e.replace(/\.[cm]?tsx?$/,`.js`)}function resolvePackageSourceFilePath(e){let t=resolvePackageBuildRoot();return t===null?join(resolvePackageRoot(),e):join(t,rewriteSourceFilePathForBuild(e))}function resolvePackageSourceDirectoryPath(e){let t=resolvePackageBuildRoot();return join(t===null?resolvePackageRoot():t,e)}function resolvePackageDependencyPath(e){return require.resolve(e)}function resolvePackageCompiledFilePath(e){let t=resolvePackageBuildRoot();return t===null?join(resolvePackageRoot(),`.generated`,`compiled`,e.replace(/^src\/compiled\//,``)):join(t,e)}function normalizeInstalledPackageInfo(e){let t=e;if(!(typeof t.name!=`string`||typeof t.version!=`string`))return{name:t.name,version:t.version}}function tryReadInstalledPackageInfo(e,t){let r=normalizeInstalledPackageInfo(JSON.parse(readFileSync(e,`utf8`)));if(r?.name===t)return r}function resolveInstalledPackageInfo(){if(cachedPackageInfo)return cachedPackageInfo;let e=tryResolvePackageRoot(),t=e===void 0?void 0:tryReadInstalledPackageInfo(join(e,`package.json`),EVE_PACKAGE_NAME);if(t)return cachedPackageInfo=t,cachedPackageInfo;try{let e=tryReadInstalledPackageInfo(require.resolve(`${EVE_PACKAGE_NAME}/package.json`),EVE_PACKAGE_NAME);if(e)return cachedPackageInfo=e,cachedPackageInfo}catch{}return cachedPackageInfo={...FALLBACK_PACKAGE_INFO},cachedPackageInfo}function resolveWorkflowModulePath(e){if(e===`workflow`)return resolvePackageSourceFilePath(`src/internal/workflow/index.ts`);if(e===`workflow/internal/builtins`)return resolvePackageSourceFilePath(`src/internal/workflow/builtins.ts`);let t=WORKFLOW_MODULE_ALIASES[e];return t===void 0?require.resolve(e):resolvePackageCompiledFilePath(t)}export{resolveInstalledPackageInfo,resolvePackageDependencyPath,resolvePackageRoot,resolvePackageSourceDirectoryPath,resolvePackageSourceFilePath,resolveWorkflowModulePath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function remap(e,t){let n={};if(!Object.keys(t).length)return n=e,n;for(let[r,i]of Object.entries(e)){let e=t[r];e!==null&&(n[e??r]=i)}return n}export{remap};
|
package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/lib/schemas.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../../../../zod@4.4.3/node_modules/zod/v3/ZodError.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";import{SDKValidationError}from"../models/sdkvalidationerror.js";import{ERR,OK}from"../types/fp.js";function safeParse(t,n,r){try{return OK(n(t))}catch(e){return ERR(new SDKValidationError(r,e,t))}}export{safeParse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{nativeEnumType}from"../../../../../../zod@4.4.3/node_modules/zod/v3/types.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";const ACLAction$inboundSchema=nativeEnumType({Create:`create`,Delete:`delete`,List:`list`,Read:`read`,Update:`update`});export{ACLAction$inboundSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ZodError}from"../../../../../../zod@4.4.3/node_modules/zod/v3/ZodError.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";var SDKValidationError=class extends Error{rawValue;rawMessage;static[Symbol.hasInstance](e){return!(!(e instanceof Error)||!(`rawValue`in e)||!(`rawMessage`in e)||!(`pretty`in e)||typeof e.pretty!=`function`)}constructor(e,t,n){super(`${e}: ${t}`),this.name=`SDKValidationError`,this.cause=t,this.rawValue=n,this.rawMessage=e}pretty(){return this.cause instanceof ZodError?`${this.rawMessage}\n${formatZodError(this.cause)}`:this.toString()}};function formatZodError(e,t=0){let n=` `.repeat(t);n=t>0?`│${n}`:n,n+=` `.repeat(t);let r=``,append=e=>r+=`\n${n}${e}`,i=e.issues.length,a=i===1?`${i} issue found`:`${i} issues found`;i&&append(`┌ ${a}:`);for(let n of e.issues){let e=n.path.join(`.`);switch(e=e?`<root>.${e}`:`<root>`,append(`│ • [${e}]: ${n.message} (${n.code})`),n.code){case`invalid_literal`:case`invalid_type`:append(`│ Want: ${n.expected}`),append(`│ Got: ${n.received}`);break;case`unrecognized_keys`:append(`│ Keys: ${n.keys.join(`, `)}`);break;case`invalid_enum_value`:append(`│ Allowed: ${n.options.join(`, `)}`),append(`│ Got: ${n.received}`);break;case`invalid_union_discriminator`:append(`│ Allowed: ${n.options.join(`, `)}`);break;case`invalid_union`:{let e=n.unionErrors.length;append(`│ ✖︎ Attemped to deserialize into one of ${e} union members:`),n.unionErrors.forEach((n,r)=>{append(`│ ✖︎ Member ${r+1} of ${e}`),append(`${formatZodError(n,t+1)}`)})}}}return e.issues.length&&append(`└─*`),r.slice(1)}export{SDKValidationError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{arrayType,lazyType,literalType,nativeEnumType,nullableType,objectType,recordType,unionType}from"../../../../../../zod@4.4.3/node_modules/zod/v3/types.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";import{remap}from"../lib/primitives.js";import{safeParse}from"../lib/schemas.js";import{boolean,literal,nullable,number,optional,string}from"../types/primitives.js";import{smartUnion}from"../types/smartUnion.js";import{ACLAction$inboundSchema}from"./aclaction.js";const UpdateProjectProjectsResponseDeploymentType={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`},UpdateProjectProjectsFunctionDefaultMemoryType={Performance:`performance`,PerformanceXl:`performance_xl`,Standard:`standard`,StandardLegacy:`standard_legacy`},UpdateProjectProjectsBuildMachineType={Enhanced:`enhanced`,Standard:`standard`,Turbo:`turbo`},UpdateProjectProjectsBuildMachineSelection={Elastic:`elastic`,Fixed:`fixed`},UpdateProjectProjectsConfiguration={SkipNamespaceQueue:`SKIP_NAMESPACE_QUEUE`,WaitForNamespaceQueue:`WAIT_FOR_NAMESPACE_QUEUE`},UpdateProjectProjectsResponseFunctionDefaultMemoryType={Performance:`performance`,PerformanceXl:`performance_xl`,Standard:`standard`,StandardLegacy:`standard_legacy`},UpdateProjectProjectsResponseBuildMachineType={Enhanced:`enhanced`,Standard:`standard`,Turbo:`turbo`},UpdateProjectProjectsResponseBuildMachineSelection={Elastic:`elastic`,Fixed:`fixed`},UpdateProjectProjectsResponseConfiguration={SkipNamespaceQueue:`SKIP_NAMESPACE_QUEUE`,WaitForNamespaceQueue:`WAIT_FOR_NAMESPACE_QUEUE`},UpdateProjectProjectsResponse200DeploymentType={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`},UpdateProjectCve55182MigrationAppliedFrom={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`},UpdateProjectApril2026SecurityIncidentMigrationAppliedFrom={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`},UpdateProjectJobStatus={Failed:`failed`,InProgress:`in-progress`,Pending:`pending`,Skipped:`skipped`,Succeeded:`succeeded`},UpdateProjectProjectsResponseType={Promote:`promote`,Rollback:`rollback`},UpdateProjectTrustedIpsProjectsDeploymentType={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,Production:`production`},UpdateProjectTrustedIpsDeploymentType={All:`all`,AllExceptCustomDomains:`all_except_custom_domains`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,Production:`production`},UpdateProjectTrustedIpsProtectionMode={Additional:`additional`,Exclusive:`exclusive`},UpdateProjectFromProjectsResponsePreset={AllCustom:`all-custom`},UpdateProjectFromProjectsPreset={AllCustom:`all-custom`},UpdateProjectToProjectsResponse200ApplicationJSONResponseBodyPreset={AllCustom:`all-custom`},UpdateProjectToProjectsResponse200ApplicationJSONPreset={AllCustom:`all-custom`},UpdateProjectToProjectsResponse200Preset={AllCustom:`all-custom`},UpdateProjectToProjectsResponsePreset={AllCustom:`all-custom`},UpdateProjectCreateDeployments={Disabled:`disabled`,Enabled:`enabled`},UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction={Challenge:`challenge`,Deny:`deny`,Log:`log`},UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction={Challenge:`challenge`,Deny:`deny`,Log:`log`},UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction={Challenge:`challenge`,Deny:`deny`,Log:`log`},UpdateProjectProjectsResponse200ApplicationJSONAction={Challenge:`challenge`,Deny:`deny`,Log:`log`},UpdateProjectProjectsResponse200ApplicationJSONResponseBodyAction={Challenge:`challenge`,Deny:`deny`,Log:`log`},UpdateProjectLogHeaders2={Wildcard:`*`},UpdateProjectProjectsIssuerMode={Global:`global`,Team:`team`},UpdateProjectSourcesProjectsResponse200Provider={Bitbucket:`bitbucket`,Github:`github`},UpdateProjectEnvironmentsProjectsResponse200Target={Preview:`preview`,Production:`production`},UpdateProjectProjectsSources={Cli:`cli`,DeployHook:`deploy-hook`,Git:`git`,Integration:`integration`,RestApi:`rest-api`,V0:`v0`},UpdateProjectEnvironmentsProjectsResponseTarget={Preview:`preview`,Production:`production`},UpdateProjectFlatRateTier={Advanced:`advanced`,Base:`base`,Critical:`critical`,Standard:`standard`},UpdateProjectKind={Flat:`flat`},UpdateProjectProjectsResponse200Action={Blocked:`blocked`},UpdateProjectHasProjectsKey={XVercelIpCountry:`x-vercel-ip-country`},UpdateProjectRouteProjectsAction={BlockLegalCwc:`block_legal_cwc`},UpdateProjectHasProjectsResponseKey={XVercelIpCountry:`x-vercel-ip-country`},UpdateProjectRouteAction={BlockLegalCwc:`block_legal_cwc`},UpdateProjectProjectsResponseAction={AddDeploymentInterstitial:`add-deployment-interstitial`,AddProjectInterstitial:`add-project-interstitial`,RemoveDeploymentInterstitial:`remove-deployment-interstitial`,RemoveProjectInterstitial:`remove-project-interstitial`},UpdateProjectHasKey={XVercelIpCountry:`x-vercel-ip-country`},UpdateProjectInternalRoutesAction={BlockLegalCwc:`block_legal_cwc`},UpdateProjectProjectsAction={Accept:`accept`,Cancel:`cancel`,Delete:`delete`};objectType({}),objectType({deploymentType:nativeEnumType(UpdateProjectProjectsResponseDeploymentType),connectorId:string()});const UpdateProjectSandboxUrls$inboundSchema=objectType({inheritDeploymentProtection:optional(boolean())});objectType({sandboxUrls:optional(lazyType(()=>UpdateProjectSandboxUrls$inboundSchema))});const UpdateProjectProjectsFunctionDefaultMemoryType$inboundSchema=nativeEnumType(UpdateProjectProjectsFunctionDefaultMemoryType),UpdateProjectProjectsBuildMachineType$inboundSchema=nativeEnumType(UpdateProjectProjectsBuildMachineType),UpdateProjectProjectsBuildMachineSelection$inboundSchema=nativeEnumType(UpdateProjectProjectsBuildMachineSelection),UpdateProjectProjectsBuildQueue$inboundSchema=objectType({configuration:optional(nativeEnumType(UpdateProjectProjectsConfiguration))});objectType({elasticConcurrencyEnabled:optional(boolean()),fluid:optional(boolean()),functionDefaultRegions:arrayType(string()),functionDefaultTimeout:optional(number()),functionDefaultMemoryType:optional(UpdateProjectProjectsFunctionDefaultMemoryType$inboundSchema),functionZeroConfigFailover:optional(boolean()),buildMachineType:optional(UpdateProjectProjectsBuildMachineType$inboundSchema),buildMachineSelection:optional(UpdateProjectProjectsBuildMachineSelection$inboundSchema),buildMachineElasticLastUpdated:optional(number()),isNSNBDisabled:optional(boolean()),buildQueue:optional(lazyType(()=>UpdateProjectProjectsBuildQueue$inboundSchema)),enableFunctionsBeta:optional(boolean())}),objectType({userId:string(),username:string(),description:string(),createdAt:number()});const UpdateProjectStages$inboundSchema=objectType({targetPercentage:number(),requireApproval:optional(boolean()),duration:optional(number()),linearShift:optional(boolean())});objectType({target:string(),stages:nullableType(arrayType(lazyType(()=>UpdateProjectStages$inboundSchema))).optional(),canaryResponseHeader:optional(boolean())});const UpdateProjectProjectsResponseFunctionDefaultMemoryType$inboundSchema=nativeEnumType(UpdateProjectProjectsResponseFunctionDefaultMemoryType),UpdateProjectProjectsResponseBuildMachineType$inboundSchema=nativeEnumType(UpdateProjectProjectsResponseBuildMachineType),UpdateProjectProjectsResponseBuildMachineSelection$inboundSchema=nativeEnumType(UpdateProjectProjectsResponseBuildMachineSelection),UpdateProjectProjectsResponseBuildQueue$inboundSchema=objectType({configuration:optional(nativeEnumType(UpdateProjectProjectsResponseConfiguration))});objectType({elasticConcurrencyEnabled:optional(boolean()),fluid:optional(boolean()),functionDefaultRegions:arrayType(string()),functionDefaultTimeout:optional(number()),functionDefaultMemoryType:optional(UpdateProjectProjectsResponseFunctionDefaultMemoryType$inboundSchema),functionZeroConfigFailover:optional(boolean()),buildMachineType:optional(UpdateProjectProjectsResponseBuildMachineType$inboundSchema),buildMachineSelection:optional(UpdateProjectProjectsResponseBuildMachineSelection$inboundSchema),buildMachineElasticLastUpdated:optional(number()),isNSNBDisabled:optional(boolean()),buildQueue:optional(lazyType(()=>UpdateProjectProjectsResponseBuildQueue$inboundSchema)),enableFunctionsBeta:optional(boolean())}),objectType({builds:boolean(),enabled:boolean(),regions:arrayType(string())});const UpdateProjectProjectsResponse200DeploymentType$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200DeploymentType),UpdateProjectCve55182MigrationAppliedFrom$inboundSchema=nativeEnumType(UpdateProjectCve55182MigrationAppliedFrom),UpdateProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema=nativeEnumType(UpdateProjectApril2026SecurityIncidentMigrationAppliedFrom);objectType({deploymentType:UpdateProjectProjectsResponse200DeploymentType$inboundSchema,cve55182MigrationAppliedFrom:nullableType(UpdateProjectCve55182MigrationAppliedFrom$inboundSchema).optional(),april2026SecurityIncidentMigrationAppliedFrom:nullableType(UpdateProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema).optional()}),smartUnion([number(),boolean()]);const UpdateProjectProjectsBuilds$inboundSchema=objectType({use:string(),src:optional(string()),dest:optional(string())}),UpdateProjectProjectsCreator$inboundSchema=objectType({email:string(),githubLogin:optional(string()),gitlabLogin:optional(string()),uid:string(),username:string()});objectType({alias:optional(arrayType(string())),aliasAssigned:nullableType(smartUnion([number(),boolean()])).optional(),builds:optional(arrayType(lazyType(()=>UpdateProjectProjectsBuilds$inboundSchema))),createdAt:number(),createdIn:string(),creator:nullable(lazyType(()=>UpdateProjectProjectsCreator$inboundSchema)),deploymentHostname:string(),name:string(),forced:optional(boolean()),id:string(),meta:optional(recordType(string())),plan:string(),private:boolean(),readyState:string(),requestedAt:optional(number()),target:nullableType(string()).optional(),teamId:nullableType(string()).optional(),type:string(),url:string(),userId:string(),withCache:optional(boolean())}),objectType({oauth2Connection:optional(arrayType(ACLAction$inboundSchema)),user:optional(arrayType(ACLAction$inboundSchema)),userConnection:optional(arrayType(ACLAction$inboundSchema)),userMfaConfiguration:optional(arrayType(ACLAction$inboundSchema)),userPreference:optional(arrayType(ACLAction$inboundSchema)),userSudo:optional(arrayType(ACLAction$inboundSchema)),webAuthn:optional(arrayType(ACLAction$inboundSchema)),accessGroup:optional(arrayType(ACLAction$inboundSchema)),agent:optional(arrayType(ACLAction$inboundSchema)),aiGatewayRules:optional(arrayType(ACLAction$inboundSchema)),aiGatewayUsage:optional(arrayType(ACLAction$inboundSchema)),alerts:optional(arrayType(ACLAction$inboundSchema)),alertRules:optional(arrayType(ACLAction$inboundSchema)),aliasGlobal:optional(arrayType(ACLAction$inboundSchema)),analyticsSampling:optional(arrayType(ACLAction$inboundSchema)),analyticsUsage:optional(arrayType(ACLAction$inboundSchema)),apiKey:optional(arrayType(ACLAction$inboundSchema)),apiKeyAiGateway:optional(arrayType(ACLAction$inboundSchema)),apiKeyOwnedBySelf:optional(arrayType(ACLAction$inboundSchema)),oauth2Application:optional(arrayType(ACLAction$inboundSchema)),vercelAppInstallation:optional(arrayType(ACLAction$inboundSchema)),vercelAppInstallationRequest:optional(arrayType(ACLAction$inboundSchema)),auditLog:optional(arrayType(ACLAction$inboundSchema)),billingAddress:optional(arrayType(ACLAction$inboundSchema)),billingInformation:optional(arrayType(ACLAction$inboundSchema)),billingInvoice:optional(arrayType(ACLAction$inboundSchema)),billingInvoiceEmailRecipient:optional(arrayType(ACLAction$inboundSchema)),billingInvoiceLanguage:optional(arrayType(ACLAction$inboundSchema)),billingPlan:optional(arrayType(ACLAction$inboundSchema)),billingPurchaseOrder:optional(arrayType(ACLAction$inboundSchema)),billingRefund:optional(arrayType(ACLAction$inboundSchema)),billingTaxId:optional(arrayType(ACLAction$inboundSchema)),blob:optional(arrayType(ACLAction$inboundSchema)),blobStoreTokenSet:optional(arrayType(ACLAction$inboundSchema)),budget:optional(arrayType(ACLAction$inboundSchema)),cacheArtifact:optional(arrayType(ACLAction$inboundSchema)),cacheArtifactUsageEvent:optional(arrayType(ACLAction$inboundSchema)),codeChecks:optional(arrayType(ACLAction$inboundSchema)),ciInvocations:optional(arrayType(ACLAction$inboundSchema)),ciLogs:optional(arrayType(ACLAction$inboundSchema)),concurrentBuilds:optional(arrayType(ACLAction$inboundSchema)),connect:optional(arrayType(ACLAction$inboundSchema)),connectConfiguration:optional(arrayType(ACLAction$inboundSchema)),connexClient:optional(arrayType(ACLAction$inboundSchema)),connexClientProject:optional(arrayType(ACLAction$inboundSchema)),connexToken:optional(arrayType(ACLAction$inboundSchema)),buildMachineDefault:optional(arrayType(ACLAction$inboundSchema)),dataCacheBillingSettings:optional(arrayType(ACLAction$inboundSchema)),defaultDeploymentProtection:optional(arrayType(ACLAction$inboundSchema)),deploymentPolicy:optional(arrayType(ACLAction$inboundSchema)),domain:optional(arrayType(ACLAction$inboundSchema)),domainAcceptDelegation:optional(arrayType(ACLAction$inboundSchema)),domainAuthCodes:optional(arrayType(ACLAction$inboundSchema)),domainCertificate:optional(arrayType(ACLAction$inboundSchema)),domainCheckConfig:optional(arrayType(ACLAction$inboundSchema)),domainMove:optional(arrayType(ACLAction$inboundSchema)),domainPurchase:optional(arrayType(ACLAction$inboundSchema)),domainRecord:optional(arrayType(ACLAction$inboundSchema)),domainTransferIn:optional(arrayType(ACLAction$inboundSchema)),drain:optional(arrayType(ACLAction$inboundSchema)),edgeConfig:optional(arrayType(ACLAction$inboundSchema)),edgeConfigItem:optional(arrayType(ACLAction$inboundSchema)),edgeConfigSchema:optional(arrayType(ACLAction$inboundSchema)),edgeConfigToken:optional(arrayType(ACLAction$inboundSchema)),endpointVerification:optional(arrayType(ACLAction$inboundSchema)),event:optional(arrayType(ACLAction$inboundSchema)),fileUpload:optional(arrayType(ACLAction$inboundSchema)),flagsExplorerSubscription:optional(arrayType(ACLAction$inboundSchema)),gitRepository:optional(arrayType(ACLAction$inboundSchema)),imageOptimizationNewPrice:optional(arrayType(ACLAction$inboundSchema)),integration:optional(arrayType(ACLAction$inboundSchema)),integrationAccount:optional(arrayType(ACLAction$inboundSchema)),integrationConfiguration:optional(arrayType(ACLAction$inboundSchema)),integrationConfigurationProjects:optional(arrayType(ACLAction$inboundSchema)),integrationConfigurationRole:optional(arrayType(ACLAction$inboundSchema)),integrationConfigurationTransfer:optional(arrayType(ACLAction$inboundSchema)),integrationDeploymentAction:optional(arrayType(ACLAction$inboundSchema)),integrationEvent:optional(arrayType(ACLAction$inboundSchema)),integrationLog:optional(arrayType(ACLAction$inboundSchema)),integrationResource:optional(arrayType(ACLAction$inboundSchema)),integrationResourceData:optional(arrayType(ACLAction$inboundSchema)),integrationResourceReplCommand:optional(arrayType(ACLAction$inboundSchema)),integrationResourceSecrets:optional(arrayType(ACLAction$inboundSchema)),integrationSSOSession:optional(arrayType(ACLAction$inboundSchema)),integrationStrict:optional(arrayType(ACLAction$inboundSchema)),integrationStoreTokenSet:optional(arrayType(ACLAction$inboundSchema)),integrationVercelConfigurationOverride:optional(arrayType(ACLAction$inboundSchema)),integrationPullRequest:optional(arrayType(ACLAction$inboundSchema)),ipBlocking:optional(arrayType(ACLAction$inboundSchema)),jobGlobal:optional(arrayType(ACLAction$inboundSchema)),kmsIssuer:optional(arrayType(ACLAction$inboundSchema)),kmsProjectGrant:optional(arrayType(ACLAction$inboundSchema)),logDrain:optional(arrayType(ACLAction$inboundSchema)),marketplaceBillingData:optional(arrayType(ACLAction$inboundSchema)),marketplaceExperimentationEdgeConfigData:optional(arrayType(ACLAction$inboundSchema)),marketplaceExperimentationItem:optional(arrayType(ACLAction$inboundSchema)),marketplaceInstallationMember:optional(arrayType(ACLAction$inboundSchema)),marketplaceInvoice:optional(arrayType(ACLAction$inboundSchema)),marketplaceSettings:optional(arrayType(ACLAction$inboundSchema)),Monitoring:optional(arrayType(ACLAction$inboundSchema)),monitoringAlert:optional(arrayType(ACLAction$inboundSchema)),monitoringChart:optional(arrayType(ACLAction$inboundSchema)),monitoringQuery:optional(arrayType(ACLAction$inboundSchema)),monitoringSettings:optional(arrayType(ACLAction$inboundSchema)),notificationCustomerBudget:optional(arrayType(ACLAction$inboundSchema)),notificationDeploymentFailed:optional(arrayType(ACLAction$inboundSchema)),notificationDomainConfiguration:optional(arrayType(ACLAction$inboundSchema)),notificationDomainExpire:optional(arrayType(ACLAction$inboundSchema)),notificationDomainMoved:optional(arrayType(ACLAction$inboundSchema)),notificationDomainPurchase:optional(arrayType(ACLAction$inboundSchema)),notificationDomainRenewal:optional(arrayType(ACLAction$inboundSchema)),notificationDomainTransfer:optional(arrayType(ACLAction$inboundSchema)),notificationDomainUnverified:optional(arrayType(ACLAction$inboundSchema)),NotificationMonitoringAlert:optional(arrayType(ACLAction$inboundSchema)),notificationPaymentFailed:optional(arrayType(ACLAction$inboundSchema)),notificationPreferences:optional(arrayType(ACLAction$inboundSchema)),notificationStatementOfReasons:optional(arrayType(ACLAction$inboundSchema)),notificationUsageAlert:optional(arrayType(ACLAction$inboundSchema)),oidcFederationPolicy:optional(arrayType(ACLAction$inboundSchema)),observabilityConfiguration:optional(arrayType(ACLAction$inboundSchema)),observabilityFunnel:optional(arrayType(ACLAction$inboundSchema)),observabilityNotebook:optional(arrayType(ACLAction$inboundSchema)),openTelemetryEndpoint:optional(arrayType(ACLAction$inboundSchema)),ownEvent:optional(arrayType(ACLAction$inboundSchema)),organization:optional(arrayType(ACLAction$inboundSchema)),organizationDomain:optional(arrayType(ACLAction$inboundSchema)),organizationTeam:optional(arrayType(ACLAction$inboundSchema)),passwordProtectionInvoiceItem:optional(arrayType(ACLAction$inboundSchema)),paymentMethod:optional(arrayType(ACLAction$inboundSchema)),permissions:optional(arrayType(ACLAction$inboundSchema)),postgres:optional(arrayType(ACLAction$inboundSchema)),postgresStoreTokenSet:optional(arrayType(ACLAction$inboundSchema)),previewDeploymentSuffix:optional(arrayType(ACLAction$inboundSchema)),privateCloudAccount:optional(arrayType(ACLAction$inboundSchema)),projectTransferIn:optional(arrayType(ACLAction$inboundSchema)),proTrialOnboarding:optional(arrayType(ACLAction$inboundSchema)),rateLimit:optional(arrayType(ACLAction$inboundSchema)),redis:optional(arrayType(ACLAction$inboundSchema)),redisStoreTokenSet:optional(arrayType(ACLAction$inboundSchema)),remoteCaching:optional(arrayType(ACLAction$inboundSchema)),repository:optional(arrayType(ACLAction$inboundSchema)),samlConfig:optional(arrayType(ACLAction$inboundSchema)),secret:optional(arrayType(ACLAction$inboundSchema)),sensitiveEnvironmentVariablePolicy:optional(arrayType(ACLAction$inboundSchema)),sharedEnvVars:optional(arrayType(ACLAction$inboundSchema)),sharedEnvVarsProduction:optional(arrayType(ACLAction$inboundSchema)),space:optional(arrayType(ACLAction$inboundSchema)),spaceRun:optional(arrayType(ACLAction$inboundSchema)),storeIsLocked:optional(arrayType(ACLAction$inboundSchema)),storeTokenSetSensitive:optional(arrayType(ACLAction$inboundSchema)),storeTransfer:optional(arrayType(ACLAction$inboundSchema)),supportCase:optional(arrayType(ACLAction$inboundSchema)),supportCaseComment:optional(arrayType(ACLAction$inboundSchema)),team:optional(arrayType(ACLAction$inboundSchema)),teamAccessRequest:optional(arrayType(ACLAction$inboundSchema)),teamFellowMembership:optional(arrayType(ACLAction$inboundSchema)),teamGitExclusivity:optional(arrayType(ACLAction$inboundSchema)),teamInvite:optional(arrayType(ACLAction$inboundSchema)),teamInviteCode:optional(arrayType(ACLAction$inboundSchema)),teamInviteLink:optional(arrayType(ACLAction$inboundSchema)),teamJoin:optional(arrayType(ACLAction$inboundSchema)),teamMemberMfaStatus:optional(arrayType(ACLAction$inboundSchema)),teamMicrofrontends:optional(arrayType(ACLAction$inboundSchema)),teamOwnMembership:optional(arrayType(ACLAction$inboundSchema)),teamOwnMembershipDisconnectSAML:optional(arrayType(ACLAction$inboundSchema)),teamSudo:optional(arrayType(ACLAction$inboundSchema)),teamTokenInvalidation:optional(arrayType(ACLAction$inboundSchema)),token:optional(arrayType(ACLAction$inboundSchema)),toolbarComment:optional(arrayType(ACLAction$inboundSchema)),usage:optional(arrayType(ACLAction$inboundSchema)),usageCycle:optional(arrayType(ACLAction$inboundSchema)),vcrRepository:optional(arrayType(ACLAction$inboundSchema)),vercelRun:optional(arrayType(ACLAction$inboundSchema)),vpcPeeringConnection:optional(arrayType(ACLAction$inboundSchema)),webAnalyticsPlan:optional(arrayType(ACLAction$inboundSchema)),webhook:optional(arrayType(ACLAction$inboundSchema)),"webhook-event":optional(arrayType(ACLAction$inboundSchema)),aliasProject:optional(arrayType(ACLAction$inboundSchema)),aliasProtectionBypass:optional(arrayType(ACLAction$inboundSchema)),bulkRedirects:optional(arrayType(ACLAction$inboundSchema)),buildMachine:optional(arrayType(ACLAction$inboundSchema)),connectConfigurationLink:optional(arrayType(ACLAction$inboundSchema)),dataCacheNamespace:optional(arrayType(ACLAction$inboundSchema)),deployment:optional(arrayType(ACLAction$inboundSchema)),deploymentBuildLogs:optional(arrayType(ACLAction$inboundSchema)),deploymentCheck:optional(arrayType(ACLAction$inboundSchema)),deploymentCheckPreview:optional(arrayType(ACLAction$inboundSchema)),deploymentCheckReRunFromProductionBranch:optional(arrayType(ACLAction$inboundSchema)),deploymentProductionGit:optional(arrayType(ACLAction$inboundSchema)),deploymentV0:optional(arrayType(ACLAction$inboundSchema)),deploymentPreview:optional(arrayType(ACLAction$inboundSchema)),deploymentPrivate:optional(arrayType(ACLAction$inboundSchema)),deploymentPromote:optional(arrayType(ACLAction$inboundSchema)),deploymentRollback:optional(arrayType(ACLAction$inboundSchema)),edgeCacheNamespace:optional(arrayType(ACLAction$inboundSchema)),environments:optional(arrayType(ACLAction$inboundSchema)),job:optional(arrayType(ACLAction$inboundSchema)),logs:optional(arrayType(ACLAction$inboundSchema)),logsPreset:optional(arrayType(ACLAction$inboundSchema)),observabilityData:optional(arrayType(ACLAction$inboundSchema)),onDemandBuild:optional(arrayType(ACLAction$inboundSchema)),onDemandConcurrency:optional(arrayType(ACLAction$inboundSchema)),optionsAllowlist:optional(arrayType(ACLAction$inboundSchema)),passwordProtection:optional(arrayType(ACLAction$inboundSchema)),privateLinkEndpoint:optional(arrayType(ACLAction$inboundSchema)),productionAliasProtectionBypass:optional(arrayType(ACLAction$inboundSchema)),project:optional(arrayType(ACLAction$inboundSchema)),projectAccessGroup:optional(arrayType(ACLAction$inboundSchema)),projectAnalyticsSampling:optional(arrayType(ACLAction$inboundSchema)),projectAnalyticsUsage:optional(arrayType(ACLAction$inboundSchema)),projectCheck:optional(arrayType(ACLAction$inboundSchema)),projectCheckRun:optional(arrayType(ACLAction$inboundSchema)),projectDeploymentExpiration:optional(arrayType(ACLAction$inboundSchema)),projectDeploymentHook:optional(arrayType(ACLAction$inboundSchema)),projectDeploymentProtectionStrict:optional(arrayType(ACLAction$inboundSchema)),projectDomain:optional(arrayType(ACLAction$inboundSchema)),projectDomainCheckConfig:optional(arrayType(ACLAction$inboundSchema)),projectDomainMove:optional(arrayType(ACLAction$inboundSchema)),projectEvent:optional(arrayType(ACLAction$inboundSchema)),projectEnvVars:optional(arrayType(ACLAction$inboundSchema)),projectEnvVarsProduction:optional(arrayType(ACLAction$inboundSchema)),projectEnvVarsUnownedByIntegration:optional(arrayType(ACLAction$inboundSchema)),projectFlags:optional(arrayType(ACLAction$inboundSchema)),projectFlagsProduction:optional(arrayType(ACLAction$inboundSchema)),projectFlagsSdkKey:optional(arrayType(ACLAction$inboundSchema)),projectFromV0:optional(arrayType(ACLAction$inboundSchema)),projectId:optional(arrayType(ACLAction$inboundSchema)),projectIntegrationConfiguration:optional(arrayType(ACLAction$inboundSchema)),projectLink:optional(arrayType(ACLAction$inboundSchema)),projectMember:optional(arrayType(ACLAction$inboundSchema)),projectMonitoring:optional(arrayType(ACLAction$inboundSchema)),projectOIDCToken:optional(arrayType(ACLAction$inboundSchema)),projectPermissions:optional(arrayType(ACLAction$inboundSchema)),projectProductionBranch:optional(arrayType(ACLAction$inboundSchema)),projectProtectionBypass:optional(arrayType(ACLAction$inboundSchema)),projectRollingRelease:optional(arrayType(ACLAction$inboundSchema)),projectRoutes:optional(arrayType(ACLAction$inboundSchema)),projectSupportCase:optional(arrayType(ACLAction$inboundSchema)),projectSupportCaseComment:optional(arrayType(ACLAction$inboundSchema)),projectTier:optional(arrayType(ACLAction$inboundSchema)),projectTransfer:optional(arrayType(ACLAction$inboundSchema)),projectTransferOut:optional(arrayType(ACLAction$inboundSchema)),projectUsage:optional(arrayType(ACLAction$inboundSchema)),pageIntegrity:optional(arrayType(ACLAction$inboundSchema)),seawallConfig:optional(arrayType(ACLAction$inboundSchema)),securityPlusConfiguration:optional(arrayType(ACLAction$inboundSchema)),shareableLinkStrict:optional(arrayType(ACLAction$inboundSchema)),sharedEnvVarConnection:optional(arrayType(ACLAction$inboundSchema)),skewProtection:optional(arrayType(ACLAction$inboundSchema)),analytics:optional(arrayType(ACLAction$inboundSchema)),trustedIps:optional(arrayType(ACLAction$inboundSchema)),trustedSources:optional(arrayType(ACLAction$inboundSchema)),v0Chat:optional(arrayType(ACLAction$inboundSchema)),webAnalytics:optional(arrayType(ACLAction$inboundSchema))}).transform(e=>remap(e,{Monitoring:`monitoring`,NotificationMonitoringAlert:`notificationMonitoringAlert`,"webhook-event":`webhookEvent`,projectFlagsSdkKey:`projectFlagsSDKKey`})),objectType({});const UpdateProjectJobStatus$inboundSchema=nativeEnumType(UpdateProjectJobStatus),UpdateProjectProjectsResponseType$inboundSchema=nativeEnumType(UpdateProjectProjectsResponseType);objectType({fromDeploymentId:nullable(string()),toDeploymentId:string(),fromRollingReleaseId:optional(string()),jobStatus:UpdateProjectJobStatus$inboundSchema,requestedAt:number(),type:UpdateProjectProjectsResponseType$inboundSchema});const UpdateProjectProtectionBypass2$inboundSchema=objectType({createdAt:number(),createdBy:string(),scope:literal(`automation-bypass`),isEnvVar:optional(boolean()),note:optional(string())}),UpdateProjectProtectionBypass1$inboundSchema=objectType({createdAt:number(),createdBy:string(),scope:literal(`integration-automation-bypass`),integrationId:string(),configurationId:string()});unionType([lazyType(()=>UpdateProjectProtectionBypass1$inboundSchema),lazyType(()=>UpdateProjectProtectionBypass2$inboundSchema)]);const UpdateProjectTrustedIps2$inboundSchema=objectType({deploymentType:nativeEnumType(UpdateProjectTrustedIpsProjectsDeploymentType)}),UpdateProjectTrustedIpsDeploymentType$inboundSchema=nativeEnumType(UpdateProjectTrustedIpsDeploymentType),UpdateProjectTrustedIpsAddresses$inboundSchema=objectType({value:string(),note:optional(string())}),UpdateProjectTrustedIpsProtectionMode$inboundSchema=nativeEnumType(UpdateProjectTrustedIpsProtectionMode),UpdateProjectTrustedIps1$inboundSchema=objectType({deploymentType:UpdateProjectTrustedIpsDeploymentType$inboundSchema,addresses:arrayType(lazyType(()=>UpdateProjectTrustedIpsAddresses$inboundSchema)),protectionMode:UpdateProjectTrustedIpsProtectionMode$inboundSchema});smartUnion([lazyType(()=>UpdateProjectTrustedIps1$inboundSchema),lazyType(()=>UpdateProjectTrustedIps2$inboundSchema)]);const UpdateProjectFromProjectsResponsePreset$inboundSchema=nativeEnumType(UpdateProjectFromProjectsResponsePreset),UpdateProjectFrom2$inboundSchema=objectType({slugs:optional(arrayType(string())),preset:UpdateProjectFromProjectsResponsePreset$inboundSchema}),UpdateProjectFromProjectsPreset$inboundSchema=nativeEnumType(UpdateProjectFromProjectsPreset),UpdateProjectFrom1$inboundSchema=objectType({slugs:arrayType(string()),preset:optional(UpdateProjectFromProjectsPreset$inboundSchema)});smartUnion([lazyType(()=>UpdateProjectFrom1$inboundSchema),lazyType(()=>UpdateProjectFrom2$inboundSchema)]);const UpdateProjectToProjectsResponse200ApplicationJSONResponseBodyPreset$inboundSchema=nativeEnumType(UpdateProjectToProjectsResponse200ApplicationJSONResponseBodyPreset),UpdateProjectToProjectsResponse2$inboundSchema=objectType({slugs:optional(arrayType(string())),preset:UpdateProjectToProjectsResponse200ApplicationJSONResponseBodyPreset$inboundSchema}),UpdateProjectToProjectsResponse200ApplicationJSONPreset$inboundSchema=nativeEnumType(UpdateProjectToProjectsResponse200ApplicationJSONPreset),UpdateProjectToProjectsResponse1$inboundSchema=objectType({slugs:arrayType(string()),preset:optional(UpdateProjectToProjectsResponse200ApplicationJSONPreset$inboundSchema)});smartUnion([lazyType(()=>UpdateProjectToProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectToProjectsResponse2$inboundSchema)]);const UpdateProjectCustomAllow$inboundSchema=objectType({from:smartUnion([lazyType(()=>UpdateProjectFrom1$inboundSchema),lazyType(()=>UpdateProjectFrom2$inboundSchema)]),to:smartUnion([lazyType(()=>UpdateProjectToProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectToProjectsResponse2$inboundSchema)])}),UpdateProjectProjectsProjects$inboundSchema=objectType({label:optional(string()),customAllow:optional(arrayType(lazyType(()=>UpdateProjectCustomAllow$inboundSchema)))}),UpdateProjectToProjectsResponse200Preset$inboundSchema=nativeEnumType(UpdateProjectToProjectsResponse200Preset),UpdateProjectToProjects2$inboundSchema=objectType({slugs:optional(arrayType(string())),preset:UpdateProjectToProjectsResponse200Preset$inboundSchema}),UpdateProjectToProjectsResponsePreset$inboundSchema=nativeEnumType(UpdateProjectToProjectsResponsePreset),UpdateProjectToProjects1$inboundSchema=objectType({slugs:arrayType(string()),preset:optional(UpdateProjectToProjectsResponsePreset$inboundSchema)});smartUnion([lazyType(()=>UpdateProjectToProjects1$inboundSchema),lazyType(()=>UpdateProjectToProjects2$inboundSchema)]);const UpdateProjectOidcProviders$inboundSchema=objectType({to:smartUnion([lazyType(()=>UpdateProjectToProjects1$inboundSchema),lazyType(()=>UpdateProjectToProjects2$inboundSchema)]),label:optional(string()),claims:recordType(arrayType(string()))}),UpdateProjectTrustedSources$inboundSchema=objectType({projects:optional(recordType(lazyType(()=>UpdateProjectProjectsProjects$inboundSchema))),oidcProviders:optional(recordType(arrayType(lazyType(()=>UpdateProjectOidcProviders$inboundSchema))))});function updateProjectTrustedSourcesFromJSON(e){return safeParse(e,e=>UpdateProjectTrustedSources$inboundSchema.parse(JSON.parse(e)),`Failed to parse 'UpdateProjectTrustedSources' from JSON`)}objectType({onPullRequest:boolean(),onCommit:boolean()});const UpdateProjectCreateDeployments$inboundSchema=nativeEnumType(UpdateProjectCreateDeployments),UpdateProjectConsolidatedGitCommitStatus$inboundSchema=objectType({enabled:boolean(),propagateFailures:boolean()});objectType({createDeployments:UpdateProjectCreateDeployments$inboundSchema,disableRepositoryDispatchEvents:optional(boolean()),requireVerifiedCommits:optional(boolean()),gitCommitStatus:optional(boolean()),consolidatedGitCommitStatus:optional(lazyType(()=>UpdateProjectConsolidatedGitCommitStatus$inboundSchema))}),objectType({id:string(),disabledAt:optional(number()),canceledAt:optional(number()),enabledAt:optional(number()),hasData:optional(literal(!0))});const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction),UpdateProjectVercelRuleset$inboundSchema=objectType({active:boolean(),action:optional(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema)}),UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction),UpdateProjectTrafficSources$inboundSchema=objectType({active:boolean(),action:optional(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema)}),UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction),UpdateProjectBotFilter$inboundSchema=objectType({active:boolean(),action:optional(UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema)}),UpdateProjectProjectsResponse200ApplicationJSONAction$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONAction),UpdateProjectAiBots$inboundSchema=objectType({active:boolean(),action:optional(UpdateProjectProjectsResponse200ApplicationJSONAction$inboundSchema)}),UpdateProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema=nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONResponseBodyAction),UpdateProjectOwasp$inboundSchema=objectType({active:boolean(),action:optional(UpdateProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema)}),UpdateProjectManagedRules$inboundSchema=objectType({vercel_ruleset:lazyType(()=>UpdateProjectVercelRuleset$inboundSchema),traffic_sources:lazyType(()=>UpdateProjectTrafficSources$inboundSchema),bot_filter:lazyType(()=>UpdateProjectBotFilter$inboundSchema),ai_bots:lazyType(()=>UpdateProjectAiBots$inboundSchema),owasp:lazyType(()=>UpdateProjectOwasp$inboundSchema)}).transform(e=>remap(e,{vercel_ruleset:`vercelRuleset`,traffic_sources:`trafficSources`,bot_filter:`botFilter`,ai_bots:`aiBots`})),UpdateProjectLogHeaders2$inboundSchema=nativeEnumType(UpdateProjectLogHeaders2);smartUnion([arrayType(string()),UpdateProjectLogHeaders2$inboundSchema]);const UpdateProjectSecurityPlusMetadata$inboundSchema=objectType({updatedAt:number(),firstEnabledAt:optional(number())});objectType({attackModeEnabled:optional(boolean()),attackModeUpdatedAt:optional(number()),firewallEnabled:optional(boolean()),firewallUpdatedAt:optional(number()),attackModeActiveUntil:nullableType(number()).optional(),firewallConfigVersion:optional(number()),firewallSeawallEnabled:optional(boolean()),ja3Enabled:optional(boolean()),ja4Enabled:optional(boolean()),firewallBypassIps:optional(arrayType(string())),managedRules:nullableType(lazyType(()=>UpdateProjectManagedRules$inboundSchema)).optional(),botIdEnabled:optional(boolean()),log_headers:optional(smartUnion([arrayType(string()),UpdateProjectLogHeaders2$inboundSchema])),securityPlus:optional(boolean()),securityPlusMetadata:optional(lazyType(()=>UpdateProjectSecurityPlusMetadata$inboundSchema)),pageIntegrityEnabled:optional(boolean())}).transform(e=>remap(e,{log_headers:`logHeaders`}));const UpdateProjectProjectsIssuerMode$inboundSchema=nativeEnumType(UpdateProjectProjectsIssuerMode);objectType({enabled:optional(boolean()),issuerMode:optional(UpdateProjectProjectsIssuerMode$inboundSchema)});const UpdateProjectSourcesProjects2$inboundSchema=objectType({provider:literal(`gitlab`),namespace:string(),project:optional(string())}),UpdateProjectSourcesProjects1$inboundSchema=objectType({provider:nativeEnumType(UpdateProjectSourcesProjectsResponse200Provider),org:string(),repo:optional(string())});unionType([lazyType(()=>UpdateProjectSourcesProjects1$inboundSchema).and(objectType({provider:literalType(`bitbucket`)})),lazyType(()=>UpdateProjectSourcesProjects1$inboundSchema).and(objectType({provider:literalType(`github`)})),lazyType(()=>UpdateProjectSourcesProjects2$inboundSchema)]);const UpdateProjectEnvironmentsProjectsResponse2002$inboundSchema=objectType({type:literal(`custom`),environmentId:string()}),UpdateProjectEnvironmentsProjectsResponse200Target$inboundSchema=nativeEnumType(UpdateProjectEnvironmentsProjectsResponse200Target),UpdateProjectEnvironmentsProjectsResponse2001$inboundSchema=objectType({type:literal(`system`),target:UpdateProjectEnvironmentsProjectsResponse200Target$inboundSchema});unionType([lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2001$inboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2002$inboundSchema)]);const UpdateProjectGitSources$inboundSchema=objectType({sources:arrayType(unionType([lazyType(()=>UpdateProjectSourcesProjects1$inboundSchema).and(objectType({provider:literalType(`bitbucket`)})),lazyType(()=>UpdateProjectSourcesProjects1$inboundSchema).and(objectType({provider:literalType(`github`)})),lazyType(()=>UpdateProjectSourcesProjects2$inboundSchema)])),enabled:boolean(),environments:arrayType(unionType([lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2001$inboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2002$inboundSchema)]))}),UpdateProjectProjectsSources$inboundSchema=nativeEnumType(UpdateProjectProjectsSources),UpdateProjectEnvironmentsProjectsResponse2$inboundSchema=objectType({type:literal(`custom`),environmentId:string()}),UpdateProjectEnvironmentsProjectsResponseTarget$inboundSchema=nativeEnumType(UpdateProjectEnvironmentsProjectsResponseTarget),UpdateProjectEnvironmentsProjectsResponse1$inboundSchema=objectType({type:literal(`system`),target:UpdateProjectEnvironmentsProjectsResponseTarget$inboundSchema});unionType([lazyType(()=>UpdateProjectEnvironmentsProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2$inboundSchema)]);const UpdateProjectDeploymentSources$inboundSchema=objectType({sources:arrayType(UpdateProjectProjectsSources$inboundSchema),enabled:boolean(),environments:arrayType(unionType([lazyType(()=>UpdateProjectEnvironmentsProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjectsResponse2$inboundSchema)]))});objectType({gitSources:nullableType(arrayType(lazyType(()=>UpdateProjectGitSources$inboundSchema))).optional(),deploymentSources:nullableType(arrayType(lazyType(()=>UpdateProjectDeploymentSources$inboundSchema))).optional()}),nativeEnumType(UpdateProjectFlatRateTier),objectType({kind:nativeEnumType(UpdateProjectKind),exceededAllowanceUntil:optional(number()),bypassThrottleUntil:optional(number()),throttled:optional(boolean())}),objectType({webAnalytics:optional(boolean())});const UpdateProjectHistory$inboundSchema=objectType({scanner:string(),reason:string(),by:string(),byId:string(),at:number()}),UpdateProjectBlock$inboundSchema=objectType({action:nativeEnumType(UpdateProjectProjectsResponse200Action),reason:string(),statusCode:number(),createdAt:number(),caseId:optional(string()),actor:optional(string()),comment:optional(string()),ineligibleForAppeal:optional(boolean()),isCascading:optional(boolean())}),UpdateProjectHasProjectsResponse200Value$inboundSchema=objectType({eq:string()}),UpdateProjectHasProjects2$inboundSchema=objectType({type:literal(`host`),value:lazyType(()=>UpdateProjectHasProjectsResponse200Value$inboundSchema)}),UpdateProjectHasProjectsKey$inboundSchema=nativeEnumType(UpdateProjectHasProjectsKey),UpdateProjectHasProjectsResponseValue$inboundSchema=objectType({eq:string()}),UpdateProjectHasProjects1$inboundSchema=objectType({type:literal(`header`),key:UpdateProjectHasProjectsKey$inboundSchema,value:lazyType(()=>UpdateProjectHasProjectsResponseValue$inboundSchema)});unionType([lazyType(()=>UpdateProjectHasProjects1$inboundSchema),lazyType(()=>UpdateProjectHasProjects2$inboundSchema)]);const UpdateProjectRouteProjectsMitigate$inboundSchema=objectType({action:nativeEnumType(UpdateProjectRouteProjectsAction)}),UpdateProjectRouteProjects2$inboundSchema=objectType({has:arrayType(unionType([lazyType(()=>UpdateProjectHasProjects1$inboundSchema),lazyType(()=>UpdateProjectHasProjects2$inboundSchema)])),mitigate:lazyType(()=>UpdateProjectRouteProjectsMitigate$inboundSchema),src:optional(string())}),UpdateProjectRouteProjects1$inboundSchema=objectType({src:string(),status:number()});smartUnion([lazyType(()=>UpdateProjectRouteProjects1$inboundSchema),lazyType(()=>UpdateProjectRouteProjects2$inboundSchema)]);const UpdateProjectBlockHistory4$inboundSchema=objectType({action:literal(`route-unblocked`),route:smartUnion([lazyType(()=>UpdateProjectRouteProjects1$inboundSchema),lazyType(()=>UpdateProjectRouteProjects2$inboundSchema)]),statusCode:optional(number()),createdAt:number(),caseId:optional(string()),actor:optional(string()),comment:optional(string()),ineligibleForAppeal:optional(boolean()),isCascading:optional(boolean())}),UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema=objectType({eq:string()}),UpdateProjectHasProjectsResponse2$inboundSchema=objectType({type:literal(`host`),value:lazyType(()=>UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema)}),UpdateProjectHasProjectsResponseKey$inboundSchema=nativeEnumType(UpdateProjectHasProjectsResponseKey),UpdateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema=objectType({eq:string()}),UpdateProjectHasProjectsResponse1$inboundSchema=objectType({type:literal(`header`),key:UpdateProjectHasProjectsResponseKey$inboundSchema,value:lazyType(()=>UpdateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema)});unionType([lazyType(()=>UpdateProjectHasProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectHasProjectsResponse2$inboundSchema)]);const UpdateProjectRouteMitigate$inboundSchema=objectType({action:nativeEnumType(UpdateProjectRouteAction)}),UpdateProjectRoute2$inboundSchema=objectType({has:arrayType(unionType([lazyType(()=>UpdateProjectHasProjectsResponse1$inboundSchema),lazyType(()=>UpdateProjectHasProjectsResponse2$inboundSchema)])),mitigate:lazyType(()=>UpdateProjectRouteMitigate$inboundSchema),src:optional(string())}),UpdateProjectRoute1$inboundSchema=objectType({src:string(),status:number()});smartUnion([lazyType(()=>UpdateProjectRoute1$inboundSchema),lazyType(()=>UpdateProjectRoute2$inboundSchema)]);const UpdateProjectBlockHistory3$inboundSchema=objectType({action:literal(`route-blocked`),route:smartUnion([lazyType(()=>UpdateProjectRoute1$inboundSchema),lazyType(()=>UpdateProjectRoute2$inboundSchema)]),reason:string(),createdAt:number(),caseId:optional(string()),actor:optional(string()),comment:optional(string()),ineligibleForAppeal:optional(boolean()),isCascading:optional(boolean())}),UpdateProjectBlockHistory2$inboundSchema=objectType({action:literal(`unblocked`),createdAt:number(),caseId:optional(string()),actor:optional(string()),comment:optional(string()),ineligibleForAppeal:optional(boolean()),isCascading:optional(boolean())}),UpdateProjectBlockHistory1$inboundSchema=objectType({action:literal(`blocked`),reason:string(),statusCode:number(),createdAt:number(),caseId:optional(string()),actor:optional(string()),comment:optional(string()),ineligibleForAppeal:optional(boolean()),isCascading:optional(boolean())});unionType([lazyType(()=>UpdateProjectBlockHistory1$inboundSchema),lazyType(()=>UpdateProjectBlockHistory2$inboundSchema),lazyType(()=>UpdateProjectBlockHistory3$inboundSchema),lazyType(()=>UpdateProjectBlockHistory4$inboundSchema)]);const UpdateProjectInterstitialHistory$inboundSchema=objectType({action:nativeEnumType(UpdateProjectProjectsResponseAction),createdAt:number(),caseId:optional(string()),reason:optional(string()),actor:optional(string()),comment:optional(string())});objectType({scanner:optional(string()),history:arrayType(lazyType(()=>UpdateProjectHistory$inboundSchema)),updatedAt:number(),block:optional(lazyType(()=>UpdateProjectBlock$inboundSchema)),blockHistory:optional(arrayType(unionType([lazyType(()=>UpdateProjectBlockHistory1$inboundSchema),lazyType(()=>UpdateProjectBlockHistory2$inboundSchema),lazyType(()=>UpdateProjectBlockHistory3$inboundSchema),lazyType(()=>UpdateProjectBlockHistory4$inboundSchema)]))),interstitial:optional(boolean()),interstitialHistory:optional(arrayType(lazyType(()=>UpdateProjectInterstitialHistory$inboundSchema)))});const UpdateProjectHasProjectsValue$inboundSchema=objectType({eq:string()}),UpdateProjectHas2$inboundSchema=objectType({type:literal(`host`),value:lazyType(()=>UpdateProjectHasProjectsValue$inboundSchema)}),UpdateProjectHasKey$inboundSchema=nativeEnumType(UpdateProjectHasKey),UpdateProjectHasValue$inboundSchema=objectType({eq:string()}),UpdateProjectHas1$inboundSchema=objectType({type:literal(`header`),key:UpdateProjectHasKey$inboundSchema,value:lazyType(()=>UpdateProjectHasValue$inboundSchema)});unionType([lazyType(()=>UpdateProjectHas1$inboundSchema),lazyType(()=>UpdateProjectHas2$inboundSchema)]);const UpdateProjectInternalRoutesMitigate$inboundSchema=objectType({action:nativeEnumType(UpdateProjectInternalRoutesAction)}),UpdateProjectInternalRoutes2$inboundSchema=objectType({has:arrayType(unionType([lazyType(()=>UpdateProjectHas1$inboundSchema),lazyType(()=>UpdateProjectHas2$inboundSchema)])),mitigate:lazyType(()=>UpdateProjectInternalRoutesMitigate$inboundSchema),src:optional(string())}),UpdateProjectInternalRoutes1$inboundSchema=objectType({src:string(),status:number()});smartUnion([lazyType(()=>UpdateProjectInternalRoutes1$inboundSchema),lazyType(()=>UpdateProjectInternalRoutes2$inboundSchema)]),nativeEnumType(UpdateProjectProjectsAction);export{updateProjectTrustedSourcesFromJSON};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{anyType,arrayType,booleanType,lazyType,literalType,nativeEnumType,nullableType,numberType,objectType,recordType,stringType,unionType}from"../../../../../../zod@4.4.3/node_modules/zod/v3/types.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";import{remap}from"../lib/primitives.js";import"../lib/schemas.js";import{boolean,literal,nullable,number,optional,string}from"../types/primitives.js";import{smartUnion}from"../types/smartUnion.js";const UpdateProjectFramework={Blitzjs:`blitzjs`,Nextjs:`nextjs`,Gatsby:`gatsby`,Remix:`remix`,ReactRouter:`react-router`,Astro:`astro`,Hexo:`hexo`,Eleventy:`eleventy`,Docusaurus2:`docusaurus-2`,Docusaurus:`docusaurus`,Preact:`preact`,Solidstart1:`solidstart-1`,Solidstart:`solidstart`,Dojo:`dojo`,Ember:`ember`,Vue:`vue`,Scully:`scully`,IonicAngular:`ionic-angular`,Angular:`angular`,Polymer:`polymer`,Svelte:`svelte`,Sveltekit:`sveltekit`,Sveltekit1:`sveltekit-1`,IonicReact:`ionic-react`,CreateReactApp:`create-react-app`,Gridsome:`gridsome`,Umijs:`umijs`,Sapper:`sapper`,Saber:`saber`,Stencil:`stencil`,Nuxtjs:`nuxtjs`,Redwoodjs:`redwoodjs`,Hugo:`hugo`,Jekyll:`jekyll`,Brunch:`brunch`,Middleman:`middleman`,Zola:`zola`,Hydrogen:`hydrogen`,Vite:`vite`,TanstackStart:`tanstack-start`,Vitepress:`vitepress`,Vuepress:`vuepress`,Parcel:`parcel`,Fastapi:`fastapi`,Flask:`flask`,Fasthtml:`fasthtml`,Django:`django`,Ash:`ash`,Eve:`eve`,Sanity:`sanity`,SanityV2:`sanity-v2`,Storybook:`storybook`,Nitro:`nitro`,Hono:`hono`,Express:`express`,H3:`h3`,Koa:`koa`,Nestjs:`nestjs`,Elysia:`elysia`,Fastify:`fastify`,Xmcp:`xmcp`,Python:`python`,Ruby:`ruby`,Rust:`rust`,Axum:`axum`,ActixWeb:`actix-web`,Bun:`bun`,Node:`node`,Go:`go`,Services:`services`,Mastra:`mastra`},UpdateProjectNodeVersion={TwentyFourDotX:`24.x`,TwentyTwoDotX:`22.x`,TwentyDotX:`20.x`,EighteenDotX:`18.x`,SixteenDotX:`16.x`,FourteenDotX:`14.x`,TwelveDotX:`12.x`,TenDotX:`10.x`},UpdateProjectBuildMachineType={Enhanced:`enhanced`,Turbo:`turbo`,Standard:`standard`,Elastic:`elastic`},UpdateProjectConfiguration={SkipNamespaceQueue:`SKIP_NAMESPACE_QUEUE`,WaitForNamespaceQueue:`WAIT_FOR_NAMESPACE_QUEUE`},UpdateProjectFunctionDefaultMemoryType={StandardLegacy:`standard_legacy`,Standard:`standard`,Performance:`performance`,PerformanceXl:`performance_xl`},UpdateProjectBuildMachineSelection={Elastic:`elastic`,Fixed:`fixed`},UpdateProjectEnv={Production:`production`,Preview:`preview`},UpdateProjectIssuerMode={Team:`team`,Global:`global`},UpdateProjectDeploymentType={All:`all`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,AllExceptCustomDomains:`all_except_custom_domains`},UpdateProjectProjectsDeploymentType={All:`all`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,AllExceptCustomDomains:`all_except_custom_domains`},UpdateProjectProjectsRequestDeploymentType={All:`all`,Preview:`preview`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,AllExceptCustomDomains:`all_except_custom_domains`},UpdateProjectProjectsRequestRequestBodyDeploymentType={All:`all`,Preview:`preview`,Production:`production`,ProdDeploymentUrlsAndAllPreviews:`prod_deployment_urls_and_all_previews`,AllExceptCustomDomains:`all_except_custom_domains`},ProtectionMode={Exclusive:`exclusive`,Additional:`additional`},ToPreset={AllCustom:`all-custom`},Preset={AllCustom:`all-custom`},UpdateProjectFromPreset={AllCustom:`all-custom`},FromPreset={AllCustom:`all-custom`},UpdateProjectToProjectsPreset={AllCustom:`all-custom`},UpdateProjectToPreset={AllCustom:`all-custom`},UpdateProjectEnvironmentsProjectsTarget={Production:`production`,Preview:`preview`},UpdateProjectSourcesProjectsProvider={Github:`github`,Bitbucket:`bitbucket`},UpdateProjectEnvironmentsTarget={Production:`production`,Preview:`preview`},DeploymentSourcesSources={Git:`git`,Cli:`cli`,RestApi:`rest-api`,DeployHook:`deploy-hook`,Integration:`integration`,V0:`v0`},UpdateProjectAction={Cancel:`cancel`,Accept:`accept`,Delete:`delete`},UpdateProjectEnvId2={Preview:`preview`,Production:`production`},UpdateProjectSource={Api:`api`},UpdateProjectTarget2={Production:`production`,Preview:`preview`,Development:`development`},UpdateProjectType={Encrypted:`encrypted`,Plain:`plain`,Secret:`secret`,Sensitive:`sensitive`,System:`system`},UpdateProjectProjectsResponse200ApplicationJSONType={FlagsSecret:`flags-secret`},UpdateProjectProjectsType={Development:`development`,Preview:`preview`,Production:`production`},UpdateProjectProjectsResponse200Type={EndsWith:`endsWith`,Equals:`equals`,StartsWith:`startsWith`},UpdateProjectProjectsFramework={ActixWeb:`actix-web`,Angular:`angular`,Ash:`ash`,Astro:`astro`,Axum:`axum`,Blitzjs:`blitzjs`,Brunch:`brunch`,Bun:`bun`,CreateReactApp:`create-react-app`,Django:`django`,Docusaurus:`docusaurus`,Docusaurus2:`docusaurus-2`,Dojo:`dojo`,Eleventy:`eleventy`,Elysia:`elysia`,Ember:`ember`,Eve:`eve`,Express:`express`,Fastapi:`fastapi`,Fasthtml:`fasthtml`,Fastify:`fastify`,Flask:`flask`,Gatsby:`gatsby`,Go:`go`,Gridsome:`gridsome`,H3:`h3`,Hexo:`hexo`,Hono:`hono`,Hugo:`hugo`,Hydrogen:`hydrogen`,IonicAngular:`ionic-angular`,IonicReact:`ionic-react`,Jekyll:`jekyll`,Koa:`koa`,Mastra:`mastra`,Middleman:`middleman`,Nestjs:`nestjs`,Nextjs:`nextjs`,Nitro:`nitro`,Node:`node`,Nuxtjs:`nuxtjs`,Parcel:`parcel`,Polymer:`polymer`,Preact:`preact`,Python:`python`,ReactRouter:`react-router`,Redwoodjs:`redwoodjs`,Remix:`remix`,Ruby:`ruby`,Rust:`rust`,Saber:`saber`,Sanity:`sanity`,SanityV2:`sanity-v2`,Sapper:`sapper`,Scully:`scully`,Services:`services`,Solidstart:`solidstart`,Solidstart1:`solidstart-1`,Stencil:`stencil`,Storybook:`storybook`,Svelte:`svelte`,Sveltekit:`sveltekit`,Sveltekit1:`sveltekit-1`,TanstackStart:`tanstack-start`,Umijs:`umijs`,Vite:`vite`,Vitepress:`vitepress`,Vue:`vue`,Vuepress:`vuepress`,Xmcp:`xmcp`,Zola:`zola`},UpdateProjectServiceType={Cron:`cron`,Job:`job`,Web:`web`,Worker:`worker`},UpdateProjectProjectsResponseFramework={ActixWeb:`actix-web`,Angular:`angular`,Ash:`ash`,Astro:`astro`,Axum:`axum`,Blitzjs:`blitzjs`,Brunch:`brunch`,Bun:`bun`,CreateReactApp:`create-react-app`,Django:`django`,Docusaurus:`docusaurus`,Docusaurus2:`docusaurus-2`,Dojo:`dojo`,Eleventy:`eleventy`,Elysia:`elysia`,Ember:`ember`,Eve:`eve`,Express:`express`,Fastapi:`fastapi`,Fasthtml:`fasthtml`,Fastify:`fastify`,Flask:`flask`,Gatsby:`gatsby`,Go:`go`,Gridsome:`gridsome`,H3:`h3`,Hexo:`hexo`,Hono:`hono`,Hugo:`hugo`,Hydrogen:`hydrogen`,IonicAngular:`ionic-angular`,IonicReact:`ionic-react`,Jekyll:`jekyll`,Koa:`koa`,Mastra:`mastra`,Middleman:`middleman`,Nestjs:`nestjs`,Nextjs:`nextjs`,Nitro:`nitro`,Node:`node`,Nuxtjs:`nuxtjs`,Parcel:`parcel`,Polymer:`polymer`,Preact:`preact`,Python:`python`,ReactRouter:`react-router`,Redwoodjs:`redwoodjs`,Remix:`remix`,Ruby:`ruby`,Rust:`rust`,Saber:`saber`,Sanity:`sanity`,SanityV2:`sanity-v2`,Sapper:`sapper`,Scully:`scully`,Services:`services`,Solidstart:`solidstart`,Solidstart1:`solidstart-1`,Stencil:`stencil`,Storybook:`storybook`,Svelte:`svelte`,Sveltekit:`sveltekit`,Sveltekit1:`sveltekit-1`,TanstackStart:`tanstack-start`,Umijs:`umijs`,Vite:`vite`,Vitepress:`vitepress`,Vue:`vue`,Vuepress:`vuepress`,Xmcp:`xmcp`,Zola:`zola`},UpdateProjectProjectsNodeVersion={TenDotX:`10.x`,TwelveDotX:`12.x`,FourteenDotX:`14.x`,SixteenDotX:`16.x`,EighteenDotX:`18.x`,TwentyDotX:`20.x`,TwentyTwoDotX:`22.x`,TwentyFourDotX:`24.x`,EightDot10DotX:`8.10.x`},UpdateProjectFramework$outboundSchema=nativeEnumType(UpdateProjectFramework),UpdateProjectNodeVersion$outboundSchema=nativeEnumType(UpdateProjectNodeVersion),UpdateProjectBuildMachineType$outboundSchema=nativeEnumType(UpdateProjectBuildMachineType),UpdateProjectBuildQueue$outboundSchema=objectType({configuration:nativeEnumType(UpdateProjectConfiguration).optional()}),UpdateProjectFunctionDefaultMemoryType$outboundSchema=nativeEnumType(UpdateProjectFunctionDefaultMemoryType),UpdateProjectBuildMachineSelection$outboundSchema=nativeEnumType(UpdateProjectBuildMachineSelection),UpdateProjectResourceConfig$outboundSchema=objectType({buildMachineType:UpdateProjectBuildMachineType$outboundSchema.optional(),buildQueue:lazyType(()=>UpdateProjectBuildQueue$outboundSchema).optional(),fluid:booleanType().optional(),functionDefaultRegions:arrayType(stringType()).optional(),functionDefaultTimeout:numberType().optional(),functionDefaultMemoryType:UpdateProjectFunctionDefaultMemoryType$outboundSchema.optional(),functionZeroConfigFailover:booleanType().optional(),elasticConcurrencyEnabled:booleanType().optional(),buildMachineSelection:UpdateProjectBuildMachineSelection$outboundSchema.optional(),buildMachineElasticLastUpdated:numberType().optional(),isNSNBDisabled:booleanType().optional(),enableFunctionsBeta:booleanType().optional()}),UpdateProjectStaticIps$outboundSchema=objectType({enabled:booleanType()}),UpdateProjectEnv$outboundSchema=nativeEnumType(UpdateProjectEnv),SamplingRules$outboundSchema=objectType({rate:numberType(),env:UpdateProjectEnv$outboundSchema.optional(),requestPath:stringType().optional()}),Tracing$outboundSchema=objectType({domains:stringType().optional(),ignorePaths:arrayType(stringType()).optional(),samplingRules:arrayType(lazyType(()=>SamplingRules$outboundSchema)).optional()}),UpdateProjectIssuerMode$outboundSchema=nativeEnumType(UpdateProjectIssuerMode),UpdateProjectOidcTokenConfig$outboundSchema=objectType({enabled:booleanType().default(!0),issuerMode:UpdateProjectIssuerMode$outboundSchema.default(`team`)}),UpdateProjectPasswordProtection$outboundSchema=objectType({deploymentType:nativeEnumType(UpdateProjectDeploymentType),password:nullableType(stringType()).optional()}),UpdateProjectProjectsDeploymentType$outboundSchema=nativeEnumType(UpdateProjectProjectsDeploymentType),UpdateProjectPassport$outboundSchema=objectType({connectorId:stringType(),deploymentType:UpdateProjectProjectsDeploymentType$outboundSchema}),UpdateProjectSsoProtection$outboundSchema=objectType({deploymentType:nativeEnumType(UpdateProjectProjectsRequestDeploymentType).default(`preview`)}),UpdateProjectProjectsRequestRequestBodyDeploymentType$outboundSchema=nativeEnumType(UpdateProjectProjectsRequestRequestBodyDeploymentType),Addresses$outboundSchema=objectType({value:stringType(),note:stringType().optional()}),ProtectionMode$outboundSchema=nativeEnumType(ProtectionMode),UpdateProjectTrustedIps$outboundSchema=objectType({deploymentType:UpdateProjectProjectsRequestRequestBodyDeploymentType$outboundSchema,addresses:arrayType(lazyType(()=>Addresses$outboundSchema)),protectionMode:ProtectionMode$outboundSchema}),ToPreset$outboundSchema=nativeEnumType(ToPreset),To2$outboundSchema=objectType({slugs:arrayType(stringType()).optional(),preset:ToPreset$outboundSchema}),Preset$outboundSchema=nativeEnumType(Preset),To1$outboundSchema=objectType({slugs:arrayType(stringType()),preset:Preset$outboundSchema.optional()});smartUnion([lazyType(()=>To1$outboundSchema),lazyType(()=>To2$outboundSchema)]);const UpdateProjectFromPreset$outboundSchema=nativeEnumType(UpdateProjectFromPreset),From2$outboundSchema=objectType({slugs:arrayType(stringType()).optional(),preset:UpdateProjectFromPreset$outboundSchema}),FromPreset$outboundSchema=nativeEnumType(FromPreset),From1$outboundSchema=objectType({slugs:arrayType(stringType()),preset:FromPreset$outboundSchema.optional()});smartUnion([lazyType(()=>From1$outboundSchema),lazyType(()=>From2$outboundSchema)]);const CustomAllow$outboundSchema=objectType({to:smartUnion([lazyType(()=>To1$outboundSchema),lazyType(()=>To2$outboundSchema)]),from:smartUnion([lazyType(()=>From1$outboundSchema),lazyType(()=>From2$outboundSchema)])}),UpdateProjectProjects$outboundSchema=objectType({label:stringType().optional(),customAllow:arrayType(lazyType(()=>CustomAllow$outboundSchema)).optional()}),UpdateProjectToProjectsPreset$outboundSchema=nativeEnumType(UpdateProjectToProjectsPreset),UpdateProjectTo2$outboundSchema=objectType({slugs:arrayType(stringType()).optional(),preset:UpdateProjectToProjectsPreset$outboundSchema}),UpdateProjectToPreset$outboundSchema=nativeEnumType(UpdateProjectToPreset),UpdateProjectTo1$outboundSchema=objectType({slugs:arrayType(stringType()),preset:UpdateProjectToPreset$outboundSchema.optional()});smartUnion([lazyType(()=>UpdateProjectTo1$outboundSchema),lazyType(()=>UpdateProjectTo2$outboundSchema)]);const OidcProviders$outboundSchema=objectType({label:stringType().optional(),to:smartUnion([lazyType(()=>UpdateProjectTo1$outboundSchema),lazyType(()=>UpdateProjectTo2$outboundSchema)]),claims:recordType(arrayType(stringType()))}),TrustedSources$outboundSchema=objectType({projects:recordType(lazyType(()=>UpdateProjectProjects$outboundSchema)).optional(),oidcProviders:recordType(arrayType(lazyType(()=>OidcProviders$outboundSchema))).optional()});function trustedSourcesToJSON(e){return JSON.stringify(TrustedSources$outboundSchema.parse(e))}const UpdateProjectEnvironmentsProjects2$outboundSchema=objectType({type:literalType(`custom`),environmentId:stringType()}),UpdateProjectEnvironmentsProjectsTarget$outboundSchema=nativeEnumType(UpdateProjectEnvironmentsProjectsTarget),UpdateProjectEnvironmentsProjects1$outboundSchema=objectType({type:literalType(`system`),target:UpdateProjectEnvironmentsProjectsTarget$outboundSchema});unionType([lazyType(()=>UpdateProjectEnvironmentsProjects1$outboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjects2$outboundSchema)]);const UpdateProjectSources2$outboundSchema=objectType({provider:literalType(`gitlab`),namespace:stringType(),project:stringType().optional()}),UpdateProjectSources1$outboundSchema=objectType({provider:nativeEnumType(UpdateProjectSourcesProjectsProvider),org:stringType(),repo:stringType().optional()});unionType([lazyType(()=>UpdateProjectSources1$outboundSchema).and(objectType({provider:literalType(`github`)})),lazyType(()=>UpdateProjectSources1$outboundSchema).and(objectType({provider:literalType(`bitbucket`)})),lazyType(()=>UpdateProjectSources2$outboundSchema)]);const GitSources1$outboundSchema=objectType({enabled:booleanType(),environments:arrayType(unionType([lazyType(()=>UpdateProjectEnvironmentsProjects1$outboundSchema),lazyType(()=>UpdateProjectEnvironmentsProjects2$outboundSchema)])),sources:arrayType(unionType([lazyType(()=>UpdateProjectSources1$outboundSchema).and(objectType({provider:literalType(`github`)})),lazyType(()=>UpdateProjectSources1$outboundSchema).and(objectType({provider:literalType(`bitbucket`)})),lazyType(()=>UpdateProjectSources2$outboundSchema)]))});smartUnion([arrayType(lazyType(()=>GitSources1$outboundSchema)),stringType()]);const UpdateProjectEnvironments2$outboundSchema=objectType({type:literalType(`custom`),environmentId:stringType()}),UpdateProjectEnvironmentsTarget$outboundSchema=nativeEnumType(UpdateProjectEnvironmentsTarget),UpdateProjectEnvironments1$outboundSchema=objectType({type:literalType(`system`),target:UpdateProjectEnvironmentsTarget$outboundSchema});unionType([lazyType(()=>UpdateProjectEnvironments1$outboundSchema),lazyType(()=>UpdateProjectEnvironments2$outboundSchema)]);const DeploymentSourcesSources$outboundSchema=nativeEnumType(DeploymentSourcesSources),DeploymentSources1$outboundSchema=objectType({enabled:booleanType(),environments:arrayType(unionType([lazyType(()=>UpdateProjectEnvironments1$outboundSchema),lazyType(()=>UpdateProjectEnvironments2$outboundSchema)])),sources:arrayType(DeploymentSourcesSources$outboundSchema)});smartUnion([arrayType(lazyType(()=>DeploymentSources1$outboundSchema)),stringType()]);const DeploymentPolicy1$outboundSchema=objectType({gitSources:smartUnion([arrayType(lazyType(()=>GitSources1$outboundSchema)),stringType()]).optional(),deploymentSources:smartUnion([arrayType(lazyType(()=>DeploymentSources1$outboundSchema)),stringType()]).optional()});smartUnion([lazyType(()=>DeploymentPolicy1$outboundSchema),stringType()]);const UpdateProjectPaths$outboundSchema=objectType({value:stringType()}),UpdateProjectOptionsAllowlist$outboundSchema=objectType({paths:arrayType(lazyType(()=>UpdateProjectPaths$outboundSchema))}),ConnectConfigurations1$outboundSchema=objectType({envId:stringType(),connectConfigurationId:stringType(),passive:booleanType(),buildsEnabled:booleanType()});lazyType(()=>ConnectConfigurations1$outboundSchema);const UpdateProjectAction$outboundSchema=nativeEnumType(UpdateProjectAction);smartUnion([numberType(),booleanType(),stringType()]),smartUnion([numberType(),booleanType(),stringType()]),objectType({previousValue:smartUnion([numberType(),booleanType(),stringType()]),currentValue:smartUnion([numberType(),booleanType(),stringType()])});const UpdateProjectDismissedToasts$outboundSchema=objectType({key:stringType(),dismissedAt:numberType(),action:UpdateProjectAction$outboundSchema,value:anyType().optional()}),UpdateProjectRequestBody$outboundSchema=objectType({autoExposeSystemEnvs:booleanType().optional(),autoAssignCustomDomains:booleanType().optional(),autoAssignCustomDomainsUpdatedBy:stringType().optional(),buildCommand:nullableType(stringType()).optional(),commandForIgnoringBuildStep:nullableType(stringType()).optional(),customerSupportCodeVisibility:booleanType().optional(),devCommand:nullableType(stringType()).optional(),directoryListing:booleanType().optional(),framework:nullableType(UpdateProjectFramework$outboundSchema).optional(),gitForkProtection:booleanType().optional(),gitLFS:booleanType().optional(),protectedSourcemaps:booleanType().optional(),installCommand:nullableType(stringType()).optional(),name:stringType().optional(),nodeVersion:UpdateProjectNodeVersion$outboundSchema.optional(),outputDirectory:nullableType(stringType()).optional(),previewDeploymentsDisabled:nullableType(booleanType()).optional(),previewDeploymentSuffix:nullableType(stringType()).optional(),resourceConfig:lazyType(()=>UpdateProjectResourceConfig$outboundSchema).optional(),publicSource:nullableType(booleanType()).optional(),rootDirectory:nullableType(stringType()).optional(),serverlessFunctionRegion:nullableType(stringType()).optional(),serverlessFunctionZeroConfigFailover:booleanType().optional(),skewProtectionBoundaryAt:numberType().int().optional(),skewProtectionMaxAge:numberType().int().optional(),skewProtectionAllowedDomains:arrayType(stringType()).optional(),skipGitConnectDuringLink:booleanType().optional(),sourceFilesOutsideRootDirectory:booleanType().optional(),enablePreviewFeedback:nullableType(booleanType()).optional(),enableProductionFeedback:nullableType(booleanType()).optional(),enableAffectedProjectsDeployments:booleanType().optional(),enableExternalRewriteCaching:booleanType().optional(),staticIps:lazyType(()=>UpdateProjectStaticIps$outboundSchema).optional(),tracing:nullableType(lazyType(()=>Tracing$outboundSchema)).optional(),oidcTokenConfig:lazyType(()=>UpdateProjectOidcTokenConfig$outboundSchema).optional(),passwordProtection:nullableType(lazyType(()=>UpdateProjectPasswordProtection$outboundSchema)).optional(),passport:nullableType(lazyType(()=>UpdateProjectPassport$outboundSchema)).optional(),ssoProtection:nullableType(lazyType(()=>UpdateProjectSsoProtection$outboundSchema)).optional(),trustedIps:nullableType(lazyType(()=>UpdateProjectTrustedIps$outboundSchema)).optional(),trustedSources:nullableType(lazyType(()=>TrustedSources$outboundSchema)).optional(),deploymentPolicy:smartUnion([lazyType(()=>DeploymentPolicy1$outboundSchema),stringType()]).optional(),optionsAllowlist:nullableType(lazyType(()=>UpdateProjectOptionsAllowlist$outboundSchema)).optional(),connectConfigurations:nullableType(arrayType(lazyType(()=>ConnectConfigurations1$outboundSchema))).optional(),dismissedToasts:arrayType(lazyType(()=>UpdateProjectDismissedToasts$outboundSchema)).optional()});objectType({idOrName:stringType(),teamId:stringType().optional(),slug:stringType().optional(),requestBody:lazyType(()=>UpdateProjectRequestBody$outboundSchema)}).transform(e=>remap(e,{requestBody:`RequestBody`})),objectType({id:string(),canceledAt:nullableType(number()).optional(),disabledAt:number(),enabledAt:number(),paidAt:optional(number()),sampleRatePercent:nullableType(number()).optional(),spendLimitInDollars:nullableType(number()).optional()}),objectType({id:string(),enabledAt:optional(number()),disabledAt:optional(number()),canceledAt:optional(number()),hasData:optional(boolean()),paidAt:optional(number())});const UpdateProjectEnvId2$inboundSchema=nativeEnumType(UpdateProjectEnvId2);smartUnion([string(),UpdateProjectEnvId2$inboundSchema]);const UpdateProjectAws$inboundSchema=objectType({subnetIds:arrayType(string()),securityGroupId:optional(string())});objectType({envId:smartUnion([string(),UpdateProjectEnvId2$inboundSchema]),connectConfigurationId:string(),dc:optional(string()),passive:boolean(),buildsEnabled:boolean(),aws:optional(lazyType(()=>UpdateProjectAws$inboundSchema)),createdAt:number(),updatedAt:number()});const UpdateProjectSource$inboundSchema=nativeEnumType(UpdateProjectSource),UpdateProjectDefinitions$inboundSchema=objectType({host:string(),path:string(),schedule:string(),source:optional(UpdateProjectSource$inboundSchema),description:optional(string()),hostInferred:optional(boolean())});objectType({enabledAt:number(),disabledAt:nullable(number()),updatedAt:number(),deploymentId:nullable(string()),definitions:arrayType(lazyType(()=>UpdateProjectDefinitions$inboundSchema))}),objectType({userDisabled:boolean(),storageSizeBytes:nullableType(number()).optional(),unlimited:optional(boolean())}),objectType({expirationDays:optional(number()),expirationDaysProduction:optional(number()),expirationDaysCanceled:optional(number()),expirationDaysErrored:optional(number()),deploymentsToKeep:optional(number())});const UpdateProjectExpiration2$inboundSchema=objectType({lockedAt:number(),lockedBy:string()}),UpdateProjectExpiration1$inboundSchema=objectType({expiresAt:number()});smartUnion([lazyType(()=>UpdateProjectExpiration2$inboundSchema),lazyType(()=>UpdateProjectExpiration1$inboundSchema)]);const UpdateProjectTarget2$inboundSchema=nativeEnumType(UpdateProjectTarget2);smartUnion([arrayType(string()),UpdateProjectTarget2$inboundSchema]);const UpdateProjectType$inboundSchema=nativeEnumType(UpdateProjectType),UpdateProjectContentHint17$inboundSchema=objectType({type:literal(`flags-connection-string`),projectId:string()}),UpdateProjectContentHint16$inboundSchema=objectType({type:literal(`integration-store-secret`),storeId:string(),integrationId:string(),integrationProductId:string(),integrationConfigurationId:string()}),UpdateProjectContentHint15$inboundSchema=objectType({type:literal(`postgres-url-no-ssl`),storeId:string()}),UpdateProjectContentHint14$inboundSchema=objectType({type:literal(`postgres-database`),storeId:string()}),UpdateProjectContentHint13$inboundSchema=objectType({type:literal(`postgres-password`),storeId:string()}),UpdateProjectContentHint12$inboundSchema=objectType({type:literal(`postgres-host`),storeId:string()}),UpdateProjectContentHint11$inboundSchema=objectType({type:literal(`postgres-user`),storeId:string()}),UpdateProjectContentHint10$inboundSchema=objectType({type:literal(`postgres-prisma-url`),storeId:string()}),UpdateProjectContentHint9$inboundSchema=objectType({type:literal(`postgres-url-non-pooling`),storeId:string()}),UpdateProjectContentHint8$inboundSchema=objectType({type:literal(`postgres-url`),storeId:string()}),UpdateProjectContentHint7$inboundSchema=objectType({type:literal(`blob-webhook-public-key`),storeId:string()}),UpdateProjectContentHint6$inboundSchema=objectType({type:literal(`blob-store-id`),storeId:string()}),UpdateProjectContentHint5$inboundSchema=objectType({type:literal(`blob-read-write-token`),storeId:string()}),UpdateProjectContentHint4$inboundSchema=objectType({type:literal(`redis-rest-api-read-only-token`),storeId:string()}),UpdateProjectContentHint3$inboundSchema=objectType({type:literal(`redis-rest-api-token`),storeId:string()}),UpdateProjectContentHint2$inboundSchema=objectType({type:literal(`redis-rest-api-url`),storeId:string()}),UpdateProjectContentHint1$inboundSchema=objectType({type:literal(`redis-url`),storeId:string()});unionType([lazyType(()=>UpdateProjectContentHint1$inboundSchema),lazyType(()=>UpdateProjectContentHint2$inboundSchema),lazyType(()=>UpdateProjectContentHint3$inboundSchema),lazyType(()=>UpdateProjectContentHint4$inboundSchema),lazyType(()=>UpdateProjectContentHint5$inboundSchema),lazyType(()=>UpdateProjectContentHint6$inboundSchema),lazyType(()=>UpdateProjectContentHint7$inboundSchema),lazyType(()=>UpdateProjectContentHint8$inboundSchema),lazyType(()=>UpdateProjectContentHint9$inboundSchema),lazyType(()=>UpdateProjectContentHint10$inboundSchema),lazyType(()=>UpdateProjectContentHint11$inboundSchema),lazyType(()=>UpdateProjectContentHint12$inboundSchema),lazyType(()=>UpdateProjectContentHint13$inboundSchema),lazyType(()=>UpdateProjectContentHint14$inboundSchema),lazyType(()=>UpdateProjectContentHint15$inboundSchema),lazyType(()=>UpdateProjectContentHint16$inboundSchema),lazyType(()=>UpdateProjectContentHint17$inboundSchema)]);const UpdateProjectInternalContentHint$inboundSchema=objectType({type:nativeEnumType(UpdateProjectProjectsResponse200ApplicationJSONType),encryptedValue:string()});objectType({target:optional(smartUnion([arrayType(string()),UpdateProjectTarget2$inboundSchema])),type:UpdateProjectType$inboundSchema,sunsetSecretId:optional(string()),legacyValue:optional(string()),decrypted:optional(boolean()),value:string(),vsmValue:optional(string()),id:optional(string()),key:string(),configurationId:nullableType(string()).optional(),createdAt:optional(number()),updatedAt:optional(number()),createdBy:nullableType(string()).optional(),updatedBy:nullableType(string()).optional(),gitBranch:optional(string()),edgeConfigId:nullableType(string()).optional(),edgeConfigTokenId:nullableType(string()).optional(),contentHint:nullableType(unionType([lazyType(()=>UpdateProjectContentHint1$inboundSchema),lazyType(()=>UpdateProjectContentHint2$inboundSchema),lazyType(()=>UpdateProjectContentHint3$inboundSchema),lazyType(()=>UpdateProjectContentHint4$inboundSchema),lazyType(()=>UpdateProjectContentHint5$inboundSchema),lazyType(()=>UpdateProjectContentHint6$inboundSchema),lazyType(()=>UpdateProjectContentHint7$inboundSchema),lazyType(()=>UpdateProjectContentHint8$inboundSchema),lazyType(()=>UpdateProjectContentHint9$inboundSchema),lazyType(()=>UpdateProjectContentHint10$inboundSchema),lazyType(()=>UpdateProjectContentHint11$inboundSchema),lazyType(()=>UpdateProjectContentHint12$inboundSchema),lazyType(()=>UpdateProjectContentHint13$inboundSchema),lazyType(()=>UpdateProjectContentHint14$inboundSchema),lazyType(()=>UpdateProjectContentHint15$inboundSchema),lazyType(()=>UpdateProjectContentHint16$inboundSchema),lazyType(()=>UpdateProjectContentHint17$inboundSchema)])).optional(),internalContentHint:nullableType(lazyType(()=>UpdateProjectInternalContentHint$inboundSchema)).optional(),comment:optional(string()),customEnvironmentIds:optional(arrayType(string()))});const UpdateProjectProjectsType$inboundSchema=nativeEnumType(UpdateProjectProjectsType),UpdateProjectBranchMatcher$inboundSchema=objectType({type:nativeEnumType(UpdateProjectProjectsResponse200Type),pattern:string()}),UpdateProjectVerification$inboundSchema=objectType({type:string(),domain:string(),value:string(),reason:string()}),UpdateProjectDomains$inboundSchema=objectType({name:string(),apexName:string(),projectId:string(),redirect:nullableType(string()).optional(),redirectStatusCode:nullableType(number()).optional(),gitBranch:nullableType(string()).optional(),customEnvironmentId:nullableType(string()).optional(),updatedAt:optional(number()),createdAt:optional(number()),verified:boolean(),verification:optional(arrayType(lazyType(()=>UpdateProjectVerification$inboundSchema)))});objectType({id:string(),slug:string(),type:UpdateProjectProjectsType$inboundSchema,description:optional(string()),branchMatcher:optional(lazyType(()=>UpdateProjectBranchMatcher$inboundSchema)),domains:optional(arrayType(lazyType(()=>UpdateProjectDomains$inboundSchema))),currentDeploymentAliases:optional(arrayType(string())),createdAt:number(),updatedAt:number()}),nativeEnumType(UpdateProjectProjectsFramework);const UpdateProjectServiceType$inboundSchema=nativeEnumType(UpdateProjectServiceType),UpdateProjectProjectsResponseFramework$inboundSchema=nativeEnumType(UpdateProjectProjectsResponseFramework);objectType({serviceName:string(),serviceType:optional(UpdateProjectServiceType$inboundSchema),framework:optional(UpdateProjectProjectsResponseFramework$inboundSchema),runtime:optional(string())}),objectType({bucket:string(),default:optional(boolean()),supportUntil:optional(number())});const UpdateProjectLint$inboundSchema=objectType({targets:arrayType(string())}),UpdateProjectTypecheck$inboundSchema=objectType({targets:arrayType(string())}),UpdateProjectMfeConfigPresent$inboundSchema=objectType({targets:arrayType(string())});objectType({lint:optional(lazyType(()=>UpdateProjectLint$inboundSchema)),typecheck:optional(lazyType(()=>UpdateProjectTypecheck$inboundSchema)),"mfe-config-present":optional(lazyType(()=>UpdateProjectMfeConfigPresent$inboundSchema))}).transform(e=>remap(e,{"mfe-config-present":`mfeConfigPresent`})),smartUnion([number(),boolean()]);const UpdateProjectBuilds$inboundSchema=objectType({use:string(),src:optional(string()),dest:optional(string())}),UpdateProjectCreator$inboundSchema=objectType({email:string(),githubLogin:optional(string()),gitlabLogin:optional(string()),uid:string(),username:string()});objectType({alias:optional(arrayType(string())),aliasAssigned:nullableType(smartUnion([number(),boolean()])).optional(),builds:optional(arrayType(lazyType(()=>UpdateProjectBuilds$inboundSchema))),createdAt:number(),createdIn:string(),creator:nullable(lazyType(()=>UpdateProjectCreator$inboundSchema)),deploymentHostname:string(),name:string(),forced:optional(boolean()),id:string(),meta:optional(recordType(string())),plan:string(),private:boolean(),readyState:string(),requestedAt:optional(number()),target:nullableType(string()).optional(),teamId:nullableType(string()).optional(),type:string(),url:string(),userId:string(),withCache:optional(boolean())});const UpdateProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink6$inboundSchema=objectType({org:string(),repo:string(),type:literal(`vercel`),createdAt:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema)),gitCredentialId:string(),updatedAt:optional(number()),sourceless:optional(boolean()),productionBranch:string()}),UpdateProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink5$inboundSchema=objectType({name:string(),slug:string(),owner:string(),type:literal(`bitbucket`),uuid:string(),workspaceUuid:string(),createdAt:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema)),gitCredentialId:string(),updatedAt:optional(number()),sourceless:optional(boolean()),productionBranch:string()}),UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink4$inboundSchema=objectType({projectId:string(),projectName:string(),projectNameWithNamespace:string(),projectNamespace:string(),projectOwnerId:optional(number()),projectUrl:string(),type:literal(`gitlab`),createdAt:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema)),gitCredentialId:string(),updatedAt:optional(number()),sourceless:optional(boolean()),productionBranch:string()}),UpdateProjectLinkProjectsResponseDeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink3$inboundSchema=objectType({org:string(),repoOwnerId:optional(number()),repo:optional(string()),repoId:optional(number()),type:literal(`github-custom-host`),host:string(),createdAt:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkProjectsResponseDeployHooks$inboundSchema)),gitCredentialId:string(),updatedAt:optional(number()),sourceless:optional(boolean()),productionBranch:string()}),UpdateProjectLinkProjectsDeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink2$inboundSchema=objectType({type:literal(`github-limited`),repo:optional(string()),repoId:optional(number()),createdAt:optional(number()),updatedAt:optional(number()),org:string(),repoOwnerId:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkProjectsDeployHooks$inboundSchema)),gitCredentialId:string(),sourceless:optional(boolean()),productionBranch:string()}),UpdateProjectLinkDeployHooks$inboundSchema=objectType({createdAt:optional(number()),id:string(),name:string(),ref:string(),url:string()}),UpdateProjectLink1$inboundSchema=objectType({org:string(),repoOwnerId:optional(number()),repo:optional(string()),repoId:optional(number()),type:literal(`github`),createdAt:optional(number()),deployHooks:arrayType(lazyType(()=>UpdateProjectLinkDeployHooks$inboundSchema)),gitCredentialId:string(),updatedAt:optional(number()),sourceless:optional(boolean()),productionBranch:string()});unionType([lazyType(()=>UpdateProjectLink1$inboundSchema),lazyType(()=>UpdateProjectLink2$inboundSchema),lazyType(()=>UpdateProjectLink3$inboundSchema),lazyType(()=>UpdateProjectLink4$inboundSchema),lazyType(()=>UpdateProjectLink5$inboundSchema),lazyType(()=>UpdateProjectLink6$inboundSchema)]);const UpdateProjectMicrofrontends3$inboundSchema=objectType({updatedAt:number(),groupIds:arrayType(anyType()),enabled:literal(!1),freeProjectForLegacyLimits:optional(boolean())}),UpdateProjectMicrofrontends2$inboundSchema=objectType({isDefaultApp:optional(literal(!1)),routeObservabilityToThisProject:optional(boolean()),doNotRouteWithMicrofrontendsRouting:optional(boolean()),updatedAt:number(),groupIds:arrayType(string()),enabled:literal(!0),defaultRoute:optional(string()),freeProjectForLegacyLimits:optional(boolean())}),UpdateProjectMicrofrontends1$inboundSchema=objectType({isDefaultApp:literal(!0),updatedAt:number(),groupIds:arrayType(string()),enabled:literal(!0),defaultRoute:optional(string()),freeProjectForLegacyLimits:optional(boolean())});smartUnion([lazyType(()=>UpdateProjectMicrofrontends1$inboundSchema),lazyType(()=>UpdateProjectMicrofrontends2$inboundSchema),lazyType(()=>UpdateProjectMicrofrontends3$inboundSchema)]),nativeEnumType(UpdateProjectProjectsNodeVersion);const UpdateProjectProjectsPaths$inboundSchema=objectType({value:string()});objectType({paths:arrayType(lazyType(()=>UpdateProjectProjectsPaths$inboundSchema))});export{trustedSourcesToJSON};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{unrecognized}from"./unrecognized.js";let globalCount=0,refCount=0;function defaultToZeroValue(t){return globalCount++,unrecognized(t)}function startCountingDefaultToZeroValue(){refCount++;let e=globalCount;return{end:n=>{let r=globalCount-e;return globalCount=e+(n??r),--refCount===0&&(globalCount=0),r}}}export{defaultToZeroValue,startCountingDefaultToZeroValue};
|
package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/fp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function OK(e){return{ok:!0,value:e}}function ERR(e){return{ok:!1,error:e}}export{ERR,OK};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NEVER,anyType,booleanType,literalType,nullType,numberType,stringType,undefinedType,unionType}from"../../../../../../zod@4.4.3/node_modules/zod/v3/types.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";import{unrecognized}from"./unrecognized.js";import{defaultToZeroValue}from"./defaultToZeroValue.js";function string(){return unionType([stringType(),zodDefaultToZeroValue(``),anyType().transform(e=>unrecognized(JSON.stringify(e)))])}function boolean(){return unionType([booleanType(),stringType().transform((t,n)=>{let r=t.toLowerCase();return r===`true`?unrecognized(!0):r===`false`?unrecognized(!1):(n.addIssue({code:`invalid_type`,expected:`boolean`,received:`string`}),NEVER)}),zodDefaultToZeroValue(!1)])}function number(){return unionType([numberType(),stringType().transform((t,n)=>{let r=Number(t);return isNaN(r)?(n.addIssue({code:`invalid_type`,expected:`number`,received:`string`}),NEVER):unrecognized(r)}),zodDefaultToZeroValue(0)])}function literal(e){return unionType([literalType(e),zodDefaultToZeroValue(e)])}function optional(e){return unionType([nullType().transform(()=>unrecognized(void 0)),e]).optional()}function nullable(e){return unionType([nullType(),undefinedType().transform(()=>defaultToZeroValue(null)),e])}function zodDefaultToZeroValue(n){return anyType().transform((t,r)=>t==null?defaultToZeroValue(n):(r.addIssue({code:`invalid_type`,expected:`undefined`,received:`unknown`}),NEVER))}export{boolean,literal,nullable,number,optional,string};
|
package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/rfcdate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const dateRE=/^\d{4}-\d{2}-\d{2}$/;var RFCDate=class RFCDate{serialized;static today(){return new RFCDate(new Date)}constructor(e){if(typeof e==`string`&&!dateRE.test(e))throw RangeError(`RFCDate: date strings must be in the format YYYY-MM-DD: `+e);let t=new Date(e);if(isNaN(+t))throw RangeError(`RFCDate: invalid date provided: `+e);if(this.serialized=t.toISOString().slice(0,10),!dateRE.test(this.serialized))throw TypeError(`RFCDate: failed to build valid date with given value: ${e} serialized to ${this.serialized}`)}toJSON(){return this.toString()}toString(){return this.serialized}};export{RFCDate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ZodError}from"../../../../../../zod@4.4.3/node_modules/zod/v3/ZodError.js";import{NEVER,unknownType}from"../../../../../../zod@4.4.3/node_modules/zod/v3/types.js";import"../../../../../../zod@4.4.3/node_modules/zod/v3/index.js";import{startCountingUnrecognized}from"./unrecognized.js";import{startCountingDefaultToZeroValue}from"./defaultToZeroValue.js";import{RFCDate}from"./rfcdate.js";function smartUnion(a){return unknownType().transform((n,o)=>{let s=[],c=a.map(()=>[]),l=startCountingUnrecognized(),u=startCountingDefaultToZeroValue();for(let[e,t]of a.entries()){let a=startCountingUnrecognized(),o=startCountingDefaultToZeroValue(),l=t.safeParse(n),u=a.end(),d=o.end();if(l.success){s.push({data:l.data,inexactCount:u,zeroDefaultCount:d,fieldCount:-1});continue}c[e].push(...l.error.issues)}if(s.length===0)return l.end(0),u.end(0),o.addIssue({code:`invalid_union`,unionErrors:c.map(t=>new ZodError(t))}),NEVER;let d=s[0];for(let e of s)s.length>1&&(e.fieldCount=countFieldsRecursive(e.data)),d=better(e,d);return l.end(d.inexactCount),u.end(d.zeroDefaultCount),d.data})}function better(e,t){let n=e.inexactCount===0;if(n!==(t.inexactCount===0))return n?e:t;let r=e.fieldCount-e.zeroDefaultCount,i=t.fieldCount-t.zeroDefaultCount;return r===i?e.inexactCount<t.inexactCount?e:t:r>i?e:t}function countFieldsRecursive(e){let t=0,n=[e],r=0;for(;r<n.length;){let e=n[r++];if(e===void 0)continue;let i=typeof e;if(e===null||i===`number`||i===`string`||i===`boolean`||i===`bigint`||e instanceof Date||e instanceof RFCDate){t++;continue}if(Array.isArray(e)){n.push(...e);continue}i===`object`&&n.push(...Object.values(e))}return t}export{smartUnion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function unrecognized(e){return globalCount++,e}let globalCount=0,refCount=0;function startCountingUnrecognized(){refCount++;let t=globalCount;return{end:n=>{let r=globalCount-t;return globalCount=t+(n??r),--refCount===0&&(globalCount=0),r}}}export{startCountingUnrecognized,unrecognized};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{util}from"./helpers/util.js";const ZodIssueCode=util.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`);var ZodError=class ZodError extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},processError=e=>{for(let r of e.issues)if(r.code===`invalid_union`)r.unionErrors.map(processError);else if(r.code===`invalid_return_type`)processError(r.returnTypeError);else if(r.code===`invalid_arguments`)processError(r.argumentsError);else if(r.path.length===0)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){let n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return processError(this),n}static assert(e){if(!(e instanceof ZodError))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t=Object.create(null),n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};ZodError.create=e=>new ZodError(e);export{ZodError,ZodIssueCode,quotelessJson};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import errorMap from"./locales/en.js";let overrideErrorMap=errorMap;function setErrorMap(e){overrideErrorMap=e}function getErrorMap(){return overrideErrorMap}export{getErrorMap,setErrorMap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__exportAll}from"../../../../../../_virtual/_rolldown/runtime.js";import{ZodParsedType,getParsedType,objectUtil,util}from"./helpers/util.js";import{ZodError,ZodIssueCode,quotelessJson}from"./ZodError.js";import errorMap from"./locales/en.js";import{getErrorMap,setErrorMap}from"./errors.js";import{DIRTY,EMPTY_PATH,INVALID,OK,ParseStatus,addIssueToContext,isAborted,isAsync,isDirty,isValid,makeIssue}from"./helpers/parseUtil.js";import"./helpers/typeAliases.js";import{BRAND,NEVER,ZodAny,ZodArray,ZodBigInt,ZodBoolean,ZodBranded,ZodCatch,ZodDate,ZodDefault,ZodDiscriminatedUnion,ZodEffects,ZodEnum,ZodFirstPartyTypeKind,ZodFunction,ZodIntersection,ZodLazy,ZodLiteral,ZodMap,ZodNaN,ZodNativeEnum,ZodNever,ZodNull,ZodNullable,ZodNumber,ZodObject,ZodOptional,ZodPipeline,ZodPromise,ZodReadonly,ZodRecord,ZodSet,ZodString,ZodSymbol,ZodTuple,ZodType,ZodUndefined,ZodUnion,ZodUnknown,ZodVoid,anyType,arrayType,bigIntType,booleanType,coerce,custom,dateType,datetimeRegex,discriminatedUnionType,effectsType,enumType,functionType,instanceOfType,intersectionType,late,lazyType,literalType,mapType,nanType,nativeEnumType,neverType,nullType,nullableType,numberType,objectType,oboolean,onumber,optionalType,ostring,pipelineType,preprocessType,promiseType,recordType,setType,strictObjectType,stringType,symbolType,tupleType,undefinedType,unionType,unknownType,voidType}from"./types.js";var external_exports=__exportAll({BRAND:()=>BRAND,DIRTY:()=>DIRTY,EMPTY_PATH:()=>EMPTY_PATH,INVALID:()=>INVALID,NEVER:()=>NEVER,OK:()=>OK,ParseStatus:()=>ParseStatus,Schema:()=>ZodType,ZodAny:()=>ZodAny,ZodArray:()=>ZodArray,ZodBigInt:()=>ZodBigInt,ZodBoolean:()=>ZodBoolean,ZodBranded:()=>ZodBranded,ZodCatch:()=>ZodCatch,ZodDate:()=>ZodDate,ZodDefault:()=>ZodDefault,ZodDiscriminatedUnion:()=>ZodDiscriminatedUnion,ZodEffects:()=>ZodEffects,ZodEnum:()=>ZodEnum,ZodError:()=>ZodError,ZodFirstPartyTypeKind:()=>ZodFirstPartyTypeKind,ZodFunction:()=>ZodFunction,ZodIntersection:()=>ZodIntersection,ZodIssueCode:()=>ZodIssueCode,ZodLazy:()=>ZodLazy,ZodLiteral:()=>ZodLiteral,ZodMap:()=>ZodMap,ZodNaN:()=>ZodNaN,ZodNativeEnum:()=>ZodNativeEnum,ZodNever:()=>ZodNever,ZodNull:()=>ZodNull,ZodNullable:()=>ZodNullable,ZodNumber:()=>ZodNumber,ZodObject:()=>ZodObject,ZodOptional:()=>ZodOptional,ZodParsedType:()=>ZodParsedType,ZodPipeline:()=>ZodPipeline,ZodPromise:()=>ZodPromise,ZodReadonly:()=>ZodReadonly,ZodRecord:()=>ZodRecord,ZodSchema:()=>ZodType,ZodSet:()=>ZodSet,ZodString:()=>ZodString,ZodSymbol:()=>ZodSymbol,ZodTransformer:()=>ZodEffects,ZodTuple:()=>ZodTuple,ZodType:()=>ZodType,ZodUndefined:()=>ZodUndefined,ZodUnion:()=>ZodUnion,ZodUnknown:()=>ZodUnknown,ZodVoid:()=>ZodVoid,addIssueToContext:()=>addIssueToContext,any:()=>anyType,array:()=>arrayType,bigint:()=>bigIntType,boolean:()=>booleanType,coerce:()=>coerce,custom:()=>custom,date:()=>dateType,datetimeRegex:()=>datetimeRegex,defaultErrorMap:()=>errorMap,discriminatedUnion:()=>discriminatedUnionType,effect:()=>effectsType,enum:()=>enumType,function:()=>functionType,getErrorMap:()=>getErrorMap,getParsedType:()=>getParsedType,instanceof:()=>instanceOfType,intersection:()=>intersectionType,isAborted:()=>isAborted,isAsync:()=>isAsync,isDirty:()=>isDirty,isValid:()=>isValid,late:()=>late,lazy:()=>lazyType,literal:()=>literalType,makeIssue:()=>makeIssue,map:()=>mapType,nan:()=>nanType,nativeEnum:()=>nativeEnumType,never:()=>neverType,null:()=>nullType,nullable:()=>nullableType,number:()=>numberType,object:()=>objectType,objectUtil:()=>objectUtil,oboolean:()=>oboolean,onumber:()=>onumber,optional:()=>optionalType,ostring:()=>ostring,pipeline:()=>pipelineType,preprocess:()=>preprocessType,promise:()=>promiseType,quotelessJson:()=>quotelessJson,record:()=>recordType,set:()=>setType,setErrorMap:()=>setErrorMap,strictObject:()=>strictObjectType,string:()=>stringType,symbol:()=>symbolType,transformer:()=>effectsType,tuple:()=>tupleType,undefined:()=>undefinedType,union:()=>unionType,unknown:()=>unknownType,util:()=>util,void:()=>voidType});export{external_exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var errorUtil;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(errorUtil||={});export{errorUtil};
|