run402 1.60.3 → 1.62.0

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/README.md CHANGED
@@ -71,6 +71,7 @@ Link once from a local shell that has your Run402 allowance, then commit the gen
71
71
 
72
72
  ```bash
73
73
  run402 ci link github --project prj_... --manifest run402.deploy.json
74
+ run402 ci link github --project prj_... --manifest run402.deploy.json --route-scope /admin --route-scope /api/*
74
75
  run402 ci list --project prj_...
75
76
  run402 ci revoke cib_...
76
77
  ```
@@ -91,7 +92,7 @@ jobs:
91
92
  run: npx --yes run402@1.60.0 deploy apply --manifest 'run402.deploy.json' --project 'prj_...'
92
93
  ```
93
94
 
94
- CI deploys can ship `site`, `functions`, and `database` changes. Keep secrets, domains, subdomains, routes, checks, and non-current base changes in a local `run402 deploy apply` where the full allowance-backed authority is present.
95
+ CI deploys can ship `site`, `functions`, `database`, and absent/current `base` changes. Route declarations are allowed only when the binding was linked with covering `--route-scope` patterns (`/admin` exact, `/api/*` final wildcard); no scopes means no CI route authority. Keep secrets, domains, subdomains, checks, non-current base changes, and out-of-scope routes in a local `run402 deploy apply` where the full allowance-backed authority is present.
95
96
 
96
97
  ### Storage (paste-and-go CDN assets)
97
98
 
package/lib/ci.mjs CHANGED
@@ -20,7 +20,7 @@ const { version: RUN402_VERSION } = JSON.parse(
20
20
  const HELP = `run402 ci — Manage CI/OIDC deploy bindings
21
21
 
22
22
  Usage:
23
- run402 ci link github [--project <id>] [--manifest <path>] [--repo <owner/repo>] [--branch <name> | --environment <name>] [--repository-id <id>] [--workflow <path>] [--expires-at <iso>] [--force]
23
+ run402 ci link github [--project <id>] [--manifest <path>] [--repo <owner/repo>] [--branch <name> | --environment <name>] [--repository-id <id>] [--workflow <path>] [--expires-at <iso>] [--route-scope <pattern> ...] [--force]
24
24
  run402 ci list [--project <id>]
25
25
  run402 ci revoke <binding_id>
26
26
 
@@ -34,7 +34,7 @@ const SUB_HELP = {
34
34
  link: `run402 ci link github — Link GitHub Actions OIDC for deploy apply
35
35
 
36
36
  Usage:
37
- run402 ci link github [--project <id>] [--manifest <path>] [--repo <owner/repo>] [--branch <name> | --environment <name>] [--repository-id <id>] [--workflow <path>] [--expires-at <iso>] [--force]
37
+ run402 ci link github [--project <id>] [--manifest <path>] [--repo <owner/repo>] [--branch <name> | --environment <name>] [--repository-id <id>] [--workflow <path>] [--expires-at <iso>] [--route-scope <pattern> ...] [--force]
38
38
 
39
39
  Options:
40
40
  --project <id> Project ID (defaults to the active project)
@@ -45,10 +45,13 @@ Options:
45
45
  --repository-id <id> Numeric GitHub repository id when API lookup is unavailable
46
46
  --workflow <path> Workflow path (default: .github/workflows/run402-deploy.yml)
47
47
  --expires-at <iso> Optional binding expiration timestamp
48
+ --route-scope <pattern> Optional exact path or final wildcard route scope, repeatable (examples: /admin, /api/*)
48
49
  --force Overwrite an existing workflow file
49
50
 
50
51
  Notes:
51
52
  - v1 allows only push and workflow_dispatch events.
53
+ - Without --route-scope, CI cannot deploy route declarations.
54
+ - Route scopes delegate only matching public path changes; secrets, subdomains, checks, and non-current base remain local-only.
52
55
  - v1 does not expose raw subject, wildcard, or pull-request deploy flags.
53
56
  `,
54
57
  list: `run402 ci list — List CI bindings
@@ -63,7 +66,7 @@ Usage:
63
66
  `,
64
67
  };
65
68
 
66
- function parseFlags(args, allowed) {
69
+ function parseFlags(args, allowed, { repeatable = new Set() } = {}) {
67
70
  const flags = {};
68
71
  const positional = [];
69
72
  for (let i = 0; i < args.length; i++) {
@@ -91,7 +94,14 @@ function parseFlags(args, allowed) {
91
94
  details: { flag: arg },
92
95
  });
93
96
  }
94
- flags[arg.slice(2).replace(/-/g, "_")] = args[++i];
97
+ const key = arg.slice(2).replace(/-/g, "_");
98
+ const value = args[++i];
99
+ if (repeatable.has(arg)) {
100
+ flags[key] ??= [];
101
+ flags[key].push(value);
102
+ continue;
103
+ }
104
+ flags[key] = value;
95
105
  }
96
106
  return { flags, positional };
97
107
  }
@@ -224,8 +234,9 @@ async function linkGithub(args) {
224
234
  "--repository-id",
225
235
  "--workflow",
226
236
  "--expires-at",
237
+ "--route-scope",
227
238
  "--force",
228
- ]));
239
+ ]), { repeatable: new Set(["--route-scope"]) });
229
240
  if (positional[0] !== "github" || positional.length > 1) {
230
241
  fail({
231
242
  code: "BAD_USAGE",
@@ -273,12 +284,14 @@ async function linkGithub(args) {
273
284
  }
274
285
 
275
286
  const manifest = flags.manifest || "run402.deploy.json";
287
+ const routeScopes = Array.isArray(flags.route_scope) ? flags.route_scope : [];
276
288
  const nonce = randomBytes(16).toString("hex");
277
289
  const values = {
278
290
  project_id: projectId,
279
291
  subject_match: subject,
280
292
  allowed_actions: V1_CI_ALLOWED_ACTIONS,
281
293
  allowed_events: V1_CI_ALLOWED_EVENTS_DEFAULT,
294
+ route_scopes: routeScopes,
282
295
  github_repository_id: repositoryId,
283
296
  expires_at: flags.expires_at || null,
284
297
  nonce,
@@ -308,6 +321,7 @@ async function linkGithub(args) {
308
321
  provider: CI_GITHUB_ACTIONS_PROVIDER,
309
322
  signed_delegation: signedDelegation,
310
323
  });
324
+ const outputRouteScopes = Array.isArray(binding.route_scopes) ? binding.route_scopes : [];
311
325
  mkdirSync(dirname(absWorkflowPath), { recursive: true });
312
326
  writeFileSync(absWorkflowPath, workflow, { encoding: "utf8", mode: 0o644 });
313
327
  console.log(JSON.stringify({
@@ -318,6 +332,7 @@ async function linkGithub(args) {
318
332
  subject_match: subject,
319
333
  allowed_events: [...V1_CI_ALLOWED_EVENTS_DEFAULT],
320
334
  allowed_actions: [...V1_CI_ALLOWED_ACTIONS],
335
+ route_scopes: outputRouteScopes,
321
336
  github_repository_id: repositoryId,
322
337
  github_repository_id_status: flags.repository_id ? "provided" : "verified",
323
338
  workflow_path: workflowPath,
@@ -327,6 +342,9 @@ async function linkGithub(args) {
327
342
  bootstrap_caveat: "Commit the generated workflow and manifest before expecting GitHub Actions deploys.",
328
343
  consent_summary: [
329
344
  "This binding lets matching GitHub Actions workflows deploy site, function, and database changes to the project.",
345
+ outputRouteScopes.length > 0
346
+ ? `It may deploy route declarations only within: ${outputRouteScopes.join(", ")}.`
347
+ : "It cannot deploy route declarations unless you re-link with --route-scope.",
330
348
  "It does not allow direct secrets, domains, subdomains, lifecycle, billing, contracts, or faucet API calls.",
331
349
  ],
332
350
  revocation_residuals: [
package/lib/deploy-v2.mjs CHANGED
@@ -15,6 +15,7 @@
15
15
  * "functions": { "replace": {...}, "patch": { "set": {...}, "delete": [...] } },
16
16
  * "site": { "replace": {...} } | { "patch": { "put": {...}, "delete": [...] } },
17
17
  * "subdomains": { "set": ["..."], "add": [...], "remove": [...] },
18
+ * "routes": { "replace": [{ "pattern": "/api/*", "methods": ["GET", "POST"], "target": { "type": "function", "name": "api" } }] },
18
19
  * "idempotency_key": "..."
19
20
  * }
20
21
  *
@@ -45,7 +46,27 @@ Manifest format mirrors the MCP \`deploy\` tool's ReleaseSpec:
45
46
  "secrets": { "require": ["OPENAI_API_KEY"], "delete": ["OLD_KEY"] },
46
47
  "functions": { "replace": { "api": { "source": { "data": "export default ..." } } } },
47
48
  "site": { "replace": { "index.html": { "data": "<html>..." } } },
48
- "subdomains": { "set": ["my-app"] }
49
+ "subdomains": { "set": ["my-app"] },
50
+ "routes": {
51
+ "replace": [
52
+ { "pattern": "/api/*", "methods": ["GET", "POST"], "target": { "type": "function", "name": "api" } }
53
+ ]
54
+ }
55
+ }
56
+
57
+ Complete static site + function + route manifest:
58
+ {
59
+ "project_id": "prj_...",
60
+ "site": { "replace": { "index.html": { "data": "<html><body><script src='/api/hello'></script></body></html>" } } },
61
+ "functions": {
62
+ "replace": {
63
+ "api": {
64
+ "runtime": "node22",
65
+ "source": { "data": "import { routedHttp } from '@run402/functions'; export default async (event) => routedHttp.json({ ok: true, path: event.path });" }
66
+ }
67
+ }
68
+ },
69
+ "routes": { "replace": [{ "pattern": "/api/*", "target": { "type": "function", "name": "api" } }] }
49
70
  }
50
71
 
51
72
  Options:
@@ -68,6 +89,11 @@ Secrets:
68
89
  Patch examples (only the listed file changes):
69
90
  { "project_id": "prj_...", "site": { "patch": { "put": { "index.html": { "data": "..." } } } } }
70
91
  { "project_id": "prj_...", "site": { "patch": { "delete": ["old.html"] } } }
92
+
93
+ Routes:
94
+ Omit routes or pass "routes": null to carry forward base routes.
95
+ Use "routes": { "replace": [] } to clear dynamic routes.
96
+ Routes activate atomically with the release. Direct /functions/v1/:name remains API-key protected.
71
97
  `;
72
98
 
73
99
  const RESUME_HELP = `run402 deploy resume — Resume a stuck deploy operation
@@ -123,8 +149,8 @@ Subcommands:
123
149
  diff Diff two release targets
124
150
 
125
151
  Output:
126
- get/active: { "status": "ok", "release": {...} }
127
- diff: { "status": "ok", "diff": {...} }
152
+ get/active: { "status": "ok", "release": {...} } # includes route inventory and inventory warnings when returned
153
+ diff: { "status": "ok", "diff": {...} } # includes route added/removed/changed diff buckets
128
154
  `;
129
155
 
130
156
  const RELEASE_GET_HELP = `run402 deploy release get — Fetch a release inventory by id
@@ -137,7 +163,7 @@ Options:
137
163
  --site-limit <n> Maximum site path entries to include (gateway default: 5000)
138
164
 
139
165
  Output:
140
- stdout: { "status": "ok", "release": {...} }
166
+ stdout: { "status": "ok", "release": {...} } # preserves full routes inventory and warnings
141
167
  `;
142
168
 
143
169
  const RELEASE_ACTIVE_HELP = `run402 deploy release active — Fetch the active release inventory
@@ -150,7 +176,7 @@ Options:
150
176
  --site-limit <n> Maximum site path entries to include (gateway default: 5000)
151
177
 
152
178
  Output:
153
- stdout: { "status": "ok", "release": {...} }
179
+ stdout: { "status": "ok", "release": {...} } # preserves full routes inventory and warnings
154
180
  `;
155
181
 
156
182
  const RELEASE_DIFF_HELP = `run402 deploy release diff — Diff two release targets
@@ -165,7 +191,7 @@ Options:
165
191
  --limit <n> Maximum entries per site diff bucket (gateway default: 1000)
166
192
 
167
193
  Output:
168
- stdout: { "status": "ok", "diff": {...} }
194
+ stdout: { "status": "ok", "diff": {...} } # preserves routes.added/removed/changed
169
195
  `;
170
196
 
171
197
  export async function runDeployV2(sub, args) {
@@ -250,7 +276,7 @@ async function applyCmd(args) {
250
276
  // For object-typed sections the "container is non-empty" check isn't enough
251
277
  // — `site:{replace:{}}` has one key but ships nothing. We recurse one level
252
278
  // so any object whose own values are all empty containers is still empty.
253
- const meaningful = ["database", "site", "functions", "secrets", "subdomains", "domains"];
279
+ const meaningful = ["database", "site", "functions", "secrets", "subdomains", "routes", "checks"];
254
280
  function hasContent(v) {
255
281
  if (v == null) return false;
256
282
  if (Array.isArray(v)) return v.length > 0;
@@ -262,7 +288,15 @@ async function applyCmd(args) {
262
288
  if (typeof v === "string") return v.length > 0;
263
289
  return true;
264
290
  }
265
- const hasMeaningfulContent = spec && typeof spec === "object" && !Array.isArray(spec) && meaningful.some((key) => hasContent(spec[key]));
291
+ function hasDeployableSection(key, value) {
292
+ if (key === "routes" && value && typeof value === "object" && !Array.isArray(value) &&
293
+ Object.prototype.hasOwnProperty.call(value, "replace") && Array.isArray(value.replace)) {
294
+ return true;
295
+ }
296
+ return hasContent(value);
297
+ }
298
+ const hasMeaningfulContent = spec && typeof spec === "object" && !Array.isArray(spec) &&
299
+ meaningful.some((key) => hasDeployableSection(key, spec[key]));
266
300
  if (!hasMeaningfulContent) {
267
301
  fail({
268
302
  code: "MANIFEST_EMPTY",
@@ -376,14 +410,22 @@ const CI_DEPLOY_ERROR_GUIDANCE = {
376
410
  ],
377
411
  },
378
412
  forbidden_spec_field: {
379
- hint: "CI deploys in v1 can deploy site/functions/database content only; link locally for secrets, routes, subdomains, checks, or oversized manifests.",
413
+ hint: "CI deploys can deploy site/functions/database content and route declarations only when the binding includes covering route scopes.",
380
414
  next_actions: [
381
- "Remove forbidden fields such as secrets, routes, subdomains, or checks from the CI manifest.",
415
+ "Remove forbidden fields such as secrets, subdomains, or checks from the CI manifest.",
382
416
  "Keep the normalized manifest small enough to avoid manifest_ref.",
383
417
  ],
384
418
  },
419
+ CI_ROUTE_SCOPE_DENIED: {
420
+ hint: "This CI binding does not cover one or more route declarations in the deploy manifest.",
421
+ next_actions: [
422
+ "Re-run run402 ci link github with --route-scope for every exact or prefix path the workflow may deploy.",
423
+ "Use exact scopes such as --route-scope /admin or prefix scopes such as --route-scope /api/*.",
424
+ "Run the deploy locally with run402 deploy apply for route changes outside the CI delegation.",
425
+ ],
426
+ },
385
427
  forbidden_plan: {
386
- hint: "The gateway rejected this deploy plan for CI. Keep CI deploys to the v1 allowed resources and re-link if policy changed.",
428
+ hint: "The gateway rejected this deploy plan for CI. Keep CI deploys to the allowed resources and re-link if policy changed.",
387
429
  next_actions: [
388
430
  "Inspect the gateway error details for the rejected resource.",
389
431
  "Run the deploy locally with run402 deploy apply for operations outside the CI allowlist.",
@@ -410,34 +452,100 @@ function enhanceDeployWarningError(err) {
410
452
  : {};
411
453
  const warnings = Array.isArray(existingBody.warnings) ? existingBody.warnings : null;
412
454
  const code = existingBody.code || err?.code || null;
413
- if (!warnings && code !== "MISSING_REQUIRED_SECRET") return err;
455
+ const routeGuidance = routeWarningGuidance(warnings, code);
456
+ if (!warnings && code !== "MISSING_REQUIRED_SECRET" && !routeGuidance) return err;
414
457
 
415
458
  const enhanced = Object.assign(new Error(err?.message || existingBody.message || String(code)), err);
416
459
  const affected = warnings
417
460
  ? warnings.flatMap((w) => Array.isArray(w?.affected) ? w.affected : [])
418
461
  : [];
462
+ const defaultNextActions = [
463
+ ...(affected.length > 0
464
+ ? [`Set or inspect affected secrets: ${Array.from(new Set(affected)).join(", ")}`]
465
+ : []),
466
+ "Retry `run402 deploy apply` after resolving warnings.",
467
+ "Use `--allow-warnings` only when the warning was explicitly reviewed.",
468
+ ];
419
469
  enhanced.body = {
420
470
  ...existingBody,
421
471
  code: code || "DEPLOY_WARNING_REQUIRES_CONFIRMATION",
422
472
  message: existingBody.message || err?.message || "Deploy plan returned warnings that require confirmation.",
423
473
  hint: existingBody.hint ||
474
+ routeGuidance?.hint ||
424
475
  (code === "MISSING_REQUIRED_SECRET"
425
476
  ? "Set the missing secret values with `run402 secrets set`, then retry deploy apply. Use --allow-warnings only after explicit review."
426
477
  : "Review the plan warnings, then retry with --allow-warnings if you intentionally accept them."),
427
478
  next_actions: Array.isArray(existingBody.next_actions) && existingBody.next_actions.length > 0
428
479
  ? existingBody.next_actions
429
- : [
430
- ...(affected.length > 0
431
- ? [`Set or inspect affected secrets: ${Array.from(new Set(affected)).join(", ")}`]
432
- : []),
433
- "Retry `run402 deploy apply` after resolving warnings.",
434
- "Use `--allow-warnings` only when the warning was explicitly reviewed.",
435
- ],
480
+ : (routeGuidance?.next_actions ?? defaultNextActions),
436
481
  ...(warnings ? { warnings } : {}),
437
482
  };
438
483
  return enhanced;
439
484
  }
440
485
 
486
+ const ROUTE_WARNING_GUIDANCE = {
487
+ PUBLIC_ROUTED_FUNCTION: {
488
+ hint: "A deploy route makes a function public same-origin browser ingress; direct /functions/v1/:name remains API-key protected.",
489
+ next_actions: [
490
+ "Review application auth and authorization in the routed function.",
491
+ "Add CSRF protection for cookie-authenticated POST/PUT/PATCH/DELETE routes.",
492
+ "Implement CORS and OPTIONS explicitly when cross-origin callers are intended.",
493
+ "Retry with --allow-warnings only after the public ingress review is intentional.",
494
+ ],
495
+ },
496
+ ROUTE_TARGET_CARRIED_FORWARD: {
497
+ hint: "A carried-forward route still points at a base-release function target.",
498
+ next_actions: [
499
+ "Inspect the active release with run402 deploy release active.",
500
+ "Deploy routes.replace if the target should change in this release.",
501
+ ],
502
+ },
503
+ ROUTE_SHADOWS_STATIC_PATH: {
504
+ hint: "A dynamic route shadows a static site path.",
505
+ next_actions: [
506
+ "Inspect the warning details for affected static paths.",
507
+ "Inspect live routes with run402 deploy release active.",
508
+ "Retry with --allow-warnings only when dynamic shadowing is intentional.",
509
+ ],
510
+ },
511
+ WILDCARD_ROUTE_SHADOWS_STATIC_PATHS: {
512
+ hint: "A prefix wildcard route shadows one or more static site paths.",
513
+ next_actions: [
514
+ "Review affected route/static path details.",
515
+ "Split exact routes or move static paths if the shadowing is accidental.",
516
+ "Retry with --allow-warnings only when the wildcard shadowing is intentional.",
517
+ ],
518
+ },
519
+ METHOD_SPECIFIC_ROUTE_ALLOWS_GET_STATIC_FALLBACK: {
520
+ hint: "A method-specific route allows static fallback for unmatched methods such as GET.",
521
+ next_actions: [
522
+ "Confirm that static fallback for GET/HEAD is intended.",
523
+ "Add method coverage or static files deliberately.",
524
+ ],
525
+ },
526
+ ROUTE_TABLE_NEAR_LIMIT: {
527
+ hint: "The route table is near the gateway/project limit.",
528
+ next_actions: [
529
+ "Consolidate prefix routes where possible.",
530
+ "Remove stale route entries before adding more.",
531
+ ],
532
+ },
533
+ ROUTES_NOT_ENABLED: {
534
+ hint: "Deploy-v2 web routes are not enabled for this project or environment; direct /functions/v1/:name remains protected and is not a browser-route substitute.",
535
+ next_actions: [
536
+ "Deploy without the routes resource, or request route enablement for this project/environment.",
537
+ "Keep direct function invocation API-key protected; do not substitute it for same-origin browser routes.",
538
+ ],
539
+ },
540
+ };
541
+
542
+ function routeWarningGuidance(warnings, code) {
543
+ const routeCode = warnings
544
+ ? warnings.map((w) => w?.code).find((warningCode) => ROUTE_WARNING_GUIDANCE[warningCode])
545
+ : code && ROUTE_WARNING_GUIDANCE[code] ? code : null;
546
+ return routeCode ? ROUTE_WARNING_GUIDANCE[routeCode] : null;
547
+ }
548
+
441
549
  function enhanceCiDeployError(err) {
442
550
  const existingBody = err?.body && typeof err.body === "object" && !Array.isArray(err.body)
443
551
  ? err.body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "1.60.3",
3
+ "version": "1.62.0",
4
4
  "description": "CLI for Run402 — provision Postgres databases, deploy static sites, generate images, and manage wallets via x402 and MPP micropayments.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -127,7 +127,8 @@ export type * from "./kernel.js";
127
127
  export { CI_SESSION_CREDENTIALS, createCiSessionCredentials, githubActionsCredentials, isCiSessionCredentials, } from "./ci-credentials.js";
128
128
  export type * from "./ci-credentials.js";
129
129
  export { Deploy } from "./namespaces/deploy.js";
130
- export { Ci, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER, DEFAULT_CI_DELEGATION_CHAIN_ID, V1_CI_ALLOWED_ACTIONS, V1_CI_ALLOWED_EVENTS_DEFAULT, assertCiDeployableSpec, buildCiDelegationResourceUri, buildCiDelegationStatement, normalizeCiDelegationValues, validateCiNonce, validateCiSubjectMatch, } from "./namespaces/ci.js";
130
+ export { ROUTE_HTTP_METHODS } from "./namespaces/deploy.types.js";
131
+ export { Ci, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER, DEFAULT_CI_DELEGATION_CHAIN_ID, V1_CI_ALLOWED_ACTIONS, V1_CI_ALLOWED_EVENTS_DEFAULT, assertCiDeployableSpec, buildCiDelegationResourceUri, buildCiDelegationStatement, normalizeCiRouteScopes, normalizeCiDelegationValues, validateCiNonce, validateCiRouteScope, validateCiSubjectMatch, } from "./namespaces/ci.js";
131
132
  export { ScopedRun402 } from "./scoped.js";
132
133
  export type * from "./namespaces/admin.js";
133
134
  export type * from "./namespaces/ai.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,C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AC;AAClE,OAAO,EACL,EAAE,EACF,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,sBAAsB,CAAC"}
package/sdk/dist/index.js CHANGED
@@ -176,6 +176,7 @@ export { Run402Error, PaymentRequired, ProjectNotFound, Unauthorized, ApiError,
176
176
  export { withRetry } from "./retry.js";
177
177
  export { CI_SESSION_CREDENTIALS, createCiSessionCredentials, githubActionsCredentials, isCiSessionCredentials, } from "./ci-credentials.js";
178
178
  export { Deploy } from "./namespaces/deploy.js";
179
- export { Ci, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER, DEFAULT_CI_DELEGATION_CHAIN_ID, V1_CI_ALLOWED_ACTIONS, V1_CI_ALLOWED_EVENTS_DEFAULT, assertCiDeployableSpec, buildCiDelegationResourceUri, buildCiDelegationStatement, normalizeCiDelegationValues, validateCiNonce, validateCiSubjectMatch, } from "./namespaces/ci.js";
179
+ export { ROUTE_HTTP_METHODS } from "./namespaces/deploy.types.js";
180
+ export { Ci, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER, DEFAULT_CI_DELEGATION_CHAIN_ID, V1_CI_ALLOWED_ACTIONS, V1_CI_ALLOWED_EVENTS_DEFAULT, assertCiDeployableSpec, buildCiDelegationResourceUri, buildCiDelegationStatement, normalizeCiRouteScopes, normalizeCiDelegationValues, validateCiNonce, validateCiRouteScope, validateCiSubjectMatch, } from "./namespaces/ci.js";
180
181
  export { ScopedRun402 } from "./scoped.js";
181
182
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAkC,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,E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5B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -17,5 +17,7 @@ export declare function buildCiDelegationStatement(values: CiDelegationValues):
17
17
  export declare function buildCiDelegationResourceUri(values: CiDelegationValues): string;
18
18
  export declare function validateCiSubjectMatch(subject: string): string;
19
19
  export declare function validateCiNonce(nonce: string): string;
20
+ export declare function normalizeCiRouteScopes(values: readonly string[] | undefined | null): string[];
21
+ export declare function validateCiRouteScope(value: string, resource?: string): string;
20
22
  export declare function assertCiDeployableSpec(specOrPlanBody: ReleaseSpec | PlanRequest | unknown): void;
21
23
  //# sourceMappingURL=ci.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/namespaces/ci.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAErE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EAEpB,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,eAAe,CAAC;AAUvB,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,eAAe,CAAC;AAkBvB,qBAAa,EAAE;IACD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAErC,aAAa,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IA+BjE,YAAY,CAAC,KAAK,EAAE,mBAAmB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