@shipfox/api-runners-dto 5.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +34 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/inter-module.d.ts +64 -0
  8. package/dist/inter-module.d.ts.map +1 -0
  9. package/dist/inter-module.js +57 -0
  10. package/dist/inter-module.js.map +1 -0
  11. package/dist/schemas/assign-runner-instances.d.ts +11 -0
  12. package/dist/schemas/assign-runner-instances.d.ts.map +1 -0
  13. package/dist/schemas/assign-runner-instances.js +15 -0
  14. package/dist/schemas/assign-runner-instances.js.map +1 -0
  15. package/dist/schemas/index.d.ts +4 -3
  16. package/dist/schemas/index.d.ts.map +1 -1
  17. package/dist/schemas/index.js +4 -3
  18. package/dist/schemas/index.js.map +1 -1
  19. package/dist/schemas/poll-demand.d.ts +5 -1
  20. package/dist/schemas/poll-demand.d.ts.map +1 -1
  21. package/dist/schemas/poll-demand.js +4 -2
  22. package/dist/schemas/poll-demand.js.map +1 -1
  23. package/dist/schemas/provisioner-token.d.ts +10 -2
  24. package/dist/schemas/provisioner-token.d.ts.map +1 -1
  25. package/dist/schemas/provisioner-token.js +15 -6
  26. package/dist/schemas/provisioner-token.js.map +1 -1
  27. package/dist/schemas/{reconcile-provisioned-runners.d.ts → reconcile-runner-instances.d.ts} +12 -12
  28. package/dist/schemas/reconcile-runner-instances.d.ts.map +1 -0
  29. package/dist/schemas/reconcile-runner-instances.js +36 -0
  30. package/dist/schemas/reconcile-runner-instances.js.map +1 -0
  31. package/dist/schemas/register.d.ts +1 -0
  32. package/dist/schemas/register.d.ts.map +1 -1
  33. package/dist/schemas/register.js +2 -1
  34. package/dist/schemas/register.js.map +1 -1
  35. package/dist/schemas/{report-provisioned-runners.d.ts → report-runner-instances.d.ts} +17 -15
  36. package/dist/schemas/report-runner-instances.d.ts.map +1 -0
  37. package/dist/schemas/{report-provisioned-runners.js → report-runner-instances.js} +13 -12
  38. package/dist/schemas/report-runner-instances.js.map +1 -0
  39. package/dist/schemas/runner-enrollment.d.ts +51 -0
  40. package/dist/schemas/runner-enrollment.d.ts.map +1 -0
  41. package/dist/schemas/runner-enrollment.js +40 -0
  42. package/dist/schemas/runner-enrollment.js.map +1 -0
  43. package/dist/tsconfig.test.tsbuildinfo +1 -1
  44. package/package.json +6 -1
  45. package/src/index.ts +34 -26
  46. package/src/inter-module.test.ts +40 -0
  47. package/src/inter-module.ts +51 -0
  48. package/src/schemas/assign-runner-instances.test.ts +27 -0
  49. package/src/schemas/assign-runner-instances.ts +19 -0
  50. package/src/schemas/index.ts +40 -30
  51. package/src/schemas/poll-demand.test.ts +1 -1
  52. package/src/schemas/poll-demand.ts +4 -2
  53. package/src/schemas/provisioner-token.test.ts +9 -0
  54. package/src/schemas/provisioner-token.ts +6 -4
  55. package/src/schemas/{reconcile-provisioned-runners.test.ts → reconcile-runner-instances.test.ts} +21 -21
  56. package/src/schemas/reconcile-runner-instances.ts +58 -0
  57. package/src/schemas/register.ts +1 -1
  58. package/src/schemas/{report-provisioned-runners.test.ts → report-runner-instances.test.ts} +16 -16
  59. package/src/schemas/{report-provisioned-runners.ts → report-runner-instances.ts} +16 -20
  60. package/src/schemas/runner-enrollment.ts +49 -0
  61. package/tsconfig.build.tsbuildinfo +1 -1
  62. package/dist/schemas/mint-registration-tokens.d.ts +0 -28
  63. package/dist/schemas/mint-registration-tokens.d.ts.map +0 -1
  64. package/dist/schemas/mint-registration-tokens.js +0 -24
  65. package/dist/schemas/mint-registration-tokens.js.map +0 -1
  66. package/dist/schemas/reconcile-provisioned-runners.d.ts.map +0 -1
  67. package/dist/schemas/reconcile-provisioned-runners.js +0 -36
  68. package/dist/schemas/reconcile-provisioned-runners.js.map +0 -1
  69. package/dist/schemas/report-provisioned-runners.d.ts.map +0 -1
  70. package/dist/schemas/report-provisioned-runners.js.map +0 -1
  71. package/src/schemas/mint-registration-tokens.test.ts +0 -28
  72. package/src/schemas/mint-registration-tokens.ts +0 -46
  73. package/src/schemas/reconcile-provisioned-runners.ts +0 -61
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/provisioner-token.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const MAX_PROVISIONER_TOKEN_TTL_SECONDS = 31_536_000;\n\nexport const createProvisionerTokenBodySchema = z.object({\n name: z.string().min(1).optional(),\n ttl_seconds: z.number().int().positive().max(MAX_PROVISIONER_TOKEN_TTL_SECONDS).optional(),\n});\n\nexport type CreateProvisionerTokenBodyDto = z.infer<typeof createProvisionerTokenBodySchema>;\n\nexport const createProvisionerTokenResponseSchema = z.object({\n id: z.string().uuid(),\n raw_token: z.string(),\n prefix: z.string(),\n name: z.string().nullable(),\n workspace_id: z.string().uuid(),\n created_by_user_id: z.string().uuid(),\n revoked_by_user_id: z.string().uuid().nullable(),\n expires_at: z.string().nullable(),\n revoked_at: z.string().nullable(),\n last_seen_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type CreateProvisionerTokenResponseDto = z.infer<\n typeof createProvisionerTokenResponseSchema\n>;\n\nexport const provisionerTokenDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n prefix: z.string(),\n name: z.string().nullable(),\n created_by_user_id: z.string().uuid(),\n revoked_by_user_id: z.string().uuid().nullable(),\n expires_at: z.string().nullable(),\n revoked_at: z.string().nullable(),\n last_seen_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type ProvisionerTokenDto = z.infer<typeof provisionerTokenDtoSchema>;\n\nexport const listProvisionerTokensResponseSchema = z.object({\n tokens: z.array(provisionerTokenDtoSchema),\n});\n\nexport type ListProvisionerTokensResponseDto = z.infer<typeof listProvisionerTokensResponseSchema>;\n\nexport const revokeProvisionerTokenResponseSchema = provisionerTokenDtoSchema;\n\nexport type RevokeProvisionerTokenResponseDto = z.infer<\n typeof revokeProvisionerTokenResponseSchema\n>;\n\nexport const provisionerIdentityResponseSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n});\n\nexport type ProvisionerIdentityResponseDto = z.infer<typeof provisionerIdentityResponseSchema>;\n"],"names":["z","MAX_PROVISIONER_TOKEN_TTL_SECONDS","createProvisionerTokenBodySchema","object","name","string","min","optional","ttl_seconds","number","int","positive","max","createProvisionerTokenResponseSchema","id","uuid","raw_token","prefix","nullable","workspace_id","created_by_user_id","revoked_by_user_id","expires_at","revoked_at","last_seen_at","created_at","updated_at","provisionerTokenDtoSchema","listProvisionerTokensResponseSchema","tokens","array","revokeProvisionerTokenResponseSchema","provisionerIdentityResponseSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,oCAAoC,WAAW;AAE5D,OAAO,MAAMC,mCAAmCF,EAAEG,MAAM,CAAC;IACvDC,MAAMJ,EAAEK,MAAM,GAAGC,GAAG,CAAC,GAAGC,QAAQ;IAChCC,aAAaR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGC,GAAG,CAACX,mCAAmCM,QAAQ;AAC1F,GAAG;AAIH,OAAO,MAAMM,uCAAuCb,EAAEG,MAAM,CAAC;IAC3DW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBC,WAAWhB,EAAEK,MAAM;IACnBY,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBC,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BK,oBAAoBpB,EAAEK,MAAM,GAAGU,IAAI;IACnCM,oBAAoBrB,EAAEK,MAAM,GAAGU,IAAI,GAAGG,QAAQ;IAC9CI,YAAYtB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BK,YAAYvB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BM,cAAcxB,EAAEK,MAAM,GAAGa,QAAQ;IACjCO,YAAYzB,EAAEK,MAAM;IACpBqB,YAAY1B,EAAEK,MAAM;AACtB,GAAG;AAMH,OAAO,MAAMsB,4BAA4B3B,EAAEG,MAAM,CAAC;IAChDW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBI,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BE,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBE,oBAAoBpB,EAAEK,MAAM,GAAGU,IAAI;IACnCM,oBAAoBrB,EAAEK,MAAM,GAAGU,IAAI,GAAGG,QAAQ;IAC9CI,YAAYtB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BK,YAAYvB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BM,cAAcxB,EAAEK,MAAM,GAAGa,QAAQ;IACjCO,YAAYzB,EAAEK,MAAM;IACpBqB,YAAY1B,EAAEK,MAAM;AACtB,GAAG;AAIH,OAAO,MAAMuB,sCAAsC5B,EAAEG,MAAM,CAAC;IAC1D0B,QAAQ7B,EAAE8B,KAAK,CAACH;AAClB,GAAG;AAIH,OAAO,MAAMI,uCAAuCJ,0BAA0B;AAM9E,OAAO,MAAMK,oCAAoChC,EAAEG,MAAM,CAAC;IACxDW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBI,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;AAC/B,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/provisioner-token.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const MAX_PROVISIONER_TOKEN_TTL_SECONDS = 31_536_000;\n\nexport const createProvisionerTokenBodySchema = z.object({\n name: z.string().min(1).optional(),\n ttl_seconds: z.number().int().positive().max(MAX_PROVISIONER_TOKEN_TTL_SECONDS).optional(),\n});\n\nexport type CreateProvisionerTokenBodyDto = z.infer<typeof createProvisionerTokenBodySchema>;\n\nexport const createProvisionerTokenResponseSchema = z.object({\n id: z.string().uuid(),\n raw_token: z.string(),\n prefix: z.string(),\n name: z.string().nullable(),\n workspace_id: z.string().uuid(),\n created_by_user_id: z.string().uuid(),\n revoked_by_user_id: z.string().uuid().nullable(),\n expires_at: z.string().nullable(),\n revoked_at: z.string().nullable(),\n last_seen_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n scope: z.literal('workspace'),\n});\n\nexport type CreateProvisionerTokenResponseDto = z.infer<\n typeof createProvisionerTokenResponseSchema\n>;\n\nexport const provisionerTokenDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n prefix: z.string(),\n name: z.string().nullable(),\n created_by_user_id: z.string().uuid(),\n revoked_by_user_id: z.string().uuid().nullable(),\n expires_at: z.string().nullable(),\n revoked_at: z.string().nullable(),\n last_seen_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n scope: z.literal('workspace'),\n});\n\nexport type ProvisionerTokenDto = z.infer<typeof provisionerTokenDtoSchema>;\n\nexport const listProvisionerTokensResponseSchema = z.object({\n tokens: z.array(provisionerTokenDtoSchema),\n});\n\nexport type ListProvisionerTokensResponseDto = z.infer<typeof listProvisionerTokensResponseSchema>;\n\nexport const revokeProvisionerTokenResponseSchema = provisionerTokenDtoSchema;\n\nexport type RevokeProvisionerTokenResponseDto = z.infer<\n typeof revokeProvisionerTokenResponseSchema\n>;\n\nexport const provisionerIdentityResponseSchema = z.discriminatedUnion('scope', [\n z.object({id: z.string().uuid(), scope: z.literal('workspace'), workspace_id: z.string().uuid()}),\n z.object({id: z.string().uuid(), scope: z.literal('installation')}),\n]);\n\nexport type ProvisionerIdentityResponseDto = z.infer<typeof provisionerIdentityResponseSchema>;\n"],"names":["z","MAX_PROVISIONER_TOKEN_TTL_SECONDS","createProvisionerTokenBodySchema","object","name","string","min","optional","ttl_seconds","number","int","positive","max","createProvisionerTokenResponseSchema","id","uuid","raw_token","prefix","nullable","workspace_id","created_by_user_id","revoked_by_user_id","expires_at","revoked_at","last_seen_at","created_at","updated_at","scope","literal","provisionerTokenDtoSchema","listProvisionerTokensResponseSchema","tokens","array","revokeProvisionerTokenResponseSchema","provisionerIdentityResponseSchema","discriminatedUnion"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,oCAAoC,WAAW;AAE5D,OAAO,MAAMC,mCAAmCF,EAAEG,MAAM,CAAC;IACvDC,MAAMJ,EAAEK,MAAM,GAAGC,GAAG,CAAC,GAAGC,QAAQ;IAChCC,aAAaR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGC,GAAG,CAACX,mCAAmCM,QAAQ;AAC1F,GAAG;AAIH,OAAO,MAAMM,uCAAuCb,EAAEG,MAAM,CAAC;IAC3DW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBC,WAAWhB,EAAEK,MAAM;IACnBY,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBC,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BK,oBAAoBpB,EAAEK,MAAM,GAAGU,IAAI;IACnCM,oBAAoBrB,EAAEK,MAAM,GAAGU,IAAI,GAAGG,QAAQ;IAC9CI,YAAYtB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BK,YAAYvB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BM,cAAcxB,EAAEK,MAAM,GAAGa,QAAQ;IACjCO,YAAYzB,EAAEK,MAAM;IACpBqB,YAAY1B,EAAEK,MAAM;IACpBsB,OAAO3B,EAAE4B,OAAO,CAAC;AACnB,GAAG;AAMH,OAAO,MAAMC,4BAA4B7B,EAAEG,MAAM,CAAC;IAChDW,IAAId,EAAEK,MAAM,GAAGU,IAAI;IACnBI,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAC7BE,QAAQjB,EAAEK,MAAM;IAChBD,MAAMJ,EAAEK,MAAM,GAAGa,QAAQ;IACzBE,oBAAoBpB,EAAEK,MAAM,GAAGU,IAAI;IACnCM,oBAAoBrB,EAAEK,MAAM,GAAGU,IAAI,GAAGG,QAAQ;IAC9CI,YAAYtB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BK,YAAYvB,EAAEK,MAAM,GAAGa,QAAQ;IAC/BM,cAAcxB,EAAEK,MAAM,GAAGa,QAAQ;IACjCO,YAAYzB,EAAEK,MAAM;IACpBqB,YAAY1B,EAAEK,MAAM;IACpBsB,OAAO3B,EAAE4B,OAAO,CAAC;AACnB,GAAG;AAIH,OAAO,MAAME,sCAAsC9B,EAAEG,MAAM,CAAC;IAC1D4B,QAAQ/B,EAAEgC,KAAK,CAACH;AAClB,GAAG;AAIH,OAAO,MAAMI,uCAAuCJ,0BAA0B;AAM9E,OAAO,MAAMK,oCAAoClC,EAAEmC,kBAAkB,CAAC,SAAS;IAC7EnC,EAAEG,MAAM,CAAC;QAACW,IAAId,EAAEK,MAAM,GAAGU,IAAI;QAAIY,OAAO3B,EAAE4B,OAAO,CAAC;QAAcT,cAAcnB,EAAEK,MAAM,GAAGU,IAAI;IAAE;IAC/Ff,EAAEG,MAAM,CAAC;QAACW,IAAId,EAAEK,MAAM,GAAGU,IAAI;QAAIY,OAAO3B,EAAE4B,OAAO,CAAC;IAAe;CAClE,EAAE"}
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;
3
- export declare const MAX_OBSERVED_PROVISIONED_RUNNER_ID_LENGTH = 255;
4
- export declare const reconcileProvisionedRunnersBodySchema: z.ZodObject<{
5
- observed_provisioned_runner_ids: z.ZodArray<z.ZodString>;
3
+ export declare const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;
4
+ export declare const reconcileRunnerInstancesBodySchema: z.ZodObject<{
5
+ observed_provider_runner_ids: z.ZodArray<z.ZodString>;
6
6
  }, z.core.$strict>;
7
7
  export declare const reconcileDesiredIntentSchema: z.ZodEnum<{
8
8
  keep: "keep";
@@ -14,8 +14,8 @@ export declare const reconciledBoundJobSchema: z.ZodObject<{
14
14
  last_heartbeat_at: z.ZodString;
15
15
  cancellation_requested_at: z.ZodNullable<z.ZodString>;
16
16
  }, z.core.$strict>;
17
- export declare const reconciledProvisionedRunnerSchema: z.ZodObject<{
18
- provisioned_runner_id: z.ZodString;
17
+ export declare const reconciledRunnerInstanceSchema: z.ZodObject<{
18
+ provider_runner_id: z.ZodString;
19
19
  state: z.ZodNullable<z.ZodEnum<{
20
20
  starting: "starting";
21
21
  running: "running";
@@ -37,9 +37,9 @@ export declare const reconciledProvisionedRunnerSchema: z.ZodObject<{
37
37
  terminate: "terminate";
38
38
  }>;
39
39
  }, z.core.$strict>;
40
- export declare const reconcileProvisionedRunnersResponseSchema: z.ZodObject<{
40
+ export declare const reconcileRunnerInstancesResponseSchema: z.ZodObject<{
41
41
  runners: z.ZodArray<z.ZodObject<{
42
- provisioned_runner_id: z.ZodString;
42
+ provider_runner_id: z.ZodString;
43
43
  state: z.ZodNullable<z.ZodEnum<{
44
44
  starting: "starting";
45
45
  running: "running";
@@ -61,11 +61,11 @@ export declare const reconcileProvisionedRunnersResponseSchema: z.ZodObject<{
61
61
  terminate: "terminate";
62
62
  }>;
63
63
  }, z.core.$strict>>;
64
- terminated_absent_provisioned_runner_ids: z.ZodArray<z.ZodString>;
64
+ terminated_absent_provider_runner_ids: z.ZodArray<z.ZodString>;
65
65
  }, z.core.$strict>;
66
- export type ReconcileProvisionedRunnersBodyDto = z.infer<typeof reconcileProvisionedRunnersBodySchema>;
66
+ export type ReconcileRunnerInstancesBodyDto = z.infer<typeof reconcileRunnerInstancesBodySchema>;
67
67
  export type ReconcileDesiredIntentDto = z.infer<typeof reconcileDesiredIntentSchema>;
68
68
  export type ReconciledBoundJobDto = z.infer<typeof reconciledBoundJobSchema>;
69
- export type ReconciledProvisionedRunnerDto = z.infer<typeof reconciledProvisionedRunnerSchema>;
70
- export type ReconcileProvisionedRunnersResponseDto = z.infer<typeof reconcileProvisionedRunnersResponseSchema>;
71
- //# sourceMappingURL=reconcile-provisioned-runners.d.ts.map
69
+ export type ReconciledRunnerInstanceDto = z.infer<typeof reconciledRunnerInstanceSchema>;
70
+ export type ReconcileRunnerInstancesResponseDto = z.infer<typeof reconcileRunnerInstancesResponseSchema>;
71
+ //# sourceMappingURL=reconcile-runner-instances.d.ts.map
@@ -0,0 +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;AAE1D,eAAO,MAAM,kCAAkC;;kBAc5C,CAAC;AAEJ,eAAO,MAAM,4BAA4B;;;EAAgC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;kBAO1B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;kBAShC,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"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { providerRunnerStateSchema } from './report-runner-instances.js';
3
+ export const MAX_RECONCILE_OBSERVED_RUNNERS = 5000;
4
+ export const MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH = 255;
5
+ export const reconcileRunnerInstancesBodySchema = z.object({
6
+ observed_provider_runner_ids: z.array(z.string().min(1).max(MAX_OBSERVED_PROVIDER_RUNNER_ID_LENGTH)).max(MAX_RECONCILE_OBSERVED_RUNNERS)
7
+ }).strict().refine((body)=>new Set(body.observed_provider_runner_ids).size === body.observed_provider_runner_ids.length, {
8
+ message: 'observed_provider_runner_ids values must be unique',
9
+ path: [
10
+ 'observed_provider_runner_ids'
11
+ ]
12
+ });
13
+ export const reconcileDesiredIntentSchema = z.enum([
14
+ 'keep',
15
+ 'terminate'
16
+ ]);
17
+ export const reconciledBoundJobSchema = z.object({
18
+ job_id: z.string().uuid(),
19
+ workflow_run_attempt_id: z.string().uuid(),
20
+ last_heartbeat_at: z.string().datetime(),
21
+ cancellation_requested_at: z.string().datetime().nullable()
22
+ }).strict();
23
+ export const reconciledRunnerInstanceSchema = z.object({
24
+ provider_runner_id: z.string(),
25
+ state: providerRunnerStateSchema.nullable(),
26
+ reservation_id: z.string().uuid().nullable(),
27
+ runner_session_id: z.string().uuid().nullable(),
28
+ bound_job: reconciledBoundJobSchema.nullable(),
29
+ desired_intent: reconcileDesiredIntentSchema
30
+ }).strict();
31
+ export const reconcileRunnerInstancesResponseSchema = z.object({
32
+ runners: z.array(reconciledRunnerInstanceSchema),
33
+ terminated_absent_provider_runner_ids: z.array(z.string())
34
+ }).strict();
35
+
36
+ //# sourceMappingURL=reconcile-runner-instances.js.map
@@ -0,0 +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;AAE1D,OAAO,MAAMC,qCAAqCJ,EAC/CK,MAAM,CAAC;IACNC,8BAA8BN,EAC3BO,KAAK,CAACP,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAACP,yCAC5BO,GAAG,CAACR;AACT,GACCS,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+BnB,EAAEoB,IAAI,CAAC;IAAC;IAAQ;CAAY,EAAE;AAE1E,OAAO,MAAMC,2BAA2BrB,EACrCK,MAAM,CAAC;IACNiB,QAAQtB,EAAEQ,MAAM,GAAGe,IAAI;IACvBC,yBAAyBxB,EAAEQ,MAAM,GAAGe,IAAI;IACxCE,mBAAmBzB,EAAEQ,MAAM,GAAGkB,QAAQ;IACtCC,2BAA2B3B,EAAEQ,MAAM,GAAGkB,QAAQ,GAAGE,QAAQ;AAC3D,GACCjB,MAAM,GAAG;AAEZ,OAAO,MAAMkB,iCAAiC7B,EAC3CK,MAAM,CAAC;IACNyB,oBAAoB9B,EAAEQ,MAAM;IAC5BuB,OAAO9B,0BAA0B2B,QAAQ;IACzCI,gBAAgBhC,EAAEQ,MAAM,GAAGe,IAAI,GAAGK,QAAQ;IAC1CK,mBAAmBjC,EAAEQ,MAAM,GAAGe,IAAI,GAAGK,QAAQ;IAC7CM,WAAWb,yBAAyBO,QAAQ;IAC5CO,gBAAgBhB;AAClB,GACCR,MAAM,GAAG;AAEZ,OAAO,MAAMyB,yCAAyCpC,EACnDK,MAAM,CAAC;IACNgC,SAASrC,EAAEO,KAAK,CAACsB;IACjBS,uCAAuCtC,EAAEO,KAAK,CAACP,EAAEQ,MAAM;AACzD,GACCG,MAAM,GAAG"}
@@ -19,6 +19,7 @@ export declare const registerRunnerResponseSchema: z.ZodObject<{
19
19
  mode: z.ZodEnum<{
20
20
  manual: "manual";
21
21
  ephemeral: "ephemeral";
22
+ activation: "activation";
22
23
  }>;
23
24
  max_claims: z.ZodNullable<z.ZodNumber>;
24
25
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/schemas/register.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,iBAAiB,aAIwB,CAAC;AAEvD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/schemas/register.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,iBAAiB,aAIwB,CAAC;AAEvD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -11,7 +11,8 @@ export const registerRunnerResponseSchema = z.object({
11
11
  session_id: z.string().uuid(),
12
12
  mode: z.enum([
13
13
  'manual',
14
- 'ephemeral'
14
+ 'ephemeral',
15
+ 'activation'
15
16
  ]),
16
17
  max_claims: z.number().int().positive().nullable()
17
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/register.ts"],"sourcesContent":["import {\n MAX_RUNNER_LABEL_LENGTH,\n MAX_RUNNER_LABELS,\n RUNNER_LABEL_PATTERN,\n} from '@shipfox/runner-labels';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const runnerLabelSchema = z\n .string()\n .min(1)\n .max(MAX_RUNNER_LABEL_LENGTH)\n .regex(new RegExp(RUNNER_LABEL_PATTERN.source, 'i'));\n\nexport const registerRunnerBodySchema = z.object({\n labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),\n capabilities: runnerToolCapabilitiesSchema.optional(),\n});\n\nexport const registerRunnerResponseSchema = z.object({\n session_token: z.string().min(1),\n session_id: z.string().uuid(),\n mode: z.enum(['manual', 'ephemeral']),\n max_claims: z.number().int().positive().nullable(),\n});\n\nexport type RegisterRunnerBodyDto = z.infer<typeof registerRunnerBodySchema>;\nexport type RegisterRunnerResponseDto = z.infer<typeof registerRunnerResponseSchema>;\n"],"names":["MAX_RUNNER_LABEL_LENGTH","MAX_RUNNER_LABELS","RUNNER_LABEL_PATTERN","z","runnerToolCapabilitiesSchema","runnerLabelSchema","string","min","max","regex","RegExp","source","registerRunnerBodySchema","object","labels","array","capabilities","optional","registerRunnerResponseSchema","session_token","session_id","uuid","mode","enum","max_claims","number","int","positive","nullable"],"mappings":"AAAA,SACEA,uBAAuB,EACvBC,iBAAiB,EACjBC,oBAAoB,QACf,yBAAyB;AAChC,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,yBAAyB;AAEpE,OAAO,MAAMC,oBAAoBF,EAC9BG,MAAM,GACNC,GAAG,CAAC,GACJC,GAAG,CAACR,yBACJS,KAAK,CAAC,IAAIC,OAAOR,qBAAqBS,MAAM,EAAE,MAAM;AAEvD,OAAO,MAAMC,2BAA2BT,EAAEU,MAAM,CAAC;IAC/CC,QAAQX,EAAEY,KAAK,CAACV,mBAAmBE,GAAG,CAAC,GAAGC,GAAG,CAACP;IAC9Ce,cAAcZ,6BAA6Ba,QAAQ;AACrD,GAAG;AAEH,OAAO,MAAMC,+BAA+Bf,EAAEU,MAAM,CAAC;IACnDM,eAAehB,EAAEG,MAAM,GAAGC,GAAG,CAAC;IAC9Ba,YAAYjB,EAAEG,MAAM,GAAGe,IAAI;IAC3BC,MAAMnB,EAAEoB,IAAI,CAAC;QAAC;QAAU;KAAY;IACpCC,YAAYrB,EAAEsB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGC,QAAQ;AAClD,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/register.ts"],"sourcesContent":["import {\n MAX_RUNNER_LABEL_LENGTH,\n MAX_RUNNER_LABELS,\n RUNNER_LABEL_PATTERN,\n} from '@shipfox/runner-labels';\nimport {z} from 'zod';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const runnerLabelSchema = z\n .string()\n .min(1)\n .max(MAX_RUNNER_LABEL_LENGTH)\n .regex(new RegExp(RUNNER_LABEL_PATTERN.source, 'i'));\n\nexport const registerRunnerBodySchema = z.object({\n labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),\n capabilities: runnerToolCapabilitiesSchema.optional(),\n});\n\nexport const registerRunnerResponseSchema = z.object({\n session_token: z.string().min(1),\n session_id: z.string().uuid(),\n mode: z.enum(['manual', 'ephemeral', 'activation']),\n max_claims: z.number().int().positive().nullable(),\n});\n\nexport type RegisterRunnerBodyDto = z.infer<typeof registerRunnerBodySchema>;\nexport type RegisterRunnerResponseDto = z.infer<typeof registerRunnerResponseSchema>;\n"],"names":["MAX_RUNNER_LABEL_LENGTH","MAX_RUNNER_LABELS","RUNNER_LABEL_PATTERN","z","runnerToolCapabilitiesSchema","runnerLabelSchema","string","min","max","regex","RegExp","source","registerRunnerBodySchema","object","labels","array","capabilities","optional","registerRunnerResponseSchema","session_token","session_id","uuid","mode","enum","max_claims","number","int","positive","nullable"],"mappings":"AAAA,SACEA,uBAAuB,EACvBC,iBAAiB,EACjBC,oBAAoB,QACf,yBAAyB;AAChC,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,4BAA4B,QAAO,yBAAyB;AAEpE,OAAO,MAAMC,oBAAoBF,EAC9BG,MAAM,GACNC,GAAG,CAAC,GACJC,GAAG,CAACR,yBACJS,KAAK,CAAC,IAAIC,OAAOR,qBAAqBS,MAAM,EAAE,MAAM;AAEvD,OAAO,MAAMC,2BAA2BT,EAAEU,MAAM,CAAC;IAC/CC,QAAQX,EAAEY,KAAK,CAACV,mBAAmBE,GAAG,CAAC,GAAGC,GAAG,CAACP;IAC9Ce,cAAcZ,6BAA6Ba,QAAQ;AACrD,GAAG;AAEH,OAAO,MAAMC,+BAA+Bf,EAAEU,MAAM,CAAC;IACnDM,eAAehB,EAAEG,MAAM,GAAGC,GAAG,CAAC;IAC9Ba,YAAYjB,EAAEG,MAAM,GAAGe,IAAI;IAC3BC,MAAMnB,EAAEoB,IAAI,CAAC;QAAC;QAAU;QAAa;KAAa;IAClDC,YAAYrB,EAAEsB,MAAM,GAAGC,GAAG,GAAGC,QAAQ,GAAGC,QAAQ;AAClD,GAAG"}
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- export declare const MAX_PROVISIONED_RUNNER_REPORT_EVENTS = 1000;
3
- export declare const MAX_PROVISIONED_RUNNER_REASON_LENGTH = 500;
2
+ export declare const MAX_PROVIDER_RUNNER_REPORT_EVENTS = 1000;
3
+ export declare const MAX_PROVIDER_RUNNER_REASON_LENGTH = 500;
4
4
  export declare const MAX_PROVIDER_KIND_LENGTH = 64;
5
- export declare const provisionedRunnerStateSchema: z.ZodEnum<{
5
+ export declare const providerRunnerStateSchema: z.ZodEnum<{
6
6
  starting: "starting";
7
7
  running: "running";
8
8
  stopping: "stopping";
@@ -11,8 +11,9 @@ export declare const provisionedRunnerStateSchema: z.ZodEnum<{
11
11
  terminated: "terminated";
12
12
  }>;
13
13
  export declare const providerKindSchema: z.ZodString;
14
- export declare const provisionedRunnerReportEventSchema: z.ZodObject<{
15
- provisioned_runner_id: z.ZodString;
14
+ export declare const providerRunnerReportEventSchema: z.ZodObject<{
15
+ runner_instance_id: z.ZodOptional<z.ZodString>;
16
+ provider_runner_id: z.ZodString;
16
17
  reservation_id: z.ZodOptional<z.ZodString>;
17
18
  template_key: z.ZodOptional<z.ZodString>;
18
19
  labels: z.ZodArray<z.ZodString>;
@@ -29,9 +30,10 @@ export declare const provisionedRunnerReportEventSchema: z.ZodObject<{
29
30
  reported_at: z.ZodString;
30
31
  provider_kind: z.ZodOptional<z.ZodString>;
31
32
  }, z.core.$strict>;
32
- export declare const reportProvisionedRunnersBodySchema: z.ZodObject<{
33
+ export declare const reportRunnerInstancesBodySchema: z.ZodObject<{
33
34
  events: z.ZodArray<z.ZodObject<{
34
- provisioned_runner_id: z.ZodString;
35
+ runner_instance_id: z.ZodOptional<z.ZodString>;
36
+ provider_runner_id: z.ZodString;
35
37
  reservation_id: z.ZodOptional<z.ZodString>;
36
38
  template_key: z.ZodOptional<z.ZodString>;
37
39
  labels: z.ZodArray<z.ZodString>;
@@ -49,7 +51,7 @@ export declare const reportProvisionedRunnersBodySchema: z.ZodObject<{
49
51
  provider_kind: z.ZodOptional<z.ZodString>;
50
52
  }, z.core.$strict>>;
51
53
  }, z.core.$strip>;
52
- export declare const reportProvisionedRunnersResponseSchema: z.ZodObject<{
54
+ export declare const reportRunnerInstancesResponseSchema: z.ZodObject<{
53
55
  accepted: z.ZodNumber;
54
56
  reservations_released: z.ZodNumber;
55
57
  }, z.core.$strip>;
@@ -61,7 +63,7 @@ export declare const activeRunnerStateSchema: z.ZodEnum<{
61
63
  }>;
62
64
  export declare const activeRunnerDtoSchema: z.ZodObject<{
63
65
  runner_session_id: z.ZodNullable<z.ZodString>;
64
- provisioned_runner_id: z.ZodNullable<z.ZodString>;
66
+ provider_runner_id: z.ZodNullable<z.ZodString>;
65
67
  provisioner_id: z.ZodNullable<z.ZodString>;
66
68
  state: z.ZodEnum<{
67
69
  starting: "starting";
@@ -81,7 +83,7 @@ export declare const activeRunnerDtoSchema: z.ZodObject<{
81
83
  export declare const activeRunnersResponseSchema: z.ZodObject<{
82
84
  runners: z.ZodArray<z.ZodObject<{
83
85
  runner_session_id: z.ZodNullable<z.ZodString>;
84
- provisioned_runner_id: z.ZodNullable<z.ZodString>;
86
+ provider_runner_id: z.ZodNullable<z.ZodString>;
85
87
  provisioner_id: z.ZodNullable<z.ZodString>;
86
88
  state: z.ZodEnum<{
87
89
  starting: "starting";
@@ -99,11 +101,11 @@ export declare const activeRunnersResponseSchema: z.ZodObject<{
99
101
  last_heartbeat_at: z.ZodNullable<z.ZodString>;
100
102
  }, z.core.$strip>>;
101
103
  }, z.core.$strip>;
102
- export type ProvisionedRunnerStateDto = z.infer<typeof provisionedRunnerStateSchema>;
103
- export type ProvisionedRunnerReportEventDto = z.infer<typeof provisionedRunnerReportEventSchema>;
104
- export type ReportProvisionedRunnersBodyDto = z.infer<typeof reportProvisionedRunnersBodySchema>;
105
- export type ReportProvisionedRunnersResponseDto = z.infer<typeof reportProvisionedRunnersResponseSchema>;
104
+ export type RunnerInstanceStateDto = z.infer<typeof providerRunnerStateSchema>;
105
+ export type RunnerInstanceReportEventDto = z.infer<typeof providerRunnerReportEventSchema>;
106
+ export type ReportRunnerInstancesBodyDto = z.infer<typeof reportRunnerInstancesBodySchema>;
107
+ export type ReportRunnerInstancesResponseDto = z.infer<typeof reportRunnerInstancesResponseSchema>;
106
108
  export type ActiveRunnerStateDto = z.infer<typeof activeRunnerStateSchema>;
107
109
  export type ActiveRunnerDto = z.infer<typeof activeRunnerDtoSchema>;
108
110
  export type ActiveRunnersResponseDto = z.infer<typeof activeRunnersResponseSchema>;
109
- //# sourceMappingURL=report-provisioned-runners.d.ts.map
111
+ //# sourceMappingURL=report-runner-instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-runner-instances.d.ts","sourceRoot":"","sources":["../../src/schemas/report-runner-instances.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,iCAAiC,OAAO,CAAC;AACtD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,yBAAyB;;;;;;;EAOpC,CAAC;AAEH,eAAO,MAAM,kBAAkB,aAAkD,CAAC;AAElF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;kBAajC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;iBAE1C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;iBAG9C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;EAAsD,CAAC;AAE3F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBAahC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAEtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC3F,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,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { MAX_RUNNER_LABELS } from '@shipfox/runner-labels';
2
2
  import { z } from 'zod';
3
3
  import { runnerLabelSchema } from './register.js';
4
- export const MAX_PROVISIONED_RUNNER_REPORT_EVENTS = 1000;
5
- export const MAX_PROVISIONED_RUNNER_REASON_LENGTH = 500;
4
+ export const MAX_PROVIDER_RUNNER_REPORT_EVENTS = 1000;
5
+ export const MAX_PROVIDER_RUNNER_REASON_LENGTH = 500;
6
6
  export const MAX_PROVIDER_KIND_LENGTH = 64;
7
- export const provisionedRunnerStateSchema = z.enum([
7
+ export const providerRunnerStateSchema = z.enum([
8
8
  'starting',
9
9
  'running',
10
10
  'stopping',
@@ -13,21 +13,22 @@ export const provisionedRunnerStateSchema = z.enum([
13
13
  'terminated'
14
14
  ]);
15
15
  export const providerKindSchema = z.string().min(1).max(MAX_PROVIDER_KIND_LENGTH);
16
- export const provisionedRunnerReportEventSchema = z.object({
17
- provisioned_runner_id: z.string().min(1).max(255),
16
+ export const providerRunnerReportEventSchema = z.object({
17
+ runner_instance_id: z.string().uuid().optional(),
18
+ provider_runner_id: z.string().min(1).max(255),
18
19
  reservation_id: z.string().uuid().optional(),
19
20
  template_key: z.string().min(1).max(255).optional(),
20
21
  labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),
21
- state: provisionedRunnerStateSchema,
22
- reason: z.string().min(1).max(MAX_PROVISIONED_RUNNER_REASON_LENGTH).optional(),
22
+ state: providerRunnerStateSchema,
23
+ reason: z.string().min(1).max(MAX_PROVIDER_RUNNER_REASON_LENGTH).optional(),
23
24
  runner_session_id: z.string().uuid().optional(),
24
25
  reported_at: z.string().datetime(),
25
26
  provider_kind: providerKindSchema.optional()
26
27
  }).strict();
27
- export const reportProvisionedRunnersBodySchema = z.object({
28
- events: z.array(provisionedRunnerReportEventSchema).min(1).max(MAX_PROVISIONED_RUNNER_REPORT_EVENTS)
28
+ export const reportRunnerInstancesBodySchema = z.object({
29
+ events: z.array(providerRunnerReportEventSchema).min(1).max(MAX_PROVIDER_RUNNER_REPORT_EVENTS)
29
30
  });
30
- export const reportProvisionedRunnersResponseSchema = z.object({
31
+ export const reportRunnerInstancesResponseSchema = z.object({
31
32
  accepted: z.number().int().min(0),
32
33
  reservations_released: z.number().int().min(0)
33
34
  });
@@ -39,7 +40,7 @@ export const activeRunnerStateSchema = z.enum([
39
40
  ]);
40
41
  export const activeRunnerDtoSchema = z.object({
41
42
  runner_session_id: z.string().uuid().nullable(),
42
- provisioned_runner_id: z.string().nullable(),
43
+ provider_runner_id: z.string().nullable(),
43
44
  provisioner_id: z.string().uuid().nullable(),
44
45
  state: activeRunnerStateSchema,
45
46
  labels: z.array(z.string()),
@@ -55,4 +56,4 @@ export const activeRunnersResponseSchema = z.object({
55
56
  runners: z.array(activeRunnerDtoSchema)
56
57
  });
57
58
 
58
- //# sourceMappingURL=report-provisioned-runners.js.map
59
+ //# sourceMappingURL=report-runner-instances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/report-runner-instances.ts"],"sourcesContent":["import {MAX_RUNNER_LABELS} from '@shipfox/runner-labels';\nimport {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\n\nexport const MAX_PROVIDER_RUNNER_REPORT_EVENTS = 1000;\nexport const MAX_PROVIDER_RUNNER_REASON_LENGTH = 500;\nexport const MAX_PROVIDER_KIND_LENGTH = 64;\n\nexport const providerRunnerStateSchema = z.enum([\n 'starting',\n 'running',\n 'stopping',\n 'stopped',\n 'failed',\n 'terminated',\n]);\n\nexport const providerKindSchema = z.string().min(1).max(MAX_PROVIDER_KIND_LENGTH);\n\nexport const providerRunnerReportEventSchema = z\n .object({\n runner_instance_id: z.string().uuid().optional(),\n provider_runner_id: z.string().min(1).max(255),\n reservation_id: z.string().uuid().optional(),\n template_key: z.string().min(1).max(255).optional(),\n labels: z.array(runnerLabelSchema).min(1).max(MAX_RUNNER_LABELS),\n state: providerRunnerStateSchema,\n reason: z.string().min(1).max(MAX_PROVIDER_RUNNER_REASON_LENGTH).optional(),\n runner_session_id: z.string().uuid().optional(),\n reported_at: z.string().datetime(),\n provider_kind: providerKindSchema.optional(),\n })\n .strict();\n\nexport const reportRunnerInstancesBodySchema = z.object({\n events: z.array(providerRunnerReportEventSchema).min(1).max(MAX_PROVIDER_RUNNER_REPORT_EVENTS),\n});\n\nexport const reportRunnerInstancesResponseSchema = z.object({\n accepted: z.number().int().min(0),\n reservations_released: z.number().int().min(0),\n});\n\nexport const activeRunnerStateSchema = z.enum(['starting', 'running', 'stopping', 'busy']);\n\nexport const activeRunnerDtoSchema = z.object({\n runner_session_id: z.string().uuid().nullable(),\n provider_runner_id: z.string().nullable(),\n provisioner_id: z.string().uuid().nullable(),\n state: activeRunnerStateSchema,\n labels: z.array(z.string()),\n template_key: z.string().nullable(),\n provider_kind: z.string().nullable(),\n job_id: z.string().uuid().nullable(),\n workflow_run_attempt_id: z.string().uuid().nullable(),\n project_id: z.string().uuid().nullable(),\n reported_at: z.string().nullable(),\n last_heartbeat_at: z.string().nullable(),\n});\n\nexport const activeRunnersResponseSchema = z.object({\n runners: z.array(activeRunnerDtoSchema),\n});\n\nexport type RunnerInstanceStateDto = z.infer<typeof providerRunnerStateSchema>;\nexport type RunnerInstanceReportEventDto = z.infer<typeof providerRunnerReportEventSchema>;\nexport type ReportRunnerInstancesBodyDto = z.infer<typeof reportRunnerInstancesBodySchema>;\nexport type ReportRunnerInstancesResponseDto = z.infer<typeof reportRunnerInstancesResponseSchema>;\nexport type ActiveRunnerStateDto = z.infer<typeof activeRunnerStateSchema>;\nexport type ActiveRunnerDto = z.infer<typeof activeRunnerDtoSchema>;\nexport type ActiveRunnersResponseDto = z.infer<typeof activeRunnersResponseSchema>;\n"],"names":["MAX_RUNNER_LABELS","z","runnerLabelSchema","MAX_PROVIDER_RUNNER_REPORT_EVENTS","MAX_PROVIDER_RUNNER_REASON_LENGTH","MAX_PROVIDER_KIND_LENGTH","providerRunnerStateSchema","enum","providerKindSchema","string","min","max","providerRunnerReportEventSchema","object","runner_instance_id","uuid","optional","provider_runner_id","reservation_id","template_key","labels","array","state","reason","runner_session_id","reported_at","datetime","provider_kind","strict","reportRunnerInstancesBodySchema","events","reportRunnerInstancesResponseSchema","accepted","number","int","reservations_released","activeRunnerStateSchema","activeRunnerDtoSchema","nullable","provisioner_id","job_id","workflow_run_attempt_id","project_id","last_heartbeat_at","activeRunnersResponseSchema","runners"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,yBAAyB;AACzD,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,iBAAiB,QAAO,gBAAgB;AAEhD,OAAO,MAAMC,oCAAoC,KAAK;AACtD,OAAO,MAAMC,oCAAoC,IAAI;AACrD,OAAO,MAAMC,2BAA2B,GAAG;AAE3C,OAAO,MAAMC,4BAA4BL,EAAEM,IAAI,CAAC;IAC9C;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAMC,qBAAqBP,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAACN,0BAA0B;AAElF,OAAO,MAAMO,kCAAkCX,EAC5CY,MAAM,CAAC;IACNC,oBAAoBb,EAAEQ,MAAM,GAAGM,IAAI,GAAGC,QAAQ;IAC9CC,oBAAoBhB,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;IAC1CO,gBAAgBjB,EAAEQ,MAAM,GAAGM,IAAI,GAAGC,QAAQ;IAC1CG,cAAclB,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKK,QAAQ;IACjDI,QAAQnB,EAAEoB,KAAK,CAACnB,mBAAmBQ,GAAG,CAAC,GAAGC,GAAG,CAACX;IAC9CsB,OAAOhB;IACPiB,QAAQtB,EAAEQ,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAACP,mCAAmCY,QAAQ;IACzEQ,mBAAmBvB,EAAEQ,MAAM,GAAGM,IAAI,GAAGC,QAAQ;IAC7CS,aAAaxB,EAAEQ,MAAM,GAAGiB,QAAQ;IAChCC,eAAenB,mBAAmBQ,QAAQ;AAC5C,GACCY,MAAM,GAAG;AAEZ,OAAO,MAAMC,kCAAkC5B,EAAEY,MAAM,CAAC;IACtDiB,QAAQ7B,EAAEoB,KAAK,CAACT,iCAAiCF,GAAG,CAAC,GAAGC,GAAG,CAACR;AAC9D,GAAG;AAEH,OAAO,MAAM4B,sCAAsC9B,EAAEY,MAAM,CAAC;IAC1DmB,UAAU/B,EAAEgC,MAAM,GAAGC,GAAG,GAAGxB,GAAG,CAAC;IAC/ByB,uBAAuBlC,EAAEgC,MAAM,GAAGC,GAAG,GAAGxB,GAAG,CAAC;AAC9C,GAAG;AAEH,OAAO,MAAM0B,0BAA0BnC,EAAEM,IAAI,CAAC;IAAC;IAAY;IAAW;IAAY;CAAO,EAAE;AAE3F,OAAO,MAAM8B,wBAAwBpC,EAAEY,MAAM,CAAC;IAC5CW,mBAAmBvB,EAAEQ,MAAM,GAAGM,IAAI,GAAGuB,QAAQ;IAC7CrB,oBAAoBhB,EAAEQ,MAAM,GAAG6B,QAAQ;IACvCC,gBAAgBtC,EAAEQ,MAAM,GAAGM,IAAI,GAAGuB,QAAQ;IAC1ChB,OAAOc;IACPhB,QAAQnB,EAAEoB,KAAK,CAACpB,EAAEQ,MAAM;IACxBU,cAAclB,EAAEQ,MAAM,GAAG6B,QAAQ;IACjCX,eAAe1B,EAAEQ,MAAM,GAAG6B,QAAQ;IAClCE,QAAQvC,EAAEQ,MAAM,GAAGM,IAAI,GAAGuB,QAAQ;IAClCG,yBAAyBxC,EAAEQ,MAAM,GAAGM,IAAI,GAAGuB,QAAQ;IACnDI,YAAYzC,EAAEQ,MAAM,GAAGM,IAAI,GAAGuB,QAAQ;IACtCb,aAAaxB,EAAEQ,MAAM,GAAG6B,QAAQ;IAChCK,mBAAmB1C,EAAEQ,MAAM,GAAG6B,QAAQ;AACxC,GAAG;AAEH,OAAO,MAAMM,8BAA8B3C,EAAEY,MAAM,CAAC;IAClDgC,SAAS5C,EAAEoB,KAAK,CAACgB;AACnB,GAAG"}
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ export declare const runnerBootstrapExchangeBodySchema: z.ZodObject<{
3
+ bootstrap_token: z.ZodString;
4
+ }, z.core.$strict>;
5
+ export declare const createRunnerInstancesBodySchema: z.ZodObject<{
6
+ provider_kind: z.ZodOptional<z.ZodString>;
7
+ runner_instances: z.ZodArray<z.ZodObject<{
8
+ template_key: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strict>>;
10
+ }, z.core.$strict>;
11
+ export declare const createRunnerInstancesResponseSchema: z.ZodObject<{
12
+ runner_instances: z.ZodArray<z.ZodObject<{
13
+ runner_instance_id: z.ZodString;
14
+ bootstrap_token: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ export declare const runnerBootstrapExchangeResponseSchema: z.ZodObject<{
18
+ runner_instance_id: z.ZodString;
19
+ control_session_token: z.ZodString;
20
+ expires_at: z.ZodString;
21
+ }, z.core.$strip>;
22
+ export declare const runnerEnrollmentBodySchema: z.ZodObject<{
23
+ labels: z.ZodArray<z.ZodString>;
24
+ capabilities: z.ZodOptional<z.ZodObject<{
25
+ harnesses: z.ZodObject<{
26
+ pi: z.ZodOptional<z.ZodObject<{
27
+ tools: z.ZodArray<z.ZodString>;
28
+ }, z.core.$strict>>;
29
+ claude: z.ZodOptional<z.ZodObject<{
30
+ tools: z.ZodArray<z.ZodString>;
31
+ }, z.core.$strict>>;
32
+ }, z.core.$strict>;
33
+ }, z.core.$strict>>;
34
+ provider_kind: z.ZodString;
35
+ protocol_version: z.ZodString;
36
+ }, z.core.$strict>;
37
+ export declare const attachRunnerControlProviderIdBodySchema: z.ZodObject<{
38
+ provider_runner_id: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export declare const runnerControlHeartbeatResponseSchema: z.ZodObject<{
41
+ ok: z.ZodLiteral<true>;
42
+ }, z.core.$strip>;
43
+ export declare const runnerAssignmentPollResponseSchema: z.ZodObject<{
44
+ activation_token: z.ZodNullable<z.ZodString>;
45
+ }, z.core.$strip>;
46
+ export type RunnerBootstrapExchangeBodyDto = z.infer<typeof runnerBootstrapExchangeBodySchema>;
47
+ export type CreateRunnerInstancesBodyDto = z.infer<typeof createRunnerInstancesBodySchema>;
48
+ export type CreateRunnerInstancesResponseDto = z.infer<typeof createRunnerInstancesResponseSchema>;
49
+ export type RunnerBootstrapExchangeResponseDto = z.infer<typeof runnerBootstrapExchangeResponseSchema>;
50
+ export type RunnerEnrollmentBodyDto = z.infer<typeof runnerEnrollmentBodySchema>;
51
+ //# sourceMappingURL=runner-enrollment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner-enrollment.d.ts","sourceRoot":"","sources":["../../src/schemas/runner-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,iCAAiC;;kBAEnC,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;kBAQjC,CAAC;AACZ,eAAO,MAAM,mCAAmC;;;;;iBAI9C,CAAC;AACH,eAAO,MAAM,qCAAqC;;;;iBAIhD,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;kBAO5B,CAAC;AACZ,eAAO,MAAM,uCAAuC;;kBAEzC,CAAC;AACZ,eAAO,MAAM,oCAAoC;;iBAAkC,CAAC;AACpF,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACnG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { runnerLabelSchema } from './register.js';
3
+ import { runnerToolCapabilitiesSchema } from './tool-capabilities.js';
4
+ export const runnerBootstrapExchangeBodySchema = z.object({
5
+ bootstrap_token: z.string().min(1)
6
+ }).strict();
7
+ export const createRunnerInstancesBodySchema = z.object({
8
+ provider_kind: z.string().min(1).max(64).optional(),
9
+ runner_instances: z.array(z.object({
10
+ template_key: z.string().min(1).max(255).optional()
11
+ }).strict()).min(1).max(500)
12
+ }).strict();
13
+ export const createRunnerInstancesResponseSchema = z.object({
14
+ runner_instances: z.array(z.object({
15
+ runner_instance_id: z.string().uuid(),
16
+ bootstrap_token: z.string().min(1)
17
+ }))
18
+ });
19
+ export const runnerBootstrapExchangeResponseSchema = z.object({
20
+ runner_instance_id: z.string().uuid(),
21
+ control_session_token: z.string().min(1),
22
+ expires_at: z.string().datetime()
23
+ });
24
+ export const runnerEnrollmentBodySchema = z.object({
25
+ labels: z.array(runnerLabelSchema).min(1).max(100),
26
+ capabilities: runnerToolCapabilitiesSchema.optional(),
27
+ provider_kind: z.string().min(1).max(64),
28
+ protocol_version: z.string().min(1).max(64)
29
+ }).strict();
30
+ export const attachRunnerControlProviderIdBodySchema = z.object({
31
+ provider_runner_id: z.string().min(1).max(255)
32
+ }).strict();
33
+ export const runnerControlHeartbeatResponseSchema = z.object({
34
+ ok: z.literal(true)
35
+ });
36
+ export const runnerAssignmentPollResponseSchema = z.object({
37
+ activation_token: z.string().min(1).nullable()
38
+ });
39
+
40
+ //# sourceMappingURL=runner-enrollment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/runner-enrollment.ts"],"sourcesContent":["import {z} from 'zod';\nimport {runnerLabelSchema} from './register.js';\nimport {runnerToolCapabilitiesSchema} from './tool-capabilities.js';\n\nexport const runnerBootstrapExchangeBodySchema = z\n .object({bootstrap_token: z.string().min(1)})\n .strict();\nexport const createRunnerInstancesBodySchema = z\n .object({\n provider_kind: z.string().min(1).max(64).optional(),\n runner_instances: z\n .array(z.object({template_key: z.string().min(1).max(255).optional()}).strict())\n .min(1)\n .max(500),\n })\n .strict();\nexport const createRunnerInstancesResponseSchema = z.object({\n runner_instances: z.array(\n z.object({runner_instance_id: z.string().uuid(), bootstrap_token: z.string().min(1)}),\n ),\n});\nexport const runnerBootstrapExchangeResponseSchema = z.object({\n runner_instance_id: z.string().uuid(),\n control_session_token: z.string().min(1),\n expires_at: z.string().datetime(),\n});\nexport const runnerEnrollmentBodySchema = z\n .object({\n labels: z.array(runnerLabelSchema).min(1).max(100),\n capabilities: runnerToolCapabilitiesSchema.optional(),\n provider_kind: z.string().min(1).max(64),\n protocol_version: z.string().min(1).max(64),\n })\n .strict();\nexport const attachRunnerControlProviderIdBodySchema = z\n .object({provider_runner_id: z.string().min(1).max(255)})\n .strict();\nexport const runnerControlHeartbeatResponseSchema = z.object({ok: z.literal(true)});\nexport const runnerAssignmentPollResponseSchema = z.object({\n activation_token: z.string().min(1).nullable(),\n});\n\nexport type RunnerBootstrapExchangeBodyDto = z.infer<typeof runnerBootstrapExchangeBodySchema>;\nexport type CreateRunnerInstancesBodyDto = z.infer<typeof createRunnerInstancesBodySchema>;\nexport type CreateRunnerInstancesResponseDto = z.infer<typeof createRunnerInstancesResponseSchema>;\nexport type RunnerBootstrapExchangeResponseDto = z.infer<\n typeof runnerBootstrapExchangeResponseSchema\n>;\nexport type RunnerEnrollmentBodyDto = z.infer<typeof runnerEnrollmentBodySchema>;\n"],"names":["z","runnerLabelSchema","runnerToolCapabilitiesSchema","runnerBootstrapExchangeBodySchema","object","bootstrap_token","string","min","strict","createRunnerInstancesBodySchema","provider_kind","max","optional","runner_instances","array","template_key","createRunnerInstancesResponseSchema","runner_instance_id","uuid","runnerBootstrapExchangeResponseSchema","control_session_token","expires_at","datetime","runnerEnrollmentBodySchema","labels","capabilities","protocol_version","attachRunnerControlProviderIdBodySchema","provider_runner_id","runnerControlHeartbeatResponseSchema","ok","literal","runnerAssignmentPollResponseSchema","activation_token","nullable"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,iBAAiB,QAAO,gBAAgB;AAChD,SAAQC,4BAA4B,QAAO,yBAAyB;AAEpE,OAAO,MAAMC,oCAAoCH,EAC9CI,MAAM,CAAC;IAACC,iBAAiBL,EAAEM,MAAM,GAAGC,GAAG,CAAC;AAAE,GAC1CC,MAAM,GAAG;AACZ,OAAO,MAAMC,kCAAkCT,EAC5CI,MAAM,CAAC;IACNM,eAAeV,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC,IAAIC,QAAQ;IACjDC,kBAAkBb,EACfc,KAAK,CAACd,EAAEI,MAAM,CAAC;QAACW,cAAcf,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC,KAAKC,QAAQ;IAAE,GAAGJ,MAAM,IAC5ED,GAAG,CAAC,GACJI,GAAG,CAAC;AACT,GACCH,MAAM,GAAG;AACZ,OAAO,MAAMQ,sCAAsChB,EAAEI,MAAM,CAAC;IAC1DS,kBAAkBb,EAAEc,KAAK,CACvBd,EAAEI,MAAM,CAAC;QAACa,oBAAoBjB,EAAEM,MAAM,GAAGY,IAAI;QAAIb,iBAAiBL,EAAEM,MAAM,GAAGC,GAAG,CAAC;IAAE;AAEvF,GAAG;AACH,OAAO,MAAMY,wCAAwCnB,EAAEI,MAAM,CAAC;IAC5Da,oBAAoBjB,EAAEM,MAAM,GAAGY,IAAI;IACnCE,uBAAuBpB,EAAEM,MAAM,GAAGC,GAAG,CAAC;IACtCc,YAAYrB,EAAEM,MAAM,GAAGgB,QAAQ;AACjC,GAAG;AACH,OAAO,MAAMC,6BAA6BvB,EACvCI,MAAM,CAAC;IACNoB,QAAQxB,EAAEc,KAAK,CAACb,mBAAmBM,GAAG,CAAC,GAAGI,GAAG,CAAC;IAC9Cc,cAAcvB,6BAA6BU,QAAQ;IACnDF,eAAeV,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC;IACrCe,kBAAkB1B,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC;AAC1C,GACCH,MAAM,GAAG;AACZ,OAAO,MAAMmB,0CAA0C3B,EACpDI,MAAM,CAAC;IAACwB,oBAAoB5B,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAGI,GAAG,CAAC;AAAI,GACtDH,MAAM,GAAG;AACZ,OAAO,MAAMqB,uCAAuC7B,EAAEI,MAAM,CAAC;IAAC0B,IAAI9B,EAAE+B,OAAO,CAAC;AAAK,GAAG;AACpF,OAAO,MAAMC,qCAAqChC,EAAEI,MAAM,CAAC;IACzD6B,kBAAkBjC,EAAEM,MAAM,GAAGC,GAAG,CAAC,GAAG2B,QAAQ;AAC9C,GAAG"}