@devpad/api 2.6.4 → 2.6.6
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/dist/index.d.ts +12 -1
- package/dist/index.js +6 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -725,6 +725,16 @@ type PipelineDispatches = {
|
|
|
725
725
|
commit_sha: string | null;
|
|
726
726
|
dispatches: PipelineDispatchEntry[];
|
|
727
727
|
};
|
|
728
|
+
/**
|
|
729
|
+
* Outcome of the orchestrator's AWAITED DO tick, returned in
|
|
730
|
+
* `events.ingest` responses (#155): `applied` (run state machine moved),
|
|
731
|
+
* `noop:<reason>` (DO refused — sha/stage mismatch, orchestrated run,
|
|
732
|
+
* malformed payload), `failed:<message>` (tick broke; event row still
|
|
733
|
+
* durable), or `skipped:*` (informational kind / idempotent replay).
|
|
734
|
+
* Mirrors `IngestTick` in `packages/core/src/services/pipelines/events.ts`
|
|
735
|
+
* (defined locally — `@devpad/api` doesn't depend on `@devpad/core`).
|
|
736
|
+
*/
|
|
737
|
+
type PipelineIngestTick = "applied" | `noop:${string}` | `failed:${string}` | "skipped:informational" | "skipped:duplicated";
|
|
728
738
|
type FoldDiff = {
|
|
729
739
|
kind: "missing_row";
|
|
730
740
|
entity: "milestone" | "goal";
|
|
@@ -1760,6 +1770,7 @@ declare class ApiClient {
|
|
|
1760
1770
|
}) => Promise<ApiResult<{
|
|
1761
1771
|
event_id: string;
|
|
1762
1772
|
duplicated: boolean;
|
|
1773
|
+
tick: PipelineIngestTick;
|
|
1763
1774
|
}>>;
|
|
1764
1775
|
list: (run_id: string) => Promise<ApiResult<PipelineStageEvent[]>>;
|
|
1765
1776
|
};
|
|
@@ -2005,4 +2016,4 @@ declare const tools: Record<string, ToolDefinition>;
|
|
|
2005
2016
|
declare const toolNames: string[];
|
|
2006
2017
|
declare function getTool(name: string): ToolDefinition | undefined;
|
|
2007
2018
|
|
|
2008
|
-
export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type ApplyResponse, type AuthMode, AuthenticationError, type BubbleStep, Category, CategoryCreate, CreateProfileInput, DecideCheckpointRequest, type DocContent, type DocVersionInfo, type DoneResponse, type EdgeSummary, Milestone, type MilestoneLensResponse, type MilestoneLensRow, NetworkError, type PipelineDispatchEntry, type PipelineDispatches, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type PublicHook, type PullDocResponse, type PulseErrorIssue, type PulseErrorsResult, type PulseEventRow, type PulseEventsPage, type PulseLatencyByMinute, type PulseLatencyResult, type PulseLogsResult, type PulseSummary, type PulseSummaryByDay, type PushInterfaceReportResult, type RequestHistoryEntry, type RequestOptions, ReviewItem, type RollupCounts, SaveConfigRequest, Signoff, Task, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, pulseSummaryHasData, toolNames, tools, wrap };
|
|
2019
|
+
export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type ApplyResponse, type AuthMode, AuthenticationError, type BubbleStep, Category, CategoryCreate, CreateProfileInput, DecideCheckpointRequest, type DocContent, type DocVersionInfo, type DoneResponse, type EdgeSummary, Milestone, type MilestoneLensResponse, type MilestoneLensRow, NetworkError, type PipelineDispatchEntry, type PipelineDispatches, type PipelineIngestTick, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type PublicHook, type PullDocResponse, type PulseErrorIssue, type PulseErrorsResult, type PulseEventRow, type PulseEventsPage, type PulseLatencyByMinute, type PulseLatencyResult, type PulseLogsResult, type PulseSummary, type PulseSummaryByDay, type PushInterfaceReportResult, type RequestHistoryEntry, type RequestOptions, ReviewItem, type RollupCounts, SaveConfigRequest, Signoff, Task, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, pulseSummaryHasData, toolNames, tools, wrap };
|
package/dist/index.js
CHANGED
|
@@ -1509,9 +1509,12 @@ var ApiClient2 = class {
|
|
|
1509
1509
|
*/
|
|
1510
1510
|
events: {
|
|
1511
1511
|
ingest: (run_id, input) => wrap(
|
|
1512
|
-
() => this.clients.pipelines.post(
|
|
1513
|
-
|
|
1514
|
-
|
|
1512
|
+
() => this.clients.pipelines.post(
|
|
1513
|
+
`/runs/${run_id}/events`,
|
|
1514
|
+
{
|
|
1515
|
+
body: input
|
|
1516
|
+
}
|
|
1517
|
+
)
|
|
1515
1518
|
),
|
|
1516
1519
|
list: (run_id) => wrap(() => this.clients.pipelines.get(`/runs/${run_id}/events`))
|
|
1517
1520
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/api",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.6",
|
|
4
4
|
"description": "TypeScript client library for the devpad API - project and task management made simple",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"zod": "^3.22.4"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@devpad/schema": "^2.6.
|
|
71
|
+
"@devpad/schema": "^2.6.6",
|
|
72
72
|
"@types/node": "^20.11.24",
|
|
73
73
|
"bun-types": "latest",
|
|
74
74
|
"tsup": "^8.0.0",
|