@devpad/api 2.2.7 → 2.2.8

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.
@@ -6185,6 +6185,25 @@ declare const fullSchema: {
6185
6185
  }, {}, {
6186
6186
  length: number | undefined;
6187
6187
  }>;
6188
+ idempotency_hash: drizzle_orm_sqlite_core.SQLiteColumn<{
6189
+ name: "idempotency_hash";
6190
+ tableName: "pipeline_stage_event";
6191
+ dataType: "string";
6192
+ columnType: "SQLiteText";
6193
+ data: string;
6194
+ driverParam: string;
6195
+ notNull: false;
6196
+ hasDefault: false;
6197
+ isPrimaryKey: false;
6198
+ isAutoincrement: false;
6199
+ hasRuntimeDefault: false;
6200
+ enumValues: [string, ...string[]];
6201
+ baseColumn: never;
6202
+ identity: undefined;
6203
+ generated: undefined;
6204
+ }, {}, {
6205
+ length: number | undefined;
6206
+ }>;
6188
6207
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
6189
6208
  name: "id";
6190
6209
  tableName: "pipeline_stage_event";
@@ -1,6 +1,6 @@
1
- export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as apiError, l as authExpired, m as badRequest, n as configureErrorLogging, o as conflict, p as dbError, q as encryptionError, r as errors, s as forbidden, t as githubError, u as isApiError, v as isAuthExpiredError, w as isBadRequestError, x as isConflictError, y as isDatabaseError, z as isEncryptionError, H as isForbiddenError, I as isGithubError, J as isNetworkError, K as isNotFoundError, L as isParseError, M as isProtectedError, O as isRateLimitedError, Q as isRetryableError, T as isScanError, W as isServiceError, X as isStoreError, Y as isUnauthorizedError, Z as isValidationError, _ as networkError, $ as notFound, a0 as parseError, a1 as protectedEntity, a2 as rateLimited, a3 as scanError, a4 as storeError, a5 as unauthorized, a6 as validation } from '../errors.d-ByyBTSwW.js';
2
- export { A as Action, a as ApiKey, C as CodebaseTask, b as ConfigSchemaType, G as GetConfigResult, c as Goal, H as HistoryAction, I as IgnorePath, d as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, e as PipelineApproval, f as PipelineGrant, g as PipelineOidcTrust, h as PipelinePackage, i as PipelineRun, j as PipelineStageEvent, k as Project, l as ProjectConfig, m as ProjectWithTasks, R as RolloutShapeZ, n as RunKindZ, S as SaveConfigRequest, o as ScanStatus, p as Session, T as TAG_COLOURS, q as Tag, r as TagColor, s as TagConfig, t as TagWithColor, u as TagWithTypedColor, v as Task, w as TaskTag, x as TaskView, y as TaskWithDetails, z as TodoUpdate, B as TrackerResult, U as UpdateAction, D as UpdateData, E as UpdateUser, F as UpsertGoal, J as UpsertMilestone, K as UpsertPipelineAnalysisTemplate, L as UpsertPipelineApproval, O as UpsertPipelineGrant, Q as UpsertPipelineOidcTrust, V as UpsertPipelinePackage, W as UpsertPipelineRun, X as UpsertProject, Y as UpsertTag, Z as UpsertTodo, _ as User, $ as approval_decision, a0 as config_schema, a1 as forced_atomic_reason, a2 as gate_descriptor, a3 as grant_scope, a4 as insert_pipeline_stage_event, a5 as pipeline_oidc_provider, a6 as project_config, a7 as resolved_gates, a8 as resolved_rollout, a9 as rollout_shape, aa as rollout_stage, ab as run_kind, ac as run_status, ad as save_config_request, ae as save_tags_request, af as stage_event_kind, ag as update_action, ah as update_user, ai as upsert_goal, aj as upsert_milestone, ak as upsert_pipeline_analysis_template, al as upsert_pipeline_approval, am as upsert_pipeline_grant, an as upsert_pipeline_oidc_trust, ao as upsert_pipeline_package, ap as upsert_pipeline_run, aq as upsert_project, ar as upsert_tag, as as upsert_todo } from '../types.d-i9gbGlha.js';
3
- export { a as ApprovalDecision, F as ForcedAtomicReason, P as PipelineOidcProvider, R as RolloutShape, b as RunStatus, S as StageEventKind } from '../schema.d-DFyjWZV1.js';
1
+ export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as ValidationFieldError, l as apiError, m as authExpired, n as badRequest, o as configureErrorLogging, p as conflict, q as dbError, r as encryptionError, s as errors, t as forbidden, u as githubError, v as isApiError, w as isAuthExpiredError, x as isBadRequestError, y as isConflictError, z as isDatabaseError, H as isEncryptionError, I as isForbiddenError, J as isGithubError, K as isNetworkError, L as isNotFoundError, M as isParseError, O as isProtectedError, Q as isRateLimitedError, T as isRetryableError, W as isScanError, X as isServiceError, Y as isStoreError, Z as isUnauthorizedError, _ as isValidationError, $ as isValidationFieldError, a0 as networkError, a1 as notFound, a2 as parseError, a3 as protectedEntity, a4 as rateLimited, a5 as scanError, a6 as storeError, a7 as unauthorized, a8 as validation, a9 as validationFieldError } from '../errors.d-CNYqUDaJ.js';
2
+ export { A as Action, a as ApiKey, C as CodebaseTask, b as ConfigSchemaType, D as DashboardResponse, c as DashboardWindowQuery, G as GetConfigResult, d as Goal, H as HistoryAction, I as IgnorePath, e as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, f as PipelineApproval, g as PipelineGrant, h as PipelineOidcTrust, i as PipelinePackage, j as PipelineRun, k as PipelineStageEvent, l as Project, m as ProjectConfig, n as ProjectWithTasks, R as RolloutShapeZ, o as RunKindZ, S as SaveConfigRequest, p as ScanStatus, q as Session, T as TAG_COLOURS, r as Tag, s as TagColor, t as TagConfig, u as TagWithColor, v as TagWithTypedColor, w as Task, x as TaskTag, y as TaskView, z as TaskWithDetails, B as TodoUpdate, E as TrackerResult, U as UpdateAction, F as UpdateData, J as UpdateUser, K as UpsertGoal, L as UpsertMilestone, O as UpsertPipelineAnalysisTemplate, Q as UpsertPipelineApproval, V as UpsertPipelineGrant, W as UpsertPipelineOidcTrust, X as UpsertPipelinePackage, Y as UpsertPipelineRun, Z as UpsertProject, _ as UpsertTag, $ as UpsertTodo, a0 as User, a1 as WebhookEventBody, a2 as approval_decision, a3 as config_schema, a4 as dashboard_response, a5 as dashboard_window_query, a6 as forced_atomic_reason, a7 as gate_descriptor, a8 as grant_scope, a9 as insert_pipeline_stage_event, aa as pipeline_oidc_provider, ab as project_config, ac as resolved_gates, ad as resolved_rollout, ae as rollout_shape, af as rollout_stage, ag as run_kind, ah as run_status, ai as save_config_request, aj as save_tags_request, ak as stage_event_kind, al as update_action, am as update_user, an as upsert_goal, ao as upsert_milestone, ap as upsert_pipeline_analysis_template, aq as upsert_pipeline_approval, ar as upsert_pipeline_grant, as as upsert_pipeline_oidc_trust, at as upsert_pipeline_package, au as upsert_pipeline_run, av as upsert_project, aw as upsert_tag, ax as upsert_todo, ay as webhook_event_body } from '../types.d-BvfRohlZ.js';
3
+ export { a as ApprovalDecision, F as ForcedAtomicReason, P as PipelineOidcProvider, R as RolloutShape, b as RunStatus, S as StageEventKind } from '../schema.d-BeVFWenc.js';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import 'zod';
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  approval_decision,
3
3
  config_schema,
4
+ dashboard_response,
5
+ dashboard_window_query,
4
6
  forced_atomic_reason,
5
7
  gate_descriptor,
6
8
  grant_scope,
@@ -28,8 +30,9 @@ import {
28
30
  upsert_pipeline_run,
29
31
  upsert_project,
30
32
  upsert_tag,
31
- upsert_todo
32
- } from "../chunk-ZPEX7KVX.js";
33
+ upsert_todo,
34
+ webhook_event_body
35
+ } from "../chunk-TEOIDOOX.js";
33
36
  import {
34
37
  apiError,
35
38
  authExpired,
@@ -60,6 +63,7 @@ import {
60
63
  isStoreError,
61
64
  isUnauthorizedError,
62
65
  isValidationError,
66
+ isValidationFieldError,
63
67
  networkError,
64
68
  notFound,
65
69
  parseError,
@@ -68,8 +72,9 @@ import {
68
72
  scanError,
69
73
  storeError,
70
74
  unauthorized,
71
- validation
72
- } from "../chunk-5ALH7B5B.js";
75
+ validation,
76
+ validationFieldError
77
+ } from "../chunk-NQZIDUBQ.js";
73
78
 
74
79
  // ../schema/dist/types.js
75
80
  var TAG_COLOURS = {
@@ -94,6 +99,8 @@ export {
94
99
  config_schema,
95
100
  configureErrorLogging,
96
101
  conflict,
102
+ dashboard_response,
103
+ dashboard_window_query,
97
104
  dbError,
98
105
  encryptionError,
99
106
  errors,
@@ -122,6 +129,7 @@ export {
122
129
  isStoreError,
123
130
  isUnauthorizedError,
124
131
  isValidationError,
132
+ isValidationFieldError,
125
133
  networkError,
126
134
  notFound,
127
135
  parseError,
@@ -154,5 +162,7 @@ export {
154
162
  upsert_project,
155
163
  upsert_tag,
156
164
  upsert_todo,
157
- validation
165
+ validation,
166
+ validationFieldError,
167
+ webhook_event_body
158
168
  };
@@ -1,11 +1,11 @@
1
- export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as apiError, l as authExpired, m as badRequest, n as configureErrorLogging, o as conflict, p as dbError, q as encryptionError, r as errors, s as forbidden, t as githubError, u as isApiError, v as isAuthExpiredError, w as isBadRequestError, x as isConflictError, y as isDatabaseError, z as isEncryptionError, H as isForbiddenError, I as isGithubError, J as isNetworkError, K as isNotFoundError, L as isParseError, M as isProtectedError, O as isRateLimitedError, Q as isRetryableError, T as isScanError, W as isServiceError, X as isStoreError, Y as isUnauthorizedError, Z as isValidationError, _ as networkError, $ as notFound, a0 as parseError, a1 as protectedEntity, a2 as rateLimited, a3 as scanError, a4 as storeError, a5 as unauthorized, a6 as validation } from '../errors.d-ByyBTSwW.js';
2
- export { A as Account, a as AccountSetting, b as AccountWithUser, c as AddFilterInput, d as AddFilterSchema, e as ApiKey, B as BlueskyAuthor, f as BlueskyAuthorSchema, g as BlueskyFeedItem, h as BlueskyFeedItemSchema, i as BlueskyPost, j as BlueskyPostSchema, k as BlueskyRaw, l as BlueskyRawSchema, m as BlueskySettings, n as BlueskySettingsSchema, C as CommentPayload, o as CommentPayloadSchema, p as CommitGroup, q as CommitGroupSchema, r as CommitPayload, s as CommitPayloadSchema, t as CorpusPath, u as CreateProfileInput, v as CreateProfileSchema, D as DateGroup, w as DateGroupSchema, x as DevpadRaw, y as DevpadRawSchema, z as DevpadSettings, E as DevpadSettingsSchema, F as DevpadTask, G as DevpadTaskSchema, H as FilterKey, I as FilterKeySchema, J as FilterType, K as FilterTypeSchema, L as GitHubBaseEvent, M as GitHubBaseEventSchema, N as GitHubEvent, O as GitHubEventSchema, P as GitHubExtendedCommit, Q as GitHubExtendedCommitSchema, R as GitHubPullRequest, S as GitHubPullRequestSchema, T as GitHubRaw, U as GitHubRawSchema, V as GitHubRepo, W as GitHubRepoSchema, X as GitHubSettings, Y as GitHubSettingsSchema, Z as MULTI_STORE_PLATFORMS, _ as MultiStorePlatform, $ as NewAccount, a0 as NewAccountSetting, a1 as NewApiKey, a2 as NewPlatformCredential, a3 as NewProfile, a4 as NewProfileFilter, a5 as NewRateLimit, a6 as PLATFORMS, a7 as PRCommit, a8 as PRCommitSchema, a9 as Payload, aa as PayloadSchema, ab as Platform, ac as PlatformCredential, ad as PlatformSchema, ae as PlatformSettings, af as PlatformSettingsSchemaMap, ag as PostPayload, ah as PostPayloadSchema, ai as Profile, aj as ProfileFilter, ak as PullRequestPayload, al as PullRequestPayloadSchema, am as RateLimit, an as SlugSchema, ao as TaskPayload, ap as TaskPayloadSchema, aq as Timeline, ar as TimelineItem, as as TimelineItemSchema, at as TimelineSchema, au as TimelineType, av as TimelineTypeSchema, aw as UpdateProfileInput, ax as UpdateProfileSchema, ay as VideoPayload, az as VideoPayloadSchema, aA as YouTubeRaw, aB as YouTubeRawSchema, aC as YouTubeSettings, aD as YouTubeSettingsSchema, aE as YouTubeThumbnail, aF as YouTubeThumbnailSchema, aG as YouTubeVideo, aH as YouTubeVideoSchema, aI as isMultiStorePlatform } from '../types.d-YhCFiUtt.js';
1
+ export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as ValidationFieldError, l as apiError, m as authExpired, n as badRequest, o as configureErrorLogging, p as conflict, q as dbError, r as encryptionError, s as errors, t as forbidden, u as githubError, v as isApiError, w as isAuthExpiredError, x as isBadRequestError, y as isConflictError, z as isDatabaseError, H as isEncryptionError, I as isForbiddenError, J as isGithubError, K as isNetworkError, L as isNotFoundError, M as isParseError, O as isProtectedError, Q as isRateLimitedError, T as isRetryableError, W as isScanError, X as isServiceError, Y as isStoreError, Z as isUnauthorizedError, _ as isValidationError, $ as isValidationFieldError, a0 as networkError, a1 as notFound, a2 as parseError, a3 as protectedEntity, a4 as rateLimited, a5 as scanError, a6 as storeError, a7 as unauthorized, a8 as validation, a9 as validationFieldError } from '../errors.d-CNYqUDaJ.js';
2
+ export { A as Account, a as AccountSetting, b as AccountWithUser, c as AddFilterInput, d as AddFilterSchema, e as ApiKey, B as BlueskyAuthor, f as BlueskyAuthorSchema, g as BlueskyFeedItem, h as BlueskyFeedItemSchema, i as BlueskyPost, j as BlueskyPostSchema, k as BlueskyRaw, l as BlueskyRawSchema, m as BlueskySettings, n as BlueskySettingsSchema, C as CommentPayload, o as CommentPayloadSchema, p as CommitGroup, q as CommitGroupSchema, r as CommitPayload, s as CommitPayloadSchema, t as CorpusPath, u as CreateProfileInput, v as CreateProfileSchema, D as DateGroup, w as DateGroupSchema, x as DevpadRaw, y as DevpadRawSchema, z as DevpadSettings, E as DevpadSettingsSchema, F as DevpadTask, G as DevpadTaskSchema, H as FilterKey, I as FilterKeySchema, J as FilterType, K as FilterTypeSchema, L as GitHubBaseEvent, M as GitHubBaseEventSchema, N as GitHubEvent, O as GitHubEventSchema, P as GitHubExtendedCommit, Q as GitHubExtendedCommitSchema, R as GitHubPullRequest, S as GitHubPullRequestSchema, T as GitHubRaw, U as GitHubRawSchema, V as GitHubRepo, W as GitHubRepoSchema, X as GitHubSettings, Y as GitHubSettingsSchema, Z as MULTI_STORE_PLATFORMS, _ as MultiStorePlatform, $ as NewAccount, a0 as NewAccountSetting, a1 as NewApiKey, a2 as NewPlatformCredential, a3 as NewProfile, a4 as NewProfileFilter, a5 as NewRateLimit, a6 as PLATFORMS, a7 as PRCommit, a8 as PRCommitSchema, a9 as Payload, aa as PayloadSchema, ab as Platform, ac as PlatformCredential, ad as PlatformSchema, ae as PlatformSettings, af as PlatformSettingsSchemaMap, ag as PostPayload, ah as PostPayloadSchema, ai as Profile, aj as ProfileFilter, ak as PullRequestPayload, al as PullRequestPayloadSchema, am as RateLimit, an as SlugSchema, ao as TaskPayload, ap as TaskPayloadSchema, aq as Timeline, ar as TimelineItem, as as TimelineItemSchema, at as TimelineSchema, au as TimelineType, av as TimelineTypeSchema, aw as UpdateProfileInput, ax as UpdateProfileSchema, ay as VideoPayload, az as VideoPayloadSchema, aA as YouTubeRaw, aB as YouTubeRawSchema, aC as YouTubeSettings, aD as YouTubeSettingsSchema, aE as YouTubeThumbnail, aF as YouTubeThumbnailSchema, aG as YouTubeVideo, aH as YouTubeVideoSchema, aI as isMultiStorePlatform } from '../types.d-BcKx3ryl.js';
3
3
  import { z } from 'zod';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import '../media.d-R87HGuRp.js';
7
7
  import 'drizzle-orm/sqlite-core';
8
- import '../schema.d-DFyjWZV1.js';
8
+ import '../schema.d-BeVFWenc.js';
9
9
 
10
10
  declare const brand: unique symbol;
11
11
  type Brand<T, B extends string> = T & {
@@ -28,6 +28,7 @@ import {
28
28
  isStoreError,
29
29
  isUnauthorizedError,
30
30
  isValidationError,
31
+ isValidationFieldError,
31
32
  networkError,
32
33
  notFound,
33
34
  parseError,
@@ -36,8 +37,9 @@ import {
36
37
  scanError,
37
38
  storeError,
38
39
  unauthorized,
39
- validation
40
- } from "../chunk-5ALH7B5B.js";
40
+ validation,
41
+ validationFieldError
42
+ } from "../chunk-NQZIDUBQ.js";
41
43
 
42
44
  // ../schema/dist/media/branded.js
43
45
  var userId = (id) => id;
@@ -670,6 +672,7 @@ export {
670
672
  isUnauthorizedError,
671
673
  isValidId,
672
674
  isValidationError,
675
+ isValidationFieldError,
673
676
  networkError,
674
677
  notFound,
675
678
  parseError,
@@ -680,5 +683,6 @@ export {
680
683
  storeError,
681
684
  unauthorized,
682
685
  userId,
683
- validation
686
+ validation,
687
+ validationFieldError
684
688
  };
@@ -3762,6 +3762,25 @@ declare const pipeline_stage_event: drizzle_orm_sqlite_core.SQLiteTableWithColum
3762
3762
  }, {}, {
3763
3763
  length: number | undefined;
3764
3764
  }>;
3765
+ idempotency_hash: drizzle_orm_sqlite_core.SQLiteColumn<{
3766
+ name: "idempotency_hash";
3767
+ tableName: "pipeline_stage_event";
3768
+ dataType: "string";
3769
+ columnType: "SQLiteText";
3770
+ data: string;
3771
+ driverParam: string;
3772
+ notNull: false;
3773
+ hasDefault: false;
3774
+ isPrimaryKey: false;
3775
+ isAutoincrement: false;
3776
+ hasRuntimeDefault: false;
3777
+ enumValues: [string, ...string[]];
3778
+ baseColumn: never;
3779
+ identity: undefined;
3780
+ generated: undefined;
3781
+ }, {}, {
3782
+ length: number | undefined;
3783
+ }>;
3765
3784
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3766
3785
  name: "id";
3767
3786
  tableName: "pipeline_stage_event";
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
3
3
  import { a as media_accounts, d as media_profiles, c as media_profile_filters, m as media_account_settings, b as media_platform_credentials, e as media_rate_limits } from './media.d-R87HGuRp.js';
4
- import { d as api_keys } from './schema.d-DFyjWZV1.js';
4
+ import { d as api_keys } from './schema.d-BeVFWenc.js';
5
5
 
6
6
  declare const GitHubSettingsSchema: z.ZodObject<{
7
7
  hidden_repos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -1,6 +1,6 @@
1
1
  import { InferSelectModel } from 'drizzle-orm';
2
2
  import { z } from 'zod';
3
- import { d as api_keys, o as project, m as milestone, g as goal, r as task, e as codebase_tasks, c as action, A as ActionType, t as tag, l as pipeline_run, h as pipeline_grant, k as pipeline_package, j as pipeline_oidc_trust, i as ignore_path, p as pipeline_analysis_template, f as pipeline_approval, n as pipeline_stage_event, s as session, q as tag_config, u as task_tag, v as todo_updates, w as tracker_result, x as user } from './schema.d-DFyjWZV1.js';
3
+ import { d as api_keys, o as project, m as milestone, g as goal, r as task, e as codebase_tasks, c as action, A as ActionType, t as tag, l as pipeline_run, n as pipeline_stage_event, h as pipeline_grant, k as pipeline_package, p as pipeline_analysis_template, j as pipeline_oidc_trust, i as ignore_path, f as pipeline_approval, s as session, q as tag_config, u as task_tag, v as todo_updates, w as tracker_result, x as user } from './schema.d-BeVFWenc.js';
4
4
 
5
5
  declare const upsert_project: z.ZodObject<{
6
6
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -643,23 +643,26 @@ declare const upsert_pipeline_approval: z.ZodObject<{
643
643
  decided_at?: string | null | undefined;
644
644
  }>;
645
645
  declare const upsert_pipeline_analysis_template: z.ZodObject<{
646
- id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
646
+ id: z.ZodOptional<z.ZodString>;
647
647
  owner_id: z.ZodString;
648
648
  name: z.ZodString;
649
649
  query_dsl: z.ZodUnknown;
650
- threshold_dsl: z.ZodUnknown;
650
+ threshold_dsl: z.ZodString;
651
+ window_ms: z.ZodNumber;
651
652
  }, "strip", z.ZodTypeAny, {
652
653
  name: string;
653
654
  owner_id: string;
654
- id?: string | null | undefined;
655
+ threshold_dsl: string;
656
+ window_ms: number;
657
+ id?: string | undefined;
655
658
  query_dsl?: unknown;
656
- threshold_dsl?: unknown;
657
659
  }, {
658
660
  name: string;
659
661
  owner_id: string;
660
- id?: string | null | undefined;
662
+ threshold_dsl: string;
663
+ window_ms: number;
664
+ id?: string | undefined;
661
665
  query_dsl?: unknown;
662
- threshold_dsl?: unknown;
663
666
  }>;
664
667
  declare const pipeline_oidc_provider: z.ZodLiteral<"github">;
665
668
  declare const upsert_pipeline_oidc_trust: z.ZodObject<{
@@ -699,6 +702,196 @@ declare const upsert_pipeline_oidc_trust: z.ZodObject<{
699
702
  allowed_actions?: string[] | undefined;
700
703
  session_ttl_seconds?: number | undefined;
701
704
  }>;
705
+ declare const webhook_event_body: z.ZodObject<{
706
+ stage_name: z.ZodString;
707
+ kind: z.ZodEnum<["deploy_started", "deploy_completed", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"]>;
708
+ payload: z.ZodOptional<z.ZodUnknown>;
709
+ idempotency_key: z.ZodString;
710
+ }, "strip", z.ZodTypeAny, {
711
+ kind: "error" | "deploy_started" | "deploy_completed" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
712
+ stage_name: string;
713
+ idempotency_key: string;
714
+ payload?: unknown;
715
+ }, {
716
+ kind: "error" | "deploy_started" | "deploy_completed" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
717
+ stage_name: string;
718
+ idempotency_key: string;
719
+ payload?: unknown;
720
+ }>;
721
+ type WebhookEventBody = z.infer<typeof webhook_event_body>;
722
+ declare const dashboard_window_query: z.ZodObject<{
723
+ package_id: z.ZodString;
724
+ window_ms: z.ZodDefault<z.ZodNumber>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ package_id: string;
727
+ window_ms: number;
728
+ }, {
729
+ package_id: string;
730
+ window_ms?: number | undefined;
731
+ }>;
732
+ type DashboardWindowQuery = z.infer<typeof dashboard_window_query>;
733
+ declare const dashboard_response: z.ZodObject<{
734
+ run_counts: z.ZodObject<{
735
+ total: z.ZodNumber;
736
+ completed: z.ZodNumber;
737
+ failed: z.ZodNumber;
738
+ cancelled: z.ZodNumber;
739
+ rolled_back: z.ZodNumber;
740
+ in_flight: z.ZodNumber;
741
+ }, "strip", z.ZodTypeAny, {
742
+ completed: number;
743
+ rolled_back: number;
744
+ failed: number;
745
+ cancelled: number;
746
+ total: number;
747
+ in_flight: number;
748
+ }, {
749
+ completed: number;
750
+ rolled_back: number;
751
+ failed: number;
752
+ cancelled: number;
753
+ total: number;
754
+ in_flight: number;
755
+ }>;
756
+ verdict_counts: z.ZodObject<{
757
+ manual: z.ZodObject<{
758
+ pass: z.ZodNumber;
759
+ fail: z.ZodNumber;
760
+ pending: z.ZodNumber;
761
+ }, "strip", z.ZodTypeAny, {
762
+ pass: number;
763
+ fail: number;
764
+ pending: number;
765
+ }, {
766
+ pass: number;
767
+ fail: number;
768
+ pending: number;
769
+ }>;
770
+ auto: z.ZodObject<{
771
+ pass: z.ZodNumber;
772
+ fail: z.ZodNumber;
773
+ pending: z.ZodNumber;
774
+ }, "strip", z.ZodTypeAny, {
775
+ pass: number;
776
+ fail: number;
777
+ pending: number;
778
+ }, {
779
+ pass: number;
780
+ fail: number;
781
+ pending: number;
782
+ }>;
783
+ analysis: z.ZodObject<{
784
+ pass: z.ZodNumber;
785
+ fail: z.ZodNumber;
786
+ pending: z.ZodNumber;
787
+ }, "strip", z.ZodTypeAny, {
788
+ pass: number;
789
+ fail: number;
790
+ pending: number;
791
+ }, {
792
+ pass: number;
793
+ fail: number;
794
+ pending: number;
795
+ }>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ manual: {
798
+ pass: number;
799
+ fail: number;
800
+ pending: number;
801
+ };
802
+ auto: {
803
+ pass: number;
804
+ fail: number;
805
+ pending: number;
806
+ };
807
+ analysis: {
808
+ pass: number;
809
+ fail: number;
810
+ pending: number;
811
+ };
812
+ }, {
813
+ manual: {
814
+ pass: number;
815
+ fail: number;
816
+ pending: number;
817
+ };
818
+ auto: {
819
+ pass: number;
820
+ fail: number;
821
+ pending: number;
822
+ };
823
+ analysis: {
824
+ pass: number;
825
+ fail: number;
826
+ pending: number;
827
+ };
828
+ }>;
829
+ latency_p50_ms: z.ZodNullable<z.ZodNumber>;
830
+ latency_p95_ms: z.ZodNullable<z.ZodNumber>;
831
+ approval_turnaround_p50_ms: z.ZodNullable<z.ZodNumber>;
832
+ rollback_rate: z.ZodNullable<z.ZodNumber>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ run_counts: {
835
+ completed: number;
836
+ rolled_back: number;
837
+ failed: number;
838
+ cancelled: number;
839
+ total: number;
840
+ in_flight: number;
841
+ };
842
+ verdict_counts: {
843
+ manual: {
844
+ pass: number;
845
+ fail: number;
846
+ pending: number;
847
+ };
848
+ auto: {
849
+ pass: number;
850
+ fail: number;
851
+ pending: number;
852
+ };
853
+ analysis: {
854
+ pass: number;
855
+ fail: number;
856
+ pending: number;
857
+ };
858
+ };
859
+ latency_p50_ms: number | null;
860
+ latency_p95_ms: number | null;
861
+ approval_turnaround_p50_ms: number | null;
862
+ rollback_rate: number | null;
863
+ }, {
864
+ run_counts: {
865
+ completed: number;
866
+ rolled_back: number;
867
+ failed: number;
868
+ cancelled: number;
869
+ total: number;
870
+ in_flight: number;
871
+ };
872
+ verdict_counts: {
873
+ manual: {
874
+ pass: number;
875
+ fail: number;
876
+ pending: number;
877
+ };
878
+ auto: {
879
+ pass: number;
880
+ fail: number;
881
+ pending: number;
882
+ };
883
+ analysis: {
884
+ pass: number;
885
+ fail: number;
886
+ pending: number;
887
+ };
888
+ };
889
+ latency_p50_ms: number | null;
890
+ latency_p95_ms: number | null;
891
+ approval_turnaround_p50_ms: number | null;
892
+ rollback_rate: number | null;
893
+ }>;
894
+ type DashboardResponse = z.infer<typeof dashboard_response>;
702
895
 
703
896
  type User = InferSelectModel<typeof user>;
704
897
  type Session = InferSelectModel<typeof session>;
@@ -849,4 +1042,4 @@ interface UpdateData {
849
1042
  type UpdateUser = z.infer<typeof update_user>;
850
1043
  type ConfigSchemaType = z.infer<typeof config_schema>;
851
1044
 
852
- export { approval_decision as $, type Action as A, type TrackerResult as B, type CodebaseTask as C, type UpdateData as D, type UpdateUser as E, type UpsertGoal as F, type GetConfigResult as G, type HistoryAction as H, type IgnorePath as I, type UpsertMilestone as J, type UpsertPipelineAnalysisTemplate as K, type UpsertPipelineApproval as L, type Milestone as M, type Nullable as N, type UpsertPipelineGrant as O, type PipelineAnalysisTemplate as P, type UpsertPipelineOidcTrust as Q, type RolloutShapeZ as R, type SaveConfigRequest as S, TAG_COLOURS as T, type UpdateAction as U, type UpsertPipelinePackage as V, type UpsertPipelineRun as W, type UpsertProject as X, type UpsertTag as Y, type UpsertTodo as Z, type User as _, type ApiKey as a, config_schema as a0, forced_atomic_reason as a1, gate_descriptor as a2, grant_scope as a3, insert_pipeline_stage_event as a4, pipeline_oidc_provider as a5, project_config as a6, resolved_gates as a7, resolved_rollout as a8, rollout_shape as a9, rollout_stage as aa, run_kind as ab, run_status as ac, save_config_request as ad, save_tags_request as ae, stage_event_kind as af, update_action as ag, update_user as ah, upsert_goal as ai, upsert_milestone as aj, upsert_pipeline_analysis_template as ak, upsert_pipeline_approval as al, upsert_pipeline_grant as am, upsert_pipeline_oidc_trust as an, upsert_pipeline_package as ao, upsert_pipeline_run as ap, upsert_project as aq, upsert_tag as ar, upsert_todo as as, type ConfigSchemaType as b, type Goal as c, type InsertPipelineStageEvent as d, type PipelineApproval as e, type PipelineGrant as f, type PipelineOidcTrust as g, type PipelinePackage as h, type PipelineRun as i, type PipelineStageEvent as j, type Project as k, type ProjectConfig as l, type ProjectWithTasks as m, type RunKindZ as n, type ScanStatus as o, type Session as p, type Tag as q, type TagColor as r, type TagConfig as s, type TagWithColor as t, type TagWithTypedColor as u, type Task as v, type TaskTag as w, type TaskView as x, type TaskWithDetails as y, type TodoUpdate as z };
1045
+ export { type UpsertTodo as $, type Action as A, type TodoUpdate as B, type CodebaseTask as C, type DashboardResponse as D, type TrackerResult as E, type UpdateData as F, type GetConfigResult as G, type HistoryAction as H, type IgnorePath as I, type UpdateUser as J, type UpsertGoal as K, type UpsertMilestone as L, type Milestone as M, type Nullable as N, type UpsertPipelineAnalysisTemplate as O, type PipelineAnalysisTemplate as P, type UpsertPipelineApproval as Q, type RolloutShapeZ as R, type SaveConfigRequest as S, TAG_COLOURS as T, type UpdateAction as U, type UpsertPipelineGrant as V, type UpsertPipelineOidcTrust as W, type UpsertPipelinePackage as X, type UpsertPipelineRun as Y, type UpsertProject as Z, type UpsertTag as _, type ApiKey as a, type User as a0, type WebhookEventBody as a1, approval_decision as a2, config_schema as a3, dashboard_response as a4, dashboard_window_query as a5, forced_atomic_reason as a6, gate_descriptor as a7, grant_scope as a8, insert_pipeline_stage_event as a9, pipeline_oidc_provider as aa, project_config as ab, resolved_gates as ac, resolved_rollout as ad, rollout_shape as ae, rollout_stage as af, run_kind as ag, run_status as ah, save_config_request as ai, save_tags_request as aj, stage_event_kind as ak, update_action as al, update_user as am, upsert_goal as an, upsert_milestone as ao, upsert_pipeline_analysis_template as ap, upsert_pipeline_approval as aq, upsert_pipeline_grant as ar, upsert_pipeline_oidc_trust as as, upsert_pipeline_package as at, upsert_pipeline_run as au, upsert_project as av, upsert_tag as aw, upsert_todo as ax, webhook_event_body as ay, type ConfigSchemaType as b, type DashboardWindowQuery as c, type Goal as d, type InsertPipelineStageEvent as e, type PipelineApproval as f, type PipelineGrant as g, type PipelineOidcTrust as h, type PipelinePackage as i, type PipelineRun as j, type PipelineStageEvent as k, type Project as l, type ProjectConfig as m, type ProjectWithTasks as n, type RunKindZ as o, type ScanStatus as p, type Session as q, type Tag as r, type TagColor as s, type TagConfig as t, type TagWithColor as u, type TagWithTypedColor as v, type Task as w, type TaskTag as x, type TaskView as y, type TaskWithDetails as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/api",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "author": {
5
5
  "name": "f0rbit",
6
6
  "url": "https://github.com/f0rbit"
@@ -28,7 +28,7 @@
28
28
  "zod": "^3.22.4"
29
29
  },
30
30
  "devDependencies": {
31
- "@devpad/schema": "^2.2.7",
31
+ "@devpad/schema": "^2.2.8",
32
32
  "@types/node": "^20.11.24",
33
33
  "bun-types": "latest",
34
34
  "eslint": "^8.57.0",