@shipfox/api-runners-dto 2.0.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.
Files changed (90) hide show
  1. package/.turbo/turbo-build.log +2 -0
  2. package/.turbo/turbo-type$colon$emit.log +1 -0
  3. package/.turbo/turbo-type.log +1 -0
  4. package/CHANGELOG.md +59 -0
  5. package/LICENSE +21 -0
  6. package/dist/events.d.ts +55 -0
  7. package/dist/events.d.ts.map +1 -0
  8. package/dist/events.js +33 -0
  9. package/dist/events.js.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +4 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/schemas/claim-job.d.ts +11 -0
  15. package/dist/schemas/claim-job.d.ts.map +1 -0
  16. package/dist/schemas/claim-job.js +11 -0
  17. package/dist/schemas/claim-job.js.map +1 -0
  18. package/dist/schemas/heartbeat.d.ts +20 -0
  19. package/dist/schemas/heartbeat.d.ts.map +1 -0
  20. package/dist/schemas/heartbeat.js +11 -0
  21. package/dist/schemas/heartbeat.js.map +1 -0
  22. package/dist/schemas/index.d.ts +12 -0
  23. package/dist/schemas/index.d.ts.map +1 -0
  24. package/dist/schemas/index.js +13 -0
  25. package/dist/schemas/index.js.map +1 -0
  26. package/dist/schemas/list-active-provisioners.d.ts +18 -0
  27. package/dist/schemas/list-active-provisioners.d.ts.map +1 -0
  28. package/dist/schemas/list-active-provisioners.js +12 -0
  29. package/dist/schemas/list-active-provisioners.js.map +1 -0
  30. package/dist/schemas/manual-registration-token.d.ts +53 -0
  31. package/dist/schemas/manual-registration-token.d.ts.map +1 -0
  32. package/dist/schemas/manual-registration-token.js +31 -0
  33. package/dist/schemas/manual-registration-token.js.map +1 -0
  34. package/dist/schemas/mint-registration-tokens.d.ts +28 -0
  35. package/dist/schemas/mint-registration-tokens.d.ts.map +1 -0
  36. package/dist/schemas/mint-registration-tokens.js +24 -0
  37. package/dist/schemas/mint-registration-tokens.js.map +1 -0
  38. package/dist/schemas/poll-demand.d.ts +52 -0
  39. package/dist/schemas/poll-demand.d.ts.map +1 -0
  40. package/dist/schemas/poll-demand.js +34 -0
  41. package/dist/schemas/poll-demand.js.map +1 -0
  42. package/dist/schemas/provisioner-token.d.ts +72 -0
  43. package/dist/schemas/provisioner-token.d.ts.map +1 -0
  44. package/dist/schemas/provisioner-token.js +43 -0
  45. package/dist/schemas/provisioner-token.js.map +1 -0
  46. package/dist/schemas/reconcile-provisioned-runners.d.ts +71 -0
  47. package/dist/schemas/reconcile-provisioned-runners.d.ts.map +1 -0
  48. package/dist/schemas/reconcile-provisioned-runners.js +36 -0
  49. package/dist/schemas/reconcile-provisioned-runners.js.map +1 -0
  50. package/dist/schemas/register.d.ts +27 -0
  51. package/dist/schemas/register.d.ts.map +1 -0
  52. package/dist/schemas/register.js +19 -0
  53. package/dist/schemas/register.js.map +1 -0
  54. package/dist/schemas/report-provisioned-runners.d.ts +109 -0
  55. package/dist/schemas/report-provisioned-runners.d.ts.map +1 -0
  56. package/dist/schemas/report-provisioned-runners.js +58 -0
  57. package/dist/schemas/report-provisioned-runners.js.map +1 -0
  58. package/dist/schemas/tool-capabilities.d.ts +17 -0
  59. package/dist/schemas/tool-capabilities.d.ts.map +1 -0
  60. package/dist/schemas/tool-capabilities.js +27 -0
  61. package/dist/schemas/tool-capabilities.js.map +1 -0
  62. package/dist/tsconfig.test.tsbuildinfo +1 -0
  63. package/package.json +56 -0
  64. package/src/events.ts +46 -0
  65. package/src/index.ts +107 -0
  66. package/src/schemas/claim-job.test.ts +53 -0
  67. package/src/schemas/claim-job.ts +13 -0
  68. package/src/schemas/heartbeat.ts +16 -0
  69. package/src/schemas/index.ts +115 -0
  70. package/src/schemas/list-active-provisioners.ts +17 -0
  71. package/src/schemas/manual-registration-token.test.ts +36 -0
  72. package/src/schemas/manual-registration-token.ts +58 -0
  73. package/src/schemas/mint-registration-tokens.test.ts +28 -0
  74. package/src/schemas/mint-registration-tokens.ts +46 -0
  75. package/src/schemas/poll-demand.test.ts +27 -0
  76. package/src/schemas/poll-demand.ts +49 -0
  77. package/src/schemas/provisioner-token.test.ts +38 -0
  78. package/src/schemas/provisioner-token.ts +64 -0
  79. package/src/schemas/reconcile-provisioned-runners.test.ts +85 -0
  80. package/src/schemas/reconcile-provisioned-runners.ts +61 -0
  81. package/src/schemas/register.ts +28 -0
  82. package/src/schemas/report-provisioned-runners.test.ts +61 -0
  83. package/src/schemas/report-provisioned-runners.ts +75 -0
  84. package/src/schemas/tool-capabilities.test.ts +64 -0
  85. package/src/schemas/tool-capabilities.ts +35 -0
  86. package/tsconfig.build.json +9 -0
  87. package/tsconfig.build.tsbuildinfo +1 -0
  88. package/tsconfig.json +3 -0
  89. package/tsconfig.test.json +8 -0
  90. package/vitest.config.ts +3 -0
@@ -0,0 +1,2 @@
1
+ $ shipfox-swc
2
+ Successfully compiled: 14 files with swc (54.16ms)
@@ -0,0 +1 @@
1
+ $ shipfox-tsc-emit
@@ -0,0 +1 @@
1
+ $ shipfox-tsc-check
package/CHANGELOG.md ADDED
@@ -0,0 +1,59 @@
1
+ # @shipfox/api-runners-dto
2
+
3
+ ## 2.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b0d344: Publishes the complete API runtime closure with packed-consumer-safe internal imports and records its exact package set in application releases.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1b0d344]
12
+ - @shipfox/runner-labels@0.1.0
13
+
14
+ ## 0.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 8100b48: Adds the provisioned-runner reconcile endpoint and shared request/response schemas for provisioner state recovery.
19
+ - 7a9943d: Adds the backend contract for per-step execution: job claims mint a lease token for the step API, step reports carry attempts and exit codes, and workflow completion can be signalled through the workflows outbox. The runner-side step loop is intentionally owned by the follow-up runner protocol work.
20
+ - c47be09: Reshape Scheduling around runner job leases. Jobs are now enqueued with `workflowRunId`, `workflowRunAttemptId`, `jobId`, and `jobExecutionId`; the claim route mints a job lease token and returns the same workflow/job identity tuple. The stuck-job detector emits `runners.job.lease_expired` with that tuple when a lease expires.
21
+ - f9f059e: Cut the runner protocol over to per-step pull/report and remove the job-atomic path.
22
+
23
+ The job workflow now terminates on two signals: `job-finished` (raised by
24
+ `recordStepResult` on step exhaustion) and `job-lease-expired` (raised by the new
25
+ `runners.job.lease_expired` subscriber). A precedence ladder keeps a genuinely
26
+ finished job from being failed by a late lease expiry, and the lease-expiry branch
27
+ re-derives the outcome from the authoritative step projection in a single
28
+ transaction (server state is the final gate). On finish the workflow releases the
29
+ lease via `releaseJob` (deleting both the running and any orphaned pending row);
30
+ release is best-effort so a Scheduling outage never blocks the run DAG.
31
+
32
+ Removed the atomic path end to end: the runner `POST /runners/jobs/:jobId/complete`
33
+ route, the `RUNNER_JOB_COMPLETED` event, `finalizeRunningJob`/`completeJob`, the
34
+ `applyStepResults*` apply path and its workflow subscriber, and the dead
35
+ `jobPayload*`/`complete-job` DTO schemas. The runner now parses the step-less claim
36
+ response, and `claimPendingJob` drops an orphan pending row instead of poison-looping.
37
+
38
+ Internal breaking change (deleted exported DTOs/events and a runner route, plus a
39
+ Temporal signal rename) consumed only within this monorepo; backend and agent ship
40
+ together.
41
+
42
+ - 3afb7e3: Adds job execution success expressions and execution timeouts to workflow documents.
43
+ Renames job execution IDs in auth, runner, workflow, and timeout event contracts to the explicit `jobExecutionId` / `job_execution_id` shape.
44
+ - fb64f13: Adds a job lease capability token (HS256, `verifyJobLeaseToken` plus the claims schema) so runner step calls can be authenticated in-process without a hop back to Scheduling.
45
+ - 03d9eae: Adds runner-advertised tool capabilities to registration, heartbeat, persistence, and runner protocol reporting.
46
+ - 6181819: Adds runner registration sessions with bounded label contracts, session-token auth, and lease-token heartbeat ownership.
47
+
48
+ ### Patch Changes
49
+
50
+ - 2325d76: Adds provisioned-runner terminate intent signals for cancelled bound jobs across runner polling and reconcile responses.
51
+ - c0a883c: Moves the job lease capability token codec and its claims schema from the runners packages into api-auth/api-auth-dto, renaming its config to `AUTH_JOB_LEASE_TOKEN_*`, so all signed-token codecs live with authentication. Adds a shared leased-job auth context for request-scoped lease claims, and a shared `createLeaseTokenAuthMethod` (the `leased-job` auth method) registered on the auth module so any feature module can protect routes with a lease token by name.
52
+ - 247cbd6: Adds label-aware runner job claiming with shared runner-label validation and required-label orchestration.
53
+ - 62720ea: Consolidates runner label canonicalization on `@shipfox/runner-labels` across runner scheduling and protocol code.
54
+ - 88b9793: Adds runner demand polling schemas for provisioner reservation requests and responses.
55
+ - 2933c33: Adds drain-boundary Zod validation for current outbox publisher event payloads.
56
+ - a5c7562: Adds bounded runner idle polling with startup label validation and terminal session-exhaustion handling.
57
+ - 8ecc121: Track queue/run/finish timing for workflow runs and jobs. Adds nullable `started_at`/`finished_at` to workflow runs and `queued_at`/`started_at`/`finished_at` to jobs, exposed on the run and job DTOs. The runners module emits two new authoritative-timestamp events (`runners.job.queued`, `runners.job.started`) in the same transaction as the enqueue/claim; workflows projects them onto the job row with a first-write-wins `coalesce`, so the at-least-once outbox can redeliver out of order safely. Run `started_at`/`finished_at` and job `finished_at` are stamped in-module at the status transitions. All columns are nullable and eventually consistent, so consumers must treat a missing endpoint as "not yet known" and clamp any duration math.
58
+ - Updated dependencies [61de795]
59
+ - @shipfox/runner-labels@0.0.1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shipfox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ export declare const RUNNER_JOB_LEASE_EXPIRED: "runners.job.lease_expired";
3
+ export declare const RUNNER_JOB_QUEUED: "runners.job.queued";
4
+ export declare const RUNNER_JOB_CLAIMED: "runners.job.claimed";
5
+ export declare const runnerJobLeaseExpiredEventSchema: z.ZodObject<{
6
+ workflowRunId: z.ZodString;
7
+ workflowRunAttemptId: z.ZodString;
8
+ jobId: z.ZodString;
9
+ jobExecutionId: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export type RunnerJobLeaseExpiredEvent = z.infer<typeof runnerJobLeaseExpiredEventSchema>;
12
+ export declare const runnerJobQueuedEventSchema: z.ZodObject<{
13
+ workflowRunId: z.ZodString;
14
+ workflowRunAttemptId: z.ZodString;
15
+ jobId: z.ZodString;
16
+ jobExecutionId: z.ZodString;
17
+ queuedAt: z.ZodString;
18
+ }, z.core.$strip>;
19
+ export type RunnerJobQueuedEvent = z.infer<typeof runnerJobQueuedEventSchema>;
20
+ export declare const runnerJobClaimedEventSchema: z.ZodObject<{
21
+ workflowRunId: z.ZodString;
22
+ workflowRunAttemptId: z.ZodString;
23
+ jobId: z.ZodString;
24
+ jobExecutionId: z.ZodString;
25
+ claimedAt: z.ZodString;
26
+ }, z.core.$strip>;
27
+ export type RunnerJobClaimedEvent = z.infer<typeof runnerJobClaimedEventSchema>;
28
+ export interface RunnersEventMap {
29
+ [RUNNER_JOB_LEASE_EXPIRED]: RunnerJobLeaseExpiredEvent;
30
+ [RUNNER_JOB_QUEUED]: RunnerJobQueuedEvent;
31
+ [RUNNER_JOB_CLAIMED]: RunnerJobClaimedEvent;
32
+ }
33
+ export declare const runnersEventSchemas: {
34
+ "runners.job.lease_expired": z.ZodObject<{
35
+ workflowRunId: z.ZodString;
36
+ workflowRunAttemptId: z.ZodString;
37
+ jobId: z.ZodString;
38
+ jobExecutionId: z.ZodString;
39
+ }, z.core.$strip>;
40
+ "runners.job.queued": z.ZodObject<{
41
+ workflowRunId: z.ZodString;
42
+ workflowRunAttemptId: z.ZodString;
43
+ jobId: z.ZodString;
44
+ jobExecutionId: z.ZodString;
45
+ queuedAt: z.ZodString;
46
+ }, z.core.$strip>;
47
+ "runners.job.claimed": z.ZodObject<{
48
+ workflowRunId: z.ZodString;
49
+ workflowRunAttemptId: z.ZodString;
50
+ jobId: z.ZodString;
51
+ jobExecutionId: z.ZodString;
52
+ claimedAt: z.ZodString;
53
+ }, z.core.$strip>;
54
+ };
55
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,wBAAwB,EAAG,2BAAoC,CAAC;AAC7E,eAAO,MAAM,iBAAiB,EAAG,oBAA6B,CAAC;AAC/D,eAAO,MAAM,kBAAkB,EAAG,qBAA8B,CAAC;AAEjE,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,CAAC,wBAAwB,CAAC,EAAE,0BAA0B,CAAC;IACvD,CAAC,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,CAAC,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;CAC7C;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;CAIoB,CAAC"}
package/dist/events.js ADDED
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ const nonEmptyStringSchema = z.string().nonempty();
3
+ const isoDateTimeSchema = z.string().datetime();
4
+ export const RUNNER_JOB_LEASE_EXPIRED = 'runners.job.lease_expired';
5
+ export const RUNNER_JOB_QUEUED = 'runners.job.queued';
6
+ export const RUNNER_JOB_CLAIMED = 'runners.job.claimed';
7
+ export const runnerJobLeaseExpiredEventSchema = z.object({
8
+ workflowRunId: nonEmptyStringSchema,
9
+ workflowRunAttemptId: nonEmptyStringSchema,
10
+ jobId: nonEmptyStringSchema,
11
+ jobExecutionId: nonEmptyStringSchema
12
+ });
13
+ export const runnerJobQueuedEventSchema = z.object({
14
+ workflowRunId: nonEmptyStringSchema,
15
+ workflowRunAttemptId: nonEmptyStringSchema,
16
+ jobId: nonEmptyStringSchema,
17
+ jobExecutionId: nonEmptyStringSchema,
18
+ queuedAt: isoDateTimeSchema
19
+ });
20
+ export const runnerJobClaimedEventSchema = z.object({
21
+ workflowRunId: nonEmptyStringSchema,
22
+ workflowRunAttemptId: nonEmptyStringSchema,
23
+ jobId: nonEmptyStringSchema,
24
+ jobExecutionId: nonEmptyStringSchema,
25
+ claimedAt: isoDateTimeSchema
26
+ });
27
+ export const runnersEventSchemas = {
28
+ [RUNNER_JOB_LEASE_EXPIRED]: runnerJobLeaseExpiredEventSchema,
29
+ [RUNNER_JOB_QUEUED]: runnerJobQueuedEventSchema,
30
+ [RUNNER_JOB_CLAIMED]: runnerJobClaimedEventSchema
31
+ };
32
+
33
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst nonEmptyStringSchema = z.string().nonempty();\nconst isoDateTimeSchema = z.string().datetime();\n\nexport const RUNNER_JOB_LEASE_EXPIRED = 'runners.job.lease_expired' as const;\nexport const RUNNER_JOB_QUEUED = 'runners.job.queued' as const;\nexport const RUNNER_JOB_CLAIMED = 'runners.job.claimed' as const;\n\nexport const runnerJobLeaseExpiredEventSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n});\nexport type RunnerJobLeaseExpiredEvent = z.infer<typeof runnerJobLeaseExpiredEventSchema>;\n\nexport const runnerJobQueuedEventSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n queuedAt: isoDateTimeSchema,\n});\nexport type RunnerJobQueuedEvent = z.infer<typeof runnerJobQueuedEventSchema>;\n\nexport const runnerJobClaimedEventSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n claimedAt: isoDateTimeSchema,\n});\nexport type RunnerJobClaimedEvent = z.infer<typeof runnerJobClaimedEventSchema>;\n\nexport interface RunnersEventMap {\n [RUNNER_JOB_LEASE_EXPIRED]: RunnerJobLeaseExpiredEvent;\n [RUNNER_JOB_QUEUED]: RunnerJobQueuedEvent;\n [RUNNER_JOB_CLAIMED]: RunnerJobClaimedEvent;\n}\n\nexport const runnersEventSchemas = {\n [RUNNER_JOB_LEASE_EXPIRED]: runnerJobLeaseExpiredEventSchema,\n [RUNNER_JOB_QUEUED]: runnerJobQueuedEventSchema,\n [RUNNER_JOB_CLAIMED]: runnerJobClaimedEventSchema,\n} satisfies Record<keyof RunnersEventMap, z.ZodType>;\n"],"names":["z","nonEmptyStringSchema","string","nonempty","isoDateTimeSchema","datetime","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","RUNNER_JOB_CLAIMED","runnerJobLeaseExpiredEventSchema","object","workflowRunId","workflowRunAttemptId","jobId","jobExecutionId","runnerJobQueuedEventSchema","queuedAt","runnerJobClaimedEventSchema","claimedAt","runnersEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,uBAAuBD,EAAEE,MAAM,GAAGC,QAAQ;AAChD,MAAMC,oBAAoBJ,EAAEE,MAAM,GAAGG,QAAQ;AAE7C,OAAO,MAAMC,2BAA2B,4BAAqC;AAC7E,OAAO,MAAMC,oBAAoB,qBAA8B;AAC/D,OAAO,MAAMC,qBAAqB,sBAA+B;AAEjE,OAAO,MAAMC,mCAAmCT,EAAEU,MAAM,CAAC;IACvDC,eAAeV;IACfW,sBAAsBX;IACtBY,OAAOZ;IACPa,gBAAgBb;AAClB,GAAG;AAGH,OAAO,MAAMc,6BAA6Bf,EAAEU,MAAM,CAAC;IACjDC,eAAeV;IACfW,sBAAsBX;IACtBY,OAAOZ;IACPa,gBAAgBb;IAChBe,UAAUZ;AACZ,GAAG;AAGH,OAAO,MAAMa,8BAA8BjB,EAAEU,MAAM,CAAC;IAClDC,eAAeV;IACfW,sBAAsBX;IACtBY,OAAOZ;IACPa,gBAAgBb;IAChBiB,WAAWd;AACb,GAAG;AASH,OAAO,MAAMe,sBAAsB;IACjC,CAACb,yBAAyB,EAAEG;IAC5B,CAACF,kBAAkB,EAAEQ;IACrB,CAACP,mBAAmB,EAAES;AACxB,EAAqD"}
@@ -0,0 +1,3 @@
1
+ export { type ActiveProvisionerDto, type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, type ClaimedJobResponseDto, type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, type DemandStatDto, demandStatSchema, type HeartbeatBodyDto, type HeartbeatResponseDto, heartbeatBodySchema, heartbeatResponseSchema, type ListActiveProvisionersResponseDto, type ListManualRegistrationTokensResponseDto, type ListProvisionerTokensResponseDto, listActiveProvisionersResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVISIONED_RUNNER_REASON_LENGTH, MAX_PROVISIONED_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, type ManualRegistrationTokenDto, type MintedRegistrationTokenDto, type MintRegistrationTokensBatchBodyDto, type MintRegistrationTokensBatchResponseDto, type MintRegistrationTokensProvisionedRunnerDto, manualRegistrationTokenDtoSchema, mintedRegistrationTokenSchema, mintRegistrationTokensBatchBodySchema, mintRegistrationTokensBatchResponseSchema, mintRegistrationTokensProvisionedRunnerSchema, type PollDemandBodyDto, type PollDemandResponseDto, type PollDemandTemplateDto, type ProvisionedRunnerReportEventDto, type ProvisionedRunnerStateDto, type ProvisionerIdentityResponseDto, type ProvisionerTokenDto, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, provisionedRunnerReportEventSchema, provisionedRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, REGISTRATION_TOKEN_BATCH_HARD_MAX, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledProvisionedRunnerDto, type ReconcileProvisionedRunnersBodyDto, type ReconcileProvisionedRunnersResponseDto, type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, type ReportProvisionedRunnersBodyDto, type ReportProvisionedRunnersResponseDto, type ReservationGrantDto, type RevokeManualRegistrationTokenResponseDto, type RevokeProvisionerTokenResponseDto, RUNNER_SESSION_EXHAUSTED_CODE, type RunnerHarnessToolCapabilitiesDto, type RunnerToolCapabilitiesDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledProvisionedRunnerSchema, reconcileProvisionedRunnersBodySchema, reconcileProvisionedRunnersResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportProvisionedRunnersBodySchema, reportProvisionedRunnersResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from '#schemas/index.js';
2
+ export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED, RUNNER_JOB_QUEUED, type RunnerJobClaimedEvent, type RunnerJobLeaseExpiredEvent, type RunnerJobQueuedEvent, type RunnersEventMap, runnerJobClaimedEventSchema, runnerJobLeaseExpiredEventSchema, runnerJobQueuedEventSchema, runnersEventSchemas, } from './events.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,wBAAwB,EACxB,uCAAuC,EACvC,2CAA2C,EAC3C,gCAAgC,EAChC,oCAAoC,EACpC,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,iCAAiC,EACtC,KAAK,uCAAuC,EAC5C,KAAK,gCAAgC,EACrC,oCAAoC,EACpC,0CAA0C,EAC1C,mCAAmC,EACnC,yCAAyC,EACzC,yCAAyC,EACzC,wBAAwB,EACxB,oCAAoC,EACpC,oCAAoC,EACpC,iCAAiC,EACjC,8BAA8B,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,sCAAsC,EAC3C,KAAK,0CAA0C,EAC/C,gCAAgC,EAChC,6BAA6B,EAC7B,qCAAqC,EACrC,yCAAyC,EACzC,6CAA6C,EAC7C,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kCAAkC,EAClC,4BAA4B,EAC5B,iCAAiC,EACjC,yBAAyB,EACzB,iCAAiC,EACjC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wCAAwC,EAC7C,KAAK,iCAAiC,EACtC,6BAA6B,EAC7B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,iCAAiC,EACjC,qCAAqC,EACrC,yCAAyC,EACzC,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,sCAAsC,EACtC,sBAAsB,EACtB,2CAA2C,EAC3C,oCAAoC,EACpC,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, demandStatSchema, heartbeatBodySchema, heartbeatResponseSchema, listActiveProvisionersResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVISIONED_RUNNER_REASON_LENGTH, MAX_PROVISIONED_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, manualRegistrationTokenDtoSchema, mintedRegistrationTokenSchema, mintRegistrationTokensBatchBodySchema, mintRegistrationTokensBatchResponseSchema, mintRegistrationTokensProvisionedRunnerSchema, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, provisionedRunnerReportEventSchema, provisionedRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, REGISTRATION_TOKEN_BATCH_HARD_MAX, RUNNER_SESSION_EXHAUSTED_CODE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledProvisionedRunnerSchema, reconcileProvisionedRunnersBodySchema, reconcileProvisionedRunnersResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportProvisionedRunnersBodySchema, reportProvisionedRunnersResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from '#schemas/index.js';
2
+ export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED, RUNNER_JOB_QUEUED, runnerJobClaimedEventSchema, runnerJobLeaseExpiredEventSchema, runnerJobQueuedEventSchema, runnersEventSchemas } from './events.js';
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type ActiveProvisionerDto,\n type ActiveRunnerDto,\n type ActiveRunnerStateDto,\n type ActiveRunnersResponseDto,\n activeProvisionerDtoSchema,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n type ClaimedJobResponseDto,\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n claimedJobResponseSchema,\n createManualRegistrationTokenBodySchema,\n createManualRegistrationTokenResponseSchema,\n createProvisionerTokenBodySchema,\n createProvisionerTokenResponseSchema,\n type DemandStatDto,\n demandStatSchema,\n type HeartbeatBodyDto,\n type HeartbeatResponseDto,\n heartbeatBodySchema,\n heartbeatResponseSchema,\n type ListActiveProvisionersResponseDto,\n type ListManualRegistrationTokensResponseDto,\n type ListProvisionerTokensResponseDto,\n listActiveProvisionersResponseSchema,\n listManualRegistrationTokensResponseSchema,\n listProvisionerTokensResponseSchema,\n MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS,\n MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH,\n MAX_PROVIDER_KIND_LENGTH,\n MAX_PROVISIONED_RUNNER_REASON_LENGTH,\n MAX_PROVISIONED_RUNNER_REPORT_EVENTS,\n MAX_PROVISIONER_TOKEN_TTL_SECONDS,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ManualRegistrationTokenDto,\n type MintedRegistrationTokenDto,\n type MintRegistrationTokensBatchBodyDto,\n type MintRegistrationTokensBatchResponseDto,\n type MintRegistrationTokensProvisionedRunnerDto,\n manualRegistrationTokenDtoSchema,\n mintedRegistrationTokenSchema,\n mintRegistrationTokensBatchBodySchema,\n mintRegistrationTokensBatchResponseSchema,\n mintRegistrationTokensProvisionedRunnerSchema,\n type PollDemandBodyDto,\n type PollDemandResponseDto,\n type PollDemandTemplateDto,\n type ProvisionedRunnerReportEventDto,\n type ProvisionedRunnerStateDto,\n type ProvisionerIdentityResponseDto,\n type ProvisionerTokenDto,\n pollDemandBodySchema,\n pollDemandResponseSchema,\n pollDemandTemplateSchema,\n providerKindSchema,\n provisionedRunnerReportEventSchema,\n provisionedRunnerStateSchema,\n provisionerIdentityResponseSchema,\n provisionerTokenDtoSchema,\n REGISTRATION_TOKEN_BATCH_HARD_MAX,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledProvisionedRunnerDto,\n type ReconcileProvisionedRunnersBodyDto,\n type ReconcileProvisionedRunnersResponseDto,\n type RegisterRunnerBodyDto,\n type RegisterRunnerResponseDto,\n type ReportProvisionedRunnersBodyDto,\n type ReportProvisionedRunnersResponseDto,\n type ReservationGrantDto,\n type RevokeManualRegistrationTokenResponseDto,\n type RevokeProvisionerTokenResponseDto,\n RUNNER_SESSION_EXHAUSTED_CODE,\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerToolCapabilitiesDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledProvisionedRunnerSchema,\n reconcileProvisionedRunnersBodySchema,\n reconcileProvisionedRunnersResponseSchema,\n registerRunnerBodySchema,\n registerRunnerResponseSchema,\n reportProvisionedRunnersBodySchema,\n reportProvisionedRunnersResponseSchema,\n reservationGrantSchema,\n revokeManualRegistrationTokenResponseSchema,\n revokeProvisionerTokenResponseSchema,\n runnerHarnessToolCapabilitiesSchema,\n runnerToolCapabilitiesSchema,\n} from '#schemas/index.js';\nexport {\n RUNNER_JOB_CLAIMED,\n RUNNER_JOB_LEASE_EXPIRED,\n RUNNER_JOB_QUEUED,\n type RunnerJobClaimedEvent,\n type RunnerJobLeaseExpiredEvent,\n type RunnerJobQueuedEvent,\n type RunnersEventMap,\n runnerJobClaimedEventSchema,\n runnerJobLeaseExpiredEventSchema,\n runnerJobQueuedEventSchema,\n runnersEventSchemas,\n} from './events.js';\n"],"names":["activeProvisionerDtoSchema","activeRunnerDtoSchema","activeRunnerStateSchema","activeRunnersResponseSchema","claimedJobResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","demandStatSchema","heartbeatBodySchema","heartbeatResponseSchema","listActiveProvisionersResponseSchema","listManualRegistrationTokensResponseSchema","listProvisionerTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH","MAX_PROVIDER_KIND_LENGTH","MAX_PROVISIONED_RUNNER_REASON_LENGTH","MAX_PROVISIONED_RUNNER_REPORT_EVENTS","MAX_PROVISIONER_TOKEN_TTL_SECONDS","MAX_RECONCILE_OBSERVED_RUNNERS","manualRegistrationTokenDtoSchema","mintedRegistrationTokenSchema","mintRegistrationTokensBatchBodySchema","mintRegistrationTokensBatchResponseSchema","mintRegistrationTokensProvisionedRunnerSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","providerKindSchema","provisionedRunnerReportEventSchema","provisionedRunnerStateSchema","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","REGISTRATION_TOKEN_BATCH_HARD_MAX","RUNNER_SESSION_EXHAUSTED_CODE","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledProvisionedRunnerSchema","reconcileProvisionedRunnersBodySchema","reconcileProvisionedRunnersResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","reportProvisionedRunnersBodySchema","reportProvisionedRunnersResponseSchema","reservationGrantSchema","revokeManualRegistrationTokenResponseSchema","revokeProvisionerTokenResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema","RUNNER_JOB_CLAIMED","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","runnerJobQueuedEventSchema","runnersEventSchemas"],"mappings":"AAAA,SAKEA,0BAA0B,EAC1BC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAM3BC,wBAAwB,EACxBC,uCAAuC,EACvCC,2CAA2C,EAC3CC,gCAAgC,EAChCC,oCAAoC,EAEpCC,gBAAgB,EAGhBC,mBAAmB,EACnBC,uBAAuB,EAIvBC,oCAAoC,EACpCC,0CAA0C,EAC1CC,mCAAmC,EACnCC,yCAAyC,EACzCC,yCAAyC,EACzCC,wBAAwB,EACxBC,oCAAoC,EACpCC,oCAAoC,EACpCC,iCAAiC,EACjCC,8BAA8B,EAM9BC,gCAAgC,EAChCC,6BAA6B,EAC7BC,qCAAqC,EACrCC,yCAAyC,EACzCC,6CAA6C,EAQ7CC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,EACxBC,kBAAkB,EAClBC,kCAAkC,EAClCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,yBAAyB,EACzBC,iCAAiC,EAajCC,6BAA6B,EAG7BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,iCAAiC,EACjCC,qCAAqC,EACrCC,yCAAyC,EACzCC,wBAAwB,EACxBC,4BAA4B,EAC5BC,kCAAkC,EAClCC,sCAAsC,EACtCC,sBAAsB,EACtBC,2CAA2C,EAC3CC,oCAAoC,EACpCC,mCAAmC,EACnCC,4BAA4B,QACvB,oBAAoB;AAC3B,SACEC,kBAAkB,EAClBC,wBAAwB,EACxBC,iBAAiB,EAKjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,0BAA0B,EAC1BC,mBAAmB,QACd,cAAc"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const RUNNER_SESSION_EXHAUSTED_CODE: "runner-session-exhausted";
3
+ export declare const claimedJobResponseSchema: z.ZodObject<{
4
+ workflow_run_id: z.ZodString;
5
+ workflow_run_attempt_id: z.ZodString;
6
+ job_id: z.ZodString;
7
+ job_execution_id: z.ZodString;
8
+ lease_token: z.ZodString;
9
+ }, z.core.$strip>;
10
+ export type ClaimedJobResponseDto = z.infer<typeof claimedJobResponseSchema>;
11
+ //# sourceMappingURL=claim-job.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claim-job.d.ts","sourceRoot":"","sources":["../../src/schemas/claim-job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,6BAA6B,EAAG,0BAAmC,CAAC;AAEjF,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export const RUNNER_SESSION_EXHAUSTED_CODE = 'runner-session-exhausted';
3
+ export const claimedJobResponseSchema = z.object({
4
+ workflow_run_id: z.string().uuid(),
5
+ workflow_run_attempt_id: z.string().uuid(),
6
+ job_id: z.string().uuid(),
7
+ job_execution_id: z.string().uuid(),
8
+ lease_token: z.string().min(1)
9
+ });
10
+
11
+ //# sourceMappingURL=claim-job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/claim-job.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const RUNNER_SESSION_EXHAUSTED_CODE = 'runner-session-exhausted' as const;\n\nexport const claimedJobResponseSchema = z.object({\n workflow_run_id: z.string().uuid(),\n workflow_run_attempt_id: z.string().uuid(),\n job_id: z.string().uuid(),\n job_execution_id: z.string().uuid(),\n lease_token: z.string().min(1),\n});\n\nexport type ClaimedJobResponseDto = z.infer<typeof claimedJobResponseSchema>;\n"],"names":["z","RUNNER_SESSION_EXHAUSTED_CODE","claimedJobResponseSchema","object","workflow_run_id","string","uuid","workflow_run_attempt_id","job_id","job_execution_id","lease_token","min"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gCAAgC,2BAAoC;AAEjF,OAAO,MAAMC,2BAA2BF,EAAEG,MAAM,CAAC;IAC/CC,iBAAiBJ,EAAEK,MAAM,GAAGC,IAAI;IAChCC,yBAAyBP,EAAEK,MAAM,GAAGC,IAAI;IACxCE,QAAQR,EAAEK,MAAM,GAAGC,IAAI;IACvBG,kBAAkBT,EAAEK,MAAM,GAAGC,IAAI;IACjCI,aAAaV,EAAEK,MAAM,GAAGM,GAAG,CAAC;AAC9B,GAAG"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare const heartbeatBodySchema: z.ZodObject<{
3
+ capabilities: z.ZodOptional<z.ZodObject<{
4
+ harnesses: z.ZodObject<{
5
+ pi: z.ZodOptional<z.ZodObject<{
6
+ tools: z.ZodArray<z.ZodString>;
7
+ }, z.core.$strict>>;
8
+ claude: z.ZodOptional<z.ZodObject<{
9
+ tools: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strict>>;
11
+ }, z.core.$strict>;
12
+ }, z.core.$strict>>;
13
+ }, z.core.$strict>;
14
+ export declare const heartbeatResponseSchema: z.ZodObject<{
15
+ cancel: z.ZodBoolean;
16
+ lease_token: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type HeartbeatBodyDto = z.infer<typeof heartbeatBodySchema>;
19
+ export type HeartbeatResponseDto = z.infer<typeof heartbeatResponseSchema>;
20
+ //# sourceMappingURL=heartbeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heartbeat.d.ts","sourceRoot":"","sources":["../../src/schemas/heartbeat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,mBAAmB;;;;;;;;;;;kBAIrB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { runnerToolCapabilitiesSchema } from './tool-capabilities.js';
3
+ export const heartbeatBodySchema = z.object({
4
+ capabilities: runnerToolCapabilitiesSchema.optional()
5
+ }).strict();
6
+ export const heartbeatResponseSchema = z.object({
7
+ cancel: z.boolean(),
8
+ lease_token: z.string().min(1)
9
+ });
10
+
11
+ //# sourceMappingURL=heartbeat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/heartbeat.ts"],"sourcesContent":["import {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const heartbeatBodySchema = z\n .object({\n capabilities: runnerToolCapabilitiesSchema.optional(),\n })\n .strict();\n\nexport const heartbeatResponseSchema = z.object({\n cancel: z.boolean(),\n lease_token: z.string().min(1),\n});\n\nexport type HeartbeatBodyDto = z.infer<typeof heartbeatBodySchema>;\nexport type HeartbeatResponseDto = z.infer<typeof heartbeatResponseSchema>;\n"],"names":["z","runnerToolCapabilitiesSchema","heartbeatBodySchema","object","capabilities","optional","strict","heartbeatResponseSchema","cancel","boolean","lease_token","string","min"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,yBAAyB;AAEpE,OAAO,MAAMC,sBAAsBF,EAChCG,MAAM,CAAC;IACNC,cAAcH,6BAA6BI,QAAQ;AACrD,GACCC,MAAM,GAAG;AAEZ,OAAO,MAAMC,0BAA0BP,EAAEG,MAAM,CAAC;IAC9CK,QAAQR,EAAES,OAAO;IACjBC,aAAaV,EAAEW,MAAM,GAAGC,GAAG,CAAC;AAC9B,GAAG"}
@@ -0,0 +1,12 @@
1
+ export { type ClaimedJobResponseDto, claimedJobResponseSchema, RUNNER_SESSION_EXHAUSTED_CODE, } from './claim-job.js';
2
+ export { type HeartbeatBodyDto, type HeartbeatResponseDto, heartbeatBodySchema, heartbeatResponseSchema, } from './heartbeat.js';
3
+ export { type ActiveProvisionerDto, activeProvisionerDtoSchema, type ListActiveProvisionersResponseDto, listActiveProvisionersResponseSchema, } from './list-active-provisioners.js';
4
+ export { type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, type ListManualRegistrationTokensResponseDto, listManualRegistrationTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, type ManualRegistrationTokenDto, manualRegistrationTokenDtoSchema, type RevokeManualRegistrationTokenResponseDto, revokeManualRegistrationTokenResponseSchema, } from './manual-registration-token.js';
5
+ export { type MintedRegistrationTokenDto, type MintRegistrationTokensBatchBodyDto, type MintRegistrationTokensBatchResponseDto, type MintRegistrationTokensProvisionedRunnerDto, mintedRegistrationTokenSchema, mintRegistrationTokensBatchBodySchema, mintRegistrationTokensBatchResponseSchema, mintRegistrationTokensProvisionedRunnerSchema, REGISTRATION_TOKEN_BATCH_HARD_MAX, } from './mint-registration-tokens.js';
6
+ export { type DemandStatDto, demandStatSchema, type PollDemandBodyDto, type PollDemandResponseDto, type PollDemandTemplateDto, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, type ReservationGrantDto, reservationGrantSchema, } from './poll-demand.js';
7
+ export { type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, type ListProvisionerTokensResponseDto, listProvisionerTokensResponseSchema, MAX_PROVISIONER_TOKEN_TTL_SECONDS, type ProvisionerIdentityResponseDto, type ProvisionerTokenDto, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, type RevokeProvisionerTokenResponseDto, revokeProvisionerTokenResponseSchema, } from './provisioner-token.js';
8
+ export { MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledProvisionedRunnerDto, type ReconcileProvisionedRunnersBodyDto, type ReconcileProvisionedRunnersResponseDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledProvisionedRunnerSchema, reconcileProvisionedRunnersBodySchema, reconcileProvisionedRunnersResponseSchema, } from './reconcile-provisioned-runners.js';
9
+ export { type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema, } from './register.js';
10
+ export { type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, MAX_PROVIDER_KIND_LENGTH, MAX_PROVISIONED_RUNNER_REASON_LENGTH, MAX_PROVISIONED_RUNNER_REPORT_EVENTS, type ProvisionedRunnerReportEventDto, type ProvisionedRunnerStateDto, providerKindSchema, provisionedRunnerReportEventSchema, provisionedRunnerStateSchema, type ReportProvisionedRunnersBodyDto, type ReportProvisionedRunnersResponseDto, reportProvisionedRunnersBodySchema, reportProvisionedRunnersResponseSchema, } from './report-provisioned-runners.js';
11
+ export { type RunnerHarnessToolCapabilitiesDto, type RunnerToolCapabilitiesDto, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from './tool-capabilities.js';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,iCAAiC,EACtC,oCAAoC,GACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,uCAAuC,EACvC,2CAA2C,EAC3C,KAAK,uCAAuC,EAC5C,0CAA0C,EAC1C,yCAAyC,EACzC,KAAK,0BAA0B,EAC/B,gCAAgC,EAChC,KAAK,wCAAwC,EAC7C,2CAA2C,GAC5C,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,sCAAsC,EAC3C,KAAK,0CAA0C,EAC/C,6BAA6B,EAC7B,qCAAqC,EACrC,yCAAyC,EACzC,6CAA6C,EAC7C,iCAAiC,GAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,gCAAgC,EAChC,oCAAoC,EACpC,KAAK,gCAAgC,EACrC,mCAAmC,EACnC,iCAAiC,EACjC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,iCAAiC,EACjC,yBAAyB,EACzB,KAAK,iCAAiC,EACtC,oCAAoC,GACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,yCAAyC,EACzC,8BAA8B,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,sCAAsC,EAC3C,4BAA4B,EAC5B,wBAAwB,EACxB,iCAAiC,EACjC,qCAAqC,EACrC,yCAAyC,GAC1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,oCAAoC,EACpC,oCAAoC,EACpC,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,kBAAkB,EAClB,kCAAkC,EAClC,4BAA4B,EAC5B,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,kCAAkC,EAClC,sCAAsC,GACvC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export { claimedJobResponseSchema, RUNNER_SESSION_EXHAUSTED_CODE } from './claim-job.js';
2
+ export { heartbeatBodySchema, heartbeatResponseSchema } from './heartbeat.js';
3
+ export { activeProvisionerDtoSchema, listActiveProvisionersResponseSchema } from './list-active-provisioners.js';
4
+ export { createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, listManualRegistrationTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, manualRegistrationTokenDtoSchema, revokeManualRegistrationTokenResponseSchema } from './manual-registration-token.js';
5
+ export { mintedRegistrationTokenSchema, mintRegistrationTokensBatchBodySchema, mintRegistrationTokensBatchResponseSchema, mintRegistrationTokensProvisionedRunnerSchema, REGISTRATION_TOKEN_BATCH_HARD_MAX } from './mint-registration-tokens.js';
6
+ export { demandStatSchema, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, reservationGrantSchema } from './poll-demand.js';
7
+ export { createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, listProvisionerTokensResponseSchema, MAX_PROVISIONER_TOKEN_TTL_SECONDS, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, revokeProvisionerTokenResponseSchema } from './provisioner-token.js';
8
+ export { MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledProvisionedRunnerSchema, reconcileProvisionedRunnersBodySchema, reconcileProvisionedRunnersResponseSchema } from './reconcile-provisioned-runners.js';
9
+ export { registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema } from './register.js';
10
+ export { activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, MAX_PROVIDER_KIND_LENGTH, MAX_PROVISIONED_RUNNER_REASON_LENGTH, MAX_PROVISIONED_RUNNER_REPORT_EVENTS, providerKindSchema, provisionedRunnerReportEventSchema, provisionedRunnerStateSchema, reportProvisionedRunnersBodySchema, reportProvisionedRunnersResponseSchema } from './report-provisioned-runners.js';
11
+ export { runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from './tool-capabilities.js';
12
+
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type ClaimedJobResponseDto,\n claimedJobResponseSchema,\n RUNNER_SESSION_EXHAUSTED_CODE,\n} from './claim-job.js';\nexport {\n type HeartbeatBodyDto,\n type HeartbeatResponseDto,\n heartbeatBodySchema,\n heartbeatResponseSchema,\n} from './heartbeat.js';\nexport {\n type ActiveProvisionerDto,\n activeProvisionerDtoSchema,\n type ListActiveProvisionersResponseDto,\n listActiveProvisionersResponseSchema,\n} from './list-active-provisioners.js';\nexport {\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n createManualRegistrationTokenBodySchema,\n createManualRegistrationTokenResponseSchema,\n type ListManualRegistrationTokensResponseDto,\n listManualRegistrationTokensResponseSchema,\n MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS,\n type ManualRegistrationTokenDto,\n manualRegistrationTokenDtoSchema,\n type RevokeManualRegistrationTokenResponseDto,\n revokeManualRegistrationTokenResponseSchema,\n} from './manual-registration-token.js';\nexport {\n type MintedRegistrationTokenDto,\n type MintRegistrationTokensBatchBodyDto,\n type MintRegistrationTokensBatchResponseDto,\n type MintRegistrationTokensProvisionedRunnerDto,\n mintedRegistrationTokenSchema,\n mintRegistrationTokensBatchBodySchema,\n mintRegistrationTokensBatchResponseSchema,\n mintRegistrationTokensProvisionedRunnerSchema,\n REGISTRATION_TOKEN_BATCH_HARD_MAX,\n} from './mint-registration-tokens.js';\nexport {\n type DemandStatDto,\n demandStatSchema,\n type PollDemandBodyDto,\n type PollDemandResponseDto,\n type PollDemandTemplateDto,\n pollDemandBodySchema,\n pollDemandResponseSchema,\n pollDemandTemplateSchema,\n type ReservationGrantDto,\n reservationGrantSchema,\n} from './poll-demand.js';\nexport {\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n createProvisionerTokenBodySchema,\n createProvisionerTokenResponseSchema,\n type ListProvisionerTokensResponseDto,\n listProvisionerTokensResponseSchema,\n MAX_PROVISIONER_TOKEN_TTL_SECONDS,\n type ProvisionerIdentityResponseDto,\n type ProvisionerTokenDto,\n provisionerIdentityResponseSchema,\n provisionerTokenDtoSchema,\n type RevokeProvisionerTokenResponseDto,\n revokeProvisionerTokenResponseSchema,\n} from './provisioner-token.js';\nexport {\n MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledProvisionedRunnerDto,\n type ReconcileProvisionedRunnersBodyDto,\n type ReconcileProvisionedRunnersResponseDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledProvisionedRunnerSchema,\n reconcileProvisionedRunnersBodySchema,\n reconcileProvisionedRunnersResponseSchema,\n} from './reconcile-provisioned-runners.js';\nexport {\n type RegisterRunnerBodyDto,\n type RegisterRunnerResponseDto,\n registerRunnerBodySchema,\n registerRunnerResponseSchema,\n runnerLabelSchema,\n} from './register.js';\nexport {\n type ActiveRunnerDto,\n type ActiveRunnerStateDto,\n type ActiveRunnersResponseDto,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n MAX_PROVIDER_KIND_LENGTH,\n MAX_PROVISIONED_RUNNER_REASON_LENGTH,\n MAX_PROVISIONED_RUNNER_REPORT_EVENTS,\n type ProvisionedRunnerReportEventDto,\n type ProvisionedRunnerStateDto,\n providerKindSchema,\n provisionedRunnerReportEventSchema,\n provisionedRunnerStateSchema,\n type ReportProvisionedRunnersBodyDto,\n type ReportProvisionedRunnersResponseDto,\n reportProvisionedRunnersBodySchema,\n reportProvisionedRunnersResponseSchema,\n} from './report-provisioned-runners.js';\nexport {\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerToolCapabilitiesDto,\n runnerHarnessToolCapabilitiesSchema,\n runnerToolCapabilitiesSchema,\n} from './tool-capabilities.js';\n"],"names":["claimedJobResponseSchema","RUNNER_SESSION_EXHAUSTED_CODE","heartbeatBodySchema","heartbeatResponseSchema","activeProvisionerDtoSchema","listActiveProvisionersResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","listManualRegistrationTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","manualRegistrationTokenDtoSchema","revokeManualRegistrationTokenResponseSchema","mintedRegistrationTokenSchema","mintRegistrationTokensBatchBodySchema","mintRegistrationTokensBatchResponseSchema","mintRegistrationTokensProvisionedRunnerSchema","REGISTRATION_TOKEN_BATCH_HARD_MAX","demandStatSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","reservationGrantSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","listProvisionerTokensResponseSchema","MAX_PROVISIONER_TOKEN_TTL_SECONDS","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","revokeProvisionerTokenResponseSchema","MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH","MAX_RECONCILE_OBSERVED_RUNNERS","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledProvisionedRunnerSchema","reconcileProvisionedRunnersBodySchema","reconcileProvisionedRunnersResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","runnerLabelSchema","activeRunnerDtoSchema","activeRunnerStateSchema","activeRunnersResponseSchema","MAX_PROVIDER_KIND_LENGTH","MAX_PROVISIONED_RUNNER_REASON_LENGTH","MAX_PROVISIONED_RUNNER_REPORT_EVENTS","providerKindSchema","provisionedRunnerReportEventSchema","provisionedRunnerStateSchema","reportProvisionedRunnersBodySchema","reportProvisionedRunnersResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema"],"mappings":"AAAA,SAEEA,wBAAwB,EACxBC,6BAA6B,QACxB,iBAAiB;AACxB,SAGEC,mBAAmB,EACnBC,uBAAuB,QAClB,iBAAiB;AACxB,SAEEC,0BAA0B,EAE1BC,oCAAoC,QAC/B,gCAAgC;AACvC,SAGEC,uCAAuC,EACvCC,2CAA2C,EAE3CC,0CAA0C,EAC1CC,yCAAyC,EAEzCC,gCAAgC,EAEhCC,2CAA2C,QACtC,iCAAiC;AACxC,SAKEC,6BAA6B,EAC7BC,qCAAqC,EACrCC,yCAAyC,EACzCC,6CAA6C,EAC7CC,iCAAiC,QAC5B,gCAAgC;AACvC,SAEEC,gBAAgB,EAIhBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,EAExBC,sBAAsB,QACjB,mBAAmB;AAC1B,SAGEC,gCAAgC,EAChCC,oCAAoC,EAEpCC,mCAAmC,EACnCC,iCAAiC,EAGjCC,iCAAiC,EACjCC,yBAAyB,EAEzBC,oCAAoC,QAC/B,yBAAyB;AAChC,SACEC,yCAAyC,EACzCC,8BAA8B,EAM9BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,iCAAiC,EACjCC,qCAAqC,EACrCC,yCAAyC,QACpC,qCAAqC;AAC5C,SAGEC,wBAAwB,EACxBC,4BAA4B,EAC5BC,iBAAiB,QACZ,gBAAgB;AACvB,SAIEC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,wBAAwB,EACxBC,oCAAoC,EACpCC,oCAAoC,EAGpCC,kBAAkB,EAClBC,kCAAkC,EAClCC,4BAA4B,EAG5BC,kCAAkC,EAClCC,sCAAsC,QACjC,kCAAkC;AACzC,SAGEC,mCAAmC,EACnCC,4BAA4B,QACvB,yBAAyB"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const activeProvisionerDtoSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodNullable<z.ZodString>;
5
+ prefix: z.ZodString;
6
+ last_seen_at: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export declare const listActiveProvisionersResponseSchema: z.ZodObject<{
9
+ provisioners: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ prefix: z.ZodString;
13
+ last_seen_at: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ export type ActiveProvisionerDto = z.infer<typeof activeProvisionerDtoSchema>;
17
+ export type ListActiveProvisionersResponseDto = z.infer<typeof listActiveProvisionersResponseSchema>;
18
+ //# sourceMappingURL=list-active-provisioners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-active-provisioners.d.ts","sourceRoot":"","sources":["../../src/schemas/list-active-provisioners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;iBAE/C,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export const activeProvisionerDtoSchema = z.object({
3
+ id: z.string().uuid(),
4
+ name: z.string().nullable(),
5
+ prefix: z.string(),
6
+ last_seen_at: z.string()
7
+ });
8
+ export const listActiveProvisionersResponseSchema = z.object({
9
+ provisioners: z.array(activeProvisionerDtoSchema)
10
+ });
11
+
12
+ //# sourceMappingURL=list-active-provisioners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/list-active-provisioners.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const activeProvisionerDtoSchema = z.object({\n id: z.string().uuid(),\n name: z.string().nullable(),\n prefix: z.string(),\n last_seen_at: z.string(),\n});\n\nexport const listActiveProvisionersResponseSchema = z.object({\n provisioners: z.array(activeProvisionerDtoSchema),\n});\n\nexport type ActiveProvisionerDto = z.infer<typeof activeProvisionerDtoSchema>;\nexport type ListActiveProvisionersResponseDto = z.infer<\n typeof listActiveProvisionersResponseSchema\n>;\n"],"names":["z","activeProvisionerDtoSchema","object","id","string","uuid","name","nullable","prefix","last_seen_at","listActiveProvisionersResponseSchema","provisioners","array"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6BD,EAAEE,MAAM,CAAC;IACjDC,IAAIH,EAAEI,MAAM,GAAGC,IAAI;IACnBC,MAAMN,EAAEI,MAAM,GAAGG,QAAQ;IACzBC,QAAQR,EAAEI,MAAM;IAChBK,cAAcT,EAAEI,MAAM;AACxB,GAAG;AAEH,OAAO,MAAMM,uCAAuCV,EAAEE,MAAM,CAAC;IAC3DS,cAAcX,EAAEY,KAAK,CAACX;AACxB,GAAG"}
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ export declare const MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS = 31536000;
3
+ export declare const createManualRegistrationTokenBodySchema: z.ZodObject<{
4
+ name: z.ZodOptional<z.ZodString>;
5
+ ttl_seconds: z.ZodOptional<z.ZodNumber>;
6
+ }, z.core.$strip>;
7
+ export type CreateManualRegistrationTokenBodyDto = z.infer<typeof createManualRegistrationTokenBodySchema>;
8
+ export declare const createManualRegistrationTokenResponseSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ raw_token: z.ZodString;
11
+ prefix: z.ZodString;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ workspace_id: z.ZodString;
14
+ expires_at: z.ZodNullable<z.ZodString>;
15
+ created_at: z.ZodString;
16
+ }, z.core.$strip>;
17
+ export type CreateManualRegistrationTokenResponseDto = z.infer<typeof createManualRegistrationTokenResponseSchema>;
18
+ export declare const manualRegistrationTokenDtoSchema: z.ZodObject<{
19
+ id: z.ZodString;
20
+ workspace_id: z.ZodString;
21
+ prefix: z.ZodString;
22
+ name: z.ZodNullable<z.ZodString>;
23
+ expires_at: z.ZodNullable<z.ZodString>;
24
+ revoked_at: z.ZodNullable<z.ZodString>;
25
+ created_at: z.ZodString;
26
+ updated_at: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export type ManualRegistrationTokenDto = z.infer<typeof manualRegistrationTokenDtoSchema>;
29
+ export declare const listManualRegistrationTokensResponseSchema: z.ZodObject<{
30
+ manual_registration_tokens: z.ZodArray<z.ZodObject<{
31
+ id: z.ZodString;
32
+ workspace_id: z.ZodString;
33
+ prefix: z.ZodString;
34
+ name: z.ZodNullable<z.ZodString>;
35
+ expires_at: z.ZodNullable<z.ZodString>;
36
+ revoked_at: z.ZodNullable<z.ZodString>;
37
+ created_at: z.ZodString;
38
+ updated_at: z.ZodString;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ export type ListManualRegistrationTokensResponseDto = z.infer<typeof listManualRegistrationTokensResponseSchema>;
42
+ export declare const revokeManualRegistrationTokenResponseSchema: z.ZodObject<{
43
+ id: z.ZodString;
44
+ workspace_id: z.ZodString;
45
+ prefix: z.ZodString;
46
+ name: z.ZodNullable<z.ZodString>;
47
+ expires_at: z.ZodNullable<z.ZodString>;
48
+ revoked_at: z.ZodNullable<z.ZodString>;
49
+ created_at: z.ZodString;
50
+ updated_at: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type RevokeManualRegistrationTokenResponseDto = z.infer<typeof revokeManualRegistrationTokenResponseSchema>;
53
+ //# sourceMappingURL=manual-registration-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manual-registration-token.d.ts","sourceRoot":"","sources":["../../src/schemas/manual-registration-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,yCAAyC,WAAa,CAAC;AAEpE,eAAO,MAAM,uCAAuC;;;iBAQlD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,uCAAuC,CAC/C,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;iBAQtD,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,2CAA2C,CACnD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;iBAS3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,0CAA0C;;;;;;;;;;;iBAErD,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,0CAA0C,CAClD,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;iBAAmC,CAAC;AAE5F,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,2CAA2C,CACnD,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export const MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS = 31_536_000;
3
+ export const createManualRegistrationTokenBodySchema = z.object({
4
+ name: z.string().min(1).optional(),
5
+ ttl_seconds: z.number().int().positive().max(MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS).optional()
6
+ });
7
+ export const createManualRegistrationTokenResponseSchema = z.object({
8
+ id: z.string().uuid(),
9
+ raw_token: z.string(),
10
+ prefix: z.string(),
11
+ name: z.string().nullable(),
12
+ workspace_id: z.string().uuid(),
13
+ expires_at: z.string().nullable(),
14
+ created_at: z.string()
15
+ });
16
+ export const manualRegistrationTokenDtoSchema = z.object({
17
+ id: z.string().uuid(),
18
+ workspace_id: z.string().uuid(),
19
+ prefix: z.string(),
20
+ name: z.string().nullable(),
21
+ expires_at: z.string().nullable(),
22
+ revoked_at: z.string().nullable(),
23
+ created_at: z.string(),
24
+ updated_at: z.string()
25
+ });
26
+ export const listManualRegistrationTokensResponseSchema = z.object({
27
+ manual_registration_tokens: z.array(manualRegistrationTokenDtoSchema)
28
+ });
29
+ export const revokeManualRegistrationTokenResponseSchema = manualRegistrationTokenDtoSchema;
30
+
31
+ //# sourceMappingURL=manual-registration-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/manual-registration-token.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS = 31_536_000;\n\nexport const createManualRegistrationTokenBodySchema = z.object({\n name: z.string().min(1).optional(),\n ttl_seconds: z\n .number()\n .int()\n .positive()\n .max(MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS)\n .optional(),\n});\n\nexport type CreateManualRegistrationTokenBodyDto = z.infer<\n typeof createManualRegistrationTokenBodySchema\n>;\n\nexport const createManualRegistrationTokenResponseSchema = z.object({\n id: z.string().uuid(),\n raw_token: z.string(),\n prefix: z.string(),\n name: z.string().nullable(),\n workspace_id: z.string().uuid(),\n expires_at: z.string().nullable(),\n created_at: z.string(),\n});\n\nexport type CreateManualRegistrationTokenResponseDto = z.infer<\n typeof createManualRegistrationTokenResponseSchema\n>;\n\nexport const manualRegistrationTokenDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n prefix: z.string(),\n name: z.string().nullable(),\n expires_at: z.string().nullable(),\n revoked_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type ManualRegistrationTokenDto = z.infer<typeof manualRegistrationTokenDtoSchema>;\n\nexport const listManualRegistrationTokensResponseSchema = z.object({\n manual_registration_tokens: z.array(manualRegistrationTokenDtoSchema),\n});\n\nexport type ListManualRegistrationTokensResponseDto = z.infer<\n typeof listManualRegistrationTokensResponseSchema\n>;\n\nexport const revokeManualRegistrationTokenResponseSchema = manualRegistrationTokenDtoSchema;\n\nexport type RevokeManualRegistrationTokenResponseDto = z.infer<\n typeof revokeManualRegistrationTokenResponseSchema\n>;\n"],"names":["z","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","createManualRegistrationTokenBodySchema","object","name","string","min","optional","ttl_seconds","number","int","positive","max","createManualRegistrationTokenResponseSchema","id","uuid","raw_token","prefix","nullable","workspace_id","expires_at","created_at","manualRegistrationTokenDtoSchema","revoked_at","updated_at","listManualRegistrationTokensResponseSchema","manual_registration_tokens","array","revokeManualRegistrationTokenResponseSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,4CAA4C,WAAW;AAEpE,OAAO,MAAMC,0CAA0CF,EAAEG,MAAM,CAAC;IAC9DC,MAAMJ,EAAEK,MAAM,GAAGC,GAAG,CAAC,GAAGC,QAAQ;IAChCC,aAAaR,EACVS,MAAM,GACNC,GAAG,GACHC,QAAQ,GACRC,GAAG,CAACX,2CACJM,QAAQ;AACb,GAAG;AAMH,OAAO,MAAMM,8CAA8Cb,EAAEG,MAAM,CAAC;IAClEW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBC,WAAWhB,EAAEK,MAAM;IACnBY,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBC,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BK,YAAYpB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BG,YAAYrB,EAAEK,MAAM;AACtB,GAAG;AAMH,OAAO,MAAMiB,mCAAmCtB,EAAEG,MAAM,CAAC;IACvDW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBI,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BE,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBE,YAAYpB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BK,YAAYvB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BG,YAAYrB,EAAEK,MAAM;IACpBmB,YAAYxB,EAAEK,MAAM;AACtB,GAAG;AAIH,OAAO,MAAMoB,6CAA6CzB,EAAEG,MAAM,CAAC;IACjEuB,4BAA4B1B,EAAE2B,KAAK,CAACL;AACtC,GAAG;AAMH,OAAO,MAAMM,8CAA8CN,iCAAiC"}
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ export declare const REGISTRATION_TOKEN_BATCH_HARD_MAX = 1000;
3
+ export declare const mintRegistrationTokensProvisionedRunnerSchema: z.ZodObject<{
4
+ provisioned_runner_id: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const mintRegistrationTokensBatchBodySchema: z.ZodObject<{
7
+ reservation_id: z.ZodString;
8
+ provisioned_runners: z.ZodArray<z.ZodObject<{
9
+ provisioned_runner_id: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>;
12
+ export declare const mintedRegistrationTokenSchema: z.ZodObject<{
13
+ provisioned_runner_id: z.ZodString;
14
+ registration_token: z.ZodString;
15
+ expires_at: z.ZodString;
16
+ }, z.core.$strip>;
17
+ export declare const mintRegistrationTokensBatchResponseSchema: z.ZodObject<{
18
+ tokens: z.ZodArray<z.ZodObject<{
19
+ provisioned_runner_id: z.ZodString;
20
+ registration_token: z.ZodString;
21
+ expires_at: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ export type MintRegistrationTokensProvisionedRunnerDto = z.infer<typeof mintRegistrationTokensProvisionedRunnerSchema>;
25
+ export type MintRegistrationTokensBatchBodyDto = z.infer<typeof mintRegistrationTokensBatchBodySchema>;
26
+ export type MintedRegistrationTokenDto = z.infer<typeof mintedRegistrationTokenSchema>;
27
+ export type MintRegistrationTokensBatchResponseDto = z.infer<typeof mintRegistrationTokensBatchResponseSchema>;
28
+ //# sourceMappingURL=mint-registration-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mint-registration-tokens.d.ts","sourceRoot":"","sources":["../../src/schemas/mint-registration-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAEtD,eAAO,MAAM,6CAA6C;;iBAExD,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;iBAgB/C,CAAC;AAEJ,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;iBAEpD,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,6CAA6C,CACrD,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,yCAAyC,CACjD,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export const REGISTRATION_TOKEN_BATCH_HARD_MAX = 1000;
3
+ export const mintRegistrationTokensProvisionedRunnerSchema = z.object({
4
+ provisioned_runner_id: z.string().min(1).max(255)
5
+ });
6
+ export const mintRegistrationTokensBatchBodySchema = z.object({
7
+ reservation_id: z.string().uuid(),
8
+ provisioned_runners: z.array(mintRegistrationTokensProvisionedRunnerSchema).min(1).max(REGISTRATION_TOKEN_BATCH_HARD_MAX)
9
+ }).refine((body)=>new Set(body.provisioned_runners.map((provisionedRunner)=>provisionedRunner.provisioned_runner_id)).size === body.provisioned_runners.length, {
10
+ message: 'provisioned_runner_id values must be unique',
11
+ path: [
12
+ 'provisioned_runners'
13
+ ]
14
+ });
15
+ export const mintedRegistrationTokenSchema = z.object({
16
+ provisioned_runner_id: z.string(),
17
+ registration_token: z.string(),
18
+ expires_at: z.string().datetime()
19
+ });
20
+ export const mintRegistrationTokensBatchResponseSchema = z.object({
21
+ tokens: z.array(mintedRegistrationTokenSchema)
22
+ });
23
+
24
+ //# sourceMappingURL=mint-registration-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/mint-registration-tokens.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const REGISTRATION_TOKEN_BATCH_HARD_MAX = 1000;\n\nexport const mintRegistrationTokensProvisionedRunnerSchema = z.object({\n provisioned_runner_id: z.string().min(1).max(255),\n});\n\nexport const mintRegistrationTokensBatchBodySchema = z\n .object({\n reservation_id: z.string().uuid(),\n provisioned_runners: z\n .array(mintRegistrationTokensProvisionedRunnerSchema)\n .min(1)\n .max(REGISTRATION_TOKEN_BATCH_HARD_MAX),\n })\n .refine(\n (body) =>\n new Set(\n body.provisioned_runners.map(\n (provisionedRunner) => provisionedRunner.provisioned_runner_id,\n ),\n ).size === body.provisioned_runners.length,\n {message: 'provisioned_runner_id values must be unique', path: ['provisioned_runners']},\n );\n\nexport const mintedRegistrationTokenSchema = z.object({\n provisioned_runner_id: z.string(),\n registration_token: z.string(),\n expires_at: z.string().datetime(),\n});\n\nexport const mintRegistrationTokensBatchResponseSchema = z.object({\n tokens: z.array(mintedRegistrationTokenSchema),\n});\n\nexport type MintRegistrationTokensProvisionedRunnerDto = z.infer<\n typeof mintRegistrationTokensProvisionedRunnerSchema\n>;\nexport type MintRegistrationTokensBatchBodyDto = z.infer<\n typeof mintRegistrationTokensBatchBodySchema\n>;\nexport type MintedRegistrationTokenDto = z.infer<typeof mintedRegistrationTokenSchema>;\nexport type MintRegistrationTokensBatchResponseDto = z.infer<\n typeof mintRegistrationTokensBatchResponseSchema\n>;\n"],"names":["z","REGISTRATION_TOKEN_BATCH_HARD_MAX","mintRegistrationTokensProvisionedRunnerSchema","object","provisioned_runner_id","string","min","max","mintRegistrationTokensBatchBodySchema","reservation_id","uuid","provisioned_runners","array","refine","body","Set","map","provisionedRunner","size","length","message","path","mintedRegistrationTokenSchema","registration_token","expires_at","datetime","mintRegistrationTokensBatchResponseSchema","tokens"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,oCAAoC,KAAK;AAEtD,OAAO,MAAMC,gDAAgDF,EAAEG,MAAM,CAAC;IACpEC,uBAAuBJ,EAAEK,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;AAC/C,GAAG;AAEH,OAAO,MAAMC,wCAAwCR,EAClDG,MAAM,CAAC;IACNM,gBAAgBT,EAAEK,MAAM,GAAGK,IAAI;IAC/BC,qBAAqBX,EAClBY,KAAK,CAACV,+CACNI,GAAG,CAAC,GACJC,GAAG,CAACN;AACT,GACCY,MAAM,CACL,CAACC,OACC,IAAIC,IACFD,KAAKH,mBAAmB,CAACK,GAAG,CAC1B,CAACC,oBAAsBA,kBAAkBb,qBAAqB,GAEhEc,IAAI,KAAKJ,KAAKH,mBAAmB,CAACQ,MAAM,EAC5C;IAACC,SAAS;IAA+CC,MAAM;QAAC;KAAsB;AAAA,GACtF;AAEJ,OAAO,MAAMC,gCAAgCtB,EAAEG,MAAM,CAAC;IACpDC,uBAAuBJ,EAAEK,MAAM;IAC/BkB,oBAAoBvB,EAAEK,MAAM;IAC5BmB,YAAYxB,EAAEK,MAAM,GAAGoB,QAAQ;AACjC,GAAG;AAEH,OAAO,MAAMC,4CAA4C1B,EAAEG,MAAM,CAAC;IAChEwB,QAAQ3B,EAAEY,KAAK,CAACU;AAClB,GAAG"}