@shipfox/api-runners-dto 12.4.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/events.d.ts +0 -17
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +0 -9
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +0 -27
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +0 -27
- package/dist/inter-module.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/events.ts +0 -12
- package/src/index.ts +0 -3
- package/src/inter-module.test.ts +0 -24
- package/src/inter-module.ts +0 -23
- 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 (202.41ms)
|
package/CHANGELOG.md
CHANGED
package/dist/events.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const RUNNER_JOB_LEASE_EXPIRED: 'runners.job.lease_expired';
|
|
3
|
-
export declare const RUNNER_JOB_QUEUED: 'runners.job.queued';
|
|
4
3
|
export declare const RUNNER_JOB_CLAIMED: 'runners.job.claimed';
|
|
5
4
|
export declare const runnerJobLeaseExpiredEventSchema: z.ZodObject<{
|
|
6
5
|
workflowRunId: z.ZodString;
|
|
@@ -9,14 +8,6 @@ export declare const runnerJobLeaseExpiredEventSchema: z.ZodObject<{
|
|
|
9
8
|
jobExecutionId: z.ZodString;
|
|
10
9
|
}, z.core.$strip>;
|
|
11
10
|
export type RunnerJobLeaseExpiredEvent = z.infer<typeof runnerJobLeaseExpiredEventSchema>;
|
|
12
|
-
export declare const runnerJobQueuedEventSchema: z.ZodObject<{
|
|
13
|
-
workflowRunId: z.ZodString;
|
|
14
|
-
workflowRunAttemptId: z.ZodString;
|
|
15
|
-
jobId: z.ZodString;
|
|
16
|
-
jobExecutionId: z.ZodString;
|
|
17
|
-
queuedAt: z.ZodString;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type RunnerJobQueuedEvent = z.infer<typeof runnerJobQueuedEventSchema>;
|
|
20
11
|
export declare const runnerJobClaimedEventSchema: z.ZodObject<{
|
|
21
12
|
workflowRunId: z.ZodString;
|
|
22
13
|
workflowRunAttemptId: z.ZodString;
|
|
@@ -27,7 +18,6 @@ export declare const runnerJobClaimedEventSchema: z.ZodObject<{
|
|
|
27
18
|
export type RunnerJobClaimedEvent = z.infer<typeof runnerJobClaimedEventSchema>;
|
|
28
19
|
export interface RunnersEventMap {
|
|
29
20
|
[RUNNER_JOB_LEASE_EXPIRED]: RunnerJobLeaseExpiredEvent;
|
|
30
|
-
[RUNNER_JOB_QUEUED]: RunnerJobQueuedEvent;
|
|
31
21
|
[RUNNER_JOB_CLAIMED]: RunnerJobClaimedEvent;
|
|
32
22
|
}
|
|
33
23
|
export declare const runnersEventSchemas: {
|
|
@@ -37,13 +27,6 @@ export declare const runnersEventSchemas: {
|
|
|
37
27
|
jobId: z.ZodString;
|
|
38
28
|
jobExecutionId: z.ZodString;
|
|
39
29
|
}, z.core.$strip>;
|
|
40
|
-
"runners.job.queued": z.ZodObject<{
|
|
41
|
-
workflowRunId: z.ZodString;
|
|
42
|
-
workflowRunAttemptId: z.ZodString;
|
|
43
|
-
jobId: z.ZodString;
|
|
44
|
-
jobExecutionId: z.ZodString;
|
|
45
|
-
queuedAt: z.ZodString;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
30
|
"runners.job.claimed": z.ZodObject<{
|
|
48
31
|
workflowRunId: z.ZodString;
|
|
49
32
|
workflowRunAttemptId: z.ZodString;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,wBAAwB,EAAG,2BAAoC,CAAC;AAC7E,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,wBAAwB,EAAG,2BAAoC,CAAC;AAC7E,eAAO,MAAM,kBAAkB,EAAG,qBAA8B,CAAC;AAEjE,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,CAAC,wBAAwB,CAAC,EAAE,0BAA0B,CAAC;IACvD,CAAC,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;CAC7C;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAGoB,CAAC"}
|
package/dist/events.js
CHANGED
|
@@ -2,7 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
const nonEmptyStringSchema = z.string().nonempty();
|
|
3
3
|
const isoDateTimeSchema = z.string().datetime();
|
|
4
4
|
export const RUNNER_JOB_LEASE_EXPIRED = 'runners.job.lease_expired';
|
|
5
|
-
export const RUNNER_JOB_QUEUED = 'runners.job.queued';
|
|
6
5
|
export const RUNNER_JOB_CLAIMED = 'runners.job.claimed';
|
|
7
6
|
export const runnerJobLeaseExpiredEventSchema = z.object({
|
|
8
7
|
workflowRunId: nonEmptyStringSchema,
|
|
@@ -10,13 +9,6 @@ export const runnerJobLeaseExpiredEventSchema = z.object({
|
|
|
10
9
|
jobId: nonEmptyStringSchema,
|
|
11
10
|
jobExecutionId: nonEmptyStringSchema
|
|
12
11
|
});
|
|
13
|
-
export const runnerJobQueuedEventSchema = z.object({
|
|
14
|
-
workflowRunId: nonEmptyStringSchema,
|
|
15
|
-
workflowRunAttemptId: nonEmptyStringSchema,
|
|
16
|
-
jobId: nonEmptyStringSchema,
|
|
17
|
-
jobExecutionId: nonEmptyStringSchema,
|
|
18
|
-
queuedAt: isoDateTimeSchema
|
|
19
|
-
});
|
|
20
12
|
export const runnerJobClaimedEventSchema = z.object({
|
|
21
13
|
workflowRunId: nonEmptyStringSchema,
|
|
22
14
|
workflowRunAttemptId: nonEmptyStringSchema,
|
|
@@ -26,7 +18,6 @@ export const runnerJobClaimedEventSchema = z.object({
|
|
|
26
18
|
});
|
|
27
19
|
export const runnersEventSchemas = {
|
|
28
20
|
[RUNNER_JOB_LEASE_EXPIRED]: runnerJobLeaseExpiredEventSchema,
|
|
29
|
-
[RUNNER_JOB_QUEUED]: runnerJobQueuedEventSchema,
|
|
30
21
|
[RUNNER_JOB_CLAIMED]: runnerJobClaimedEventSchema
|
|
31
22
|
};
|
|
32
23
|
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst nonEmptyStringSchema = z.string().nonempty();\nconst isoDateTimeSchema = z.string().datetime();\n\nexport const RUNNER_JOB_LEASE_EXPIRED = 'runners.job.lease_expired' as const;\nexport const
|
|
1
|
+
{"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst nonEmptyStringSchema = z.string().nonempty();\nconst isoDateTimeSchema = z.string().datetime();\n\nexport const RUNNER_JOB_LEASE_EXPIRED = 'runners.job.lease_expired' as const;\nexport const RUNNER_JOB_CLAIMED = 'runners.job.claimed' as const;\n\nexport const runnerJobLeaseExpiredEventSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n});\nexport type RunnerJobLeaseExpiredEvent = z.infer<typeof runnerJobLeaseExpiredEventSchema>;\n\nexport const runnerJobClaimedEventSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n claimedAt: isoDateTimeSchema,\n});\nexport type RunnerJobClaimedEvent = z.infer<typeof runnerJobClaimedEventSchema>;\n\nexport interface RunnersEventMap {\n [RUNNER_JOB_LEASE_EXPIRED]: RunnerJobLeaseExpiredEvent;\n [RUNNER_JOB_CLAIMED]: RunnerJobClaimedEvent;\n}\n\nexport const runnersEventSchemas = {\n [RUNNER_JOB_LEASE_EXPIRED]: runnerJobLeaseExpiredEventSchema,\n [RUNNER_JOB_CLAIMED]: runnerJobClaimedEventSchema,\n} satisfies Record<keyof RunnersEventMap, z.ZodType>;\n"],"names":["z","nonEmptyStringSchema","string","nonempty","isoDateTimeSchema","datetime","RUNNER_JOB_LEASE_EXPIRED","RUNNER_JOB_CLAIMED","runnerJobLeaseExpiredEventSchema","object","workflowRunId","workflowRunAttemptId","jobId","jobExecutionId","runnerJobClaimedEventSchema","claimedAt","runnersEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,uBAAuBD,EAAEE,MAAM,GAAGC,QAAQ;AAChD,MAAMC,oBAAoBJ,EAAEE,MAAM,GAAGG,QAAQ;AAE7C,OAAO,MAAMC,2BAA2B,4BAAqC;AAC7E,OAAO,MAAMC,qBAAqB,sBAA+B;AAEjE,OAAO,MAAMC,mCAAmCR,EAAES,MAAM,CAAC;IACvDC,eAAeT;IACfU,sBAAsBV;IACtBW,OAAOX;IACPY,gBAAgBZ;AAClB,GAAG;AAGH,OAAO,MAAMa,8BAA8Bd,EAAES,MAAM,CAAC;IAClDC,eAAeT;IACfU,sBAAsBV;IACtBW,OAAOX;IACPY,gBAAgBZ;IAChBc,WAAWX;AACb,GAAG;AAQH,OAAO,MAAMY,sBAAsB;IACjC,CAACV,yBAAyB,EAAEE;IAC5B,CAACD,mBAAmB,EAAEO;AACxB,EAAqD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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
|
-
export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED,
|
|
2
|
+
export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED, type RunnerJobClaimedEvent, type RunnerJobLeaseExpiredEvent, type RunnersEventMap, runnerJobClaimedEventSchema, runnerJobLeaseExpiredEventSchema, 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,EACz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B,EAC/B,KAAK,eAAe,EACpB,2BAA2B,EAC3B,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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
|
-
export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED,
|
|
2
|
+
export { RUNNER_JOB_CLAIMED, RUNNER_JOB_LEASE_EXPIRED, runnerJobClaimedEventSchema, runnerJobLeaseExpiredEventSchema, 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 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
|
+
{"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 type RunnerJobClaimedEvent,\n type RunnerJobLeaseExpiredEvent,\n type RunnersEventMap,\n runnerJobClaimedEventSchema,\n runnerJobLeaseExpiredEventSchema,\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","runnerJobClaimedEventSchema","runnerJobLeaseExpiredEventSchema","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,EAIxBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mBAAmB,QACd,cAAc"}
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -3,33 +3,6 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const runnersInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
|
|
4
4
|
readonly module: "runners";
|
|
5
5
|
readonly methods: {
|
|
6
|
-
enqueueJobExecution: {
|
|
7
|
-
input: z.ZodObject<{
|
|
8
|
-
workspaceId: z.ZodString;
|
|
9
|
-
workflowRunId: z.ZodString;
|
|
10
|
-
workflowRunAttemptId: z.ZodString;
|
|
11
|
-
jobId: z.ZodString;
|
|
12
|
-
jobExecutionId: z.ZodString;
|
|
13
|
-
projectId: z.ZodString;
|
|
14
|
-
requiredLabels: z.ZodArray<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
output: z.ZodObject<{}, z.core.$strip>;
|
|
17
|
-
errors: {
|
|
18
|
-
'empty-required-labels': z.ZodObject<{}, z.core.$strip>;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
releaseJobExecution: {
|
|
22
|
-
input: z.ZodObject<{
|
|
23
|
-
jobExecutionId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
output: z.ZodObject<{}, z.core.$strip>;
|
|
26
|
-
};
|
|
27
|
-
cancelJobs: {
|
|
28
|
-
input: z.ZodObject<{
|
|
29
|
-
jobIds: z.ZodArray<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
output: z.ZodObject<{}, z.core.$strip>;
|
|
32
|
-
};
|
|
33
6
|
getLeaseState: {
|
|
34
7
|
input: z.ZodObject<{
|
|
35
8
|
jobId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,0BAA0B;;;QAGnC,
|
|
1
|
+
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,0BAA0B;;;QAGnC,aAAa;YACX,KAAK;;;;;YAKL,MAAM;;;;QAER,kCAAkC;YAChC,KAAK;;;YACL,MAAM;;;;;;;;;;;;;;QAKR,qBAAqB;YACnB,KAAK;;;YACL,MAAM;;;;;;;;;EAWV,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/dist/inter-module.js
CHANGED
|
@@ -5,33 +5,6 @@ const idSchema = z.string().uuid();
|
|
|
5
5
|
export const runnersInterModuleContract = defineInterModuleContract({
|
|
6
6
|
module: 'runners',
|
|
7
7
|
methods: {
|
|
8
|
-
enqueueJobExecution: {
|
|
9
|
-
input: z.object({
|
|
10
|
-
workspaceId: idSchema,
|
|
11
|
-
workflowRunId: idSchema,
|
|
12
|
-
workflowRunAttemptId: idSchema,
|
|
13
|
-
jobId: idSchema,
|
|
14
|
-
jobExecutionId: idSchema,
|
|
15
|
-
projectId: idSchema,
|
|
16
|
-
requiredLabels: z.array(z.string())
|
|
17
|
-
}),
|
|
18
|
-
output: z.object({}),
|
|
19
|
-
errors: {
|
|
20
|
-
'empty-required-labels': z.object({})
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
releaseJobExecution: {
|
|
24
|
-
input: z.object({
|
|
25
|
-
jobExecutionId: idSchema
|
|
26
|
-
}),
|
|
27
|
-
output: z.object({})
|
|
28
|
-
},
|
|
29
|
-
cancelJobs: {
|
|
30
|
-
input: z.object({
|
|
31
|
-
jobIds: z.array(idSchema)
|
|
32
|
-
}),
|
|
33
|
-
output: z.object({})
|
|
34
|
-
},
|
|
35
8
|
getLeaseState: {
|
|
36
9
|
input: z.object({
|
|
37
10
|
jobId: idSchema,
|
package/dist/inter-module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from '#schemas/tool-capabilities.js';\n\nconst idSchema = z.string().uuid();\n\nexport const runnersInterModuleContract = defineInterModuleContract({\n module: 'runners',\n methods: {\n
|
|
1
|
+
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from '#schemas/tool-capabilities.js';\n\nconst idSchema = z.string().uuid();\n\nexport const runnersInterModuleContract = defineInterModuleContract({\n module: 'runners',\n methods: {\n getLeaseState: {\n input: z.object({\n jobId: idSchema,\n jobExecutionId: idSchema,\n runnerSessionId: idSchema,\n }),\n output: z.object({active: z.boolean()}),\n },\n getEffectiveRunnerToolCapabilities: {\n input: z.object({runnerSessionId: idSchema}),\n output: z.object({\n capabilities: runnerToolCapabilitiesSchema,\n reportFresh: z.boolean(),\n }),\n },\n getWorkspaceJobCounts: {\n input: z.object({workspaceIds: z.array(idSchema).min(1).max(100)}),\n output: z.object({\n counts: z.array(\n z.object({\n workspaceId: idSchema,\n queued: z.number().int().nonnegative(),\n running: z.number().int().nonnegative(),\n }),\n ),\n }),\n },\n },\n});\n\nexport type RunnersInterModuleClient = InterModuleClient<typeof runnersInterModuleContract>;\n"],"names":["defineInterModuleContract","z","runnerToolCapabilitiesSchema","idSchema","string","uuid","runnersInterModuleContract","module","methods","getLeaseState","input","object","jobId","jobExecutionId","runnerSessionId","output","active","boolean","getEffectiveRunnerToolCapabilities","capabilities","reportFresh","getWorkspaceJobCounts","workspaceIds","array","min","max","counts","workspaceId","queued","number","int","nonnegative","running"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,gCAAgC;AAE3E,MAAMC,WAAWF,EAAEG,MAAM,GAAGC,IAAI;AAEhC,OAAO,MAAMC,6BAA6BN,0BAA0B;IAClEO,QAAQ;IACRC,SAAS;QACPC,eAAe;YACbC,OAAOT,EAAEU,MAAM,CAAC;gBACdC,OAAOT;gBACPU,gBAAgBV;gBAChBW,iBAAiBX;YACnB;YACAY,QAAQd,EAAEU,MAAM,CAAC;gBAACK,QAAQf,EAAEgB,OAAO;YAAE;QACvC;QACAC,oCAAoC;YAClCR,OAAOT,EAAEU,MAAM,CAAC;gBAACG,iBAAiBX;YAAQ;YAC1CY,QAAQd,EAAEU,MAAM,CAAC;gBACfQ,cAAcjB;gBACdkB,aAAanB,EAAEgB,OAAO;YACxB;QACF;QACAI,uBAAuB;YACrBX,OAAOT,EAAEU,MAAM,CAAC;gBAACW,cAAcrB,EAAEsB,KAAK,CAACpB,UAAUqB,GAAG,CAAC,GAAGC,GAAG,CAAC;YAAI;YAChEV,QAAQd,EAAEU,MAAM,CAAC;gBACfe,QAAQzB,EAAEsB,KAAK,CACbtB,EAAEU,MAAM,CAAC;oBACPgB,aAAaxB;oBACbyB,QAAQ3B,EAAE4B,MAAM,GAAGC,GAAG,GAAGC,WAAW;oBACpCC,SAAS/B,EAAE4B,MAAM,GAAGC,GAAG,GAAGC,WAAW;gBACvC;YAEJ;QACF;IACF;AACF,GAAG"}
|