@shipfox/api-runners-dto 12.2.0 → 12.4.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 +7 -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/schemas/assign-runner-instances.d.ts +2 -0
- package/dist/schemas/assign-runner-instances.d.ts.map +1 -1
- package/dist/schemas/assign-runner-instances.js +2 -0
- package/dist/schemas/assign-runner-instances.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/poll-demand.d.ts +1 -0
- package/dist/schemas/poll-demand.d.ts.map +1 -1
- package/dist/schemas/poll-demand.js +1 -0
- package/dist/schemas/poll-demand.js.map +1 -1
- package/dist/schemas/reconcile-runner-instances.d.ts +4 -0
- package/dist/schemas/reconcile-runner-instances.d.ts.map +1 -1
- package/dist/schemas/reconcile-runner-instances.js +3 -0
- package/dist/schemas/reconcile-runner-instances.js.map +1 -1
- package/dist/schemas/runner-enrollment.d.ts +2 -0
- package/dist/schemas/runner-enrollment.d.ts.map +1 -1
- package/dist/schemas/runner-enrollment.js +7 -2
- package/dist/schemas/runner-enrollment.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/schemas/assign-runner-instances.ts +3 -0
- package/src/schemas/index.ts +4 -0
- package/src/schemas/poll-demand.test.ts +1 -0
- package/src/schemas/poll-demand.ts +8 -0
- package/src/schemas/reconcile-runner-instances.test.ts +27 -3
- package/src/schemas/reconcile-runner-instances.ts +4 -0
- package/src/schemas/runner-enrollment.ts +9 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 18 files with swc (
|
|
2
|
+
Successfully compiled: 18 files with swc (228.64ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @shipfox/api-runners-dto
|
|
2
2
|
|
|
3
|
+
## 12.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9e16946: Runners are enrolled only when the reservation still has capacity, and partial-enrollment errors now report reservation shortfalls separately from launch grants.
|
|
8
|
+
- 4fa8526: Adds opt-in reconciliation data so provisioners can retry intended reservation assignments.
|
|
9
|
+
|
|
3
10
|
## 12.2.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type ActiveProvisionerDto, type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, type AdministratorProvisionerTokenDto, type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, administratorProvisionerTokenSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, type ClaimedJobResponseDto, type CreateAdministratorProvisionerTokenBodyDto, type CreateAdministratorProvisionerTokenResponseDto, type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, claimedJobResponseSchema, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, type DemandStatDto, demandStatSchema, type HeartbeatBodyDto, type HeartbeatResponseDto, heartbeatBodySchema, heartbeatResponseSchema, type InstallationProvisionerTokenStatus, installationProvisionerTokenStatusSchema, type ListActiveProvisionersResponseDto, type ListAdministratorProvisionerTokensQueryDto, type ListAdministratorProvisionerTokensResponseDto, type ListManualRegistrationTokensResponseDto, type ListProvisionerTokensResponseDto, type ListRunnerAdministratorInstancesQueryDto, type ListRunnerAdministratorInstancesResponseDto, listActiveProvisionersResponseSchema, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, 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 RevokeAdministratorProvisionerTokenBodyDto, type RevokeAdministratorProvisionerTokenResponseDto, type RevokeManualRegistrationTokenResponseDto, type RevokeProvisionerTokenResponseDto, RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, RUNNER_SESSION_EXHAUSTED_CODE, type RunnerAdministratorInstanceDto, type RunnerAssignmentPollQueryDto, 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, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema, runnerAssignmentPollQuerySchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema, } from '#schemas/index.js';
|
|
1
|
+
export { type ActiveProvisionerDto, type ActiveRunnerDto, type ActiveRunnerStateDto, type ActiveRunnersResponseDto, type AdministratorProvisionerTokenDto, type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, administratorProvisionerTokenSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, type ClaimedJobResponseDto, type CreateAdministratorProvisionerTokenBodyDto, type CreateAdministratorProvisionerTokenResponseDto, type CreateManualRegistrationTokenBodyDto, type CreateManualRegistrationTokenResponseDto, type CreateProvisionerTokenBodyDto, type CreateProvisionerTokenResponseDto, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, claimedJobResponseSchema, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, type DemandStatDto, demandStatSchema, type HeartbeatBodyDto, type HeartbeatResponseDto, heartbeatBodySchema, heartbeatResponseSchema, type InstallationProvisionerTokenStatus, installationProvisionerTokenStatusSchema, type ListActiveProvisionersResponseDto, type ListAdministratorProvisionerTokensQueryDto, type ListAdministratorProvisionerTokensResponseDto, type ListManualRegistrationTokensResponseDto, type ListProvisionerTokensResponseDto, type ListRunnerAdministratorInstancesQueryDto, type ListRunnerAdministratorInstancesResponseDto, listActiveProvisionersResponseSchema, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, 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, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE, RESERVATION_EXPIRED_ERROR_CODE, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledRunnerInstanceDto, type ReconcileRunnerInstancesBodyDto, type ReconcileRunnerInstancesResponseDto, type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, type ReportRunnerInstancesBodyDto, type ReportRunnerInstancesResponseDto, type ReservationGrantDto, type RevokeAdministratorProvisionerTokenBodyDto, type RevokeAdministratorProvisionerTokenResponseDto, type RevokeManualRegistrationTokenResponseDto, type RevokeProvisionerTokenResponseDto, RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE, RUNNER_SESSION_EXHAUSTED_CODE, type RunnerAdministratorInstanceDto, type RunnerAssignmentPollQueryDto, 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, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema, runnerAssignmentPollQuerySchema, 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,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,mCAAmC,EACnC,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,0CAA0C,EAC/C,KAAK,8CAA8C,EACnD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,wBAAwB,EACxB,6CAA6C,EAC7C,iDAAiD,EACjD,uCAAuC,EACvC,2CAA2C,EAC3C,gCAAgC,EAChC,oCAAoC,EACpC,+BAA+B,EAC/B,mCAAmC,EACnC,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,kCAAkC,EACvC,wCAAwC,EACxC,KA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AK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,sCAAsC,EACtC,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,6CAA6C,EAC7C,iDAAiD,EACjD,2CAA2C,EAC3C,oCAAoC,EACpC,2CAA2C,EAC3C,wCAAwC,EACxC,iCAAiC,EACjC,uCAAuC,EACvC,6CAA6C,EAC7C,+BAA+B,EAC/B,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, administratorProvisionerTokenSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, claimedJobResponseSchema, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, demandStatSchema, heartbeatBodySchema, heartbeatResponseSchema, installationProvisionerTokenStatusSchema, listActiveProvisionersResponseSchema, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, 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_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, RUNNER_SESSION_EXHAUSTED_CODE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema, runnerAssignmentPollQuerySchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, runnerHarnessToolCapabilitiesSchema, runnerToolCapabilitiesSchema } from '#schemas/index.js';
|
|
1
|
+
export { activeProvisionerDtoSchema, activeRunnerDtoSchema, activeRunnerStateSchema, activeRunnersResponseSchema, administratorProvisionerTokenSchema, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, attachRunnerControlProviderIdBodySchema, claimedJobResponseSchema, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, demandStatSchema, heartbeatBodySchema, heartbeatResponseSchema, installationProvisionerTokenStatusSchema, listActiveProvisionersResponseSchema, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, listManualRegistrationTokensResponseSchema, listProvisionerTokensResponseSchema, listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, 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, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE, RESERVATION_EXPIRED_ERROR_CODE, RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE, RUNNER_SESSION_EXHAUSTED_CODE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, registerRunnerBodySchema, registerRunnerResponseSchema, reportRunnerInstancesBodySchema, reportRunnerInstancesResponseSchema, reservationGrantSchema, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema, revokeManualRegistrationTokenResponseSchema, revokeProvisionerTokenResponseSchema, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema, runnerAssignmentPollQuerySchema, 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 AdministratorProvisionerTokenDto,\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n activeProvisionerDtoSchema,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n administratorProvisionerTokenSchema,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n attachRunnerControlProviderIdBodySchema,\n type ClaimedJobResponseDto,\n type CreateAdministratorProvisionerTokenBodyDto,\n type CreateAdministratorProvisionerTokenResponseDto,\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n claimedJobResponseSchema,\n createAdministratorProvisionerTokenBodySchema,\n createAdministratorProvisionerTokenResponseSchema,\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 InstallationProvisionerTokenStatus,\n installationProvisionerTokenStatusSchema,\n type ListActiveProvisionersResponseDto,\n type ListAdministratorProvisionerTokensQueryDto,\n type ListAdministratorProvisionerTokensResponseDto,\n type ListManualRegistrationTokensResponseDto,\n type ListProvisionerTokensResponseDto,\n type ListRunnerAdministratorInstancesQueryDto,\n type ListRunnerAdministratorInstancesResponseDto,\n listActiveProvisionersResponseSchema,\n listAdministratorProvisionerTokensQuerySchema,\n listAdministratorProvisionerTokensResponseSchema,\n listManualRegistrationTokensResponseSchema,\n listProvisionerTokensResponseSchema,\n listRunnerAdministratorInstancesQuerySchema,\n listRunnerAdministratorInstancesResponseSchema,\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 RevokeAdministratorProvisionerTokenBodyDto,\n type RevokeAdministratorProvisionerTokenResponseDto,\n type RevokeManualRegistrationTokenResponseDto,\n type RevokeProvisionerTokenResponseDto,\n RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS,\n RUNNER_SESSION_EXHAUSTED_CODE,\n type RunnerAdministratorInstanceDto,\n type RunnerAssignmentPollQueryDto,\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 revokeAdministratorProvisionerTokenBodySchema,\n revokeAdministratorProvisionerTokenResponseSchema,\n revokeManualRegistrationTokenResponseSchema,\n revokeProvisionerTokenResponseSchema,\n runnerAdministratorAssignmentPresenceSchema,\n runnerAdministratorEnrollmentStateSchema,\n runnerAdministratorInstanceSchema,\n runnerAdministratorLifecycleStateSchema,\n runnerAdministratorReconciliationStatusSchema,\n runnerAssignmentPollQuerySchema,\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","administratorProvisionerTokenSchema","assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","claimedJobResponseSchema","createAdministratorProvisionerTokenBodySchema","createAdministratorProvisionerTokenResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","demandStatSchema","heartbeatBodySchema","heartbeatResponseSchema","installationProvisionerTokenStatusSchema","listActiveProvisionersResponseSchema","listAdministratorProvisionerTokensQuerySchema","listAdministratorProvisionerTokensResponseSchema","listManualRegistrationTokensResponseSchema","listProvisionerTokensResponseSchema","listRunnerAdministratorInstancesQuerySchema","listRunnerAdministratorInstancesResponseSchema","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_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS","RUNNER_SESSION_EXHAUSTED_CODE","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","reservationGrantSchema","revokeAdministratorProvisionerTokenBodySchema","revokeAdministratorProvisionerTokenResponseSchema","revokeManualRegistrationTokenResponseSchema","revokeProvisionerTokenResponseSchema","runnerAdministratorAssignmentPresenceSchema","runnerAdministratorEnrollmentStateSchema","runnerAdministratorInstanceSchema","runnerAdministratorLifecycleStateSchema","runnerAdministratorReconciliationStatusSchema","runnerAssignmentPollQuerySchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema","RUNNER_JOB_CLAIMED","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","runnerJobQueuedEventSchema","runnersEventSchemas"],"mappings":"AAAA,SAQEA,0BAA0B,EAC1BC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,mCAAmC,EACnCC,+BAA+B,EAC/BC,mCAAmC,EACnCC,uCAAuC,EAUvCC,wBAAwB,EACxBC,6CAA6C,EAC7CC,iDAAiD,EACjDC,uCAAuC,EACvCC,2CAA2C,EAC3CC,gCAAgC,EAChCC,oCAAoC,EACpCC,+BAA+B,EAC/BC,mCAAmC,EAEnCC,gBAAgB,EAGhBC,mBAAmB,EACnBC,uBAAuB,EAEvBC,wCAAwC,EAQxCC,oCAAoC,EACpCC,6CAA6C,EAC7CC,gDAAgD,EAChDC,0CAA0C,EAC1CC,mCAAmC,EACnCC,2CAA2C,EAC3CC,8CAA8C,EAC9CC,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,EAezBC,2CAA2C,EAC3CC,6BAA6B,EAW7BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,sCAAsC,EACtCC,wBAAwB,EACxBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,mCAAmC,EACnCC,sBAAsB,EACtBC,6CAA6C,EAC7CC,iDAAiD,EACjDC,2CAA2C,EAC3CC,oCAAoC,EACpCC,2CAA2C,EAC3CC,wCAAwC,EACxCC,iCAAiC,EACjCC,uCAAuC,EACvCC,6CAA6C,EAC7CC,+BAA+B,EAC/BC,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"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type ActiveProvisionerDto,\n type ActiveRunnerDto,\n type ActiveRunnerStateDto,\n type ActiveRunnersResponseDto,\n type AdministratorProvisionerTokenDto,\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n activeProvisionerDtoSchema,\n activeRunnerDtoSchema,\n activeRunnerStateSchema,\n activeRunnersResponseSchema,\n administratorProvisionerTokenSchema,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n attachRunnerControlProviderIdBodySchema,\n type ClaimedJobResponseDto,\n type CreateAdministratorProvisionerTokenBodyDto,\n type CreateAdministratorProvisionerTokenResponseDto,\n type CreateManualRegistrationTokenBodyDto,\n type CreateManualRegistrationTokenResponseDto,\n type CreateProvisionerTokenBodyDto,\n type CreateProvisionerTokenResponseDto,\n type CreateRunnerInstancesBodyDto,\n type CreateRunnerInstancesResponseDto,\n claimedJobResponseSchema,\n createAdministratorProvisionerTokenBodySchema,\n createAdministratorProvisionerTokenResponseSchema,\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 InstallationProvisionerTokenStatus,\n installationProvisionerTokenStatusSchema,\n type ListActiveProvisionersResponseDto,\n type ListAdministratorProvisionerTokensQueryDto,\n type ListAdministratorProvisionerTokensResponseDto,\n type ListManualRegistrationTokensResponseDto,\n type ListProvisionerTokensResponseDto,\n type ListRunnerAdministratorInstancesQueryDto,\n type ListRunnerAdministratorInstancesResponseDto,\n listActiveProvisionersResponseSchema,\n listAdministratorProvisionerTokensQuerySchema,\n listAdministratorProvisionerTokensResponseSchema,\n listManualRegistrationTokensResponseSchema,\n listProvisionerTokensResponseSchema,\n listRunnerAdministratorInstancesQuerySchema,\n listRunnerAdministratorInstancesResponseSchema,\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 RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER,\n RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE,\n RESERVATION_EXPIRED_ERROR_CODE,\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 RevokeAdministratorProvisionerTokenBodyDto,\n type RevokeAdministratorProvisionerTokenResponseDto,\n type RevokeManualRegistrationTokenResponseDto,\n type RevokeProvisionerTokenResponseDto,\n RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS,\n RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE,\n RUNNER_SESSION_EXHAUSTED_CODE,\n type RunnerAdministratorInstanceDto,\n type RunnerAssignmentPollQueryDto,\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 revokeAdministratorProvisionerTokenBodySchema,\n revokeAdministratorProvisionerTokenResponseSchema,\n revokeManualRegistrationTokenResponseSchema,\n revokeProvisionerTokenResponseSchema,\n runnerAdministratorAssignmentPresenceSchema,\n runnerAdministratorEnrollmentStateSchema,\n runnerAdministratorInstanceSchema,\n runnerAdministratorLifecycleStateSchema,\n runnerAdministratorReconciliationStatusSchema,\n runnerAssignmentPollQuerySchema,\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","administratorProvisionerTokenSchema","assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","attachRunnerControlProviderIdBodySchema","claimedJobResponseSchema","createAdministratorProvisionerTokenBodySchema","createAdministratorProvisionerTokenResponseSchema","createManualRegistrationTokenBodySchema","createManualRegistrationTokenResponseSchema","createProvisionerTokenBodySchema","createProvisionerTokenResponseSchema","createRunnerInstancesBodySchema","createRunnerInstancesResponseSchema","demandStatSchema","heartbeatBodySchema","heartbeatResponseSchema","installationProvisionerTokenStatusSchema","listActiveProvisionersResponseSchema","listAdministratorProvisionerTokensQuerySchema","listAdministratorProvisionerTokensResponseSchema","listManualRegistrationTokensResponseSchema","listProvisionerTokensResponseSchema","listRunnerAdministratorInstancesQuerySchema","listRunnerAdministratorInstancesResponseSchema","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","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE","RESERVATION_EXPIRED_ERROR_CODE","RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS","RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE","RUNNER_SESSION_EXHAUSTED_CODE","reconcileDesiredIntentSchema","reconciledBoundJobSchema","reconciledRunnerInstanceSchema","reconcileRunnerInstancesBodySchema","reconcileRunnerInstancesResponseSchema","registerRunnerBodySchema","registerRunnerResponseSchema","reportRunnerInstancesBodySchema","reportRunnerInstancesResponseSchema","reservationGrantSchema","revokeAdministratorProvisionerTokenBodySchema","revokeAdministratorProvisionerTokenResponseSchema","revokeManualRegistrationTokenResponseSchema","revokeProvisionerTokenResponseSchema","runnerAdministratorAssignmentPresenceSchema","runnerAdministratorEnrollmentStateSchema","runnerAdministratorInstanceSchema","runnerAdministratorLifecycleStateSchema","runnerAdministratorReconciliationStatusSchema","runnerAssignmentPollQuerySchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema","RUNNER_JOB_CLAIMED","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_QUEUED","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","runnerJobQueuedEventSchema","runnersEventSchemas"],"mappings":"AAAA,SAQEA,0BAA0B,EAC1BC,qBAAqB,EACrBC,uBAAuB,EACvBC,2BAA2B,EAC3BC,mCAAmC,EACnCC,+BAA+B,EAC/BC,mCAAmC,EACnCC,uCAAuC,EAUvCC,wBAAwB,EACxBC,6CAA6C,EAC7CC,iDAAiD,EACjDC,uCAAuC,EACvCC,2CAA2C,EAC3CC,gCAAgC,EAChCC,oCAAoC,EACpCC,+BAA+B,EAC/BC,mCAAmC,EAEnCC,gBAAgB,EAGhBC,mBAAmB,EACnBC,uBAAuB,EAEvBC,wCAAwC,EAQxCC,oCAAoC,EACpCC,6CAA6C,EAC7CC,gDAAgD,EAChDC,0CAA0C,EAC1CC,mCAAmC,EACnCC,2CAA2C,EAC3CC,8CAA8C,EAC9CC,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,EACzBC,sDAAsD,EACtDC,4DAA4D,EAC5DC,8BAA8B,EAe9BC,2CAA2C,EAC3CC,yCAAyC,EACzCC,6BAA6B,EAW7BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,sCAAsC,EACtCC,wBAAwB,EACxBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,mCAAmC,EACnCC,sBAAsB,EACtBC,6CAA6C,EAC7CC,iDAAiD,EACjDC,2CAA2C,EAC3CC,oCAAoC,EACpCC,2CAA2C,EAC3CC,wCAAwC,EACxCC,iCAAiC,EACjCC,uCAAuC,EACvCC,6CAA6C,EAC7CC,+BAA+B,EAC/BC,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"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const RESERVATION_EXPIRED_ERROR_CODE = "reservation-expired";
|
|
3
|
+
export declare const RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE = "runner-instance-not-assignable";
|
|
2
4
|
export declare const assignRunnerInstancesBodySchema: z.ZodObject<{
|
|
3
5
|
reservation_id: z.ZodString;
|
|
4
6
|
runner_instance_ids: z.ZodArray<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-runner-instances.d.ts","sourceRoot":"","sources":["../../src/schemas/assign-runner-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,+BAA+B;;;kBASxC,CAAC;AAEL,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,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"}
|
|
1
|
+
{"version":3,"file":"assign-runner-instances.d.ts","sourceRoot":"","sources":["../../src/schemas/assign-runner-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AACpE,eAAO,MAAM,yCAAyC,mCAAmC,CAAC;AAE1F,eAAO,MAAM,+BAA+B;;;kBASxC,CAAC;AAEL,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,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"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export const RESERVATION_EXPIRED_ERROR_CODE = 'reservation-expired';
|
|
3
|
+
export const RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE = 'runner-instance-not-assignable';
|
|
2
4
|
export const assignRunnerInstancesBodySchema = z.object({
|
|
3
5
|
reservation_id: z.string().uuid(),
|
|
4
6
|
runner_instance_ids: z.array(z.string().uuid()).min(1).max(1000)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/assign-runner-instances.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const assignRunnerInstancesBodySchema = z\n .object({\n reservation_id: z.string().uuid(),\n runner_instance_ids: z.array(z.string().uuid()).min(1).max(1000),\n })\n .strict()\n .refine((body) => new Set(body.runner_instance_ids).size === body.runner_instance_ids.length, {\n message: 'runner_instance_ids values must be unique',\n path: ['runner_instance_ids'],\n });\n\nexport const assignRunnerInstancesResponseSchema = z.object({\n runner_instance_ids: z.array(z.string().uuid()),\n});\n\nexport type AssignRunnerInstancesBodyDto = z.infer<typeof assignRunnerInstancesBodySchema>;\nexport type AssignRunnerInstancesResponseDto = z.infer<typeof assignRunnerInstancesResponseSchema>;\n"],"names":["z","assignRunnerInstancesBodySchema","object","reservation_id","string","uuid","runner_instance_ids","array","min","max","strict","refine","body","Set","size","length","message","path","assignRunnerInstancesResponseSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/assign-runner-instances.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const RESERVATION_EXPIRED_ERROR_CODE = 'reservation-expired';\nexport const RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE = 'runner-instance-not-assignable';\n\nexport const assignRunnerInstancesBodySchema = z\n .object({\n reservation_id: z.string().uuid(),\n runner_instance_ids: z.array(z.string().uuid()).min(1).max(1000),\n })\n .strict()\n .refine((body) => new Set(body.runner_instance_ids).size === body.runner_instance_ids.length, {\n message: 'runner_instance_ids values must be unique',\n path: ['runner_instance_ids'],\n });\n\nexport const assignRunnerInstancesResponseSchema = z.object({\n runner_instance_ids: z.array(z.string().uuid()),\n});\n\nexport type AssignRunnerInstancesBodyDto = z.infer<typeof assignRunnerInstancesBodySchema>;\nexport type AssignRunnerInstancesResponseDto = z.infer<typeof assignRunnerInstancesResponseSchema>;\n"],"names":["z","RESERVATION_EXPIRED_ERROR_CODE","RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE","assignRunnerInstancesBodySchema","object","reservation_id","string","uuid","runner_instance_ids","array","min","max","strict","refine","body","Set","size","length","message","path","assignRunnerInstancesResponseSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,iCAAiC,sBAAsB;AACpE,OAAO,MAAMC,4CAA4C,iCAAiC;AAE1F,OAAO,MAAMC,kCAAkCH,EAC5CI,MAAM,CAAC;IACNC,gBAAgBL,EAAEM,MAAM,GAAGC,IAAI;IAC/BC,qBAAqBR,EAAES,KAAK,CAACT,EAAEM,MAAM,GAAGC,IAAI,IAAIG,GAAG,CAAC,GAAGC,GAAG,CAAC;AAC7D,GACCC,MAAM,GACNC,MAAM,CAAC,CAACC,OAAS,IAAIC,IAAID,KAAKN,mBAAmB,EAAEQ,IAAI,KAAKF,KAAKN,mBAAmB,CAACS,MAAM,EAAE;IAC5FC,SAAS;IACTC,MAAM;QAAC;KAAsB;AAC/B,GAAG;AAEL,OAAO,MAAMC,sCAAsCpB,EAAEI,MAAM,CAAC;IAC1DI,qBAAqBR,EAAES,KAAK,CAACT,EAAEM,MAAM,GAAGC,IAAI;AAC9C,GAAG"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { type AdministratorProvisionerTokenDto, administratorProvisionerTokenSchema, type CreateAdministratorProvisionerTokenBodyDto, type CreateAdministratorProvisionerTokenResponseDto, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, type InstallationProvisionerTokenStatus, installationProvisionerTokenStatusSchema, type ListAdministratorProvisionerTokensQueryDto, type ListAdministratorProvisionerTokensResponseDto, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, type RevokeAdministratorProvisionerTokenBodyDto, type RevokeAdministratorProvisionerTokenResponseDto, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema, } from './admin-provisioner-token.js';
|
|
2
2
|
export { type ListRunnerAdministratorInstancesQueryDto, type ListRunnerAdministratorInstancesResponseDto, listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, type RunnerAdministratorInstanceDto, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema, } from './admin-runner-instances.js';
|
|
3
|
-
export { type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, } from './assign-runner-instances.js';
|
|
3
|
+
export { type AssignRunnerInstancesBodyDto, type AssignRunnerInstancesResponseDto, assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, RESERVATION_EXPIRED_ERROR_CODE, RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE, } from './assign-runner-instances.js';
|
|
4
4
|
export { type ClaimedJobResponseDto, claimedJobResponseSchema, RUNNER_SESSION_EXHAUSTED_CODE, } from './claim-job.js';
|
|
5
5
|
export { type HeartbeatBodyDto, type HeartbeatResponseDto, heartbeatBodySchema, heartbeatResponseSchema, } from './heartbeat.js';
|
|
6
6
|
export { type ActiveProvisionerDto, activeProvisionerDtoSchema, type ListActiveProvisionersResponseDto, listActiveProvisionersResponseSchema, } from './list-active-provisioners.js';
|
|
7
7
|
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';
|
|
8
8
|
export { type DemandStatDto, demandStatSchema, type PollDemandBodyDto, type PollDemandResponseDto, type PollDemandTemplateDto, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, type ReservationGrantDto, reservationGrantSchema, } from './poll-demand.js';
|
|
9
9
|
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';
|
|
10
|
-
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';
|
|
10
|
+
export { MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE, type ReconcileDesiredIntentDto, type ReconciledBoundJobDto, type ReconciledRunnerInstanceDto, type ReconcileRunnerInstancesBodyDto, type ReconcileRunnerInstancesResponseDto, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema, } from './reconcile-runner-instances.js';
|
|
11
11
|
export { type RegisterRunnerBodyDto, type RegisterRunnerResponseDto, registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema, } from './register.js';
|
|
12
12
|
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';
|
|
13
13
|
export { attachRunnerControlProviderIdBodySchema, type CreateRunnerInstancesBodyDto, type CreateRunnerInstancesResponseDto, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, type RunnerAssignmentPollQueryDto, type RunnerBootstrapExchangeBodyDto, type RunnerBootstrapExchangeResponseDto, type RunnerEnrollmentBodyDto, type RunnerEnrollmentResponseDto, runnerAssignmentPollQuerySchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema, } from './runner-enrollment.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCAAgC,EACrC,mCAAmC,EACnC,KAAK,0CAA0C,EAC/C,KAAK,8CAA8C,EACnD,6CAA6C,EAC7C,iDAAiD,EACjD,KAAK,kCAAkC,EACvC,wCAAwC,EACxC,KAAK,0CAA0C,EAC/C,KAAK,6CAA6C,EAClD,6CAA6C,EAC7C,gDAAgD,EAChD,KAAK,0CAA0C,EAC/C,KAAK,8CAA8C,EACnD,6CAA6C,EAC7C,iDAAiD,GAClD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,2CAA2C,EAChD,2CAA2C,EAC3C,8CAA8C,EAC9C,KAAK,8BAA8B,EACnC,2CAA2C,EAC3C,wCAAwC,EACxC,iCAAiC,EACjC,uCAAuC,EACvC,6CAA6C,GAC9C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,+BAA+B,EAC/B,mCAAmC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCA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EACrC,+BAA+B,EAC/B,mCAAmC,EACnC,2CAA2C,EAC3C,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,+BAA+B,EAC/B,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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { administratorProvisionerTokenSchema, createAdministratorProvisionerTokenBodySchema, createAdministratorProvisionerTokenResponseSchema, installationProvisionerTokenStatusSchema, listAdministratorProvisionerTokensQuerySchema, listAdministratorProvisionerTokensResponseSchema, revokeAdministratorProvisionerTokenBodySchema, revokeAdministratorProvisionerTokenResponseSchema } from './admin-provisioner-token.js';
|
|
2
2
|
export { listRunnerAdministratorInstancesQuerySchema, listRunnerAdministratorInstancesResponseSchema, runnerAdministratorAssignmentPresenceSchema, runnerAdministratorEnrollmentStateSchema, runnerAdministratorInstanceSchema, runnerAdministratorLifecycleStateSchema, runnerAdministratorReconciliationStatusSchema } from './admin-runner-instances.js';
|
|
3
|
-
export { assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema } from './assign-runner-instances.js';
|
|
3
|
+
export { assignRunnerInstancesBodySchema, assignRunnerInstancesResponseSchema, RESERVATION_EXPIRED_ERROR_CODE, RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE } from './assign-runner-instances.js';
|
|
4
4
|
export { claimedJobResponseSchema, RUNNER_SESSION_EXHAUSTED_CODE } from './claim-job.js';
|
|
5
5
|
export { heartbeatBodySchema, heartbeatResponseSchema } from './heartbeat.js';
|
|
6
6
|
export { activeProvisionerDtoSchema, listActiveProvisionersResponseSchema } from './list-active-provisioners.js';
|
|
7
7
|
export { createManualRegistrationTokenBodySchema, createManualRegistrationTokenResponseSchema, listManualRegistrationTokensResponseSchema, MAX_MANUAL_REGISTRATION_TOKEN_TTL_SECONDS, manualRegistrationTokenDtoSchema, revokeManualRegistrationTokenResponseSchema } from './manual-registration-token.js';
|
|
8
8
|
export { demandStatSchema, pollDemandBodySchema, pollDemandResponseSchema, pollDemandTemplateSchema, reservationGrantSchema } from './poll-demand.js';
|
|
9
9
|
export { createProvisionerTokenBodySchema, createProvisionerTokenResponseSchema, listProvisionerTokensResponseSchema, MAX_PROVISIONER_TOKEN_TTL_SECONDS, provisionerIdentityResponseSchema, provisionerTokenDtoSchema, revokeProvisionerTokenResponseSchema } from './provisioner-token.js';
|
|
10
|
-
export { MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema } from './reconcile-runner-instances.js';
|
|
10
|
+
export { MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH, MAX_RECONCILE_OBSERVED_RUNNERS, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER, RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE, reconcileDesiredIntentSchema, reconciledBoundJobSchema, reconciledRunnerInstanceSchema, reconcileRunnerInstancesBodySchema, reconcileRunnerInstancesResponseSchema } from './reconcile-runner-instances.js';
|
|
11
11
|
export { registerRunnerBodySchema, registerRunnerResponseSchema, runnerLabelSchema } from './register.js';
|
|
12
12
|
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';
|
|
13
13
|
export { attachRunnerControlProviderIdBodySchema, createRunnerInstancesBodySchema, createRunnerInstancesResponseSchema, RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS, runnerAssignmentPollQuerySchema, runnerAssignmentPollResponseSchema, runnerBootstrapExchangeBodySchema, runnerBootstrapExchangeResponseSchema, runnerControlHeartbeatResponseSchema, runnerEnrollmentBodySchema, runnerEnrollmentResponseSchema } from './runner-enrollment.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AdministratorProvisionerTokenDto,\n administratorProvisionerTokenSchema,\n type CreateAdministratorProvisionerTokenBodyDto,\n type CreateAdministratorProvisionerTokenResponseDto,\n createAdministratorProvisionerTokenBodySchema,\n createAdministratorProvisionerTokenResponseSchema,\n type InstallationProvisionerTokenStatus,\n installationProvisionerTokenStatusSchema,\n type ListAdministratorProvisionerTokensQueryDto,\n type ListAdministratorProvisionerTokensResponseDto,\n listAdministratorProvisionerTokensQuerySchema,\n listAdministratorProvisionerTokensResponseSchema,\n type RevokeAdministratorProvisionerTokenBodyDto,\n type RevokeAdministratorProvisionerTokenResponseDto,\n revokeAdministratorProvisionerTokenBodySchema,\n revokeAdministratorProvisionerTokenResponseSchema,\n} from './admin-provisioner-token.js';\nexport {\n type ListRunnerAdministratorInstancesQueryDto,\n type ListRunnerAdministratorInstancesResponseDto,\n listRunnerAdministratorInstancesQuerySchema,\n listRunnerAdministratorInstancesResponseSchema,\n type RunnerAdministratorInstanceDto,\n runnerAdministratorAssignmentPresenceSchema,\n runnerAdministratorEnrollmentStateSchema,\n runnerAdministratorInstanceSchema,\n runnerAdministratorLifecycleStateSchema,\n runnerAdministratorReconciliationStatusSchema,\n} from './admin-runner-instances.js';\nexport {\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 RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS,\n type RunnerAssignmentPollQueryDto,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n type RunnerEnrollmentResponseDto,\n runnerAssignmentPollQuerySchema,\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":["administratorProvisionerTokenSchema","createAdministratorProvisionerTokenBodySchema","createAdministratorProvisionerTokenResponseSchema","installationProvisionerTokenStatusSchema","listAdministratorProvisionerTokensQuerySchema","listAdministratorProvisionerTokensResponseSchema","revokeAdministratorProvisionerTokenBodySchema","revokeAdministratorProvisionerTokenResponseSchema","listRunnerAdministratorInstancesQuerySchema","listRunnerAdministratorInstancesResponseSchema","runnerAdministratorAssignmentPresenceSchema","runnerAdministratorEnrollmentStateSchema","runnerAdministratorInstanceSchema","runnerAdministratorLifecycleStateSchema","runnerAdministratorReconciliationStatusSchema","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","RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS","runnerAssignmentPollQuerySchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessToolCapabilitiesSchema","runnerToolCapabilitiesSchema"],"mappings":"AAAA,SAEEA,mCAAmC,EAGnCC,6CAA6C,EAC7CC,iDAAiD,EAEjDC,wCAAwC,EAGxCC,6CAA6C,EAC7CC,gDAAgD,EAGhDC,6CAA6C,EAC7CC,iDAAiD,QAC5C,+BAA+B;AACtC,SAGEC,2CAA2C,EAC3CC,8CAA8C,EAE9CC,2CAA2C,EAC3CC,wCAAwC,EACxCC,iCAAiC,EACjCC,uCAAuC,EACvCC,6CAA6C,QACxC,8BAA8B;AACrC,SAGEC,+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,EACnCC,2CAA2C,EAM3CC,+BAA+B,EAC/BC,kCAAkC,EAClCC,iCAAiC,EACjCC,qCAAqC,EACrCC,oCAAoC,EACpCC,0BAA0B,EAC1BC,8BAA8B,QACzB,yBAAyB;AAChC,SAGEC,mCAAmC,EACnCC,4BAA4B,QACvB,yBAAyB"}
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AdministratorProvisionerTokenDto,\n administratorProvisionerTokenSchema,\n type CreateAdministratorProvisionerTokenBodyDto,\n type CreateAdministratorProvisionerTokenResponseDto,\n createAdministratorProvisionerTokenBodySchema,\n createAdministratorProvisionerTokenResponseSchema,\n type InstallationProvisionerTokenStatus,\n installationProvisionerTokenStatusSchema,\n type ListAdministratorProvisionerTokensQueryDto,\n type ListAdministratorProvisionerTokensResponseDto,\n listAdministratorProvisionerTokensQuerySchema,\n listAdministratorProvisionerTokensResponseSchema,\n type RevokeAdministratorProvisionerTokenBodyDto,\n type RevokeAdministratorProvisionerTokenResponseDto,\n revokeAdministratorProvisionerTokenBodySchema,\n revokeAdministratorProvisionerTokenResponseSchema,\n} from './admin-provisioner-token.js';\nexport {\n type ListRunnerAdministratorInstancesQueryDto,\n type ListRunnerAdministratorInstancesResponseDto,\n listRunnerAdministratorInstancesQuerySchema,\n listRunnerAdministratorInstancesResponseSchema,\n type RunnerAdministratorInstanceDto,\n runnerAdministratorAssignmentPresenceSchema,\n runnerAdministratorEnrollmentStateSchema,\n runnerAdministratorInstanceSchema,\n runnerAdministratorLifecycleStateSchema,\n runnerAdministratorReconciliationStatusSchema,\n} from './admin-runner-instances.js';\nexport {\n type AssignRunnerInstancesBodyDto,\n type AssignRunnerInstancesResponseDto,\n assignRunnerInstancesBodySchema,\n assignRunnerInstancesResponseSchema,\n RESERVATION_EXPIRED_ERROR_CODE,\n RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE,\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 RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER,\n RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE,\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 RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS,\n type RunnerAssignmentPollQueryDto,\n type RunnerBootstrapExchangeBodyDto,\n type RunnerBootstrapExchangeResponseDto,\n type RunnerEnrollmentBodyDto,\n type RunnerEnrollmentResponseDto,\n runnerAssignmentPollQuerySchema,\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":["administratorProvisionerTokenSchema","createAdministratorProvisionerTokenBodySchema","createAdministratorProvisionerTokenResponseSchema","installationProvisionerTokenStatusSchema","listAdministratorProvisionerTokensQuerySchema","listAdministratorProvisionerTokensResponseSchema","revokeAdministratorProvisionerTokenBodySchema","revokeAdministratorProvisionerTokenResponseSchema","listRunnerAdministratorInstancesQuerySchema","listRunnerAdministratorInstancesResponseSchema","runnerAdministratorAssignmentPresenceSchema","runnerAdministratorEnrollmentStateSchema","runnerAdministratorInstanceSchema","runnerAdministratorLifecycleStateSchema","runnerAdministratorReconciliationStatusSchema","assignRunnerInstancesBodySchema","assignRunnerInstancesResponseSchema","RESERVATION_EXPIRED_ERROR_CODE","RUNNER_INSTANCE_NOT_ASSIGNABLE_ERROR_CODE","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","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE","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","RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS","runnerAssignmentPollQuerySchema","runnerAssignmentPollResponseSchema","runnerBootstrapExchangeBodySchema","runnerBootstrapExchangeResponseSchema","runnerControlHeartbeatResponseSchema","runnerEnrollmentBodySchema","runnerEnrollmentResponseSchema","runnerHarnessTo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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,EACnCC,2CAA2C,EAM3CC,+BAA+B,EAC/BC,kCAAkC,EAClCC,iCAAiC,EACjCC,qCAAqC,EACrCC,oCAAoC,EACpCC,0BAA0B,EAC1BC,8BAA8B,QACzB,yBAAyB;AAChC,SAGEC,mCAAmC,EACnCC,4BAA4B,QACvB,yBAAyB"}
|
|
@@ -47,6 +47,7 @@ export declare const pollDemandResponseSchema: z.ZodObject<{
|
|
|
47
47
|
count: z.ZodNumber;
|
|
48
48
|
expires_at: z.ZodString;
|
|
49
49
|
}, z.core.$strip>>;
|
|
50
|
+
newly_reserved_count: z.ZodOptional<z.ZodNumber>;
|
|
50
51
|
terminate_provider_runner_ids: z.ZodArray<z.ZodString>;
|
|
51
52
|
}, z.core.$strip>;
|
|
52
53
|
export type PollDemandTemplateDto = z.infer<typeof pollDemandTemplateSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll-demand.d.ts","sourceRoot":"","sources":["../../src/schemas/poll-demand.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;iBAY3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"poll-demand.d.ts","sourceRoot":"","sources":["../../src/schemas/poll-demand.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;iBAY3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;iBAYnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC7D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -31,6 +31,7 @@ export const reservationGrantSchema = z.object({
|
|
|
31
31
|
export const pollDemandResponseSchema = z.object({
|
|
32
32
|
stats: z.array(demandStatSchema),
|
|
33
33
|
reservations: z.array(reservationGrantSchema),
|
|
34
|
+
newly_reserved_count: z.number().int().min(0).optional().describe('Reservation units created by this poll, including units satisfied by adopted runners.'),
|
|
34
35
|
terminate_provider_runner_ids: z.array(z.string())
|
|
35
36
|
});
|
|
36
37
|
|
|
@@ -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 reservation_ttl_seconds: z.number().int().min(1).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","reservation_ttl_seconds","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,2BAA2B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K,MAAM,GAAGkB,IAAI,GAAGN,QAAQ;IACxCV,QAAQP,EAAEQ,KAAK,CAACR,EAAEK,MAAM;IACxB0B,OAAO/B,EAAEW,MAAM,GAAGC,GAAG,GAAGoB,QAAQ;IAChCC,YAAYjC,EAAEK,MAAM,GAAGuB,QAAQ;AACjC,GAAG;AAEH,OAAO,MAAMM,2BAA2BlC,EAAEG,MAAM,CAAC;IAC/CgC,OAAOnC,EAAEQ,KAAK,CAACa;IACfe,cAAcpC,EAAEQ,KAAK,CAACqB;IACtBQ,+BAA+
|
|
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 reservation_ttl_seconds: z.number().int().min(1).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 newly_reserved_count: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\n 'Reservation units created by this poll, including units satisfied by adopted runners.',\n ),\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","reservation_ttl_seconds","max_reservations","templates","demandStatSchema","workspace_id","uuid","queued","reserved","describe","oldest_queued_at","datetime","reservationGrantSchema","reservation_id","count","positive","expires_at","pollDemandResponseSchema","stats","reservations","newly_reserved_count","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,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
|
import { z } from 'zod';
|
|
2
2
|
export declare const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;
|
|
3
3
|
export declare const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;
|
|
4
|
+
export declare const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER = "x-shipfox-reconcile-intended-reservation";
|
|
5
|
+
export declare const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE = "1";
|
|
4
6
|
export declare const reconcileRunnerInstancesBodySchema: z.ZodObject<{
|
|
5
7
|
observed_provider_runner_ids: z.ZodArray<z.ZodString>;
|
|
6
8
|
}, z.core.$strict>;
|
|
@@ -24,6 +26,7 @@ export declare const reconciledRunnerInstanceSchema: z.ZodObject<{
|
|
|
24
26
|
stopping: "stopping";
|
|
25
27
|
terminated: "terminated";
|
|
26
28
|
}>>;
|
|
29
|
+
intended_reservation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
30
|
reservation_id: z.ZodNullable<z.ZodString>;
|
|
28
31
|
runner_session_id: z.ZodNullable<z.ZodString>;
|
|
29
32
|
bound_job: z.ZodNullable<z.ZodObject<{
|
|
@@ -48,6 +51,7 @@ export declare const reconcileRunnerInstancesResponseSchema: z.ZodObject<{
|
|
|
48
51
|
stopping: "stopping";
|
|
49
52
|
terminated: "terminated";
|
|
50
53
|
}>>;
|
|
54
|
+
intended_reservation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
55
|
reservation_id: z.ZodNullable<z.ZodString>;
|
|
52
56
|
runner_session_id: z.ZodNullable<z.ZodString>;
|
|
53
57
|
bound_job: z.ZodNullable<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-runner-instances.d.ts","sourceRoot":"","sources":["../../src/schemas/reconcile-runner-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,sCAAsC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"reconcile-runner-instances.d.ts","sourceRoot":"","sources":["../../src/schemas/reconcile-runner-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,sCAAsC,MAAM,CAAC;AAC1D,eAAO,MAAM,sDAAsD,6CACvB,CAAC;AAC7C,eAAO,MAAM,4DAA4D,MAAM,CAAC;AAEhF,eAAO,MAAM,kCAAkC;;kBAc5C,CAAC;AAEJ,eAAO,MAAM,4BAA4B;;;EAAgC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;kBAO1B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;kBAUhC,CAAC;AAEZ,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKxC,CAAC;AAEZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACjG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,sCAAsC,CAC9C,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { providerRunnerStateSchema } from './report-runner-instances.js';
|
|
3
3
|
export const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;
|
|
4
4
|
export const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;
|
|
5
|
+
export const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER = 'x-shipfox-reconcile-intended-reservation';
|
|
6
|
+
export const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE = '1';
|
|
5
7
|
export const reconcileRunnerInstancesBodySchema = z.object({
|
|
6
8
|
observed_provider_runner_ids: z.array(z.string().min(1).max(MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH)).max(MAX_RECONCILE_OBSERVED_RUNNERS)
|
|
7
9
|
}).strict().refine((body)=>new Set(body.observed_provider_runner_ids).size === body.observed_provider_runner_ids.length, {
|
|
@@ -23,6 +25,7 @@ export const reconciledBoundJobSchema = z.object({
|
|
|
23
25
|
export const reconciledRunnerInstanceSchema = z.object({
|
|
24
26
|
provider_runner_id: z.string(),
|
|
25
27
|
state: providerRunnerStateSchema.nullable(),
|
|
28
|
+
intended_reservation_id: z.string().uuid().nullable().optional(),
|
|
26
29
|
reservation_id: z.string().uuid().nullable(),
|
|
27
30
|
runner_session_id: z.string().uuid().nullable(),
|
|
28
31
|
bound_job: reconciledBoundJobSchema.nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/reconcile-runner-instances.ts"],"sourcesContent":["import {z} from 'zod';\nimport {providerRunnerStateSchema} from './report-runner-instances.js';\n\nexport const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;\nexport const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;\n\nexport const reconcileRunnerInstancesBodySchema = z\n .object({\n observed_provider_runner_ids: z\n .array(z.string().min(1).max(MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH))\n .max(MAX_RECONCILE_OBSERVED_RUNNERS),\n })\n .strict()\n .refine(\n (body) =>\n new Set(body.observed_provider_runner_ids).size === body.observed_provider_runner_ids.length,\n {\n message: 'observed_provider_runner_ids values must be unique',\n path: ['observed_provider_runner_ids'],\n },\n );\n\nexport const reconcileDesiredIntentSchema = z.enum(['keep', 'terminate']);\n\nexport const reconciledBoundJobSchema = z\n .object({\n job_id: z.string().uuid(),\n workflow_run_attempt_id: z.string().uuid(),\n last_heartbeat_at: z.string().datetime(),\n cancellation_requested_at: z.string().datetime().nullable(),\n })\n .strict();\n\nexport const reconciledRunnerInstanceSchema = z\n .object({\n provider_runner_id: z.string(),\n state: providerRunnerStateSchema.nullable(),\n reservation_id: z.string().uuid().nullable(),\n runner_session_id: z.string().uuid().nullable(),\n bound_job: reconciledBoundJobSchema.nullable(),\n desired_intent: reconcileDesiredIntentSchema,\n })\n .strict();\n\nexport const reconcileRunnerInstancesResponseSchema = z\n .object({\n runners: z.array(reconciledRunnerInstanceSchema),\n terminated_absent_provider_runner_ids: z.array(z.string()),\n })\n .strict();\n\nexport type ReconcileRunnerInstancesBodyDto = z.infer<typeof reconcileRunnerInstancesBodySchema>;\nexport type ReconcileDesiredIntentDto = z.infer<typeof reconcileDesiredIntentSchema>;\nexport type ReconciledBoundJobDto = z.infer<typeof reconciledBoundJobSchema>;\nexport type ReconciledRunnerInstanceDto = z.infer<typeof reconciledRunnerInstanceSchema>;\nexport type ReconcileRunnerInstancesResponseDto = z.infer<\n typeof reconcileRunnerInstancesResponseSchema\n>;\n"],"names":["z","providerRunnerStateSchema","MAX_RECONCILE_OBSERVED_RUNNERS","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","reconcileRunnerInstancesBodySchema","object","observed_provider_runner_ids","array","string","min","max","strict","refine","body","Set","size","length","message","path","reconcileDesiredIntentSchema","enum","reconciledBoundJobSchema","job_id","uuid","workflow_run_attempt_id","last_heartbeat_at","datetime","cancellation_requested_at","nullable","reconciledRunnerInstanceSchema","provider_runner_id","state","reservation_id","runner_session_id","bound_job","desired_intent","reconcileRunnerInstancesResponseSchema","runners","terminated_absent_provider_runner_ids"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,yBAAyB,QAAO,+BAA+B;AAEvE,OAAO,MAAMC,iCAAiC,KAAK;AACnD,OAAO,MAAMC,yCAAyC,IAAI;
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/reconcile-runner-instances.ts"],"sourcesContent":["import {z} from 'zod';\nimport {providerRunnerStateSchema} from './report-runner-instances.js';\n\nexport const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;\nexport const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;\nexport const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER =\n 'x-shipfox-reconcile-intended-reservation';\nexport const RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE = '1';\n\nexport const reconcileRunnerInstancesBodySchema = z\n .object({\n observed_provider_runner_ids: z\n .array(z.string().min(1).max(MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH))\n .max(MAX_RECONCILE_OBSERVED_RUNNERS),\n })\n .strict()\n .refine(\n (body) =>\n new Set(body.observed_provider_runner_ids).size === body.observed_provider_runner_ids.length,\n {\n message: 'observed_provider_runner_ids values must be unique',\n path: ['observed_provider_runner_ids'],\n },\n );\n\nexport const reconcileDesiredIntentSchema = z.enum(['keep', 'terminate']);\n\nexport const reconciledBoundJobSchema = z\n .object({\n job_id: z.string().uuid(),\n workflow_run_attempt_id: z.string().uuid(),\n last_heartbeat_at: z.string().datetime(),\n cancellation_requested_at: z.string().datetime().nullable(),\n })\n .strict();\n\nexport const reconciledRunnerInstanceSchema = z\n .object({\n provider_runner_id: z.string(),\n state: providerRunnerStateSchema.nullable(),\n intended_reservation_id: z.string().uuid().nullable().optional(),\n reservation_id: z.string().uuid().nullable(),\n runner_session_id: z.string().uuid().nullable(),\n bound_job: reconciledBoundJobSchema.nullable(),\n desired_intent: reconcileDesiredIntentSchema,\n })\n .strict();\n\nexport const reconcileRunnerInstancesResponseSchema = z\n .object({\n runners: z.array(reconciledRunnerInstanceSchema),\n terminated_absent_provider_runner_ids: z.array(z.string()),\n })\n .strict();\n\nexport type ReconcileRunnerInstancesBodyDto = z.infer<typeof reconcileRunnerInstancesBodySchema>;\nexport type ReconcileDesiredIntentDto = z.infer<typeof reconcileDesiredIntentSchema>;\nexport type ReconciledBoundJobDto = z.infer<typeof reconciledBoundJobSchema>;\nexport type ReconciledRunnerInstanceDto = z.infer<typeof reconciledRunnerInstanceSchema>;\nexport type ReconcileRunnerInstancesResponseDto = z.infer<\n typeof reconcileRunnerInstancesResponseSchema\n>;\n"],"names":["z","providerRunnerStateSchema","MAX_RECONCILE_OBSERVED_RUNNERS","MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER","RECONCILE_RUNNER_INSTANCES_INTENDED_RESERVATION_HEADER_VALUE","reconcileRunnerInstancesBodySchema","object","observed_provider_runner_ids","array","string","min","max","strict","refine","body","Set","size","length","message","path","reconcileDesiredIntentSchema","enum","reconciledBoundJobSchema","job_id","uuid","workflow_run_attempt_id","last_heartbeat_at","datetime","cancellation_requested_at","nullable","reconciledRunnerInstanceSchema","provider_runner_id","state","intended_reservation_id","optional","reservation_id","runner_session_id","bound_job","desired_intent","reconcileRunnerInstancesResponseSchema","runners","terminated_absent_provider_runner_ids"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,yBAAyB,QAAO,+BAA+B;AAEvE,OAAO,MAAMC,iCAAiC,KAAK;AACnD,OAAO,MAAMC,yCAAyC,IAAI;AAC1D,OAAO,MAAMC,yDACX,2CAA2C;AAC7C,OAAO,MAAMC,+DAA+D,IAAI;AAEhF,OAAO,MAAMC,qCAAqCN,EAC/CO,MAAM,CAAC;IACNC,8BAA8BR,EAC3BS,KAAK,CAACT,EAAEU,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAACT,yCAC5BS,GAAG,CAACV;AACT,GACCW,MAAM,GACNC,MAAM,CACL,CAACC,OACC,IAAIC,IAAID,KAAKP,4BAA4B,EAAES,IAAI,KAAKF,KAAKP,4BAA4B,CAACU,MAAM,EAC9F;IACEC,SAAS;IACTC,MAAM;QAAC;KAA+B;AACxC,GACA;AAEJ,OAAO,MAAMC,+BAA+BrB,EAAEsB,IAAI,CAAC;IAAC;IAAQ;CAAY,EAAE;AAE1E,OAAO,MAAMC,2BAA2BvB,EACrCO,MAAM,CAAC;IACNiB,QAAQxB,EAAEU,MAAM,GAAGe,IAAI;IACvBC,yBAAyB1B,EAAEU,MAAM,GAAGe,IAAI;IACxCE,mBAAmB3B,EAAEU,MAAM,GAAGkB,QAAQ;IACtCC,2BAA2B7B,EAAEU,MAAM,GAAGkB,QAAQ,GAAGE,QAAQ;AAC3D,GACCjB,MAAM,GAAG;AAEZ,OAAO,MAAMkB,iCAAiC/B,EAC3CO,MAAM,CAAC;IACNyB,oBAAoBhC,EAAEU,MAAM;IAC5BuB,OAAOhC,0BAA0B6B,QAAQ;IACzCI,yBAAyBlC,EAAEU,MAAM,GAAGe,IAAI,GAAGK,QAAQ,GAAGK,QAAQ;IAC9DC,gBAAgBpC,EAAEU,MAAM,GAAGe,IAAI,GAAGK,QAAQ;IAC1CO,mBAAmBrC,EAAEU,MAAM,GAAGe,IAAI,GAAGK,QAAQ;IAC7CQ,WAAWf,yBAAyBO,QAAQ;IAC5CS,gBAAgBlB;AAClB,GACCR,MAAM,GAAG;AAEZ,OAAO,MAAM2B,yCAAyCxC,EACnDO,MAAM,CAAC;IACNkC,SAASzC,EAAES,KAAK,CAACsB;IACjBW,uCAAuC1C,EAAES,KAAK,CAACT,EAAEU,MAAM;AACzD,GACCG,MAAM,GAAG"}
|
|
@@ -13,7 +13,9 @@ export declare const createRunnerInstancesResponseSchema: z.ZodObject<{
|
|
|
13
13
|
runner_instances: z.ZodArray<z.ZodObject<{
|
|
14
14
|
runner_instance_id: z.ZodString;
|
|
15
15
|
bootstrap_token: z.ZodString;
|
|
16
|
+
request_index: z.ZodOptional<z.ZodNumber>;
|
|
16
17
|
}, z.core.$strip>>;
|
|
18
|
+
reservation_unavailable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
18
20
|
export declare const runnerBootstrapExchangeResponseSchema: z.ZodObject<{
|
|
19
21
|
runner_instance_id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-enrollment.d.ts","sourceRoot":"","sources":["../../src/schemas/runner-enrollment.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,iCAAiC;;kBAEnC,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;;kBAejC,CAAC;AACZ,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"runner-enrollment.d.ts","sourceRoot":"","sources":["../../src/schemas/runner-enrollment.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,iCAAiC;;kBAEnC,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;;kBAejC,CAAC;AACZ,eAAO,MAAM,mCAAmC;;;;;;;iBAY9C,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,2CAA2C,KAAK,CAAC;AAC9D,eAAO,MAAM,+BAA+B;;kBAEjC,CAAC;AACZ,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;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -15,8 +15,13 @@ export const createRunnerInstancesBodySchema = z.object({
|
|
|
15
15
|
export const createRunnerInstancesResponseSchema = z.object({
|
|
16
16
|
runner_instances: z.array(z.object({
|
|
17
17
|
runner_instance_id: z.string().uuid(),
|
|
18
|
-
bootstrap_token: z.string().min(1)
|
|
19
|
-
|
|
18
|
+
bootstrap_token: z.string().min(1),
|
|
19
|
+
// Accepted instances retain their request position for short responses.
|
|
20
|
+
request_index: z.number().int().nonnegative().optional()
|
|
21
|
+
})),
|
|
22
|
+
// A demand reservation can be consumed or stale between demand polling and launch.
|
|
23
|
+
// The field is omitted for the normal and warm-launch paths.
|
|
24
|
+
reservation_unavailable: z.literal(true).optional()
|
|
20
25
|
});
|
|
21
26
|
export const runnerBootstrapExchangeResponseSchema = z.object({
|
|
22
27
|
runner_instance_id: z.string().uuid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/runner-enrollment.ts"],"sourcesContent":["import {MAX_RUNNER_LABELS} from '@shipfox/runner-labels';\nimport {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()
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/runner-enrollment.ts"],"sourcesContent":["import {MAX_RUNNER_LABELS} from '@shipfox/runner-labels';\nimport {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({\n runner_instance_id: z.string().uuid(),\n bootstrap_token: z.string().min(1),\n // Accepted instances retain their request position for short responses.\n request_index: z.number().int().nonnegative().optional(),\n }),\n ),\n // A demand reservation can be consumed or stale between demand polling and launch.\n // The field is omitted for the normal and warm-launch paths.\n reservation_unavailable: z.literal(true).optional(),\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(MAX_RUNNER_LABELS),\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 RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS = 30;\nexport const runnerAssignmentPollQuerySchema = z\n .object({wait_seconds: z.coerce.number().int().min(1).optional()})\n .strict();\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>;\nexport type RunnerAssignmentPollQueryDto = z.infer<typeof runnerAssignmentPollQuerySchema>;\n"],"names":["MAX_RUNNER_LABELS","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","request_index","number","int","nonnegative","reservation_unavailable","literal","runnerBootstrapExchangeResponseSchema","control_session_token","expires_at","datetime","runnerEnrollmentBodySchema","labels","capabilities","protocol_version","runnerEnrollmentResponseSchema","activation_token","nullable","attachRunnerControlProviderIdBodySchema","provider_runner_id","runnerControlHeartbeatResponseSchema","ok","RUNNER_ASSIGNMENT_POLL_DEFAULT_WAIT_SECONDS","runnerAssignmentPollQuerySchema","wait_seconds","coerce","runnerAssignmentPollResponseSchema"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,yBAAyB;AACzD,SAAQC,CAAC,QAAO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