@mastra/factory 0.29.0-alpha.4 → 0.29.0-alpha.5
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/README.md +119 -60
- package/dist/boards/board-events.d.ts +89 -9
- package/dist/boards/board-events.d.ts.map +1 -1
- package/dist/boards/board-events.js +176 -13
- package/dist/boards/board-events.js.map +1 -1
- package/dist/boards/board-writes.d.ts.map +1 -1
- package/dist/boards/board-writes.js +14 -1
- package/dist/boards/board-writes.js.map +1 -1
- package/dist/boards/busy-card.d.ts +11 -0
- package/dist/boards/busy-card.d.ts.map +1 -0
- package/dist/boards/busy-card.js +15 -0
- package/dist/boards/busy-card.js.map +1 -0
- package/dist/boards/card-facts.d.ts.map +1 -1
- package/dist/boards/card-facts.js +18 -4
- package/dist/boards/card-facts.js.map +1 -1
- package/dist/boards/index.d.ts +2 -1
- package/dist/boards/index.d.ts.map +1 -1
- package/dist/boards/index.js +3 -2
- package/dist/boards/intake-dry-run.d.ts +109 -0
- package/dist/boards/intake-dry-run.d.ts.map +1 -0
- package/dist/boards/intake-dry-run.js +158 -0
- package/dist/boards/intake-dry-run.js.map +1 -0
- package/dist/boards/intake-lookup.d.ts +32 -0
- package/dist/boards/intake-lookup.d.ts.map +1 -0
- package/dist/boards/intake-lookup.js +12 -0
- package/dist/boards/intake-lookup.js.map +1 -0
- package/dist/boards/intake-order.d.ts +32 -0
- package/dist/boards/intake-order.d.ts.map +1 -0
- package/dist/boards/intake-order.js +60 -0
- package/dist/boards/intake-order.js.map +1 -0
- package/dist/boards/intake-routing.d.ts +246 -35
- package/dist/boards/intake-routing.d.ts.map +1 -1
- package/dist/boards/intake-routing.js +437 -52
- package/dist/boards/intake-routing.js.map +1 -1
- package/dist/boards/reroute.d.ts +7 -3
- package/dist/boards/reroute.d.ts.map +1 -1
- package/dist/boards/reroute.js +21 -4
- package/dist/boards/reroute.js.map +1 -1
- package/dist/boards/semantics.d.ts +8 -28
- package/dist/boards/semantics.d.ts.map +1 -1
- package/dist/boards/semantics.js +7 -39
- package/dist/boards/semantics.js.map +1 -1
- package/dist/boards/work-routes.d.ts +31 -11
- package/dist/boards/work-routes.d.ts.map +1 -1
- package/dist/boards/work-routes.js +104 -20
- package/dist/boards/work-routes.js.map +1 -1
- package/dist/factory.d.ts +27 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +31 -9
- package/dist/factory.js.map +1 -1
- package/dist/integrations/base.d.ts +9 -0
- package/dist/integrations/base.d.ts.map +1 -1
- package/dist/integrations/dependabot/rules.js +1 -1
- package/dist/integrations/dependabot/rules.js.map +1 -1
- package/dist/integrations/github/default-rules.d.ts +22 -1
- package/dist/integrations/github/default-rules.d.ts.map +1 -1
- package/dist/integrations/github/default-rules.js +23 -5
- package/dist/integrations/github/default-rules.js.map +1 -1
- package/dist/integrations/github/intake-lookup.d.ts +16 -0
- package/dist/integrations/github/intake-lookup.d.ts.map +1 -0
- package/dist/integrations/github/intake-lookup.js +76 -0
- package/dist/integrations/github/intake-lookup.js.map +1 -0
- package/dist/integrations/github/integration.d.ts +19 -5
- package/dist/integrations/github/integration.d.ts.map +1 -1
- package/dist/integrations/github/integration.js +21 -6
- package/dist/integrations/github/integration.js.map +1 -1
- package/dist/integrations/github/review-status-reporter.js +1 -1
- package/dist/integrations/github/routes.d.ts.map +1 -1
- package/dist/integrations/github/routes.js +14 -2
- package/dist/integrations/github/routes.js.map +1 -1
- package/dist/integrations/github/rules.d.ts +12 -1
- package/dist/integrations/github/rules.d.ts.map +1 -1
- package/dist/integrations/github/rules.js +218 -30
- package/dist/integrations/github/rules.js.map +1 -1
- package/dist/integrations/github/sandbox.d.ts.map +1 -1
- package/dist/integrations/github/sandbox.js +30 -4
- package/dist/integrations/github/sandbox.js.map +1 -1
- package/dist/integrations/gitlab/default-rules.d.ts.map +1 -1
- package/dist/integrations/gitlab/default-rules.js +19 -3
- package/dist/integrations/gitlab/default-rules.js.map +1 -1
- package/dist/integrations/gitlab/intake-lookup.d.ts +17 -0
- package/dist/integrations/gitlab/intake-lookup.d.ts.map +1 -0
- package/dist/integrations/gitlab/intake-lookup.js +85 -0
- package/dist/integrations/gitlab/intake-lookup.js.map +1 -0
- package/dist/integrations/gitlab/integration.d.ts +5 -0
- package/dist/integrations/gitlab/integration.d.ts.map +1 -1
- package/dist/integrations/gitlab/integration.js +21 -1
- package/dist/integrations/gitlab/integration.js.map +1 -1
- package/dist/integrations/gitlab/rules.d.ts +20 -0
- package/dist/integrations/gitlab/rules.d.ts.map +1 -1
- package/dist/integrations/gitlab/rules.js +108 -12
- package/dist/integrations/gitlab/rules.js.map +1 -1
- package/dist/integrations/incidentio/rules.d.ts.map +1 -1
- package/dist/integrations/incidentio/rules.js +14 -4
- package/dist/integrations/incidentio/rules.js.map +1 -1
- package/dist/integrations/jira/rules.d.ts.map +1 -1
- package/dist/integrations/jira/rules.js +12 -2
- package/dist/integrations/jira/rules.js.map +1 -1
- package/dist/integrations/linear/rules.d.ts.map +1 -1
- package/dist/integrations/linear/rules.js +13 -2
- package/dist/integrations/linear/rules.js.map +1 -1
- package/dist/integrations/platform/github/event-worker.js +9 -1
- package/dist/integrations/platform/github/event-worker.js.map +1 -1
- package/dist/integrations/platform/github/integration.d.ts +6 -6
- package/dist/integrations/platform/github/integration.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.js +22 -3
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/integrations/pull-request-head.d.ts +1 -1
- package/dist/integrations/pull-request-head.d.ts.map +1 -1
- package/dist/integrations/pull-request-head.js +5 -0
- package/dist/integrations/pull-request-head.js.map +1 -1
- package/dist/integrations/vanta/rules.js +1 -1
- package/dist/integrations/vanta/rules.js.map +1 -1
- package/dist/routes/board-snapshot.d.ts +8 -1
- package/dist/routes/board-snapshot.d.ts.map +1 -1
- package/dist/routes/board-snapshot.js +33 -7
- package/dist/routes/board-snapshot.js.map +1 -1
- package/dist/routes/boards.js.map +1 -1
- package/dist/routes/config.d.ts +6 -0
- package/dist/routes/config.d.ts.map +1 -1
- package/dist/routes/config.js +5 -2
- package/dist/routes/config.js.map +1 -1
- package/dist/routes/contracts.d.ts +1258 -0
- package/dist/routes/contracts.d.ts.map +1 -1
- package/dist/routes/contracts.js +586 -13
- package/dist/routes/contracts.js.map +1 -1
- package/dist/routes/intake-check.d.ts +92 -0
- package/dist/routes/intake-check.d.ts.map +1 -0
- package/dist/routes/intake-check.js +322 -0
- package/dist/routes/intake-check.js.map +1 -0
- package/dist/routes/intake-routes.d.ts +10 -2
- package/dist/routes/intake-routes.d.ts.map +1 -1
- package/dist/routes/intake-routes.js +292 -11
- package/dist/routes/intake-routes.js.map +1 -1
- package/dist/routes/mastra-gateway.d.ts.map +1 -1
- package/dist/routes/mastra-gateway.js +3 -2
- package/dist/routes/mastra-gateway.js.map +1 -1
- package/dist/routes/project-sessions.d.ts +49 -0
- package/dist/routes/project-sessions.d.ts.map +1 -0
- package/dist/routes/project-sessions.js +93 -0
- package/dist/routes/project-sessions.js.map +1 -0
- package/dist/routes/run-queue.d.ts +6 -6
- package/dist/routes/run-queue.d.ts.map +1 -1
- package/dist/routes/run-queue.js +28 -8
- package/dist/routes/run-queue.js.map +1 -1
- package/dist/routes/session-rows.d.ts +30 -0
- package/dist/routes/session-rows.d.ts.map +1 -0
- package/dist/routes/session-rows.js +98 -0
- package/dist/routes/session-rows.js.map +1 -0
- package/dist/routes/source-control-sessions.d.ts +4 -5
- package/dist/routes/source-control-sessions.d.ts.map +1 -1
- package/dist/routes/source-control-sessions.js +8 -87
- package/dist/routes/source-control-sessions.js.map +1 -1
- package/dist/routes/surface.d.ts +13 -1
- package/dist/routes/surface.d.ts.map +1 -1
- package/dist/routes/surface.js +24 -26
- package/dist/routes/surface.js.map +1 -1
- package/dist/routes/work-item-starters.d.ts +1 -0
- package/dist/routes/work-item-starters.d.ts.map +1 -1
- package/dist/routes/work-item-starters.js +14 -2
- package/dist/routes/work-item-starters.js.map +1 -1
- package/dist/routes/work-items.d.ts +13 -0
- package/dist/routes/work-items.d.ts.map +1 -1
- package/dist/routes/work-items.js +87 -34
- package/dist/routes/work-items.js.map +1 -1
- package/dist/rules/dispatch-errors.js +1 -1
- package/dist/rules/dispatch-errors.js.map +1 -1
- package/dist/rules/dispatcher.d.ts +39 -7
- package/dist/rules/dispatcher.d.ts.map +1 -1
- package/dist/rules/dispatcher.js +361 -122
- package/dist/rules/dispatcher.js.map +1 -1
- package/dist/rules/event-rules.d.ts +69 -1
- package/dist/rules/event-rules.d.ts.map +1 -1
- package/dist/rules/event-rules.js +151 -5
- package/dist/rules/event-rules.js.map +1 -1
- package/dist/rules/review-source-tool.js +1 -1
- package/dist/rules/rule-group.d.ts +18 -1
- package/dist/rules/rule-group.d.ts.map +1 -1
- package/dist/rules/rule-group.js +52 -8
- package/dist/rules/rule-group.js.map +1 -1
- package/dist/rules/run-bearing.d.ts +8 -0
- package/dist/rules/run-bearing.d.ts.map +1 -0
- package/dist/rules/run-bearing.js +11 -0
- package/dist/rules/run-bearing.js.map +1 -0
- package/dist/rules/start-coordinator.d.ts +2 -3
- package/dist/rules/start-coordinator.d.ts.map +1 -1
- package/dist/rules/start-coordinator.js +26 -34
- package/dist/rules/start-coordinator.js.map +1 -1
- package/dist/rules/tools.js +2 -1
- package/dist/rules/tools.js.map +1 -1
- package/dist/rules/transition-service.d.ts +16 -0
- package/dist/rules/transition-service.d.ts.map +1 -1
- package/dist/rules/transition-service.js +34 -10
- package/dist/rules/transition-service.js.map +1 -1
- package/dist/rules/types.d.ts +18 -5
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/rules/types.js +2 -1
- package/dist/rules/types.js.map +1 -1
- package/dist/rules/update-fold.d.ts +32 -0
- package/dist/rules/update-fold.d.ts.map +1 -0
- package/dist/rules/update-fold.js +60 -0
- package/dist/rules/update-fold.js.map +1 -0
- package/dist/rules/validation.d.ts.map +1 -1
- package/dist/rules/validation.js +54 -6
- package/dist/rules/validation.js.map +1 -1
- package/dist/session/resource-migration.d.ts.map +1 -1
- package/dist/session/resource-migration.js +2 -3
- package/dist/session/resource-migration.js.map +1 -1
- package/dist/session/run-audit.d.ts +9 -0
- package/dist/session/run-audit.d.ts.map +1 -1
- package/dist/session/run-audit.js +9 -1
- package/dist/session/run-audit.js.map +1 -1
- package/dist/session/self-review-gate.d.ts +26 -2
- package/dist/session/self-review-gate.d.ts.map +1 -1
- package/dist/session/self-review-gate.js +60 -10
- package/dist/session/self-review-gate.js.map +1 -1
- package/dist/session/session-row-query.d.ts +25 -0
- package/dist/session/session-row-query.d.ts.map +1 -0
- package/dist/session/session-row-query.js +47 -0
- package/dist/session/session-row-query.js.map +1 -0
- package/dist/session/session-row-status.d.ts +16 -0
- package/dist/session/session-row-status.d.ts.map +1 -0
- package/dist/session/session-row-status.js +14 -0
- package/dist/session/session-row-status.js.map +1 -0
- package/dist/session/session-row-view.d.ts +14 -0
- package/dist/session/session-row-view.d.ts.map +1 -0
- package/dist/session/session-row-view.js +125 -0
- package/dist/session/session-row-view.js.map +1 -0
- package/dist/session/session-rows.d.ts +46 -0
- package/dist/session/session-rows.d.ts.map +1 -0
- package/dist/session/session-rows.js +232 -0
- package/dist/session/session-rows.js.map +1 -0
- package/dist/session/session-threads.d.ts.map +1 -1
- package/dist/session/session-threads.js +1 -0
- package/dist/session/session-threads.js.map +1 -1
- package/dist/session/source-control-tools.d.ts +14 -7
- package/dist/session/source-control-tools.d.ts.map +1 -1
- package/dist/session/source-control-tools.js +10 -2
- package/dist/session/source-control-tools.js.map +1 -1
- package/dist/session/work-item-repository.d.ts +44 -0
- package/dist/session/work-item-repository.d.ts.map +1 -1
- package/dist/session/work-item-repository.js +80 -1
- package/dist/session/work-item-repository.js.map +1 -1
- package/dist/session/work-item-state-processor.d.ts.map +1 -1
- package/dist/session/work-item-state-processor.js +44 -8
- package/dist/session/work-item-state-processor.js.map +1 -1
- package/dist/storage/domains/audit/actions.d.ts +2 -1
- package/dist/storage/domains/audit/actions.d.ts.map +1 -1
- package/dist/storage/domains/audit/actions.js +3 -1
- package/dist/storage/domains/audit/actions.js.map +1 -1
- package/dist/storage/domains/boards/base.d.ts +162 -14
- package/dist/storage/domains/boards/base.d.ts.map +1 -1
- package/dist/storage/domains/boards/base.js +415 -41
- package/dist/storage/domains/boards/base.js.map +1 -1
- package/dist/storage/domains/boards/schemas.d.ts +6 -0
- package/dist/storage/domains/boards/schemas.d.ts.map +1 -1
- package/dist/storage/domains/boards/schemas.js +95 -1
- package/dist/storage/domains/boards/schemas.js.map +1 -1
- package/dist/storage/domains/projects/base.d.ts.map +1 -1
- package/dist/storage/domains/projects/base.js +19 -10
- package/dist/storage/domains/projects/base.js.map +1 -1
- package/dist/storage/domains/source-control/base.d.ts.map +1 -1
- package/dist/storage/domains/source-control/base.js +5 -2
- package/dist/storage/domains/source-control/base.js.map +1 -1
- package/dist/storage/domains/work-items/base.d.ts +48 -17
- package/dist/storage/domains/work-items/base.d.ts.map +1 -1
- package/dist/storage/domains/work-items/base.js +128 -75
- package/dist/storage/domains/work-items/base.js.map +1 -1
- package/dist/storage/domains/work-items/cards.d.ts +3 -2
- package/dist/storage/domains/work-items/cards.d.ts.map +1 -1
- package/dist/storage/domains/work-items/cards.js +4 -2
- package/dist/storage/domains/work-items/cards.js.map +1 -1
- package/dist/storage/probed-list.d.ts +11 -0
- package/dist/storage/probed-list.d.ts.map +1 -0
- package/dist/storage/probed-list.js +52 -0
- package/dist/storage/probed-list.js.map +1 -0
- package/dist/tools/audit-events-tool.d.ts +2 -2
- package/dist/tools/read-tools.d.ts +0 -3
- package/dist/tools/read-tools.d.ts.map +1 -1
- package/dist/tools/read-tools.js +4 -42
- package/dist/tools/read-tools.js.map +1 -1
- package/dist/tools/session-tools.d.ts.map +1 -1
- package/dist/tools/session-tools.js +5 -9
- package/dist/tools/session-tools.js.map +1 -1
- package/dist/tools/work-item-tools.d.ts +3 -0
- package/dist/tools/work-item-tools.d.ts.map +1 -1
- package/dist/tools/work-item-tools.js +8 -4
- package/dist/tools/work-item-tools.js.map +1 -1
- package/dist/work-item-branch.d.ts +4 -0
- package/dist/work-item-branch.d.ts.map +1 -1
- package/dist/work-item-branch.js +7 -1
- package/dist/work-item-branch.js.map +1 -1
- package/dist/work-items/card-context-sessions.d.ts +50 -0
- package/dist/work-items/card-context-sessions.d.ts.map +1 -0
- package/dist/work-items/card-context-sessions.js +84 -0
- package/dist/work-items/card-context-sessions.js.map +1 -0
- package/dist/work-items/change-requests.d.ts +87 -0
- package/dist/work-items/change-requests.d.ts.map +1 -0
- package/dist/work-items/change-requests.js +134 -0
- package/dist/work-items/change-requests.js.map +1 -0
- package/dist/work-items/create-work-item.d.ts +7 -2
- package/dist/work-items/create-work-item.d.ts.map +1 -1
- package/dist/work-items/create-work-item.js +44 -13
- package/dist/work-items/create-work-item.js.map +1 -1
- package/dist/work-items/list-related-cards.d.ts.map +1 -1
- package/dist/work-items/list-related-cards.js +1 -1
- package/dist/work-items/list-related-cards.js.map +1 -1
- package/dist/work-items/providers/github.d.ts.map +1 -1
- package/dist/work-items/providers/github.js +1 -0
- package/dist/work-items/providers/github.js.map +1 -1
- package/factory-skills/factory-build/SKILL.md +1 -1
- package/factory-skills/factory-plan/SKILL.md +5 -3
- package/factory-skills/factory-self-review/SKILL.md +2 -0
- package/factory-skills/factory-triage/SKILL.md +1 -1
- package/package.json +8 -8
|
@@ -63,17 +63,23 @@ export declare const intakeRouteInputSchema: z.ZodObject<{
|
|
|
63
63
|
boardKey: z.ZodString;
|
|
64
64
|
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
67
|
}, z.core.$strict>;
|
|
67
68
|
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
68
69
|
"pull_request.closed": "pull_request.closed";
|
|
69
70
|
"pull_request.merged": "pull_request.merged";
|
|
70
71
|
"pull_request.opened": "pull_request.opened";
|
|
72
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
71
73
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
72
74
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
75
|
+
"pull_request.updated": "pull_request.updated";
|
|
73
76
|
"work_item.closed": "work_item.closed";
|
|
74
77
|
"work_item.created": "work_item.created";
|
|
78
|
+
"work_item.opened": "work_item.opened";
|
|
75
79
|
"work_item.reopened": "work_item.reopened";
|
|
80
|
+
"work_item.updated": "work_item.updated";
|
|
76
81
|
}>>>;
|
|
82
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
77
83
|
}, z.core.$strict>;
|
|
78
84
|
/** Changes the named fields; send the `revision` you read so a concurrent edit is not overwritten. */
|
|
79
85
|
export declare const intakeRoutePatchSchema: z.ZodObject<{
|
|
@@ -84,22 +90,127 @@ export declare const intakeRoutePatchSchema: z.ZodObject<{
|
|
|
84
90
|
boardKey: z.ZodString;
|
|
85
91
|
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
92
|
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
94
|
}, z.core.$strict>>;
|
|
88
95
|
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
89
96
|
"pull_request.closed": "pull_request.closed";
|
|
90
97
|
"pull_request.merged": "pull_request.merged";
|
|
91
98
|
"pull_request.opened": "pull_request.opened";
|
|
99
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
92
100
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
93
101
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
102
|
+
"pull_request.updated": "pull_request.updated";
|
|
94
103
|
"work_item.closed": "work_item.closed";
|
|
95
104
|
"work_item.created": "work_item.created";
|
|
105
|
+
"work_item.opened": "work_item.opened";
|
|
96
106
|
"work_item.reopened": "work_item.reopened";
|
|
107
|
+
"work_item.updated": "work_item.updated";
|
|
97
108
|
}>>>;
|
|
98
109
|
expectedRevision: z.ZodNumber;
|
|
99
110
|
}, z.core.$strict>;
|
|
100
111
|
export declare const intakeRouteReorderBodySchema: z.ZodObject<{
|
|
112
|
+
boardKey: z.ZodOptional<z.ZodString>;
|
|
101
113
|
ids: z.ZodArray<z.ZodString>;
|
|
102
114
|
}, z.core.$strict>;
|
|
115
|
+
export declare const intakeOrderBodySchema: z.ZodObject<{
|
|
116
|
+
boardKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
evaluator: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
"intake-order": "intake-order";
|
|
119
|
+
"route-list": "route-list";
|
|
120
|
+
}>>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
export declare const intakeDryRunBodySchema: z.ZodObject<{
|
|
123
|
+
boards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
boardKey: z.ZodString;
|
|
125
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
126
|
+
id: z.ZodOptional<z.ZodString>;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
129
|
+
when: z.ZodDefault<z.ZodNullable<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>>;
|
|
130
|
+
target: z.ZodObject<{
|
|
131
|
+
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
136
|
+
"pull_request.closed": "pull_request.closed";
|
|
137
|
+
"pull_request.merged": "pull_request.merged";
|
|
138
|
+
"pull_request.opened": "pull_request.opened";
|
|
139
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
140
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
141
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
142
|
+
"pull_request.updated": "pull_request.updated";
|
|
143
|
+
"work_item.closed": "work_item.closed";
|
|
144
|
+
"work_item.created": "work_item.created";
|
|
145
|
+
"work_item.opened": "work_item.opened";
|
|
146
|
+
"work_item.reopened": "work_item.reopened";
|
|
147
|
+
"work_item.updated": "work_item.updated";
|
|
148
|
+
}>>>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
}, z.core.$strict>>>;
|
|
151
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
export declare const intakeTestBodySchema: z.ZodObject<{
|
|
154
|
+
boards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
|
+
boardKey: z.ZodString;
|
|
156
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodOptional<z.ZodString>;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
160
|
+
when: z.ZodDefault<z.ZodNullable<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>>;
|
|
161
|
+
target: z.ZodObject<{
|
|
162
|
+
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
167
|
+
"pull_request.closed": "pull_request.closed";
|
|
168
|
+
"pull_request.merged": "pull_request.merged";
|
|
169
|
+
"pull_request.opened": "pull_request.opened";
|
|
170
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
171
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
172
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
173
|
+
"pull_request.updated": "pull_request.updated";
|
|
174
|
+
"work_item.closed": "work_item.closed";
|
|
175
|
+
"work_item.created": "work_item.created";
|
|
176
|
+
"work_item.opened": "work_item.opened";
|
|
177
|
+
"work_item.reopened": "work_item.reopened";
|
|
178
|
+
"work_item.updated": "work_item.updated";
|
|
179
|
+
}>>>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
}, z.core.$strict>>>;
|
|
182
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
183
|
+
url: z.ZodOptional<z.ZodString>;
|
|
184
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
type: z.ZodEnum<{
|
|
187
|
+
"pull_request.closed": "pull_request.closed";
|
|
188
|
+
"pull_request.merged": "pull_request.merged";
|
|
189
|
+
"pull_request.opened": "pull_request.opened";
|
|
190
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
191
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
192
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
193
|
+
"pull_request.updated": "pull_request.updated";
|
|
194
|
+
"work_item.closed": "work_item.closed";
|
|
195
|
+
"work_item.opened": "work_item.opened";
|
|
196
|
+
"work_item.reopened": "work_item.reopened";
|
|
197
|
+
"work_item.updated": "work_item.updated";
|
|
198
|
+
}>;
|
|
199
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
canceled: "canceled";
|
|
201
|
+
completed: "completed";
|
|
202
|
+
}>>;
|
|
203
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
added: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
205
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
assignees: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
added: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
209
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
pullRequestTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
}, z.core.$strict>>;
|
|
213
|
+
}, z.core.$strict>;
|
|
103
214
|
/**
|
|
104
215
|
* A repository linked to a project, as the project list returns it: fields of the link and of the repository
|
|
105
216
|
* only, never the installation behind the connection.
|
|
@@ -120,6 +231,10 @@ export declare const runQueueResponseSchema: z.ZodObject<{
|
|
|
120
231
|
scope: z.ZodLiteral<"server">;
|
|
121
232
|
inUse: z.ZodNumber;
|
|
122
233
|
cap: z.ZodNumber;
|
|
234
|
+
interactive: z.ZodObject<{
|
|
235
|
+
inUse: z.ZodNumber;
|
|
236
|
+
cap: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>;
|
|
123
238
|
}, z.core.$strip>>;
|
|
124
239
|
running: z.ZodNumber;
|
|
125
240
|
claimed: z.ZodArray<z.ZodObject<{
|
|
@@ -133,6 +248,10 @@ export declare const runQueueResponseSchema: z.ZodObject<{
|
|
|
133
248
|
sendMessage: "sendMessage";
|
|
134
249
|
signalActivity: "signalActivity";
|
|
135
250
|
}>;
|
|
251
|
+
lane: z.ZodEnum<{
|
|
252
|
+
automated: "automated";
|
|
253
|
+
interactive: "interactive";
|
|
254
|
+
}>;
|
|
136
255
|
role: z.ZodNullable<z.ZodString>;
|
|
137
256
|
skillName: z.ZodNullable<z.ZodString>;
|
|
138
257
|
queuedSince: z.ZodString;
|
|
@@ -145,6 +264,10 @@ export declare const runQueueResponseSchema: z.ZodObject<{
|
|
|
145
264
|
}, z.core.$strip>>;
|
|
146
265
|
}, z.core.$strip>>;
|
|
147
266
|
queuedCount: z.ZodNumber;
|
|
267
|
+
queuedByLane: z.ZodObject<{
|
|
268
|
+
automated: z.ZodNumber;
|
|
269
|
+
interactive: z.ZodNumber;
|
|
270
|
+
}, z.core.$strip>;
|
|
148
271
|
queued: z.ZodArray<z.ZodObject<{
|
|
149
272
|
decisionId: z.ZodString;
|
|
150
273
|
state: z.ZodEnum<{
|
|
@@ -156,6 +279,10 @@ export declare const runQueueResponseSchema: z.ZodObject<{
|
|
|
156
279
|
sendMessage: "sendMessage";
|
|
157
280
|
signalActivity: "signalActivity";
|
|
158
281
|
}>;
|
|
282
|
+
lane: z.ZodEnum<{
|
|
283
|
+
automated: "automated";
|
|
284
|
+
interactive: "interactive";
|
|
285
|
+
}>;
|
|
159
286
|
role: z.ZodNullable<z.ZodString>;
|
|
160
287
|
skillName: z.ZodNullable<z.ZodString>;
|
|
161
288
|
queuedSince: z.ZodString;
|
|
@@ -503,6 +630,371 @@ export declare const workItemFilterOptionsResponseSchema: z.ZodObject<{
|
|
|
503
630
|
export type BoardPhasesQuery = z.output<typeof boardPhasesQuerySchema>;
|
|
504
631
|
export type BoardPhasesResponse = z.infer<typeof boardPhasesResponseSchema>;
|
|
505
632
|
export type WorkItemFilterOptionsResponse = z.infer<typeof workItemFilterOptionsResponseSchema>;
|
|
633
|
+
export declare const sessionRowsQuerySchema: z.ZodObject<{
|
|
634
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
635
|
+
activity: "activity";
|
|
636
|
+
created: "created";
|
|
637
|
+
updated: "updated";
|
|
638
|
+
}>>;
|
|
639
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
640
|
+
board: "board";
|
|
641
|
+
none: "none";
|
|
642
|
+
owner: "owner";
|
|
643
|
+
status: "status";
|
|
644
|
+
}>>;
|
|
645
|
+
owner: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
646
|
+
all: "all";
|
|
647
|
+
mine: "mine";
|
|
648
|
+
}>, z.ZodString]>>;
|
|
649
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
650
|
+
done: "done";
|
|
651
|
+
idle: "idle";
|
|
652
|
+
initializing: "initializing";
|
|
653
|
+
waiting: "waiting";
|
|
654
|
+
working: "working";
|
|
655
|
+
}>>;
|
|
656
|
+
updated: z.ZodOptional<z.ZodEnum<{
|
|
657
|
+
"24h": "24h";
|
|
658
|
+
"30d": "30d";
|
|
659
|
+
"7d": "7d";
|
|
660
|
+
}>>;
|
|
661
|
+
children: z.ZodOptional<z.ZodEnum<{
|
|
662
|
+
true: "true";
|
|
663
|
+
}>>;
|
|
664
|
+
pin: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<Set<string>, string[]>>;
|
|
665
|
+
open: z.ZodOptional<z.ZodString>;
|
|
666
|
+
window: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<[group: string, count: string], string>>, z.ZodTuple<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>], null>>>>, z.ZodTransform<Map<string, number>, [string, number][]>>;
|
|
667
|
+
}, z.core.$strip>;
|
|
668
|
+
declare const sessionRowSchema: z.ZodObject<{
|
|
669
|
+
session: z.ZodObject<{
|
|
670
|
+
id: z.ZodString;
|
|
671
|
+
sessionId: z.ZodString;
|
|
672
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
673
|
+
userId: z.ZodString;
|
|
674
|
+
branch: z.ZodString;
|
|
675
|
+
title: z.ZodNullable<z.ZodString>;
|
|
676
|
+
visibility: z.ZodEnum<{
|
|
677
|
+
org: "org";
|
|
678
|
+
private: "private";
|
|
679
|
+
}>;
|
|
680
|
+
createdAt: z.ZodString;
|
|
681
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
682
|
+
id: z.ZodString;
|
|
683
|
+
name: z.ZodString;
|
|
684
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strip>>;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
origin: z.ZodEnum<{
|
|
688
|
+
factory: "factory";
|
|
689
|
+
user: "user";
|
|
690
|
+
}>;
|
|
691
|
+
board: z.ZodOptional<z.ZodString>;
|
|
692
|
+
status: z.ZodEnum<{
|
|
693
|
+
done: "done";
|
|
694
|
+
idle: "idle";
|
|
695
|
+
initializing: "initializing";
|
|
696
|
+
waiting: "waiting";
|
|
697
|
+
working: "working";
|
|
698
|
+
}>;
|
|
699
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
700
|
+
done: "done";
|
|
701
|
+
idle: "idle";
|
|
702
|
+
initializing: "initializing";
|
|
703
|
+
waiting: "waiting";
|
|
704
|
+
working: "working";
|
|
705
|
+
}>>;
|
|
706
|
+
pinned: z.ZodBoolean;
|
|
707
|
+
updatedAt: z.ZodString;
|
|
708
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
709
|
+
id: z.ZodString;
|
|
710
|
+
title: z.ZodString;
|
|
711
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
712
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
713
|
+
integrationId: z.ZodString;
|
|
714
|
+
type: z.ZodString;
|
|
715
|
+
externalId: z.ZodString;
|
|
716
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
717
|
+
url: z.ZodOptional<z.ZodString>;
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
}, z.core.$strip>>;
|
|
720
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
721
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
722
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
url: z.ZodOptional<z.ZodString>;
|
|
724
|
+
provider: z.ZodEnum<{
|
|
725
|
+
github: "github";
|
|
726
|
+
gitlab: "gitlab";
|
|
727
|
+
}>;
|
|
728
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
730
|
+
closed: "closed";
|
|
731
|
+
draft: "draft";
|
|
732
|
+
merged: "merged";
|
|
733
|
+
open: "open";
|
|
734
|
+
}>>;
|
|
735
|
+
draft: z.ZodBoolean;
|
|
736
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
737
|
+
}, z.core.$strip>>;
|
|
738
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
739
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
740
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
741
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
742
|
+
childRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
743
|
+
session: z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
sessionId: z.ZodString;
|
|
746
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
747
|
+
userId: z.ZodString;
|
|
748
|
+
branch: z.ZodString;
|
|
749
|
+
title: z.ZodNullable<z.ZodString>;
|
|
750
|
+
visibility: z.ZodEnum<{
|
|
751
|
+
org: "org";
|
|
752
|
+
private: "private";
|
|
753
|
+
}>;
|
|
754
|
+
createdAt: z.ZodString;
|
|
755
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
756
|
+
id: z.ZodString;
|
|
757
|
+
name: z.ZodString;
|
|
758
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
759
|
+
}, z.core.$strip>>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
origin: z.ZodEnum<{
|
|
762
|
+
factory: "factory";
|
|
763
|
+
user: "user";
|
|
764
|
+
}>;
|
|
765
|
+
board: z.ZodOptional<z.ZodString>;
|
|
766
|
+
status: z.ZodEnum<{
|
|
767
|
+
done: "done";
|
|
768
|
+
idle: "idle";
|
|
769
|
+
initializing: "initializing";
|
|
770
|
+
waiting: "waiting";
|
|
771
|
+
working: "working";
|
|
772
|
+
}>;
|
|
773
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
774
|
+
done: "done";
|
|
775
|
+
idle: "idle";
|
|
776
|
+
initializing: "initializing";
|
|
777
|
+
waiting: "waiting";
|
|
778
|
+
working: "working";
|
|
779
|
+
}>>;
|
|
780
|
+
pinned: z.ZodBoolean;
|
|
781
|
+
updatedAt: z.ZodString;
|
|
782
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
783
|
+
id: z.ZodString;
|
|
784
|
+
title: z.ZodString;
|
|
785
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
786
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
787
|
+
integrationId: z.ZodString;
|
|
788
|
+
type: z.ZodString;
|
|
789
|
+
externalId: z.ZodString;
|
|
790
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
791
|
+
url: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strip>>;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
795
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
796
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
797
|
+
url: z.ZodOptional<z.ZodString>;
|
|
798
|
+
provider: z.ZodEnum<{
|
|
799
|
+
github: "github";
|
|
800
|
+
gitlab: "gitlab";
|
|
801
|
+
}>;
|
|
802
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
804
|
+
closed: "closed";
|
|
805
|
+
draft: "draft";
|
|
806
|
+
merged: "merged";
|
|
807
|
+
open: "open";
|
|
808
|
+
}>>;
|
|
809
|
+
draft: z.ZodBoolean;
|
|
810
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
811
|
+
}, z.core.$strip>>;
|
|
812
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
813
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
814
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
815
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
816
|
+
}, z.core.$strip>>>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
export declare const sessionRowsResponseSchema: z.ZodObject<{
|
|
819
|
+
total: z.ZodNumber;
|
|
820
|
+
matching: z.ZodNumber;
|
|
821
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
822
|
+
key: z.ZodString;
|
|
823
|
+
total: z.ZodNumber;
|
|
824
|
+
openIndex: z.ZodOptional<z.ZodNumber>;
|
|
825
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
826
|
+
session: z.ZodObject<{
|
|
827
|
+
id: z.ZodString;
|
|
828
|
+
sessionId: z.ZodString;
|
|
829
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
830
|
+
userId: z.ZodString;
|
|
831
|
+
branch: z.ZodString;
|
|
832
|
+
title: z.ZodNullable<z.ZodString>;
|
|
833
|
+
visibility: z.ZodEnum<{
|
|
834
|
+
org: "org";
|
|
835
|
+
private: "private";
|
|
836
|
+
}>;
|
|
837
|
+
createdAt: z.ZodString;
|
|
838
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
839
|
+
id: z.ZodString;
|
|
840
|
+
name: z.ZodString;
|
|
841
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
842
|
+
}, z.core.$strip>>;
|
|
843
|
+
}, z.core.$strip>;
|
|
844
|
+
origin: z.ZodEnum<{
|
|
845
|
+
factory: "factory";
|
|
846
|
+
user: "user";
|
|
847
|
+
}>;
|
|
848
|
+
board: z.ZodOptional<z.ZodString>;
|
|
849
|
+
status: z.ZodEnum<{
|
|
850
|
+
done: "done";
|
|
851
|
+
idle: "idle";
|
|
852
|
+
initializing: "initializing";
|
|
853
|
+
waiting: "waiting";
|
|
854
|
+
working: "working";
|
|
855
|
+
}>;
|
|
856
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
857
|
+
done: "done";
|
|
858
|
+
idle: "idle";
|
|
859
|
+
initializing: "initializing";
|
|
860
|
+
waiting: "waiting";
|
|
861
|
+
working: "working";
|
|
862
|
+
}>>;
|
|
863
|
+
pinned: z.ZodBoolean;
|
|
864
|
+
updatedAt: z.ZodString;
|
|
865
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
id: z.ZodString;
|
|
867
|
+
title: z.ZodString;
|
|
868
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
869
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
870
|
+
integrationId: z.ZodString;
|
|
871
|
+
type: z.ZodString;
|
|
872
|
+
externalId: z.ZodString;
|
|
873
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
874
|
+
url: z.ZodOptional<z.ZodString>;
|
|
875
|
+
}, z.core.$strip>>;
|
|
876
|
+
}, z.core.$strip>>;
|
|
877
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
878
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
879
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
880
|
+
url: z.ZodOptional<z.ZodString>;
|
|
881
|
+
provider: z.ZodEnum<{
|
|
882
|
+
github: "github";
|
|
883
|
+
gitlab: "gitlab";
|
|
884
|
+
}>;
|
|
885
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
886
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
887
|
+
closed: "closed";
|
|
888
|
+
draft: "draft";
|
|
889
|
+
merged: "merged";
|
|
890
|
+
open: "open";
|
|
891
|
+
}>>;
|
|
892
|
+
draft: z.ZodBoolean;
|
|
893
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
894
|
+
}, z.core.$strip>>;
|
|
895
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
896
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
897
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
898
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
899
|
+
childRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
900
|
+
session: z.ZodObject<{
|
|
901
|
+
id: z.ZodString;
|
|
902
|
+
sessionId: z.ZodString;
|
|
903
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
904
|
+
userId: z.ZodString;
|
|
905
|
+
branch: z.ZodString;
|
|
906
|
+
title: z.ZodNullable<z.ZodString>;
|
|
907
|
+
visibility: z.ZodEnum<{
|
|
908
|
+
org: "org";
|
|
909
|
+
private: "private";
|
|
910
|
+
}>;
|
|
911
|
+
createdAt: z.ZodString;
|
|
912
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
id: z.ZodString;
|
|
914
|
+
name: z.ZodString;
|
|
915
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
916
|
+
}, z.core.$strip>>;
|
|
917
|
+
}, z.core.$strip>;
|
|
918
|
+
origin: z.ZodEnum<{
|
|
919
|
+
factory: "factory";
|
|
920
|
+
user: "user";
|
|
921
|
+
}>;
|
|
922
|
+
board: z.ZodOptional<z.ZodString>;
|
|
923
|
+
status: z.ZodEnum<{
|
|
924
|
+
done: "done";
|
|
925
|
+
idle: "idle";
|
|
926
|
+
initializing: "initializing";
|
|
927
|
+
waiting: "waiting";
|
|
928
|
+
working: "working";
|
|
929
|
+
}>;
|
|
930
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
931
|
+
done: "done";
|
|
932
|
+
idle: "idle";
|
|
933
|
+
initializing: "initializing";
|
|
934
|
+
waiting: "waiting";
|
|
935
|
+
working: "working";
|
|
936
|
+
}>>;
|
|
937
|
+
pinned: z.ZodBoolean;
|
|
938
|
+
updatedAt: z.ZodString;
|
|
939
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
940
|
+
id: z.ZodString;
|
|
941
|
+
title: z.ZodString;
|
|
942
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
943
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
944
|
+
integrationId: z.ZodString;
|
|
945
|
+
type: z.ZodString;
|
|
946
|
+
externalId: z.ZodString;
|
|
947
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
948
|
+
url: z.ZodOptional<z.ZodString>;
|
|
949
|
+
}, z.core.$strip>>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
952
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
953
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
954
|
+
url: z.ZodOptional<z.ZodString>;
|
|
955
|
+
provider: z.ZodEnum<{
|
|
956
|
+
github: "github";
|
|
957
|
+
gitlab: "gitlab";
|
|
958
|
+
}>;
|
|
959
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
960
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
961
|
+
closed: "closed";
|
|
962
|
+
draft: "draft";
|
|
963
|
+
merged: "merged";
|
|
964
|
+
open: "open";
|
|
965
|
+
}>>;
|
|
966
|
+
draft: z.ZodBoolean;
|
|
967
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
968
|
+
}, z.core.$strip>>;
|
|
969
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
970
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
971
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
972
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
973
|
+
}, z.core.$strip>>>;
|
|
974
|
+
}, z.core.$strip>>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
boards: z.ZodArray<z.ZodString>;
|
|
977
|
+
owners: z.ZodArray<z.ZodObject<{
|
|
978
|
+
userId: z.ZodString;
|
|
979
|
+
name: z.ZodOptional<z.ZodString>;
|
|
980
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
981
|
+
}, z.core.$strip>>;
|
|
982
|
+
settling: z.ZodBoolean;
|
|
983
|
+
}, z.core.$strip>;
|
|
984
|
+
export declare const sessionActivityResponseSchema: z.ZodObject<{
|
|
985
|
+
runningSessionIds: z.ZodArray<z.ZodString>;
|
|
986
|
+
parkedSessionIds: z.ZodArray<z.ZodString>;
|
|
987
|
+
initializingSessionIds: z.ZodArray<z.ZodString>;
|
|
988
|
+
cards: z.ZodObject<{
|
|
989
|
+
working: z.ZodNumber;
|
|
990
|
+
waiting: z.ZodNumber;
|
|
991
|
+
}, z.core.$strip>;
|
|
992
|
+
settling: z.ZodBoolean;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
export type SessionRowsQuery = z.output<typeof sessionRowsQuerySchema>;
|
|
995
|
+
export type SessionRow = z.infer<typeof sessionRowSchema>;
|
|
996
|
+
export type SessionRowsResponse = z.infer<typeof sessionRowsResponseSchema>;
|
|
997
|
+
export type SessionActivityResponse = z.infer<typeof sessionActivityResponseSchema>;
|
|
506
998
|
export declare const createWorkItemBodySchema: z.ZodObject<{
|
|
507
999
|
title: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
508
1000
|
description: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string | null, string>>>>;
|
|
@@ -1549,6 +2041,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1549
2041
|
readonly pathSchema: z.ZodObject<{
|
|
1550
2042
|
id: z.ZodString;
|
|
1551
2043
|
}, z.core.$strip>;
|
|
2044
|
+
readonly querySchema: z.ZodObject<{
|
|
2045
|
+
boardKey: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
}, z.core.$strict>;
|
|
1552
2047
|
readonly responseSchema: z.ZodObject<{
|
|
1553
2048
|
intakeRoutes: z.ZodArray<z.ZodObject<{
|
|
1554
2049
|
id: z.ZodString;
|
|
@@ -1560,17 +2055,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1560
2055
|
boardKey: z.ZodString;
|
|
1561
2056
|
phaseKey: z.ZodNullable<z.ZodString>;
|
|
1562
2057
|
joinClosedIssue: z.ZodBoolean;
|
|
2058
|
+
moveToBoardKey: z.ZodNullable<z.ZodString>;
|
|
1563
2059
|
}, z.core.$strip>;
|
|
1564
2060
|
on: z.ZodArray<z.ZodEnum<{
|
|
1565
2061
|
"pull_request.closed": "pull_request.closed";
|
|
1566
2062
|
"pull_request.merged": "pull_request.merged";
|
|
1567
2063
|
"pull_request.opened": "pull_request.opened";
|
|
2064
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1568
2065
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1569
2066
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2067
|
+
"pull_request.updated": "pull_request.updated";
|
|
1570
2068
|
"work_item.closed": "work_item.closed";
|
|
1571
2069
|
"work_item.created": "work_item.created";
|
|
2070
|
+
"work_item.opened": "work_item.opened";
|
|
1572
2071
|
"work_item.reopened": "work_item.reopened";
|
|
2072
|
+
"work_item.updated": "work_item.updated";
|
|
1573
2073
|
}>>;
|
|
2074
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1574
2075
|
revision: z.ZodNumber;
|
|
1575
2076
|
createdBy: z.ZodString;
|
|
1576
2077
|
createdAt: z.ZodString;
|
|
@@ -1600,17 +2101,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1600
2101
|
boardKey: z.ZodString;
|
|
1601
2102
|
phaseKey: z.ZodNullable<z.ZodString>;
|
|
1602
2103
|
joinClosedIssue: z.ZodBoolean;
|
|
2104
|
+
moveToBoardKey: z.ZodNullable<z.ZodString>;
|
|
1603
2105
|
}, z.core.$strip>;
|
|
1604
2106
|
on: z.ZodArray<z.ZodEnum<{
|
|
1605
2107
|
"pull_request.closed": "pull_request.closed";
|
|
1606
2108
|
"pull_request.merged": "pull_request.merged";
|
|
1607
2109
|
"pull_request.opened": "pull_request.opened";
|
|
2110
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1608
2111
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1609
2112
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2113
|
+
"pull_request.updated": "pull_request.updated";
|
|
1610
2114
|
"work_item.closed": "work_item.closed";
|
|
1611
2115
|
"work_item.created": "work_item.created";
|
|
2116
|
+
"work_item.opened": "work_item.opened";
|
|
1612
2117
|
"work_item.reopened": "work_item.reopened";
|
|
2118
|
+
"work_item.updated": "work_item.updated";
|
|
1613
2119
|
}>>;
|
|
2120
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1614
2121
|
revision: z.ZodNumber;
|
|
1615
2122
|
createdBy: z.ZodString;
|
|
1616
2123
|
createdAt: z.ZodString;
|
|
@@ -1635,17 +2142,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1635
2142
|
boardKey: z.ZodString;
|
|
1636
2143
|
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1637
2144
|
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
2145
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1638
2146
|
}, z.core.$strict>;
|
|
1639
2147
|
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1640
2148
|
"pull_request.closed": "pull_request.closed";
|
|
1641
2149
|
"pull_request.merged": "pull_request.merged";
|
|
1642
2150
|
"pull_request.opened": "pull_request.opened";
|
|
2151
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1643
2152
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1644
2153
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2154
|
+
"pull_request.updated": "pull_request.updated";
|
|
1645
2155
|
"work_item.closed": "work_item.closed";
|
|
1646
2156
|
"work_item.created": "work_item.created";
|
|
2157
|
+
"work_item.opened": "work_item.opened";
|
|
1647
2158
|
"work_item.reopened": "work_item.reopened";
|
|
2159
|
+
"work_item.updated": "work_item.updated";
|
|
1648
2160
|
}>>>;
|
|
2161
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1649
2162
|
}, z.core.$strict>;
|
|
1650
2163
|
readonly responseSchema: z.ZodObject<{
|
|
1651
2164
|
intakeRoute: z.ZodObject<{
|
|
@@ -1658,17 +2171,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1658
2171
|
boardKey: z.ZodString;
|
|
1659
2172
|
phaseKey: z.ZodNullable<z.ZodString>;
|
|
1660
2173
|
joinClosedIssue: z.ZodBoolean;
|
|
2174
|
+
moveToBoardKey: z.ZodNullable<z.ZodString>;
|
|
1661
2175
|
}, z.core.$strip>;
|
|
1662
2176
|
on: z.ZodArray<z.ZodEnum<{
|
|
1663
2177
|
"pull_request.closed": "pull_request.closed";
|
|
1664
2178
|
"pull_request.merged": "pull_request.merged";
|
|
1665
2179
|
"pull_request.opened": "pull_request.opened";
|
|
2180
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1666
2181
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1667
2182
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2183
|
+
"pull_request.updated": "pull_request.updated";
|
|
1668
2184
|
"work_item.closed": "work_item.closed";
|
|
1669
2185
|
"work_item.created": "work_item.created";
|
|
2186
|
+
"work_item.opened": "work_item.opened";
|
|
1670
2187
|
"work_item.reopened": "work_item.reopened";
|
|
2188
|
+
"work_item.updated": "work_item.updated";
|
|
1671
2189
|
}>>;
|
|
2190
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1672
2191
|
revision: z.ZodNumber;
|
|
1673
2192
|
createdBy: z.ZodString;
|
|
1674
2193
|
createdAt: z.ZodString;
|
|
@@ -1694,16 +2213,21 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1694
2213
|
boardKey: z.ZodString;
|
|
1695
2214
|
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1696
2215
|
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
2216
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1697
2217
|
}, z.core.$strict>>;
|
|
1698
2218
|
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1699
2219
|
"pull_request.closed": "pull_request.closed";
|
|
1700
2220
|
"pull_request.merged": "pull_request.merged";
|
|
1701
2221
|
"pull_request.opened": "pull_request.opened";
|
|
2222
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1702
2223
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1703
2224
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2225
|
+
"pull_request.updated": "pull_request.updated";
|
|
1704
2226
|
"work_item.closed": "work_item.closed";
|
|
1705
2227
|
"work_item.created": "work_item.created";
|
|
2228
|
+
"work_item.opened": "work_item.opened";
|
|
1706
2229
|
"work_item.reopened": "work_item.reopened";
|
|
2230
|
+
"work_item.updated": "work_item.updated";
|
|
1707
2231
|
}>>>;
|
|
1708
2232
|
expectedRevision: z.ZodNumber;
|
|
1709
2233
|
}, z.core.$strict>;
|
|
@@ -1718,17 +2242,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1718
2242
|
boardKey: z.ZodString;
|
|
1719
2243
|
phaseKey: z.ZodNullable<z.ZodString>;
|
|
1720
2244
|
joinClosedIssue: z.ZodBoolean;
|
|
2245
|
+
moveToBoardKey: z.ZodNullable<z.ZodString>;
|
|
1721
2246
|
}, z.core.$strip>;
|
|
1722
2247
|
on: z.ZodArray<z.ZodEnum<{
|
|
1723
2248
|
"pull_request.closed": "pull_request.closed";
|
|
1724
2249
|
"pull_request.merged": "pull_request.merged";
|
|
1725
2250
|
"pull_request.opened": "pull_request.opened";
|
|
2251
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1726
2252
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1727
2253
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2254
|
+
"pull_request.updated": "pull_request.updated";
|
|
1728
2255
|
"work_item.closed": "work_item.closed";
|
|
1729
2256
|
"work_item.created": "work_item.created";
|
|
2257
|
+
"work_item.opened": "work_item.opened";
|
|
1730
2258
|
"work_item.reopened": "work_item.reopened";
|
|
2259
|
+
"work_item.updated": "work_item.updated";
|
|
1731
2260
|
}>>;
|
|
2261
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1732
2262
|
revision: z.ZodNumber;
|
|
1733
2263
|
createdBy: z.ZodString;
|
|
1734
2264
|
createdAt: z.ZodString;
|
|
@@ -1787,6 +2317,7 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1787
2317
|
id: z.ZodString;
|
|
1788
2318
|
}, z.core.$strip>;
|
|
1789
2319
|
readonly bodySchema: z.ZodObject<{
|
|
2320
|
+
boardKey: z.ZodOptional<z.ZodString>;
|
|
1790
2321
|
ids: z.ZodArray<z.ZodString>;
|
|
1791
2322
|
}, z.core.$strict>;
|
|
1792
2323
|
readonly responseSchema: z.ZodObject<{
|
|
@@ -1800,17 +2331,23 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1800
2331
|
boardKey: z.ZodString;
|
|
1801
2332
|
phaseKey: z.ZodNullable<z.ZodString>;
|
|
1802
2333
|
joinClosedIssue: z.ZodBoolean;
|
|
2334
|
+
moveToBoardKey: z.ZodNullable<z.ZodString>;
|
|
1803
2335
|
}, z.core.$strip>;
|
|
1804
2336
|
on: z.ZodArray<z.ZodEnum<{
|
|
1805
2337
|
"pull_request.closed": "pull_request.closed";
|
|
1806
2338
|
"pull_request.merged": "pull_request.merged";
|
|
1807
2339
|
"pull_request.opened": "pull_request.opened";
|
|
2340
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
1808
2341
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
1809
2342
|
"pull_request.synchronized": "pull_request.synchronized";
|
|
2343
|
+
"pull_request.updated": "pull_request.updated";
|
|
1810
2344
|
"work_item.closed": "work_item.closed";
|
|
1811
2345
|
"work_item.created": "work_item.created";
|
|
2346
|
+
"work_item.opened": "work_item.opened";
|
|
1812
2347
|
"work_item.reopened": "work_item.reopened";
|
|
2348
|
+
"work_item.updated": "work_item.updated";
|
|
1813
2349
|
}>>;
|
|
2350
|
+
pullRequestOpenedMovesOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1814
2351
|
revision: z.ZodNumber;
|
|
1815
2352
|
createdBy: z.ZodString;
|
|
1816
2353
|
createdAt: z.ZodString;
|
|
@@ -1821,6 +2358,458 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1821
2358
|
canEdit: z.ZodBoolean;
|
|
1822
2359
|
}, z.core.$strip>;
|
|
1823
2360
|
};
|
|
2361
|
+
readonly intakeOrderGet: {
|
|
2362
|
+
readonly method: 'GET';
|
|
2363
|
+
readonly path: '/web/factory/projects/:id/intake-order';
|
|
2364
|
+
readonly description: "The order a Factory project's boards are asked to take a new item, and the evaluator in use";
|
|
2365
|
+
readonly pathSchema: z.ZodObject<{
|
|
2366
|
+
id: z.ZodString;
|
|
2367
|
+
}, z.core.$strip>;
|
|
2368
|
+
readonly responseSchema: z.ZodObject<{
|
|
2369
|
+
boards: z.ZodArray<z.ZodObject<{
|
|
2370
|
+
boardKey: z.ZodString;
|
|
2371
|
+
name: z.ZodString;
|
|
2372
|
+
}, z.core.$strip>>;
|
|
2373
|
+
origin: z.ZodEnum<{
|
|
2374
|
+
derived: "derived";
|
|
2375
|
+
explicit: "explicit";
|
|
2376
|
+
}>;
|
|
2377
|
+
evaluator: z.ZodEnum<{
|
|
2378
|
+
"intake-order": "intake-order";
|
|
2379
|
+
"route-list": "route-list";
|
|
2380
|
+
}>;
|
|
2381
|
+
evaluatorSource: z.ZodEnum<{
|
|
2382
|
+
env: "env";
|
|
2383
|
+
legacy: "legacy";
|
|
2384
|
+
option: "option";
|
|
2385
|
+
project: "project";
|
|
2386
|
+
}>;
|
|
2387
|
+
projectEvaluator: z.ZodNullable<z.ZodEnum<{
|
|
2388
|
+
"intake-order": "intake-order";
|
|
2389
|
+
"route-list": "route-list";
|
|
2390
|
+
}>>;
|
|
2391
|
+
comparison: z.ZodObject<{
|
|
2392
|
+
compared: z.ZodNumber;
|
|
2393
|
+
differing: z.ZodNumber;
|
|
2394
|
+
notRouted: z.ZodNumber;
|
|
2395
|
+
}, z.core.$strip>;
|
|
2396
|
+
canEdit: z.ZodBoolean;
|
|
2397
|
+
}, z.core.$strip>;
|
|
2398
|
+
};
|
|
2399
|
+
readonly intakeOrderUpdate: {
|
|
2400
|
+
readonly method: 'PUT';
|
|
2401
|
+
readonly path: '/web/factory/projects/:id/intake-order';
|
|
2402
|
+
readonly description: "Set the order a Factory project's boards are asked to take a new item, or its evaluator";
|
|
2403
|
+
readonly pathSchema: z.ZodObject<{
|
|
2404
|
+
id: z.ZodString;
|
|
2405
|
+
}, z.core.$strip>;
|
|
2406
|
+
readonly bodySchema: z.ZodObject<{
|
|
2407
|
+
boardKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2408
|
+
evaluator: z.ZodOptional<z.ZodEnum<{
|
|
2409
|
+
"intake-order": "intake-order";
|
|
2410
|
+
"route-list": "route-list";
|
|
2411
|
+
}>>;
|
|
2412
|
+
}, z.core.$strict>;
|
|
2413
|
+
readonly responseSchema: z.ZodObject<{
|
|
2414
|
+
boards: z.ZodArray<z.ZodObject<{
|
|
2415
|
+
boardKey: z.ZodString;
|
|
2416
|
+
name: z.ZodString;
|
|
2417
|
+
}, z.core.$strip>>;
|
|
2418
|
+
origin: z.ZodEnum<{
|
|
2419
|
+
derived: "derived";
|
|
2420
|
+
explicit: "explicit";
|
|
2421
|
+
}>;
|
|
2422
|
+
evaluator: z.ZodEnum<{
|
|
2423
|
+
"intake-order": "intake-order";
|
|
2424
|
+
"route-list": "route-list";
|
|
2425
|
+
}>;
|
|
2426
|
+
evaluatorSource: z.ZodEnum<{
|
|
2427
|
+
env: "env";
|
|
2428
|
+
legacy: "legacy";
|
|
2429
|
+
option: "option";
|
|
2430
|
+
project: "project";
|
|
2431
|
+
}>;
|
|
2432
|
+
projectEvaluator: z.ZodNullable<z.ZodEnum<{
|
|
2433
|
+
"intake-order": "intake-order";
|
|
2434
|
+
"route-list": "route-list";
|
|
2435
|
+
}>>;
|
|
2436
|
+
comparison: z.ZodObject<{
|
|
2437
|
+
compared: z.ZodNumber;
|
|
2438
|
+
differing: z.ZodNumber;
|
|
2439
|
+
notRouted: z.ZodNumber;
|
|
2440
|
+
}, z.core.$strip>;
|
|
2441
|
+
canEdit: z.ZodBoolean;
|
|
2442
|
+
}, z.core.$strip>;
|
|
2443
|
+
};
|
|
2444
|
+
readonly intakeNotRoutedList: {
|
|
2445
|
+
readonly method: 'GET';
|
|
2446
|
+
readonly path: '/web/factory/projects/:id/intake/not-routed';
|
|
2447
|
+
readonly description: "Items no board's intake rules took, oldest first, a page at a time";
|
|
2448
|
+
readonly pathSchema: z.ZodObject<{
|
|
2449
|
+
id: z.ZodString;
|
|
2450
|
+
}, z.core.$strip>;
|
|
2451
|
+
readonly querySchema: z.ZodObject<{
|
|
2452
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2453
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2454
|
+
}, z.core.$strict>;
|
|
2455
|
+
readonly responseSchema: z.ZodObject<{
|
|
2456
|
+
notRouted: z.ZodArray<z.ZodObject<{
|
|
2457
|
+
id: z.ZodString;
|
|
2458
|
+
outcome: z.ZodEnum<{
|
|
2459
|
+
not_routed: "not_routed";
|
|
2460
|
+
placed: "placed";
|
|
2461
|
+
rule_retired: "rule_retired";
|
|
2462
|
+
rule_skipped: "rule_skipped";
|
|
2463
|
+
}>;
|
|
2464
|
+
evaluator: z.ZodEnum<{
|
|
2465
|
+
"intake-order": "intake-order";
|
|
2466
|
+
"route-list": "route-list";
|
|
2467
|
+
}>;
|
|
2468
|
+
boardKey: z.ZodNullable<z.ZodString>;
|
|
2469
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
2470
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2471
|
+
sourceKey: z.ZodNullable<z.ZodString>;
|
|
2472
|
+
title: z.ZodString;
|
|
2473
|
+
url: z.ZodNullable<z.ZodString>;
|
|
2474
|
+
decidedAt: z.ZodString;
|
|
2475
|
+
}, z.core.$strip>>;
|
|
2476
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2477
|
+
canEdit: z.ZodBoolean;
|
|
2478
|
+
}, z.core.$strip>;
|
|
2479
|
+
};
|
|
2480
|
+
readonly intakeRouteAgain: {
|
|
2481
|
+
readonly method: 'POST';
|
|
2482
|
+
readonly path: '/web/factory/projects/:id/intake/not-routed/:decisionId/route-again';
|
|
2483
|
+
readonly description: 'Run intake again for an item no board took, filing it where the rules now say';
|
|
2484
|
+
readonly pathSchema: z.ZodObject<{
|
|
2485
|
+
id: z.ZodString;
|
|
2486
|
+
decisionId: z.ZodString;
|
|
2487
|
+
}, z.core.$strip>;
|
|
2488
|
+
readonly responseSchema: z.ZodObject<{
|
|
2489
|
+
status: z.ZodLiteral<"queued">;
|
|
2490
|
+
boardKey: z.ZodString;
|
|
2491
|
+
phaseKey: z.ZodString;
|
|
2492
|
+
routeId: z.ZodString;
|
|
2493
|
+
}, z.core.$strip>;
|
|
2494
|
+
};
|
|
2495
|
+
readonly intakeSkippedList: {
|
|
2496
|
+
readonly method: 'GET';
|
|
2497
|
+
readonly path: '/web/factory/projects/:id/intake/skipped';
|
|
2498
|
+
readonly description: 'How often each card-move rule was skipped in the last 30 days, with its newest skip';
|
|
2499
|
+
readonly pathSchema: z.ZodObject<{
|
|
2500
|
+
id: z.ZodString;
|
|
2501
|
+
}, z.core.$strip>;
|
|
2502
|
+
readonly responseSchema: z.ZodObject<{
|
|
2503
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
2504
|
+
routeId: z.ZodString;
|
|
2505
|
+
count: z.ZodNumber;
|
|
2506
|
+
latest: z.ZodObject<{
|
|
2507
|
+
id: z.ZodString;
|
|
2508
|
+
outcome: z.ZodEnum<{
|
|
2509
|
+
not_routed: "not_routed";
|
|
2510
|
+
placed: "placed";
|
|
2511
|
+
rule_retired: "rule_retired";
|
|
2512
|
+
rule_skipped: "rule_skipped";
|
|
2513
|
+
}>;
|
|
2514
|
+
evaluator: z.ZodEnum<{
|
|
2515
|
+
"intake-order": "intake-order";
|
|
2516
|
+
"route-list": "route-list";
|
|
2517
|
+
}>;
|
|
2518
|
+
boardKey: z.ZodNullable<z.ZodString>;
|
|
2519
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
2520
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2521
|
+
sourceKey: z.ZodNullable<z.ZodString>;
|
|
2522
|
+
title: z.ZodString;
|
|
2523
|
+
url: z.ZodNullable<z.ZodString>;
|
|
2524
|
+
decidedAt: z.ZodString;
|
|
2525
|
+
}, z.core.$strip>;
|
|
2526
|
+
}, z.core.$strip>>;
|
|
2527
|
+
}, z.core.$strip>;
|
|
2528
|
+
};
|
|
2529
|
+
readonly intakeDryRun: {
|
|
2530
|
+
readonly method: 'POST';
|
|
2531
|
+
readonly path: '/web/factory/projects/:id/intake/dry-run';
|
|
2532
|
+
readonly description: "Run a Factory project's intake rules, saved or unsaved, over its newest 200 items without filing anything";
|
|
2533
|
+
readonly pathSchema: z.ZodObject<{
|
|
2534
|
+
id: z.ZodString;
|
|
2535
|
+
}, z.core.$strip>;
|
|
2536
|
+
readonly bodySchema: z.ZodObject<{
|
|
2537
|
+
boards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2538
|
+
boardKey: z.ZodString;
|
|
2539
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
2540
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
name: z.ZodString;
|
|
2542
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2543
|
+
when: z.ZodDefault<z.ZodNullable<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>>;
|
|
2544
|
+
target: z.ZodObject<{
|
|
2545
|
+
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2546
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2547
|
+
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
2548
|
+
}, z.core.$strict>;
|
|
2549
|
+
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2550
|
+
"pull_request.closed": "pull_request.closed";
|
|
2551
|
+
"pull_request.merged": "pull_request.merged";
|
|
2552
|
+
"pull_request.opened": "pull_request.opened";
|
|
2553
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
2554
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
2555
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
2556
|
+
"pull_request.updated": "pull_request.updated";
|
|
2557
|
+
"work_item.closed": "work_item.closed";
|
|
2558
|
+
"work_item.created": "work_item.created";
|
|
2559
|
+
"work_item.opened": "work_item.opened";
|
|
2560
|
+
"work_item.reopened": "work_item.reopened";
|
|
2561
|
+
"work_item.updated": "work_item.updated";
|
|
2562
|
+
}>>>;
|
|
2563
|
+
}, z.core.$strict>>;
|
|
2564
|
+
}, z.core.$strict>>>;
|
|
2565
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2566
|
+
}, z.core.$strict>;
|
|
2567
|
+
readonly responseSchema: z.ZodObject<{
|
|
2568
|
+
evaluator: z.ZodEnum<{
|
|
2569
|
+
"intake-order": "intake-order";
|
|
2570
|
+
"route-list": "route-list";
|
|
2571
|
+
}>;
|
|
2572
|
+
sampled: z.ZodNumber;
|
|
2573
|
+
boards: z.ZodArray<z.ZodObject<{
|
|
2574
|
+
boardKey: z.ZodString;
|
|
2575
|
+
name: z.ZodString;
|
|
2576
|
+
takes: z.ZodArray<z.ZodString>;
|
|
2577
|
+
lostTo: z.ZodArray<z.ZodObject<{
|
|
2578
|
+
boardKey: z.ZodString;
|
|
2579
|
+
keys: z.ZodArray<z.ZodString>;
|
|
2580
|
+
}, z.core.$strip>>;
|
|
2581
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
2582
|
+
routeId: z.ZodString;
|
|
2583
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2584
|
+
enabled: z.ZodBoolean;
|
|
2585
|
+
takes: z.ZodArray<z.ZodString>;
|
|
2586
|
+
lost: z.ZodArray<z.ZodObject<{
|
|
2587
|
+
boardKey: z.ZodString;
|
|
2588
|
+
keys: z.ZodArray<z.ZodString>;
|
|
2589
|
+
}, z.core.$strip>>;
|
|
2590
|
+
filed: z.ZodNumber;
|
|
2591
|
+
}, z.core.$strip>>;
|
|
2592
|
+
}, z.core.$strip>>;
|
|
2593
|
+
notRouted: z.ZodArray<z.ZodString>;
|
|
2594
|
+
changed: z.ZodOptional<z.ZodNumber>;
|
|
2595
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2596
|
+
key: z.ZodString;
|
|
2597
|
+
id: z.ZodString;
|
|
2598
|
+
kind: z.ZodEnum<{
|
|
2599
|
+
card: "card";
|
|
2600
|
+
not_routed: "not_routed";
|
|
2601
|
+
}>;
|
|
2602
|
+
title: z.ZodString;
|
|
2603
|
+
url: z.ZodNullable<z.ZodString>;
|
|
2604
|
+
placement: z.ZodNullable<z.ZodObject<{
|
|
2605
|
+
boardKey: z.ZodString;
|
|
2606
|
+
routeId: z.ZodString;
|
|
2607
|
+
phase: z.ZodString;
|
|
2608
|
+
}, z.core.$strip>>;
|
|
2609
|
+
matched: z.ZodArray<z.ZodObject<{
|
|
2610
|
+
boardKey: z.ZodString;
|
|
2611
|
+
routeId: z.ZodString;
|
|
2612
|
+
}, z.core.$strip>>;
|
|
2613
|
+
before: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2614
|
+
boardKey: z.ZodString;
|
|
2615
|
+
routeId: z.ZodString;
|
|
2616
|
+
phase: z.ZodString;
|
|
2617
|
+
}, z.core.$strip>>>;
|
|
2618
|
+
}, z.core.$strip>>;
|
|
2619
|
+
canEdit: z.ZodBoolean;
|
|
2620
|
+
}, z.core.$strip>;
|
|
2621
|
+
};
|
|
2622
|
+
readonly intakeTest: {
|
|
2623
|
+
readonly method: 'POST';
|
|
2624
|
+
readonly path: '/web/factory/projects/:id/intake/test';
|
|
2625
|
+
readonly description: 'Show where intake would file one item, and what every rule answered, without filing it';
|
|
2626
|
+
readonly pathSchema: z.ZodObject<{
|
|
2627
|
+
id: z.ZodString;
|
|
2628
|
+
}, z.core.$strip>;
|
|
2629
|
+
readonly bodySchema: z.ZodObject<{
|
|
2630
|
+
boards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2631
|
+
boardKey: z.ZodString;
|
|
2632
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
2633
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2634
|
+
name: z.ZodString;
|
|
2635
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2636
|
+
when: z.ZodDefault<z.ZodNullable<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>>;
|
|
2637
|
+
target: z.ZodObject<{
|
|
2638
|
+
phaseKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2639
|
+
moveToBoardKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2640
|
+
joinClosedIssue: z.ZodOptional<z.ZodBoolean>;
|
|
2641
|
+
}, z.core.$strict>;
|
|
2642
|
+
on: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2643
|
+
"pull_request.closed": "pull_request.closed";
|
|
2644
|
+
"pull_request.merged": "pull_request.merged";
|
|
2645
|
+
"pull_request.opened": "pull_request.opened";
|
|
2646
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
2647
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
2648
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
2649
|
+
"pull_request.updated": "pull_request.updated";
|
|
2650
|
+
"work_item.closed": "work_item.closed";
|
|
2651
|
+
"work_item.created": "work_item.created";
|
|
2652
|
+
"work_item.opened": "work_item.opened";
|
|
2653
|
+
"work_item.reopened": "work_item.reopened";
|
|
2654
|
+
"work_item.updated": "work_item.updated";
|
|
2655
|
+
}>>>;
|
|
2656
|
+
}, z.core.$strict>>;
|
|
2657
|
+
}, z.core.$strict>>>;
|
|
2658
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2659
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2660
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
2661
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
2662
|
+
type: z.ZodEnum<{
|
|
2663
|
+
"pull_request.closed": "pull_request.closed";
|
|
2664
|
+
"pull_request.merged": "pull_request.merged";
|
|
2665
|
+
"pull_request.opened": "pull_request.opened";
|
|
2666
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
2667
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
2668
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
2669
|
+
"pull_request.updated": "pull_request.updated";
|
|
2670
|
+
"work_item.closed": "work_item.closed";
|
|
2671
|
+
"work_item.opened": "work_item.opened";
|
|
2672
|
+
"work_item.reopened": "work_item.reopened";
|
|
2673
|
+
"work_item.updated": "work_item.updated";
|
|
2674
|
+
}>;
|
|
2675
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2676
|
+
canceled: "canceled";
|
|
2677
|
+
completed: "completed";
|
|
2678
|
+
}>>;
|
|
2679
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
2680
|
+
added: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2681
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2682
|
+
}, z.core.$strict>>;
|
|
2683
|
+
assignees: z.ZodOptional<z.ZodObject<{
|
|
2684
|
+
added: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2685
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2686
|
+
}, z.core.$strict>>;
|
|
2687
|
+
pullRequestTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
2688
|
+
}, z.core.$strict>>;
|
|
2689
|
+
}, z.core.$strict>;
|
|
2690
|
+
readonly responseSchema: z.ZodObject<{
|
|
2691
|
+
item: z.ZodObject<{
|
|
2692
|
+
title: z.ZodString;
|
|
2693
|
+
url: z.ZodNullable<z.ZodString>;
|
|
2694
|
+
kind: z.ZodEnum<{
|
|
2695
|
+
card: "card";
|
|
2696
|
+
fetched: "fetched";
|
|
2697
|
+
not_routed: "not_routed";
|
|
2698
|
+
}>;
|
|
2699
|
+
id: z.ZodNullable<z.ZodString>;
|
|
2700
|
+
}, z.core.$strip>;
|
|
2701
|
+
placement: z.ZodNullable<z.ZodObject<{
|
|
2702
|
+
boardKey: z.ZodString;
|
|
2703
|
+
routeId: z.ZodString;
|
|
2704
|
+
phase: z.ZodString;
|
|
2705
|
+
}, z.core.$strip>>;
|
|
2706
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2707
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2708
|
+
evaluator: z.ZodEnum<{
|
|
2709
|
+
"intake-order": "intake-order";
|
|
2710
|
+
"route-list": "route-list";
|
|
2711
|
+
}>;
|
|
2712
|
+
boards: z.ZodArray<z.ZodObject<{
|
|
2713
|
+
boardKey: z.ZodString;
|
|
2714
|
+
name: z.ZodString;
|
|
2715
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
2716
|
+
routeId: z.ZodString;
|
|
2717
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2718
|
+
phase: z.ZodString;
|
|
2719
|
+
outcome: z.ZodEnum<{
|
|
2720
|
+
disabled: "disabled";
|
|
2721
|
+
lost: "lost";
|
|
2722
|
+
no_match: "no_match";
|
|
2723
|
+
phase_refuses: "phase_refuses";
|
|
2724
|
+
took: "took";
|
|
2725
|
+
}>;
|
|
2726
|
+
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2727
|
+
field: z.ZodString;
|
|
2728
|
+
operator: z.ZodString;
|
|
2729
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
2730
|
+
actual: z.ZodUnknown;
|
|
2731
|
+
}, z.core.$strip>>>;
|
|
2732
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
2733
|
+
boardKey: z.ZodString;
|
|
2734
|
+
routeId: z.ZodString;
|
|
2735
|
+
}, z.core.$strip>>;
|
|
2736
|
+
}, z.core.$strip>>;
|
|
2737
|
+
}, z.core.$strip>>;
|
|
2738
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
2739
|
+
boardKey: z.ZodString;
|
|
2740
|
+
phase: z.ZodNullable<z.ZodString>;
|
|
2741
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
2742
|
+
}, z.core.$strip>>;
|
|
2743
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
2744
|
+
decisionId: z.ZodNullable<z.ZodString>;
|
|
2745
|
+
at: z.ZodNullable<z.ZodString>;
|
|
2746
|
+
event: z.ZodObject<{
|
|
2747
|
+
type: z.ZodEnum<{
|
|
2748
|
+
"pull_request.closed": "pull_request.closed";
|
|
2749
|
+
"pull_request.merged": "pull_request.merged";
|
|
2750
|
+
"pull_request.opened": "pull_request.opened";
|
|
2751
|
+
"pull_request.reopened": "pull_request.reopened";
|
|
2752
|
+
"pull_request.review_requested": "pull_request.review_requested";
|
|
2753
|
+
"pull_request.synchronized": "pull_request.synchronized";
|
|
2754
|
+
"pull_request.updated": "pull_request.updated";
|
|
2755
|
+
"work_item.closed": "work_item.closed";
|
|
2756
|
+
"work_item.opened": "work_item.opened";
|
|
2757
|
+
"work_item.reopened": "work_item.reopened";
|
|
2758
|
+
"work_item.updated": "work_item.updated";
|
|
2759
|
+
}>;
|
|
2760
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2761
|
+
canceled: "canceled";
|
|
2762
|
+
completed: "completed";
|
|
2763
|
+
}>>;
|
|
2764
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
2765
|
+
added: z.ZodArray<z.ZodString>;
|
|
2766
|
+
removed: z.ZodArray<z.ZodString>;
|
|
2767
|
+
}, z.core.$strip>>;
|
|
2768
|
+
assignees: z.ZodOptional<z.ZodObject<{
|
|
2769
|
+
added: z.ZodArray<z.ZodString>;
|
|
2770
|
+
removed: z.ZodArray<z.ZodString>;
|
|
2771
|
+
}, z.core.$strip>>;
|
|
2772
|
+
pullRequestTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
2773
|
+
}, z.core.$strip>;
|
|
2774
|
+
outcome: z.ZodEnum<{
|
|
2775
|
+
ignored: "ignored";
|
|
2776
|
+
moves: "moves";
|
|
2777
|
+
rule_default: "rule_default";
|
|
2778
|
+
stays: "stays";
|
|
2779
|
+
unknown: "unknown";
|
|
2780
|
+
}>;
|
|
2781
|
+
to: z.ZodNullable<z.ZodObject<{
|
|
2782
|
+
boardKey: z.ZodString;
|
|
2783
|
+
phase: z.ZodString;
|
|
2784
|
+
routeId: z.ZodString;
|
|
2785
|
+
}, z.core.$strip>>;
|
|
2786
|
+
phase: z.ZodNullable<z.ZodString>;
|
|
2787
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2788
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
2789
|
+
routeId: z.ZodString;
|
|
2790
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2791
|
+
outcome: z.ZodEnum<{
|
|
2792
|
+
disabled: "disabled";
|
|
2793
|
+
lost: "lost";
|
|
2794
|
+
no_match: "no_match";
|
|
2795
|
+
skipped: "skipped";
|
|
2796
|
+
took: "took";
|
|
2797
|
+
}>;
|
|
2798
|
+
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2799
|
+
field: z.ZodString;
|
|
2800
|
+
operator: z.ZodString;
|
|
2801
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
2802
|
+
actual: z.ZodUnknown;
|
|
2803
|
+
}, z.core.$strip>>>;
|
|
2804
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
2805
|
+
boardKey: z.ZodString;
|
|
2806
|
+
routeId: z.ZodString;
|
|
2807
|
+
}, z.core.$strip>>;
|
|
2808
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
}, z.core.$strip>>;
|
|
2810
|
+
}, z.core.$strip>>;
|
|
2811
|
+
}, z.core.$strip>;
|
|
2812
|
+
};
|
|
1824
2813
|
readonly workItemList: {
|
|
1825
2814
|
readonly method: 'GET';
|
|
1826
2815
|
readonly path: '/web/factory/projects/:id/work-items';
|
|
@@ -1943,6 +2932,233 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1943
2932
|
actorIds: z.ZodArray<z.ZodString>;
|
|
1944
2933
|
}, z.core.$strip>;
|
|
1945
2934
|
};
|
|
2935
|
+
readonly sessionRows: {
|
|
2936
|
+
readonly method: 'GET';
|
|
2937
|
+
readonly path: '/web/factory/projects/:id/session-rows';
|
|
2938
|
+
readonly description: "List the sidebar's session rows of a view, grouped and in order, with how many match";
|
|
2939
|
+
readonly pathSchema: z.ZodObject<{
|
|
2940
|
+
id: z.ZodString;
|
|
2941
|
+
}, z.core.$strip>;
|
|
2942
|
+
readonly querySchema: z.ZodObject<{
|
|
2943
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
2944
|
+
activity: "activity";
|
|
2945
|
+
created: "created";
|
|
2946
|
+
updated: "updated";
|
|
2947
|
+
}>>;
|
|
2948
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
2949
|
+
board: "board";
|
|
2950
|
+
none: "none";
|
|
2951
|
+
owner: "owner";
|
|
2952
|
+
status: "status";
|
|
2953
|
+
}>>;
|
|
2954
|
+
owner: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2955
|
+
all: "all";
|
|
2956
|
+
mine: "mine";
|
|
2957
|
+
}>, z.ZodString]>>;
|
|
2958
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2959
|
+
done: "done";
|
|
2960
|
+
idle: "idle";
|
|
2961
|
+
initializing: "initializing";
|
|
2962
|
+
waiting: "waiting";
|
|
2963
|
+
working: "working";
|
|
2964
|
+
}>>;
|
|
2965
|
+
updated: z.ZodOptional<z.ZodEnum<{
|
|
2966
|
+
"24h": "24h";
|
|
2967
|
+
"30d": "30d";
|
|
2968
|
+
"7d": "7d";
|
|
2969
|
+
}>>;
|
|
2970
|
+
children: z.ZodOptional<z.ZodEnum<{
|
|
2971
|
+
true: "true";
|
|
2972
|
+
}>>;
|
|
2973
|
+
pin: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<Set<string>, string[]>>;
|
|
2974
|
+
open: z.ZodOptional<z.ZodString>;
|
|
2975
|
+
window: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<[group: string, count: string], string>>, z.ZodTuple<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>], null>>>>, z.ZodTransform<Map<string, number>, [string, number][]>>;
|
|
2976
|
+
}, z.core.$strip>;
|
|
2977
|
+
readonly responseSchema: z.ZodObject<{
|
|
2978
|
+
total: z.ZodNumber;
|
|
2979
|
+
matching: z.ZodNumber;
|
|
2980
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
2981
|
+
key: z.ZodString;
|
|
2982
|
+
total: z.ZodNumber;
|
|
2983
|
+
openIndex: z.ZodOptional<z.ZodNumber>;
|
|
2984
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
2985
|
+
session: z.ZodObject<{
|
|
2986
|
+
id: z.ZodString;
|
|
2987
|
+
sessionId: z.ZodString;
|
|
2988
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
2989
|
+
userId: z.ZodString;
|
|
2990
|
+
branch: z.ZodString;
|
|
2991
|
+
title: z.ZodNullable<z.ZodString>;
|
|
2992
|
+
visibility: z.ZodEnum<{
|
|
2993
|
+
org: "org";
|
|
2994
|
+
private: "private";
|
|
2995
|
+
}>;
|
|
2996
|
+
createdAt: z.ZodString;
|
|
2997
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
2998
|
+
id: z.ZodString;
|
|
2999
|
+
name: z.ZodString;
|
|
3000
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3001
|
+
}, z.core.$strip>>;
|
|
3002
|
+
}, z.core.$strip>;
|
|
3003
|
+
origin: z.ZodEnum<{
|
|
3004
|
+
factory: "factory";
|
|
3005
|
+
user: "user";
|
|
3006
|
+
}>;
|
|
3007
|
+
board: z.ZodOptional<z.ZodString>;
|
|
3008
|
+
status: z.ZodEnum<{
|
|
3009
|
+
done: "done";
|
|
3010
|
+
idle: "idle";
|
|
3011
|
+
initializing: "initializing";
|
|
3012
|
+
waiting: "waiting";
|
|
3013
|
+
working: "working";
|
|
3014
|
+
}>;
|
|
3015
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
3016
|
+
done: "done";
|
|
3017
|
+
idle: "idle";
|
|
3018
|
+
initializing: "initializing";
|
|
3019
|
+
waiting: "waiting";
|
|
3020
|
+
working: "working";
|
|
3021
|
+
}>>;
|
|
3022
|
+
pinned: z.ZodBoolean;
|
|
3023
|
+
updatedAt: z.ZodString;
|
|
3024
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3025
|
+
id: z.ZodString;
|
|
3026
|
+
title: z.ZodString;
|
|
3027
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
3028
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
3029
|
+
integrationId: z.ZodString;
|
|
3030
|
+
type: z.ZodString;
|
|
3031
|
+
externalId: z.ZodString;
|
|
3032
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
3033
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3034
|
+
}, z.core.$strip>>;
|
|
3035
|
+
}, z.core.$strip>>;
|
|
3036
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
3037
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
3038
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
3039
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3040
|
+
provider: z.ZodEnum<{
|
|
3041
|
+
github: "github";
|
|
3042
|
+
gitlab: "gitlab";
|
|
3043
|
+
}>;
|
|
3044
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
3045
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3046
|
+
closed: "closed";
|
|
3047
|
+
draft: "draft";
|
|
3048
|
+
merged: "merged";
|
|
3049
|
+
open: "open";
|
|
3050
|
+
}>>;
|
|
3051
|
+
draft: z.ZodBoolean;
|
|
3052
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
3053
|
+
}, z.core.$strip>>;
|
|
3054
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3055
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3057
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
3058
|
+
childRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3059
|
+
session: z.ZodObject<{
|
|
3060
|
+
id: z.ZodString;
|
|
3061
|
+
sessionId: z.ZodString;
|
|
3062
|
+
projectRepositoryId: z.ZodNullable<z.ZodString>;
|
|
3063
|
+
userId: z.ZodString;
|
|
3064
|
+
branch: z.ZodString;
|
|
3065
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3066
|
+
visibility: z.ZodEnum<{
|
|
3067
|
+
org: "org";
|
|
3068
|
+
private: "private";
|
|
3069
|
+
}>;
|
|
3070
|
+
createdAt: z.ZodString;
|
|
3071
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
3072
|
+
id: z.ZodString;
|
|
3073
|
+
name: z.ZodString;
|
|
3074
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3075
|
+
}, z.core.$strip>>;
|
|
3076
|
+
}, z.core.$strip>;
|
|
3077
|
+
origin: z.ZodEnum<{
|
|
3078
|
+
factory: "factory";
|
|
3079
|
+
user: "user";
|
|
3080
|
+
}>;
|
|
3081
|
+
board: z.ZodOptional<z.ZodString>;
|
|
3082
|
+
status: z.ZodEnum<{
|
|
3083
|
+
done: "done";
|
|
3084
|
+
idle: "idle";
|
|
3085
|
+
initializing: "initializing";
|
|
3086
|
+
waiting: "waiting";
|
|
3087
|
+
working: "working";
|
|
3088
|
+
}>;
|
|
3089
|
+
cardStatus: z.ZodOptional<z.ZodEnum<{
|
|
3090
|
+
done: "done";
|
|
3091
|
+
idle: "idle";
|
|
3092
|
+
initializing: "initializing";
|
|
3093
|
+
waiting: "waiting";
|
|
3094
|
+
working: "working";
|
|
3095
|
+
}>>;
|
|
3096
|
+
pinned: z.ZodBoolean;
|
|
3097
|
+
updatedAt: z.ZodString;
|
|
3098
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3099
|
+
id: z.ZodString;
|
|
3100
|
+
title: z.ZodString;
|
|
3101
|
+
workItemUrl: z.ZodNullable<z.ZodString>;
|
|
3102
|
+
externalSource: z.ZodNullable<z.ZodObject<{
|
|
3103
|
+
integrationId: z.ZodString;
|
|
3104
|
+
type: z.ZodString;
|
|
3105
|
+
externalId: z.ZodString;
|
|
3106
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
3107
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3108
|
+
}, z.core.$strip>>;
|
|
3109
|
+
}, z.core.$strip>>;
|
|
3110
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
3111
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
3112
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
3113
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
provider: z.ZodEnum<{
|
|
3115
|
+
github: "github";
|
|
3116
|
+
gitlab: "gitlab";
|
|
3117
|
+
}>;
|
|
3118
|
+
number: z.ZodOptional<z.ZodNumber>;
|
|
3119
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3120
|
+
closed: "closed";
|
|
3121
|
+
draft: "draft";
|
|
3122
|
+
merged: "merged";
|
|
3123
|
+
open: "open";
|
|
3124
|
+
}>>;
|
|
3125
|
+
draft: z.ZodBoolean;
|
|
3126
|
+
syncedAt: z.ZodOptional<z.ZodNumber>;
|
|
3127
|
+
}, z.core.$strip>>;
|
|
3128
|
+
cardSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3129
|
+
phaseLabel: z.ZodOptional<z.ZodString>;
|
|
3130
|
+
runByFactory: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3131
|
+
waitingSessionId: z.ZodOptional<z.ZodString>;
|
|
3132
|
+
}, z.core.$strip>>>;
|
|
3133
|
+
}, z.core.$strip>>;
|
|
3134
|
+
}, z.core.$strip>>;
|
|
3135
|
+
boards: z.ZodArray<z.ZodString>;
|
|
3136
|
+
owners: z.ZodArray<z.ZodObject<{
|
|
3137
|
+
userId: z.ZodString;
|
|
3138
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3139
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3140
|
+
}, z.core.$strip>>;
|
|
3141
|
+
settling: z.ZodBoolean;
|
|
3142
|
+
}, z.core.$strip>;
|
|
3143
|
+
};
|
|
3144
|
+
readonly sessionActivity: {
|
|
3145
|
+
readonly method: 'GET';
|
|
3146
|
+
readonly path: '/web/factory/projects/:id/session-activity';
|
|
3147
|
+
readonly description: "List which of a project's sessions are running, waiting on a person or coming up";
|
|
3148
|
+
readonly pathSchema: z.ZodObject<{
|
|
3149
|
+
id: z.ZodString;
|
|
3150
|
+
}, z.core.$strip>;
|
|
3151
|
+
readonly responseSchema: z.ZodObject<{
|
|
3152
|
+
runningSessionIds: z.ZodArray<z.ZodString>;
|
|
3153
|
+
parkedSessionIds: z.ZodArray<z.ZodString>;
|
|
3154
|
+
initializingSessionIds: z.ZodArray<z.ZodString>;
|
|
3155
|
+
cards: z.ZodObject<{
|
|
3156
|
+
working: z.ZodNumber;
|
|
3157
|
+
waiting: z.ZodNumber;
|
|
3158
|
+
}, z.core.$strip>;
|
|
3159
|
+
settling: z.ZodBoolean;
|
|
3160
|
+
}, z.core.$strip>;
|
|
3161
|
+
};
|
|
1946
3162
|
readonly workItemCreate: {
|
|
1947
3163
|
readonly method: 'POST';
|
|
1948
3164
|
readonly path: '/web/factory/projects/:id/work-items';
|
|
@@ -2067,6 +3283,32 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
2067
3283
|
}>>;
|
|
2068
3284
|
readonly responseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2069
3285
|
};
|
|
3286
|
+
readonly workItemWorkingPullRequest: {
|
|
3287
|
+
readonly method: 'PUT';
|
|
3288
|
+
readonly path: '/web/factory/projects/:id/work-items/:workItemId/working-pull-request';
|
|
3289
|
+
readonly description: "Make one of the pull requests linked to a card the one its sessions work on. The only way an outside author's pull request becomes a card's working pull request.";
|
|
3290
|
+
readonly pathSchema: z.ZodObject<{
|
|
3291
|
+
id: z.ZodString;
|
|
3292
|
+
workItemId: z.ZodString;
|
|
3293
|
+
}, z.core.$strip>;
|
|
3294
|
+
readonly bodySchema: z.ZodObject<{
|
|
3295
|
+
pullRequest: z.ZodNumber;
|
|
3296
|
+
expectedRevision: z.ZodNumber;
|
|
3297
|
+
}, z.core.$strip>;
|
|
3298
|
+
readonly responseSchema: z.ZodObject<{
|
|
3299
|
+
workItem: z.ZodObject<{
|
|
3300
|
+
workItem: z.ZodOptional<z.ZodObject<{
|
|
3301
|
+
provider: z.ZodString;
|
|
3302
|
+
key: z.ZodNullable<z.ZodString>;
|
|
3303
|
+
url: z.ZodNullable<z.ZodString>;
|
|
3304
|
+
title: z.ZodString;
|
|
3305
|
+
state: z.ZodNullable<z.ZodString>;
|
|
3306
|
+
labels: z.ZodArray<z.ZodString>;
|
|
3307
|
+
author: z.ZodNullable<z.ZodString>;
|
|
3308
|
+
}, z.core.$loose>>;
|
|
3309
|
+
}, z.core.$loose>;
|
|
3310
|
+
}, z.core.$strip>;
|
|
3311
|
+
};
|
|
2070
3312
|
readonly workItemStart: {
|
|
2071
3313
|
readonly method: 'POST';
|
|
2072
3314
|
readonly path: '/web/factory/projects/:id/runs/start';
|
|
@@ -2155,6 +3397,10 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
2155
3397
|
scope: z.ZodLiteral<"server">;
|
|
2156
3398
|
inUse: z.ZodNumber;
|
|
2157
3399
|
cap: z.ZodNumber;
|
|
3400
|
+
interactive: z.ZodObject<{
|
|
3401
|
+
inUse: z.ZodNumber;
|
|
3402
|
+
cap: z.ZodNumber;
|
|
3403
|
+
}, z.core.$strip>;
|
|
2158
3404
|
}, z.core.$strip>>;
|
|
2159
3405
|
running: z.ZodNumber;
|
|
2160
3406
|
claimed: z.ZodArray<z.ZodObject<{
|
|
@@ -2168,6 +3414,10 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
2168
3414
|
sendMessage: "sendMessage";
|
|
2169
3415
|
signalActivity: "signalActivity";
|
|
2170
3416
|
}>;
|
|
3417
|
+
lane: z.ZodEnum<{
|
|
3418
|
+
automated: "automated";
|
|
3419
|
+
interactive: "interactive";
|
|
3420
|
+
}>;
|
|
2171
3421
|
role: z.ZodNullable<z.ZodString>;
|
|
2172
3422
|
skillName: z.ZodNullable<z.ZodString>;
|
|
2173
3423
|
queuedSince: z.ZodString;
|
|
@@ -2180,6 +3430,10 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
2180
3430
|
}, z.core.$strip>>;
|
|
2181
3431
|
}, z.core.$strip>>;
|
|
2182
3432
|
queuedCount: z.ZodNumber;
|
|
3433
|
+
queuedByLane: z.ZodObject<{
|
|
3434
|
+
automated: z.ZodNumber;
|
|
3435
|
+
interactive: z.ZodNumber;
|
|
3436
|
+
}, z.core.$strip>;
|
|
2183
3437
|
queued: z.ZodArray<z.ZodObject<{
|
|
2184
3438
|
decisionId: z.ZodString;
|
|
2185
3439
|
state: z.ZodEnum<{
|
|
@@ -2191,6 +3445,10 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
2191
3445
|
sendMessage: "sendMessage";
|
|
2192
3446
|
signalActivity: "signalActivity";
|
|
2193
3447
|
}>;
|
|
3448
|
+
lane: z.ZodEnum<{
|
|
3449
|
+
automated: "automated";
|
|
3450
|
+
interactive: "interactive";
|
|
3451
|
+
}>;
|
|
2194
3452
|
role: z.ZodNullable<z.ZodString>;
|
|
2195
3453
|
skillName: z.ZodNullable<z.ZodString>;
|
|
2196
3454
|
queuedSince: z.ZodString;
|