@shipfox/api-runners-dto 9.0.2 → 10.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +12 -0
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +12 -0
- package/dist/inter-module.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/poll-demand.js +1 -1
- package/dist/schemas/poll-demand.js.map +1 -1
- package/dist/schemas/runner-enrollment.d.ts +5 -0
- package/dist/schemas/runner-enrollment.d.ts.map +1 -1
- package/dist/schemas/runner-enrollment.js +5 -1
- package/dist/schemas/runner-enrollment.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -0
- package/src/inter-module.ts +12 -0
- package/src/schemas/index.ts +2 -0
- package/src/schemas/poll-demand.test.ts +29 -1
- package/src/schemas/poll-demand.ts +1 -1
- package/src/schemas/report-runner-instances.test.ts +18 -0
- package/src/schemas/runner-enrollment.ts +12 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 16 files with swc (
|
|
2
|
+
Successfully compiled: 16 files with swc (381.81ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @shipfox/api-runners-dto
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e9280fc: Add an observer-authorized administrator workspace lookup with bounded safe summaries,
|
|
8
|
+
best-effort job counts, and a neutral unavailable-workspace member experience for
|
|
9
|
+
suspended or deleted workspaces.
|
|
10
|
+
- 837bf5d: Stores runner reservation intent and promotes it during enrollment for lower activation latency.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 3f5610b: Allow provisioner demand polls to advertise up to 1000 templates.
|
|
15
|
+
- @shipfox/inter-module@0.2.2
|
|
16
|
+
- @shipfox/runner-labels@0.1.3
|
|
17
|
+
|
|
3
18
|
## 9.0.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type ActiveProvisionerDto, type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, type ClaimedJobResponseDto, type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, 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_PROVIDER_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, type ManualRegistrationTokenDto, manualRegistrationTokenDtoSchema, type PollDemandBodyDto, type PollDemandResponseDto, type PollDemandTemplateDto, type ProvisionerIdentityResponseDto, type ProvisionerTokenDto, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledRunnerInstanceDto, type ReconcileRunnerInstancesBodyDto, type ReconcileRunnerInstancesResponseDto, type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, type ReportRunnerInstancesBodyDto, type ReportRunnerInstancesResponseDto, type ReservationGrantDto, type RevokeManualRegistrationTokenResponseDto, type RevokeProvisionerTokenResponseDto, RUNNER_SESSION_EXHAUSTED_CODE, type RunnerBootstrapExchangeBodyDto, type RunnerBootstrapExchangeResponseDto, type RunnerEnrollmentBodyDto, type RunnerHarnessToolCapabilitiesDto, type RunnerInstanceReportEventDto, type RunnerInstanceStateDto, type RunnerToolCapabilitiesDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from '#schemas/index.js';
|
|
1
|
+
export { type ActiveProvisionerDto, type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, type ClaimedJobResponseDto, type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, 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_PROVIDER_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, type ManualRegistrationTokenDto, manualRegistrationTokenDtoSchema, type PollDemandBodyDto, type PollDemandResponseDto, type PollDemandTemplateDto, type ProvisionerIdentityResponseDto, type ProvisionerTokenDto, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledRunnerInstanceDto, type ReconcileRunnerInstancesBodyDto, type ReconcileRunnerInstancesResponseDto, type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, type ReportRunnerInstancesBodyDto, type ReportRunnerInstancesResponseDto, type ReservationGrantDto, type RevokeManualRegistrationTokenResponseDto, type RevokeProvisionerTokenResponseDto, RUNNER_SESSION_EXHAUSTED_CODE, type RunnerBootstrapExchangeBodyDto, type RunnerBootstrapExchangeResponseDto, type RunnerEnrollmentBodyDto, type RunnerEnrollmentResponseDto, type RunnerHarnessToolCapabilitiesDto, type RunnerInstanceReportEventDto, type RunnerInstanceStateDto, type RunnerToolCapabilitiesDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from '#schemas/index.js';
|
|
2
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
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,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2CAA2C,EAC3C,oCAAoC,EACpC,kCAAkC,EAClC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,0BAA0B,EAC1B,8BAA8B,EAC9B,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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, demandStatSchema, heartbeatBodySchema, heartbeatResponseSchema, listActiveProvisionersResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, manualRegistrationTokenDtoSchema, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, RUNNER_SESSION_EXHAUSTED_CODE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from '#schemas/index.js';
|
|
1
|
+
export { activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, claimedJobResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, demandStatSchema, heartbeatBodySchema, heartbeatResponseSchema, listActiveProvisionersResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, MAX_PROVISIONER_TOKEN_TTL_SECONDS, MAX_RECONCILE_OBSERVED_RUNNERS, manualRegistrationTokenDtoSchema, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, RUNNER_SESSION_EXHAUSTED_CODE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from '#schemas/index.js';
|
|
2
2
|
export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED, RUNNER_JOB_QUEUED, runnerJobClaimedEventSchema, runnerJobLeaseExpiredEventSchema, runnerJobQueuedEventSchema, runnersEventSchemas } from './events.js';
|
|
3
3
|
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type ActiveProvisionerDto,\n type ActiveRunnerDto,\n type ActiveRunnerStateDto,\n type ActiveRunnersResponseDto,\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n activeProvisionerDtoSchema,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n attachRunnerControlProviderIdBodySchema,\n type ClaimedJobResponseDto,\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n claimedJobResponseSchema,\n createManualRegistrationTokenBodySchema,\n createManualRegistrationTokenResponseSchema,\n createProvisionerTokenBodySchema,\n createProvisionerTokenResponseSchema,\n createRunnerInstancesBodySchema,\n createRunnerInstancesResponseSchema,\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_PROVIDER_RUNNER_ID_LENGTH,\n MAX_PROVIDER_KIND_LENGTH,\n MAX_PROVIDER_RUNNER_REASON_LENGTH,\n MAX_PROVIDER_RUNNER_REPORT_EVENTS,\n MAX_PROVISIONER_TOKEN_TTL_SECONDS,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ManualRegistrationTokenDto,\n manualRegistrationTokenDtoSchema,\n type PollDemandBodyDto,\n type PollDemandResponseDto,\n type PollDemandTemplateDto,\n type ProvisionerIdentityResponseDto,\n type ProvisionerTokenDto,\n pollDemandBodySchema,\n pollDemandResponseSchema,\n pollDemandTemplateSchema,\n providerKindSchema,\n providerRunnerReportEventSchema,\n providerRunnerStateSchema,\n provisionerIdentityResponseSchema,\n provisionerTokenDtoSchema,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledRunnerInstanceDto,\n type ReconcileRunnerInstancesBodyDto,\n type ReconcileRunnerInstancesResponseDto,\n type RegisterRunnerBodyDto,\n type RegisterRunnerResponseDto,\n type ReportRunnerInstancesBodyDto,\n type ReportRunnerInstancesResponseDto,\n type ReservationGrantDto,\n type RevokeManualRegistrationTokenResponseDto,\n type RevokeProvisionerTokenResponseDto,\n RUNNER_SESSION_EXHAUSTED_CODE,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerInstanceReportEventDto,\n type RunnerInstanceStateDto,\n type RunnerToolCapabilitiesDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledRunnerInstanceSchema,\n reconcileRunnerInstancesBodySchema,\n reconcileRunnerInstancesResponseSchema,\n registerRunnerBodySchema,\n registerRunnerResponseSchema,\n reportRunnerInstancesBodySchema,\n reportRunnerInstancesResponseSchema,\n reservationGrantSchema,\n revokeManualRegistrationTokenResponseSchema,\n revokeProvisionerTokenResponseSchema,\n runnerAssignmentPollResponseSchema,\n runnerBootstrapExchangeBodySchema,\n runnerBootstrapExchangeResponseSchema,\n runnerControlHeartbeatResponseSchema,\n runnerEnrollmentBodySchema,\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","assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","claimedJobResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","demandStatSchema","heartbeatBodySchema","heartbeatResponseSchema","listActiveProvisionersResponseSchema","listManualRegistrationTokensResponseSchema","listProvisionerTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","MAX_PROVIDER_KIND_LENGTH","MAX_PROVIDER_RUNNER_REASON_LENGTH","MAX_PROVIDER_RUNNER_REPORT_EVENTS","MAX_PROVISIONER_TOKEN_TTL_SECONDS","MAX_RECONCILE_OBSERVED_RUNNERS","manualRegistrationTokenDtoSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","providerKindSchema","providerRunnerReportEventSchema","providerRunnerStateSchema","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","RUNNER_SESSION_EXHAUSTED_CODE","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","reservationGrantSchema","revokeManualRegistrationTokenResponseSchema","revokeProvisionerTokenResponseSchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema","RUNNER_JOB_CLAIMED","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","runnerJobQueuedEventSchema","runnersEventSchemas"],"mappings":"AAAA,SAOEA,0BAA0B,EAC1BC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,mCAAmC,EACnCC,uCAAuC,EAQvCC,wBAAwB,EACxBC,uCAAuC,EACvCC,2CAA2C,EAC3CC,gCAAgC,EAChCC,oCAAoC,EACpCC,+BAA+B,EAC/BC,mCAAmC,EAEnCC,gBAAgB,EAGhBC,mBAAmB,EACnBC,uBAAuB,EAIvBC,oCAAoC,EACpCC,0CAA0C,EAC1CC,mCAAmC,EACnCC,yCAAyC,EACzCC,sCAAsC,EACtCC,wBAAwB,EACxBC,iCAAiC,EACjCC,iCAAiC,EACjCC,iCAAiC,EACjCC,8BAA8B,EAE9BC,gCAAgC,EAMhCC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,EACxBC,kBAAkB,EAClBC,+BAA+B,EAC/BC,yBAAyB,EACzBC,iCAAiC,EACjCC,yBAAyB,EAazBC,6BAA6B,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type ActiveProvisionerDto,\n type ActiveRunnerDto,\n type ActiveRunnerStateDto,\n type ActiveRunnersResponseDto,\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n activeProvisionerDtoSchema,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n attachRunnerControlProviderIdBodySchema,\n type ClaimedJobResponseDto,\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n claimedJobResponseSchema,\n createManualRegistrationTokenBodySchema,\n createManualRegistrationTokenResponseSchema,\n createProvisionerTokenBodySchema,\n createProvisionerTokenResponseSchema,\n createRunnerInstancesBodySchema,\n createRunnerInstancesResponseSchema,\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_PROVIDER_RUNNER_ID_LENGTH,\n MAX_PROVIDER_KIND_LENGTH,\n MAX_PROVIDER_RUNNER_REASON_LENGTH,\n MAX_PROVIDER_RUNNER_REPORT_EVENTS,\n MAX_PROVISIONER_TOKEN_TTL_SECONDS,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ManualRegistrationTokenDto,\n manualRegistrationTokenDtoSchema,\n type PollDemandBodyDto,\n type PollDemandResponseDto,\n type PollDemandTemplateDto,\n type ProvisionerIdentityResponseDto,\n type ProvisionerTokenDto,\n pollDemandBodySchema,\n pollDemandResponseSchema,\n pollDemandTemplateSchema,\n providerKindSchema,\n providerRunnerReportEventSchema,\n providerRunnerStateSchema,\n provisionerIdentityResponseSchema,\n provisionerTokenDtoSchema,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledRunnerInstanceDto,\n type ReconcileRunnerInstancesBodyDto,\n type ReconcileRunnerInstancesResponseDto,\n type RegisterRunnerBodyDto,\n type RegisterRunnerResponseDto,\n type ReportRunnerInstancesBodyDto,\n type ReportRunnerInstancesResponseDto,\n type ReservationGrantDto,\n type RevokeManualRegistrationTokenResponseDto,\n type RevokeProvisionerTokenResponseDto,\n RUNNER_SESSION_EXHAUSTED_CODE,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n type RunnerEnrollmentResponseDto,\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerInstanceReportEventDto,\n type RunnerInstanceStateDto,\n type RunnerToolCapabilitiesDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledRunnerInstanceSchema,\n reconcileRunnerInstancesBodySchema,\n reconcileRunnerInstancesResponseSchema,\n registerRunnerBodySchema,\n registerRunnerResponseSchema,\n reportRunnerInstancesBodySchema,\n reportRunnerInstancesResponseSchema,\n reservationGrantSchema,\n revokeManualRegistrationTokenResponseSchema,\n revokeProvisionerTokenResponseSchema,\n runnerAssignmentPollResponseSchema,\n runnerBootstrapExchangeBodySchema,\n runnerBootstrapExchangeResponseSchema,\n runnerControlHeartbeatResponseSchema,\n runnerEnrollmentBodySchema,\n runnerEnrollmentResponseSchema,\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","assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","claimedJobResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","demandStatSchema","heartbeatBodySchema","heartbeatResponseSchema","listActiveProvisionersResponseSchema","listManualRegistrationTokensResponseSchema","listProvisionerTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","MAX_PROVIDER_KIND_LENGTH","MAX_PROVIDER_RUNNER_REASON_LENGTH","MAX_PROVIDER_RUNNER_REPORT_EVENTS","MAX_PROVISIONER_TOKEN_TTL_SECONDS","MAX_RECONCILE_OBSERVED_RUNNERS","manualRegistrationTokenDtoSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","providerKindSchema","providerRunnerReportEventSchema","providerRunnerStateSchema","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","RUNNER_SESSION_EXHAUSTED_CODE","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","reservationGrantSchema","revokeManualRegistrationTokenResponseSchema","revokeProvisionerTokenResponseSchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema","RUNNER_JOB_CLAIMED","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","runnerJobQueuedEventSchema","runnersEventSchemas"],"mappings":"AAAA,SAOEA,0BAA0B,EAC1BC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,mCAAmC,EACnCC,uCAAuC,EAQvCC,wBAAwB,EACxBC,uCAAuC,EACvCC,2CAA2C,EAC3CC,gCAAgC,EAChCC,oCAAoC,EACpCC,+BAA+B,EAC/BC,mCAAmC,EAEnCC,gBAAgB,EAGhBC,mBAAmB,EACnBC,uBAAuB,EAIvBC,oCAAoC,EACpCC,0CAA0C,EAC1CC,mCAAmC,EACnCC,yCAAyC,EACzCC,sCAAsC,EACtCC,wBAAwB,EACxBC,iCAAiC,EACjCC,iCAAiC,EACjCC,iCAAiC,EACjCC,8BAA8B,EAE9BC,gCAAgC,EAMhCC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,EACxBC,kBAAkB,EAClBC,+BAA+B,EAC/BC,yBAAyB,EACzBC,iCAAiC,EACjCC,yBAAyB,EAazBC,6BAA6B,EAS7BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,sCAAsC,EACtCC,wBAAwB,EACxBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,mCAAmC,EACnCC,sBAAsB,EACtBC,2CAA2C,EAC3CC,oCAAoC,EACpCC,kCAAkC,EAClCC,iCAAiC,EACjCC,qCAAqC,EACrCC,oCAAoC,EACpCC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,mCAAmC,EACnCC,4BAA4B,QACvB,oBAAoB;AAC3B,SACEC,kBAAkB,EAClBC,wBAAwB,EACxBC,iBAAiB,EAKjBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,0BAA0B,EAC1BC,mBAAmB,QACd,cAAc"}
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ export declare const runnersInterModuleContract: import("@shipfox/inter-module")
|
|
|
58
58
|
reportFresh: z.ZodBoolean;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
};
|
|
61
|
+
readonly getWorkspaceJobCounts: {
|
|
62
|
+
readonly input: z.ZodObject<{
|
|
63
|
+
workspaceIds: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
readonly output: z.ZodObject<{
|
|
66
|
+
counts: z.ZodArray<z.ZodObject<{
|
|
67
|
+
workspaceId: z.ZodString;
|
|
68
|
+
queued: z.ZodNumber;
|
|
69
|
+
running: z.ZodNumber;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
};
|
|
61
73
|
};
|
|
62
74
|
}>;
|
|
63
75
|
export type RunnersInterModuleClient = InterModuleClient<typeof runnersInterModuleContract>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDrC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/dist/inter-module.js
CHANGED
|
@@ -50,6 +50,18 @@ export const runnersInterModuleContract = defineInterModuleContract({
|
|
|
50
50
|
capabilities: runnerToolCapabilitiesSchema,
|
|
51
51
|
reportFresh: z.boolean()
|
|
52
52
|
})
|
|
53
|
+
},
|
|
54
|
+
getWorkspaceJobCounts: {
|
|
55
|
+
input: z.object({
|
|
56
|
+
workspaceIds: z.array(idSchema).min(1).max(100)
|
|
57
|
+
}),
|
|
58
|
+
output: z.object({
|
|
59
|
+
counts: z.array(z.object({
|
|
60
|
+
workspaceId: idSchema,
|
|
61
|
+
queued: z.number().int().nonnegative(),
|
|
62
|
+
running: z.number().int().nonnegative()
|
|
63
|
+
}))
|
|
64
|
+
})
|
|
53
65
|
}
|
|
54
66
|
}
|
|
55
67
|
});
|
package/dist/inter-module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from '#schemas/tool-capabilities.js';\n\nconst idSchema = z.string().uuid();\n\nexport const runnersInterModuleContract = defineInterModuleContract({\n module: 'runners',\n methods: {\n enqueueJobExecution: {\n input: z.object({\n workspaceId: idSchema,\n workflowRunId: idSchema,\n workflowRunAttemptId: idSchema,\n jobId: idSchema,\n jobExecutionId: idSchema,\n projectId: idSchema,\n requiredLabels: z.array(z.string()),\n }),\n output: z.object({}),\n errors: {\n 'empty-required-labels': z.object({}),\n },\n },\n releaseJobExecution: {\n input: z.object({jobExecutionId: idSchema}),\n output: z.object({}),\n },\n cancelJobs: {\n input: z.object({jobIds: z.array(idSchema)}),\n output: z.object({}),\n },\n getLeaseState: {\n input: z.object({\n jobId: idSchema,\n jobExecutionId: idSchema,\n runnerSessionId: idSchema,\n }),\n output: z.object({active: z.boolean()}),\n },\n getEffectiveRunnerToolCapabilities: {\n input: z.object({runnerSessionId: idSchema}),\n output: z.object({\n capabilities: runnerToolCapabilitiesSchema,\n reportFresh: z.boolean(),\n }),\n },\n },\n});\n\nexport type RunnersInterModuleClient = InterModuleClient<typeof runnersInterModuleContract>;\n"],"names":["defineInterModuleContract","z","runnerToolCapabilitiesSchema","idSchema","string","uuid","runnersInterModuleContract","module","methods","enqueueJobExecution","input","object","workspaceId","workflowRunId","workflowRunAttemptId","jobId","jobExecutionId","projectId","requiredLabels","array","output","errors","releaseJobExecution","cancelJobs","jobIds","getLeaseState","runnerSessionId","active","boolean","getEffectiveRunnerToolCapabilities","capabilities","reportFresh"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,gCAAgC;AAE3E,MAAMC,WAAWF,EAAEG,MAAM,GAAGC,IAAI;AAEhC,OAAO,MAAMC,6BAA6BN,0BAA0B;IAClEO,QAAQ;IACRC,SAAS;QACPC,qBAAqB;YACnBC,OAAOT,EAAEU,MAAM,CAAC;gBACdC,aAAaT;gBACbU,eAAeV;gBACfW,sBAAsBX;gBACtBY,OAAOZ;gBACPa,gBAAgBb;gBAChBc,WAAWd;gBACXe,gBAAgBjB,EAAEkB,KAAK,CAAClB,EAAEG,MAAM;YAClC;YACAgB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;YAClBU,QAAQ;gBACN,yBAAyBpB,EAAEU,MAAM,CAAC,CAAC;YACrC;QACF;QACAW,qBAAqB;YACnBZ,OAAOT,EAAEU,MAAM,CAAC;gBAACK,gBAAgBb;YAAQ;YACzCiB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;QACpB;QACAY,YAAY;YACVb,OAAOT,EAAEU,MAAM,CAAC;gBAACa,QAAQvB,EAAEkB,KAAK,CAAChB;YAAS;YAC1CiB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;QACpB;QACAc,eAAe;YACbf,OAAOT,EAAEU,MAAM,CAAC;gBACdI,OAAOZ;gBACPa,gBAAgBb;gBAChBuB,iBAAiBvB;YACnB;YACAiB,QAAQnB,EAAEU,MAAM,CAAC;gBAACgB,QAAQ1B,EAAE2B,OAAO;YAAE;QACvC;QACAC,oCAAoC;YAClCnB,OAAOT,EAAEU,MAAM,CAAC;gBAACe,iBAAiBvB;YAAQ;YAC1CiB,QAAQnB,EAAEU,MAAM,CAAC;gBACfmB,cAAc5B;gBACd6B,aAAa9B,EAAE2B,OAAO;YACxB;QACF;IACF;AACF,GAAG"}
|
|
1
|
+
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from '#schemas/tool-capabilities.js';\n\nconst idSchema = z.string().uuid();\n\nexport const runnersInterModuleContract = defineInterModuleContract({\n module: 'runners',\n methods: {\n enqueueJobExecution: {\n input: z.object({\n workspaceId: idSchema,\n workflowRunId: idSchema,\n workflowRunAttemptId: idSchema,\n jobId: idSchema,\n jobExecutionId: idSchema,\n projectId: idSchema,\n requiredLabels: z.array(z.string()),\n }),\n output: z.object({}),\n errors: {\n 'empty-required-labels': z.object({}),\n },\n },\n releaseJobExecution: {\n input: z.object({jobExecutionId: idSchema}),\n output: z.object({}),\n },\n cancelJobs: {\n input: z.object({jobIds: z.array(idSchema)}),\n output: z.object({}),\n },\n getLeaseState: {\n input: z.object({\n jobId: idSchema,\n jobExecutionId: idSchema,\n runnerSessionId: idSchema,\n }),\n output: z.object({active: z.boolean()}),\n },\n getEffectiveRunnerToolCapabilities: {\n input: z.object({runnerSessionId: idSchema}),\n output: z.object({\n capabilities: runnerToolCapabilitiesSchema,\n reportFresh: z.boolean(),\n }),\n },\n getWorkspaceJobCounts: {\n input: z.object({workspaceIds: z.array(idSchema).min(1).max(100)}),\n output: z.object({\n counts: z.array(\n z.object({\n workspaceId: idSchema,\n queued: z.number().int().nonnegative(),\n running: z.number().int().nonnegative(),\n }),\n ),\n }),\n },\n },\n});\n\nexport type RunnersInterModuleClient = InterModuleClient<typeof runnersInterModuleContract>;\n"],"names":["defineInterModuleContract","z","runnerToolCapabilitiesSchema","idSchema","string","uuid","runnersInterModuleContract","module","methods","enqueueJobExecution","input","object","workspaceId","workflowRunId","workflowRunAttemptId","jobId","jobExecutionId","projectId","requiredLabels","array","output","errors","releaseJobExecution","cancelJobs","jobIds","getLeaseState","runnerSessionId","active","boolean","getEffectiveRunnerToolCapabilities","capabilities","reportFresh","getWorkspaceJobCounts","workspaceIds","min","max","counts","queued","number","int","nonnegative","running"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,gCAAgC;AAE3E,MAAMC,WAAWF,EAAEG,MAAM,GAAGC,IAAI;AAEhC,OAAO,MAAMC,6BAA6BN,0BAA0B;IAClEO,QAAQ;IACRC,SAAS;QACPC,qBAAqB;YACnBC,OAAOT,EAAEU,MAAM,CAAC;gBACdC,aAAaT;gBACbU,eAAeV;gBACfW,sBAAsBX;gBACtBY,OAAOZ;gBACPa,gBAAgBb;gBAChBc,WAAWd;gBACXe,gBAAgBjB,EAAEkB,KAAK,CAAClB,EAAEG,MAAM;YAClC;YACAgB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;YAClBU,QAAQ;gBACN,yBAAyBpB,EAAEU,MAAM,CAAC,CAAC;YACrC;QACF;QACAW,qBAAqB;YACnBZ,OAAOT,EAAEU,MAAM,CAAC;gBAACK,gBAAgBb;YAAQ;YACzCiB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;QACpB;QACAY,YAAY;YACVb,OAAOT,EAAEU,MAAM,CAAC;gBAACa,QAAQvB,EAAEkB,KAAK,CAAChB;YAAS;YAC1CiB,QAAQnB,EAAEU,MAAM,CAAC,CAAC;QACpB;QACAc,eAAe;YACbf,OAAOT,EAAEU,MAAM,CAAC;gBACdI,OAAOZ;gBACPa,gBAAgBb;gBAChBuB,iBAAiBvB;YACnB;YACAiB,QAAQnB,EAAEU,MAAM,CAAC;gBAACgB,QAAQ1B,EAAE2B,OAAO;YAAE;QACvC;QACAC,oCAAoC;YAClCnB,OAAOT,EAAEU,MAAM,CAAC;gBAACe,iBAAiBvB;YAAQ;YAC1CiB,QAAQnB,EAAEU,MAAM,CAAC;gBACfmB,cAAc5B;gBACd6B,aAAa9B,EAAE2B,OAAO;YACxB;QACF;QACAI,uBAAuB;YACrBtB,OAAOT,EAAEU,MAAM,CAAC;gBAACsB,cAAchC,EAAEkB,KAAK,CAAChB,UAAU+B,GAAG,CAAC,GAAGC,GAAG,CAAC;YAAI;YAChEf,QAAQnB,EAAEU,MAAM,CAAC;gBACfyB,QAAQnC,EAAEkB,KAAK,CACblB,EAAEU,MAAM,CAAC;oBACPC,aAAaT;oBACbkC,QAAQpC,EAAEqC,MAAM,GAAGC,GAAG,GAAGC,WAAW;oBACpCC,SAASxC,EAAEqC,MAAM,GAAGC,GAAG,GAAGC,WAAW;gBACvC;YAEJ;QACF;IACF;AACF,GAAG"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export { type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponse
|
|
|
8
8
|
export { MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledRunnerInstanceDto, type ReconcileRunnerInstancesBodyDto, type ReconcileRunnerInstancesResponseDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, } from './reconcile-runner-instances.js';
|
|
9
9
|
export { type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema, } from './register.js';
|
|
10
10
|
export { type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, type ReportRunnerInstancesBodyDto, type ReportRunnerInstancesResponseDto, type RunnerInstanceReportEventDto, type RunnerInstanceStateDto, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, } from './report-runner-instances.js';
|
|
11
|
-
export { attachRunnerControlProviderIdBodySchema, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, type RunnerBootstrapExchangeBodyDto, type RunnerBootstrapExchangeResponseDto, type RunnerEnrollmentBodyDto, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, } from './runner-enrollment.js';
|
|
11
|
+
export { attachRunnerControlProviderIdBodySchema, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, type RunnerBootstrapExchangeBodyDto, type RunnerBootstrapExchangeResponseDto, type RunnerEnrollmentBodyDto, type RunnerEnrollmentResponseDto, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, } from './runner-enrollment.js';
|
|
12
12
|
export { type RunnerHarnessToolCapabilitiesDto, type RunnerToolCapabilitiesDto, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from './tool-capabilities.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,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,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,sCAAsC,EACtC,8BAA8B,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,sCAAsC,GACvC,MAAM,iCAAiC,CAAC;AACzC,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,iCAAiC,EACjC,iCAAiC,EACjC,kBAAkB,EAClB,+BAA+B,EAC/B,yBAAyB,EACzB,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uCAAuC,EACvC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,+BAA+B,EAC/B,mCAAmC,EACnC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,kCAAkC,EAClC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAA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,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,iCAAiC,EACjC,iCAAiC,EACjC,kBAAkB,EAClB,+BAA+B,EAC/B,yBAAyB,EACzB,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uCAAuC,EACvC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,+BAA+B,EAC/B,mCAAmC,EACnC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,kCAAkC,EAClC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema,
|
|
|
8
8
|
export { MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema } from './reconcile-runner-instances.js';
|
|
9
9
|
export { registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema } from './register.js';
|
|
10
10
|
export { activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, MAX_PROVIDER_KIND_LENGTH, MAX_PROVIDER_RUNNER_REASON_LENGTH, MAX_PROVIDER_RUNNER_REPORT_EVENTS, providerKindSchema, providerRunnerReportEventSchema, providerRunnerStateSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema } from './report-runner-instances.js';
|
|
11
|
-
export { attachRunnerControlProviderIdBodySchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema } from './runner-enrollment.js';
|
|
11
|
+
export { attachRunnerControlProviderIdBodySchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema } from './runner-enrollment.js';
|
|
12
12
|
export { runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from './tool-capabilities.js';
|
|
13
13
|
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n} from './assign-runner-instances.js';\nexport {\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 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_PROVIDER_RUNNER_ID_LENGTH,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledRunnerInstanceDto,\n type ReconcileRunnerInstancesBodyDto,\n type ReconcileRunnerInstancesResponseDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledRunnerInstanceSchema,\n reconcileRunnerInstancesBodySchema,\n reconcileRunnerInstancesResponseSchema,\n} from './reconcile-runner-instances.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_PROVIDER_RUNNER_REASON_LENGTH,\n MAX_PROVIDER_RUNNER_REPORT_EVENTS,\n providerKindSchema,\n providerRunnerReportEventSchema,\n providerRunnerStateSchema,\n type ReportRunnerInstancesBodyDto,\n type ReportRunnerInstancesResponseDto,\n type RunnerInstanceReportEventDto,\n type RunnerInstanceStateDto,\n reportRunnerInstancesBodySchema,\n reportRunnerInstancesResponseSchema,\n} from './report-runner-instances.js';\nexport {\n attachRunnerControlProviderIdBodySchema,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n createRunnerInstancesBodySchema,\n createRunnerInstancesResponseSchema,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n runnerAssignmentPollResponseSchema,\n runnerBootstrapExchangeBodySchema,\n runnerBootstrapExchangeResponseSchema,\n runnerControlHeartbeatResponseSchema,\n runnerEnrollmentBodySchema,\n} from './runner-enrollment.js';\nexport {\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerToolCapabilitiesDto,\n runnerHarnessToolCapabilitiesSchema,\n runnerToolCapabilitiesSchema,\n} from './tool-capabilities.js';\n"],"names":["assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","claimedJobResponseSchema","RUNNER_SESSION_EXHAUSTED_CODE","heartbeatBodySchema","heartbeatResponseSchema","activeProvisionerDtoSchema","listActiveProvisionersResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","listManualRegistrationTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","manualRegistrationTokenDtoSchema","revokeManualRegistrationTokenResponseSchema","demandStatSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","reservationGrantSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","listProvisionerTokensResponseSchema","MAX_PROVISIONER_TOKEN_TTL_SECONDS","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","revokeProvisionerTokenResponseSchema","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","MAX_RECONCILE_OBSERVED_RUNNERS","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","runnerLabelSchema","activeRunnerDtoSchema","activeRunnerStateSchema","activeRunnersResponseSchema","MAX_PROVIDER_KIND_LENGTH","MAX_PROVIDER_RUNNER_REASON_LENGTH","MAX_PROVIDER_RUNNER_REPORT_EVENTS","providerKindSchema","providerRunnerReportEventSchema","providerRunnerStateSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema"],"mappings":"AAAA,SAGEA,+BAA+B,EAC/BC,mCAAmC,QAC9B,+BAA+B;AACtC,SAEEC,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,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,sCAAsC,EACtCC,8BAA8B,EAM9BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,sCAAsC,QACjC,kCAAkC;AACzC,SAGEC,wBAAwB,EACxBC,4BAA4B,EAC5BC,iBAAiB,QACZ,gBAAgB;AACvB,SAIEC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,iCAAiC,EACjCC,kBAAkB,EAClBC,+BAA+B,EAC/BC,yBAAyB,EAKzBC,+BAA+B,EAC/BC,mCAAmC,QAC9B,+BAA+B;AACtC,SACEC,uCAAuC,EAGvCC,+BAA+B,EAC/BC,mCAAmC,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n} from './assign-runner-instances.js';\nexport {\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 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_PROVIDER_RUNNER_ID_LENGTH,\n MAX_RECONCILE_OBSERVED_RUNNERS,\n type ReconcileDesiredIntentDto,\n type ReconciledBoundJobDto,\n type ReconciledRunnerInstanceDto,\n type ReconcileRunnerInstancesBodyDto,\n type ReconcileRunnerInstancesResponseDto,\n reconcileDesiredIntentSchema,\n reconciledBoundJobSchema,\n reconciledRunnerInstanceSchema,\n reconcileRunnerInstancesBodySchema,\n reconcileRunnerInstancesResponseSchema,\n} from './reconcile-runner-instances.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_PROVIDER_RUNNER_REASON_LENGTH,\n MAX_PROVIDER_RUNNER_REPORT_EVENTS,\n providerKindSchema,\n providerRunnerReportEventSchema,\n providerRunnerStateSchema,\n type ReportRunnerInstancesBodyDto,\n type ReportRunnerInstancesResponseDto,\n type RunnerInstanceReportEventDto,\n type RunnerInstanceStateDto,\n reportRunnerInstancesBodySchema,\n reportRunnerInstancesResponseSchema,\n} from './report-runner-instances.js';\nexport {\n attachRunnerControlProviderIdBodySchema,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n createRunnerInstancesBodySchema,\n createRunnerInstancesResponseSchema,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n type RunnerEnrollmentResponseDto,\n runnerAssignmentPollResponseSchema,\n runnerBootstrapExchangeBodySchema,\n runnerBootstrapExchangeResponseSchema,\n runnerControlHeartbeatResponseSchema,\n runnerEnrollmentBodySchema,\n runnerEnrollmentResponseSchema,\n} from './runner-enrollment.js';\nexport {\n type RunnerHarnessToolCapabilitiesDto,\n type RunnerToolCapabilitiesDto,\n runnerHarnessToolCapabilitiesSchema,\n runnerToolCapabilitiesSchema,\n} from './tool-capabilities.js';\n"],"names":["assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","claimedJobResponseSchema","RUNNER_SESSION_EXHAUSTED_CODE","heartbeatBodySchema","heartbeatResponseSchema","activeProvisionerDtoSchema","listActiveProvisionersResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","listManualRegistrationTokensResponseSchema","MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS","manualRegistrationTokenDtoSchema","revokeManualRegistrationTokenResponseSchema","demandStatSchema","pollDemandBodySchema","pollDemandResponseSchema","pollDemandTemplateSchema","reservationGrantSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","listProvisionerTokensResponseSchema","MAX_PROVISIONER_TOKEN_TTL_SECONDS","provisionerIdentityResponseSchema","provisionerTokenDtoSchema","revokeProvisionerTokenResponseSchema","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","MAX_RECONCILE_OBSERVED_RUNNERS","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","runnerLabelSchema","activeRunnerDtoSchema","activeRunnerStateSchema","activeRunnersResponseSchema","MAX_PROVIDER_KIND_LENGTH","MAX_PROVIDER_RUNNER_REASON_LENGTH","MAX_PROVIDER_RUNNER_REPORT_EVENTS","providerKindSchema","providerRunnerReportEventSchema","providerRunnerStateSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema"],"mappings":"AAAA,SAGEA,+BAA+B,EAC/BC,mCAAmC,QAC9B,+BAA+B;AACtC,SAEEC,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,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,sCAAsC,EACtCC,8BAA8B,EAM9BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,sCAAsC,QACjC,kCAAkC;AACzC,SAGEC,wBAAwB,EACxBC,4BAA4B,EAC5BC,iBAAiB,QACZ,gBAAgB;AACvB,SAIEC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,iCAAiC,EACjCC,kBAAkB,EAClBC,+BAA+B,EAC/BC,yBAAyB,EAKzBC,+BAA+B,EAC/BC,mCAAmC,QAC9B,+BAA+B;AACtC,SACEC,uCAAuC,EAGvCC,+BAA+B,EAC/BC,mCAAmC,EAKnCC,kCAAkC,EAClCC,iCAAiC,EACjCC,qCAAqC,EACrCC,oCAAoC,EACpCC,0BAA0B,EAC1BC,8BAA8B,QACzB,yBAAyB;AAChC,SAGEC,mCAAmC,EACnCC,4BAA4B,QACvB,yBAAyB"}
|
|
@@ -11,7 +11,7 @@ export const pollDemandTemplateSchema = z.object({
|
|
|
11
11
|
export const pollDemandBodySchema = z.object({
|
|
12
12
|
wait_seconds: z.number().int().min(0).optional(),
|
|
13
13
|
max_reservations: z.number().int().min(0).max(1000),
|
|
14
|
-
templates: z.array(pollDemandTemplateSchema).max(
|
|
14
|
+
templates: z.array(pollDemandTemplateSchema).max(1000)
|
|
15
15
|
});
|
|
16
16
|
export const demandStatSchema = z.object({
|
|
17
17
|
workspace_id: z.string().uuid().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/poll-demand.ts"],"sourcesContent":["import {MAX_RUNNER_LABELS} from '@shipfox/runner-labels';\nimport {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\n\nexport const pollDemandTemplateSchema = z.object({\n template_key: z.string().min(1),\n labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),\n available_slots: z.number().int().min(0).max(100_000),\n starting: z.number().int().min(0).max(100_000),\n running: z.number().int().min(0).max(100_000),\n});\n\nexport const pollDemandBodySchema = z.object({\n wait_seconds: z.number().int().min(0).optional(),\n max_reservations: z.number().int().min(0).max(1000),\n templates: z.array(pollDemandTemplateSchema).max(
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/poll-demand.ts"],"sourcesContent":["import {MAX_RUNNER_LABELS} from '@shipfox/runner-labels';\nimport {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\n\nexport const pollDemandTemplateSchema = z.object({\n template_key: z.string().min(1),\n labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),\n available_slots: z.number().int().min(0).max(100_000),\n starting: z.number().int().min(0).max(100_000),\n running: z.number().int().min(0).max(100_000),\n});\n\nexport const pollDemandBodySchema = z.object({\n wait_seconds: z.number().int().min(0).optional(),\n max_reservations: z.number().int().min(0).max(1000),\n templates: z.array(pollDemandTemplateSchema).max(1000),\n});\n\nexport const demandStatSchema = z.object({\n workspace_id: z.string().uuid().optional(),\n labels: z.array(z.string()),\n queued: z.number().int().min(0),\n reserved: z\n .number()\n .int()\n .min(0)\n .describe(\n 'Active reservations for this label set; advisory, may exceed `queued` during heavy claiming.',\n ),\n oldest_queued_at: z.string().datetime(),\n});\n\nexport const reservationGrantSchema = z.object({\n reservation_id: z.string().uuid(),\n workspace_id: z.string().uuid().optional(),\n labels: z.array(z.string()),\n count: z.number().int().positive(),\n expires_at: z.string().datetime(),\n});\n\nexport const pollDemandResponseSchema = z.object({\n stats: z.array(demandStatSchema),\n reservations: z.array(reservationGrantSchema),\n terminate_provider_runner_ids: z.array(z.string()),\n});\n\nexport type PollDemandTemplateDto = z.infer<typeof pollDemandTemplateSchema>;\nexport type PollDemandBodyDto = z.infer<typeof pollDemandBodySchema>;\nexport type DemandStatDto = z.infer<typeof demandStatSchema>;\nexport type ReservationGrantDto = z.infer<typeof reservationGrantSchema>;\nexport type PollDemandResponseDto = z.infer<typeof pollDemandResponseSchema>;\n"],"names":["MAX_RUNNER_LABELS","z","runnerLabelSchema","pollDemandTemplateSchema","object","template_key","string","min","labels","array","max","available_slots","number","int","starting","running","pollDemandBodySchema","wait_seconds","optional","max_reservations","templates","demandStatSchema","workspace_id","uuid","queued","reserved","describe","oldest_queued_at","datetime","reservationGrantSchema","reservation_id","count","positive","expires_at","pollDemandResponseSchema","stats","reservations","terminate_provider_runner_ids"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,yBAAyB;AACzD,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,iBAAiB,QAAO,gBAAgB;AAEhD,OAAO,MAAMC,2BAA2BF,EAAEG,MAAM,CAAC;IAC/CC,cAAcJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;IAC7BC,QAAQP,EAAEQ,KAAK,CAACP,mBAAmBK,GAAG,CAAC,GAAGG,GAAG,CAACV;IAC9CW,iBAAiBV,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC,GAAGG,GAAG,CAAC;IAC7CI,UAAUb,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC,GAAGG,GAAG,CAAC;IACtCK,SAASd,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC,GAAGG,GAAG,CAAC;AACvC,GAAG;AAEH,OAAO,MAAMM,uBAAuBf,EAAEG,MAAM,CAAC;IAC3Ca,cAAchB,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC,GAAGW,QAAQ;IAC9CC,kBAAkBlB,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC,GAAGG,GAAG,CAAC;IAC9CU,WAAWnB,EAAEQ,KAAK,CAACN,0BAA0BO,GAAG,CAAC;AACnD,GAAG;AAEH,OAAO,MAAMW,mBAAmBpB,EAAEG,MAAM,CAAC;IACvCkB,cAAcrB,EAAEK,MAAM,GAAGiB,IAAI,GAAGL,QAAQ;IACxCV,QAAQP,EAAEQ,KAAK,CAACR,EAAEK,MAAM;IACxBkB,QAAQvB,EAAEW,MAAM,GAAGC,GAAG,GAAGN,GAAG,CAAC;IAC7BkB,UAAUxB,EACPW,MAAM,GACNC,GAAG,GACHN,GAAG,CAAC,GACJmB,QAAQ,CACP;IAEJC,kBAAkB1B,EAAEK,MAAM,GAAGsB,QAAQ;AACvC,GAAG;AAEH,OAAO,MAAMC,yBAAyB5B,EAAEG,MAAM,CAAC;IAC7C0B,gBAAgB7B,EAAEK,MAAM,GAAGiB,IAAI;IAC/BD,cAAcrB,EAAEK,MAAM,GAAGiB,IAAI,GAAGL,QAAQ;IACxCV,QAAQP,EAAEQ,KAAK,CAACR,EAAEK,MAAM;IACxByB,OAAO9B,EAAEW,MAAM,GAAGC,GAAG,GAAGmB,QAAQ;IAChCC,YAAYhC,EAAEK,MAAM,GAAGsB,QAAQ;AACjC,GAAG;AAEH,OAAO,MAAMM,2BAA2BjC,EAAEG,MAAM,CAAC;IAC/C+B,OAAOlC,EAAEQ,KAAK,CAACY;IACfe,cAAcnC,EAAEQ,KAAK,CAACoB;IACtBQ,+BAA+BpC,EAAEQ,KAAK,CAACR,EAAEK,MAAM;AACjD,GAAG"}
|
|
@@ -6,6 +6,7 @@ export declare const createRunnerInstancesBodySchema: z.ZodObject<{
|
|
|
6
6
|
provider_kind: z.ZodOptional<z.ZodString>;
|
|
7
7
|
runner_instances: z.ZodArray<z.ZodObject<{
|
|
8
8
|
template_key: z.ZodOptional<z.ZodString>;
|
|
9
|
+
reservation_id: z.ZodOptional<z.ZodString>;
|
|
9
10
|
}, z.core.$strict>>;
|
|
10
11
|
}, z.core.$strict>;
|
|
11
12
|
export declare const createRunnerInstancesResponseSchema: z.ZodObject<{
|
|
@@ -34,6 +35,9 @@ export declare const runnerEnrollmentBodySchema: z.ZodObject<{
|
|
|
34
35
|
provider_kind: z.ZodString;
|
|
35
36
|
protocol_version: z.ZodString;
|
|
36
37
|
}, z.core.$strict>;
|
|
38
|
+
export declare const runnerEnrollmentResponseSchema: z.ZodObject<{
|
|
39
|
+
activation_token: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
37
41
|
export declare const attachRunnerControlProviderIdBodySchema: z.ZodObject<{
|
|
38
42
|
provider_runner_id: z.ZodString;
|
|
39
43
|
}, z.core.$strict>;
|
|
@@ -48,4 +52,5 @@ export type CreateRunnerInstancesBodyDto = z.infer<typeof createRunnerInstancesB
|
|
|
48
52
|
export type CreateRunnerInstancesResponseDto = z.infer<typeof createRunnerInstancesResponseSchema>;
|
|
49
53
|
export type RunnerBootstrapExchangeResponseDto = z.infer<typeof runnerBootstrapExchangeResponseSchema>;
|
|
50
54
|
export type RunnerEnrollmentBodyDto = z.infer<typeof runnerEnrollmentBodySchema>;
|
|
55
|
+
export type RunnerEnrollmentResponseDto = z.infer<typeof runnerEnrollmentResponseSchema>;
|
|
51
56
|
//# sourceMappingURL=runner-enrollment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-enrollment.d.ts","sourceRoot":"","sources":["../../src/schemas/runner-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,iCAAiC;;kBAEnC,CAAC;AACZ,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"runner-enrollment.d.ts","sourceRoot":"","sources":["../../src/schemas/runner-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,iCAAiC;;kBAEnC,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;;kBAejC,CAAC;AACZ,eAAO,MAAM,mCAAmC;;;;;iBAI9C,CAAC;AACH,eAAO,MAAM,qCAAqC;;;;iBAIhD,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;kBAO5B,CAAC;AACZ,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AACH,eAAO,MAAM,uCAAuC;;kBAEzC,CAAC;AACZ,eAAO,MAAM,oCAAoC;;iBAAkC,CAAC;AACpF,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACnG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -7,7 +7,8 @@ export const runnerBootstrapExchangeBodySchema = z.object({
|
|
|
7
7
|
export const createRunnerInstancesBodySchema = z.object({
|
|
8
8
|
provider_kind: z.string().min(1).max(64).optional(),
|
|
9
9
|
runner_instances: z.array(z.object({
|
|
10
|
-
template_key: z.string().min(1).max(255).optional()
|
|
10
|
+
template_key: z.string().min(1).max(255).optional(),
|
|
11
|
+
reservation_id: z.string().uuid().optional()
|
|
11
12
|
}).strict()).min(1).max(500)
|
|
12
13
|
}).strict();
|
|
13
14
|
export const createRunnerInstancesResponseSchema = z.object({
|
|
@@ -27,6 +28,9 @@ export const runnerEnrollmentBodySchema = z.object({
|
|
|
27
28
|
provider_kind: z.string().min(1).max(64),
|
|
28
29
|
protocol_version: z.string().min(1).max(64)
|
|
29
30
|
}).strict();
|
|
31
|
+
export const runnerEnrollmentResponseSchema = z.object({
|
|
32
|
+
activation_token: z.string().min(1).nullable()
|
|
33
|
+
});
|
|
30
34
|
export const attachRunnerControlProviderIdBodySchema = z.object({
|
|
31
35
|
provider_runner_id: z.string().min(1).max(255)
|
|
32
36
|
}).strict();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/runner-enrollment.ts"],"sourcesContent":["import {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const runnerBootstrapExchangeBodySchema = z\n .object({bootstrap_token: z.string().min(1)})\n .strict();\nexport const createRunnerInstancesBodySchema = z\n .object({\n provider_kind: z.string().min(1).max(64).optional(),\n runner_instances: z\n .array(z.object({template_key: z.string().min(1).max(255).optional()}).strict())\n .min(1)\n .max(500),\n })\n .strict();\nexport const createRunnerInstancesResponseSchema = z.object({\n runner_instances: z.array(\n z.object({runner_instance_id: z.string().uuid(), bootstrap_token: z.string().min(1)}),\n ),\n});\nexport const runnerBootstrapExchangeResponseSchema = z.object({\n runner_instance_id: z.string().uuid(),\n control_session_token: z.string().min(1),\n expires_at: z.string().datetime(),\n});\nexport const runnerEnrollmentBodySchema = z\n .object({\n labels: z.array(runnerLabelSchema).min(1).max(100),\n capabilities: runnerToolCapabilitiesSchema.optional(),\n provider_kind: z.string().min(1).max(64),\n protocol_version: z.string().min(1).max(64),\n })\n .strict();\nexport const attachRunnerControlProviderIdBodySchema = z\n .object({provider_runner_id: z.string().min(1).max(255)})\n .strict();\nexport const runnerControlHeartbeatResponseSchema = z.object({ok: z.literal(true)});\nexport const runnerAssignmentPollResponseSchema = z.object({\n activation_token: z.string().min(1).nullable(),\n});\n\nexport type RunnerBootstrapExchangeBodyDto = z.infer<typeof runnerBootstrapExchangeBodySchema>;\nexport type CreateRunnerInstancesBodyDto = z.infer<typeof createRunnerInstancesBodySchema>;\nexport type CreateRunnerInstancesResponseDto = z.infer<typeof createRunnerInstancesResponseSchema>;\nexport type RunnerBootstrapExchangeResponseDto = z.infer<\n typeof runnerBootstrapExchangeResponseSchema\n>;\nexport type RunnerEnrollmentBodyDto = z.infer<typeof runnerEnrollmentBodySchema>;\n"],"names":["z","runnerLabelSchema","runnerToolCapabilitiesSchema","runnerBootstrapExchangeBodySchema","object","bootstrap_token","string","min","strict","createRunnerInstancesBodySchema","provider_kind","max","optional","runner_instances","array","template_key","
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/runner-enrollment.ts"],"sourcesContent":["import {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const runnerBootstrapExchangeBodySchema = z\n .object({bootstrap_token: z.string().min(1)})\n .strict();\nexport const createRunnerInstancesBodySchema = z\n .object({\n provider_kind: z.string().min(1).max(64).optional(),\n runner_instances: z\n .array(\n z\n .object({\n template_key: z.string().min(1).max(255).optional(),\n reservation_id: z.string().uuid().optional(),\n })\n .strict(),\n )\n .min(1)\n .max(500),\n })\n .strict();\nexport const createRunnerInstancesResponseSchema = z.object({\n runner_instances: z.array(\n z.object({runner_instance_id: z.string().uuid(), bootstrap_token: z.string().min(1)}),\n ),\n});\nexport const runnerBootstrapExchangeResponseSchema = z.object({\n runner_instance_id: z.string().uuid(),\n control_session_token: z.string().min(1),\n expires_at: z.string().datetime(),\n});\nexport const runnerEnrollmentBodySchema = z\n .object({\n labels: z.array(runnerLabelSchema).min(1).max(100),\n capabilities: runnerToolCapabilitiesSchema.optional(),\n provider_kind: z.string().min(1).max(64),\n protocol_version: z.string().min(1).max(64),\n })\n .strict();\nexport const runnerEnrollmentResponseSchema = z.object({\n activation_token: z.string().min(1).nullable(),\n});\nexport const attachRunnerControlProviderIdBodySchema = z\n .object({provider_runner_id: z.string().min(1).max(255)})\n .strict();\nexport const runnerControlHeartbeatResponseSchema = z.object({ok: z.literal(true)});\nexport const runnerAssignmentPollResponseSchema = z.object({\n activation_token: z.string().min(1).nullable(),\n});\n\nexport type RunnerBootstrapExchangeBodyDto = z.infer<typeof runnerBootstrapExchangeBodySchema>;\nexport type CreateRunnerInstancesBodyDto = z.infer<typeof createRunnerInstancesBodySchema>;\nexport type CreateRunnerInstancesResponseDto = z.infer<typeof createRunnerInstancesResponseSchema>;\nexport type RunnerBootstrapExchangeResponseDto = z.infer<\n typeof runnerBootstrapExchangeResponseSchema\n>;\nexport type RunnerEnrollmentBodyDto = z.infer<typeof runnerEnrollmentBodySchema>;\nexport type RunnerEnrollmentResponseDto = z.infer<typeof runnerEnrollmentResponseSchema>;\n"],"names":["z","runnerLabelSchema","runnerToolCapabilitiesSchema","runnerBootstrapExchangeBodySchema","object","bootstrap_token","string","min","strict","createRunnerInstancesBodySchema","provider_kind","max","optional","runner_instances","array","template_key","reservation_id","uuid","createRunnerInstancesResponseSchema","runner_instance_id","runnerBootstrapExchangeResponseSchema","control_session_token","expires_at","datetime","runnerEnrollmentBodySchema","labels","capabilities","protocol_version","runnerEnrollmentResponseSchema","activation_token","nullable","attachRunnerControlProviderIdBodySchema","provider_runner_id","runnerControlHeartbeatResponseSchema","ok","literal","runnerAssignmentPollResponseSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,iBAAiB,QAAO,gBAAgB;AAChD,SAAQC,4BAA4B,QAAO,yBAAyB;AAEpE,OAAO,MAAMC,oCAAoCH,EAC9CI,MAAM,CAAC;IAACC,iBAAiBL,EAAEM,MAAM,GAAGC,GAAG,CAAC;AAAE,GAC1CC,MAAM,GAAG;AACZ,OAAO,MAAMC,kCAAkCT,EAC5CI,MAAM,CAAC;IACNM,eAAeV,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC,IAAIC,QAAQ;IACjDC,kBAAkBb,EACfc,KAAK,CACJd,EACGI,MAAM,CAAC;QACNW,cAAcf,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC,KAAKC,QAAQ;QACjDI,gBAAgBhB,EAAEM,MAAM,GAAGW,IAAI,GAAGL,QAAQ;IAC5C,GACCJ,MAAM,IAEVD,GAAG,CAAC,GACJI,GAAG,CAAC;AACT,GACCH,MAAM,GAAG;AACZ,OAAO,MAAMU,sCAAsClB,EAAEI,MAAM,CAAC;IAC1DS,kBAAkBb,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