@devpad/api 2.6.7 → 2.6.9
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/{chunk-HJIP3VZT.js → chunk-AXQWQXZR.js} +12 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/schema/blog.d.ts +56 -1
- package/dist/schema/index.d.ts +2 -2
- package/dist/schema/index.js +1 -1
- package/dist/schema/media.d.ts +2 -2
- package/dist/{schema.d-C-YLU4PN.d.ts → schema.d-CUm4wtV_.d.ts} +55 -0
- package/dist/{types.d-CFeV7HJm.d.ts → types.d-D1ao8Ynh.d.ts} +10 -1
- package/dist/{types.d-C6CmE533.d.ts → types.d-Dt-0_WMH.d.ts} +1 -1
- package/package.json +2 -2
|
@@ -475,7 +475,10 @@ var pipeline_grant = sqliteTable("pipeline_grant", {
|
|
|
475
475
|
stage_name: text("stage_name").notNull(),
|
|
476
476
|
scope: text("scope").notNull(),
|
|
477
477
|
granted_by: text("granted_by").references(() => user.id),
|
|
478
|
-
granted_at: text("granted_at")
|
|
478
|
+
granted_at: text("granted_at"),
|
|
479
|
+
// Policy-table auto-approvals have no human grantor: `granted_by` stays
|
|
480
|
+
// null (it carries a FK to `user.id`) and this flag marks the row.
|
|
481
|
+
auto_approved: integer("auto_approved", { mode: "boolean" }).notNull().default(false)
|
|
479
482
|
});
|
|
480
483
|
var pipeline_approval = sqliteTable("pipeline_approval", {
|
|
481
484
|
...id("pipeline-approval"),
|
|
@@ -507,7 +510,9 @@ var pipeline_oidc_trust = sqliteTable("pipeline_oidc_trust", {
|
|
|
507
510
|
expected_audience: text("expected_audience").notNull(),
|
|
508
511
|
allowed_actions: text("allowed_actions", { mode: "json" }).$type().notNull().default(sql`'["artifacts:upload","runs:start"]'`),
|
|
509
512
|
session_ttl_seconds: integer("session_ttl_seconds").notNull().default(900),
|
|
510
|
-
last_used_at: text("last_used_at")
|
|
513
|
+
last_used_at: text("last_used_at"),
|
|
514
|
+
repository_id: text("repository_id"),
|
|
515
|
+
repository_owner_id: text("repository_owner_id")
|
|
511
516
|
});
|
|
512
517
|
var user_relations = relations(user, ({ many }) => ({
|
|
513
518
|
sessions: many(session),
|
|
@@ -871,7 +876,8 @@ var upsert_pipeline_grant = z.object({
|
|
|
871
876
|
stage_name: z.string(),
|
|
872
877
|
scope: grant_scope,
|
|
873
878
|
granted_by: z.string().nullable().optional(),
|
|
874
|
-
granted_at: z.string().nullable().optional()
|
|
879
|
+
granted_at: z.string().nullable().optional(),
|
|
880
|
+
auto_approved: z.boolean().nullable().optional()
|
|
875
881
|
});
|
|
876
882
|
var upsert_pipeline_approval = z.object({
|
|
877
883
|
run_id: z.string(),
|
|
@@ -910,7 +916,9 @@ var upsert_pipeline_oidc_trust = z.object({
|
|
|
910
916
|
expected_audience: z.string().min(1),
|
|
911
917
|
allowed_actions: z.array(z.string()).optional(),
|
|
912
918
|
session_ttl_seconds: z.number().int().positive().optional(),
|
|
913
|
-
last_used_at: z.string().nullable().optional()
|
|
919
|
+
last_used_at: z.string().nullable().optional(),
|
|
920
|
+
repository_id: z.string().regex(/^\d+$/, "must be a numeric GitHub repository id").nullable().optional(),
|
|
921
|
+
repository_owner_id: z.string().regex(/^\d+$/, "must be a numeric GitHub owner id").nullable().optional()
|
|
914
922
|
});
|
|
915
923
|
var webhook_event_body = z.object({
|
|
916
924
|
stage_name: z.string().min(1),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { G as PostListParams, T as PostsResponse, x as Post, D as PostCreate, Q as PostUpdate, Z as VersionInfo, y as PostContent, C as Category, k as CategoryCreate, A as AccessKey } from './types.d-DbgtG-w1.js';
|
|
2
|
-
import { ai as Profile, u as CreateProfileInput, aw as UpdateProfileInput, aj as ProfileFilter, c as AddFilterInput, aq as Timeline, A as Account, ae as PlatformSettings } from './types.d-
|
|
2
|
+
import { ai as Profile, u as CreateProfileInput, aw as UpdateProfileInput, aj as ProfileFilter, c as AddFilterInput, aq as Timeline, A as Account, ae as PlatformSettings } from './types.d-Dt-0_WMH.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { c as ApiKey, R as Project, aH as UpsertProject, G as GetConfigResult, a4 as SaveConfigRequest, aq as TodoUpdate, H as HistoryAction, T as ProjectGraphResponse, U as ProjectViewLayoutInput, M as Milestone, af as Task, p as Goal, q as Hook, w as HookTrigger, s as HookActionPublic, ay as UpsertHook, u as HookDelivery, am as TaskWithDetails, aK as UpsertTodo, aI as UpsertTag, ai as TaskLink, C as ClaimRequest, m as DoneRequest, a as AdvanceStageRequest, aJ as UpsertTaskLink, f as ApplyRequest, e as ApplyOp, ae as TagWithTypedColor, l as Document, W as PushDocRequest, ap as ThreadMarker, i as CreateThreadRequest, b as AnnotationThread, X as PushInterfaceReportRequest, z as InterfaceDiffClass, a8 as Signoff, _ as RequestCheckpointRequest, k as DecideCheckpointRequest, $ as ReviewItem, D as DashboardResponse, O as PipelineRun, Q as PipelineStageEvent, J as PipelineGrant, L as PipelinePackage, P as PipelineAnalysisTemplate, K as PipelineOidcTrust } from './types.d-
|
|
5
|
-
export { S as ProjectConfig, a0 as ReviewItemKind } from './types.d-
|
|
4
|
+
import { c as ApiKey, R as Project, aH as UpsertProject, G as GetConfigResult, a4 as SaveConfigRequest, aq as TodoUpdate, H as HistoryAction, T as ProjectGraphResponse, U as ProjectViewLayoutInput, M as Milestone, af as Task, p as Goal, q as Hook, w as HookTrigger, s as HookActionPublic, ay as UpsertHook, u as HookDelivery, am as TaskWithDetails, aK as UpsertTodo, aI as UpsertTag, ai as TaskLink, C as ClaimRequest, m as DoneRequest, a as AdvanceStageRequest, aJ as UpsertTaskLink, f as ApplyRequest, e as ApplyOp, ae as TagWithTypedColor, l as Document, W as PushDocRequest, ap as ThreadMarker, i as CreateThreadRequest, b as AnnotationThread, X as PushInterfaceReportRequest, z as InterfaceDiffClass, a8 as Signoff, _ as RequestCheckpointRequest, k as DecideCheckpointRequest, $ as ReviewItem, D as DashboardResponse, O as PipelineRun, Q as PipelineStageEvent, J as PipelineGrant, L as PipelinePackage, P as PipelineAnalysisTemplate, K as PipelineOidcTrust } from './types.d-D1ao8Ynh.js';
|
|
5
|
+
export { S as ProjectConfig, a0 as ReviewItemKind } from './types.d-D1ao8Ynh.js';
|
|
6
6
|
import { Result } from '@f0rbit/corpus';
|
|
7
7
|
export { Result, err, ok } from '@f0rbit/corpus';
|
|
8
|
-
import { b as CompletionPolicy, H as HookDeliveryStatus, C as CompletedVia, c as DispatchStatus, l as StageEventKind } from './schema.d-
|
|
8
|
+
import { b as CompletionPolicy, H as HookDeliveryStatus, C as CompletedVia, c as DispatchStatus, l as StageEventKind } from './schema.d-CUm4wtV_.js';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import './media.d-R87HGuRp.js';
|
|
11
11
|
import 'drizzle-orm/sqlite-core';
|
package/dist/index.js
CHANGED
package/dist/schema/blog.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
|
4
4
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
5
5
|
import * as drizzle_orm from 'drizzle-orm';
|
|
6
6
|
import { M as MediaPlatform } from '../media.d-R87HGuRp.js';
|
|
7
|
-
import { g as ProjectViewLayout } from '../schema.d-
|
|
7
|
+
import { g as ProjectViewLayout } from '../schema.d-CUm4wtV_.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
|
|
10
10
|
declare const fullSchema: {
|
|
@@ -8604,6 +8604,23 @@ declare const fullSchema: {
|
|
|
8604
8604
|
}, {}, {
|
|
8605
8605
|
length: number | undefined;
|
|
8606
8606
|
}>;
|
|
8607
|
+
auto_approved: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8608
|
+
name: "auto_approved";
|
|
8609
|
+
tableName: "pipeline_grant";
|
|
8610
|
+
dataType: "boolean";
|
|
8611
|
+
columnType: "SQLiteBoolean";
|
|
8612
|
+
data: boolean;
|
|
8613
|
+
driverParam: number;
|
|
8614
|
+
notNull: true;
|
|
8615
|
+
hasDefault: true;
|
|
8616
|
+
isPrimaryKey: false;
|
|
8617
|
+
isAutoincrement: false;
|
|
8618
|
+
hasRuntimeDefault: false;
|
|
8619
|
+
enumValues: undefined;
|
|
8620
|
+
baseColumn: never;
|
|
8621
|
+
identity: undefined;
|
|
8622
|
+
generated: undefined;
|
|
8623
|
+
}, {}, {}>;
|
|
8607
8624
|
created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8608
8625
|
name: "created_by";
|
|
8609
8626
|
tableName: "pipeline_grant";
|
|
@@ -9332,6 +9349,44 @@ declare const fullSchema: {
|
|
|
9332
9349
|
}, {}, {
|
|
9333
9350
|
length: number | undefined;
|
|
9334
9351
|
}>;
|
|
9352
|
+
repository_id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9353
|
+
name: "repository_id";
|
|
9354
|
+
tableName: "pipeline_oidc_trust";
|
|
9355
|
+
dataType: "string";
|
|
9356
|
+
columnType: "SQLiteText";
|
|
9357
|
+
data: string;
|
|
9358
|
+
driverParam: string;
|
|
9359
|
+
notNull: false;
|
|
9360
|
+
hasDefault: false;
|
|
9361
|
+
isPrimaryKey: false;
|
|
9362
|
+
isAutoincrement: false;
|
|
9363
|
+
hasRuntimeDefault: false;
|
|
9364
|
+
enumValues: [string, ...string[]];
|
|
9365
|
+
baseColumn: never;
|
|
9366
|
+
identity: undefined;
|
|
9367
|
+
generated: undefined;
|
|
9368
|
+
}, {}, {
|
|
9369
|
+
length: number | undefined;
|
|
9370
|
+
}>;
|
|
9371
|
+
repository_owner_id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9372
|
+
name: "repository_owner_id";
|
|
9373
|
+
tableName: "pipeline_oidc_trust";
|
|
9374
|
+
dataType: "string";
|
|
9375
|
+
columnType: "SQLiteText";
|
|
9376
|
+
data: string;
|
|
9377
|
+
driverParam: string;
|
|
9378
|
+
notNull: false;
|
|
9379
|
+
hasDefault: false;
|
|
9380
|
+
isPrimaryKey: false;
|
|
9381
|
+
isAutoincrement: false;
|
|
9382
|
+
hasRuntimeDefault: false;
|
|
9383
|
+
enumValues: [string, ...string[]];
|
|
9384
|
+
baseColumn: never;
|
|
9385
|
+
identity: undefined;
|
|
9386
|
+
generated: undefined;
|
|
9387
|
+
}, {}, {
|
|
9388
|
+
length: number | undefined;
|
|
9389
|
+
}>;
|
|
9335
9390
|
created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9336
9391
|
name: "created_by";
|
|
9337
9392
|
tableName: "pipeline_oidc_trust";
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ApiError, a as ApprovalChannelError, b as AuthExpiredError, B as BadRequestError, c as BaseError, C as ConflictError, d as CronError, D as DatabaseError, E as EncryptionError, e as ErrorContext, f as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, g as NotFoundError, P as ParseError, h as ProtectedError, i as ProviderError, R as RateLimitedError, S as ScanError, j as ServiceError, k as StoreError, U as UnauthorizedError, V as ValidationError, l as ValidationFieldError, m as apiError, n as approvalChannel, o as authExpired, p as badRequest, q as configureErrorLogging, r as conflict, s as dbError, t as encryptionError, u as errors, v as forbidden, w as githubError, x as isApiError, y as isApprovalChannelError, z as isAuthExpiredError, H as isBadRequestError, I as isConflictError, J as isDatabaseError, K as isEncryptionError, L as isForbiddenError, M as isGithubError, O as isNetworkError, Q as isNotFoundError, T as isParseError, W as isProtectedError, X as isRateLimitedError, Y as isRetryableError, Z as isScanError, _ as isServiceError, $ as isStoreError, a0 as isUnauthorizedError, a1 as isValidationError, a2 as isValidationFieldError, a3 as networkError, a4 as notFound, a5 as parseError, a6 as protectedEntity, a7 as rateLimited, a8 as scanError, a9 as storeError, aa as unauthorized, ab as validation, ac as validationFieldError } from '../errors.d-BUNZEN7j.js';
|
|
2
|
-
export { A as Action, a as AdvanceStageRequest, b as AnnotationThread, c as ApiKey, d as ApplyLog, e as ApplyOp, f as ApplyRequest, C as ClaimRequest, g as CodebaseTask, h as ConfigSchemaType, i as CreateThreadRequest, D as DashboardResponse, j as DashboardWindowQuery, k as DecideCheckpointRequest, l as Document, m as DoneRequest, E as ExternalRef, n as ExternalTarget, G as GetConfigResult, o as GithubWebhookEvent, p as Goal, H as HistoryAction, q as Hook, r as HookActionInput, s as HookActionPublic, t as HookActionStored, u as HookDelivery, v as HookSelector, w as HookTrigger, I as INTERFACE_DIFF_CLASSES, x as IgnorePath, y as InsertPipelineStageEvent, z as InterfaceDiffClass, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, B as PipelineApproval, F as PipelineDispatch, J as PipelineGrant, K as PipelineOidcTrust, L as PipelinePackage, O as PipelineRun, Q as PipelineStageEvent, R as Project, S as ProjectConfig, T as ProjectGraphResponse, U as ProjectViewLayoutInput, V as ProjectWithTasks, W as PushDocRequest, X as PushInterfaceReportRequest, Y as REVIEW_ITEM_KINDS, Z as ReplyThreadRequest, _ as RequestCheckpointRequest, $ as ReviewItem, a0 as ReviewItemKind, a1 as ReviewsPendingResponse, a2 as RolloutShapeZ, a3 as RunKindZ, a4 as SaveConfigRequest, a5 as ScanDiffProposal, a6 as ScanStatus, a7 as Session, a8 as Signoff, a9 as TAG_COLOURS, aa as Tag, ab as TagColor, ac as TagConfig, ad as TagWithColor, ae as TagWithTypedColor, af as Task, ag as TaskEvent, ah as TaskEventPayload, ai as TaskLink, aj as TaskRollup, ak as TaskTag, al as TaskView, am as TaskWithDetails, an as ThreadAnchor, ao as ThreadEntry, ap as ThreadMarker, aq as TodoUpdate, ar as ToggleBlockingRequest, as as ToggleHookEnabled, at as TrackerResult, au as UpdateAction, av as UpdateData, aw as UpdateUser, ax as UpsertGoal, ay as UpsertHook, az as UpsertMilestone, aA as UpsertPipelineAnalysisTemplate, aB as UpsertPipelineApproval, aC as UpsertPipelineDispatch, aD as UpsertPipelineGrant, aE as UpsertPipelineOidcTrust, aF as UpsertPipelinePackage, aG as UpsertPipelineRun, aH as UpsertProject, aI as UpsertTag, aJ as UpsertTaskLink, aK as UpsertTodo, aL as User, aM as WebhookEventBody, aN as advance_stage_request, aO as apply_op, aP as apply_request, aQ as approval_decision, aR as claim_request, aS as commit_sha, aT as config_schema, aU as create_thread_request, aV as dashboard_response, aW as dashboard_window_query, aX as decide_checkpoint_request, aY as deploy_mode, aZ as dispatch_status, a_ as document_kind, a$ as done_request, b0 as external_ref, b1 as external_target, b2 as forced_atomic_reason, b3 as gate_descriptor, b4 as grant_scope, b5 as hook_action_input, b6 as hook_action_public, b7 as hook_action_stored, b8 as hook_selector, b9 as hook_trigger, ba as insert_pipeline_stage_event, bb as pipeline_oidc_provider, bc as project_config, bd as project_graph_link, be as project_graph_response, bf as project_graph_rollup_counts, bg as project_graph_task, bh as project_view_layout, bi as project_view_pin, bj as push_doc_request, bk as push_interface_report_request, bl as reply_thread_request, bm as request_checkpoint_request, bn as resolved_gates, bo as resolved_rollout, bp as review_item, bq as reviews_pending_response, br as rollout_shape, bs as rollout_stage, bt as run_kind, bu as run_status, bv as save_config_request, bw as save_tags_request, bx as scan_diff_proposal, by as sdlc_stage, bz as signoff_checkpoint, bA as signoff_subject_kind, bB as stage_event_kind, bC as task_event_actor, bD as task_event_payload, bE as task_link_kind, bF as thread_anchor, bG as thread_entry, bH as thread_marker, bI as thread_status, bJ as toggle_blocking_request, bK as toggle_hook_enabled, bL as update_action, bM as update_user, bN as upsert_goal, bO as upsert_hook, bP as upsert_milestone, bQ as upsert_pipeline_analysis_template, bR as upsert_pipeline_approval, bS as upsert_pipeline_dispatch, bT as upsert_pipeline_grant, bU as upsert_pipeline_oidc_trust, bV as upsert_pipeline_package, bW as upsert_pipeline_run, bX as upsert_project, bY as upsert_tag, bZ as upsert_task_link, b_ as upsert_todo, b$ as webhook_event_body } from '../types.d-
|
|
3
|
-
export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, D as DeployMode, c as DispatchStatus, d as DocumentKind, e as DocumentStatus, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, f as GRAPH_DEPTH_CAP, H as HookDeliveryStatus, P as PipelineOidcProvider, R as RolloutShape, h as RunStatus, S as SdlcStage, i as SignoffCheckpoint, j as SignoffDecision, k as SignoffSubjectKind, l as StageEventKind, T as TaskEventActor, m as TaskEventDispatchStatus, n as TaskEventKind, o as TaskKind, p as TaskLinkKind, q as ThreadStatus } from '../schema.d-
|
|
2
|
+
export { A as Action, a as AdvanceStageRequest, b as AnnotationThread, c as ApiKey, d as ApplyLog, e as ApplyOp, f as ApplyRequest, C as ClaimRequest, g as CodebaseTask, h as ConfigSchemaType, i as CreateThreadRequest, D as DashboardResponse, j as DashboardWindowQuery, k as DecideCheckpointRequest, l as Document, m as DoneRequest, E as ExternalRef, n as ExternalTarget, G as GetConfigResult, o as GithubWebhookEvent, p as Goal, H as HistoryAction, q as Hook, r as HookActionInput, s as HookActionPublic, t as HookActionStored, u as HookDelivery, v as HookSelector, w as HookTrigger, I as INTERFACE_DIFF_CLASSES, x as IgnorePath, y as InsertPipelineStageEvent, z as InterfaceDiffClass, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, B as PipelineApproval, F as PipelineDispatch, J as PipelineGrant, K as PipelineOidcTrust, L as PipelinePackage, O as PipelineRun, Q as PipelineStageEvent, R as Project, S as ProjectConfig, T as ProjectGraphResponse, U as ProjectViewLayoutInput, V as ProjectWithTasks, W as PushDocRequest, X as PushInterfaceReportRequest, Y as REVIEW_ITEM_KINDS, Z as ReplyThreadRequest, _ as RequestCheckpointRequest, $ as ReviewItem, a0 as ReviewItemKind, a1 as ReviewsPendingResponse, a2 as RolloutShapeZ, a3 as RunKindZ, a4 as SaveConfigRequest, a5 as ScanDiffProposal, a6 as ScanStatus, a7 as Session, a8 as Signoff, a9 as TAG_COLOURS, aa as Tag, ab as TagColor, ac as TagConfig, ad as TagWithColor, ae as TagWithTypedColor, af as Task, ag as TaskEvent, ah as TaskEventPayload, ai as TaskLink, aj as TaskRollup, ak as TaskTag, al as TaskView, am as TaskWithDetails, an as ThreadAnchor, ao as ThreadEntry, ap as ThreadMarker, aq as TodoUpdate, ar as ToggleBlockingRequest, as as ToggleHookEnabled, at as TrackerResult, au as UpdateAction, av as UpdateData, aw as UpdateUser, ax as UpsertGoal, ay as UpsertHook, az as UpsertMilestone, aA as UpsertPipelineAnalysisTemplate, aB as UpsertPipelineApproval, aC as UpsertPipelineDispatch, aD as UpsertPipelineGrant, aE as UpsertPipelineOidcTrust, aF as UpsertPipelinePackage, aG as UpsertPipelineRun, aH as UpsertProject, aI as UpsertTag, aJ as UpsertTaskLink, aK as UpsertTodo, aL as User, aM as WebhookEventBody, aN as advance_stage_request, aO as apply_op, aP as apply_request, aQ as approval_decision, aR as claim_request, aS as commit_sha, aT as config_schema, aU as create_thread_request, aV as dashboard_response, aW as dashboard_window_query, aX as decide_checkpoint_request, aY as deploy_mode, aZ as dispatch_status, a_ as document_kind, a$ as done_request, b0 as external_ref, b1 as external_target, b2 as forced_atomic_reason, b3 as gate_descriptor, b4 as grant_scope, b5 as hook_action_input, b6 as hook_action_public, b7 as hook_action_stored, b8 as hook_selector, b9 as hook_trigger, ba as insert_pipeline_stage_event, bb as pipeline_oidc_provider, bc as project_config, bd as project_graph_link, be as project_graph_response, bf as project_graph_rollup_counts, bg as project_graph_task, bh as project_view_layout, bi as project_view_pin, bj as push_doc_request, bk as push_interface_report_request, bl as reply_thread_request, bm as request_checkpoint_request, bn as resolved_gates, bo as resolved_rollout, bp as review_item, bq as reviews_pending_response, br as rollout_shape, bs as rollout_stage, bt as run_kind, bu as run_status, bv as save_config_request, bw as save_tags_request, bx as scan_diff_proposal, by as sdlc_stage, bz as signoff_checkpoint, bA as signoff_subject_kind, bB as stage_event_kind, bC as task_event_actor, bD as task_event_payload, bE as task_link_kind, bF as thread_anchor, bG as thread_entry, bH as thread_marker, bI as thread_status, bJ as toggle_blocking_request, bK as toggle_hook_enabled, bL as update_action, bM as update_user, bN as upsert_goal, bO as upsert_hook, bP as upsert_milestone, bQ as upsert_pipeline_analysis_template, bR as upsert_pipeline_approval, bS as upsert_pipeline_dispatch, bT as upsert_pipeline_grant, bU as upsert_pipeline_oidc_trust, bV as upsert_pipeline_package, bW as upsert_pipeline_run, bX as upsert_project, bY as upsert_tag, bZ as upsert_task_link, b_ as upsert_todo, b$ as webhook_event_body } from '../types.d-D1ao8Ynh.js';
|
|
3
|
+
export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, D as DeployMode, c as DispatchStatus, d as DocumentKind, e as DocumentStatus, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, f as GRAPH_DEPTH_CAP, H as HookDeliveryStatus, P as PipelineOidcProvider, R as RolloutShape, h as RunStatus, S as SdlcStage, i as SignoffCheckpoint, j as SignoffDecision, k as SignoffSubjectKind, l as StageEventKind, T as TaskEventActor, m as TaskEventDispatchStatus, n as TaskEventKind, o as TaskKind, p as TaskLinkKind, q as ThreadStatus } from '../schema.d-CUm4wtV_.js';
|
|
4
4
|
import '@f0rbit/corpus';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import 'zod';
|
package/dist/schema/index.js
CHANGED
package/dist/schema/media.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as ApiError, a as ApprovalChannelError, b as AuthExpiredError, B as BadRequestError, c as BaseError, C as ConflictError, d as CronError, D as DatabaseError, E as EncryptionError, e as ErrorContext, f as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, g as NotFoundError, P as ParseError, h as ProtectedError, i as ProviderError, R as RateLimitedError, S as ScanError, j as ServiceError, k as StoreError, U as UnauthorizedError, V as ValidationError, l as ValidationFieldError, m as apiError, n as approvalChannel, o as authExpired, p as badRequest, q as configureErrorLogging, r as conflict, s as dbError, t as encryptionError, u as errors, v as forbidden, w as githubError, x as isApiError, y as isApprovalChannelError, z as isAuthExpiredError, H as isBadRequestError, I as isConflictError, J as isDatabaseError, K as isEncryptionError, L as isForbiddenError, M as isGithubError, O as isNetworkError, Q as isNotFoundError, T as isParseError, W as isProtectedError, X as isRateLimitedError, Y as isRetryableError, Z as isScanError, _ as isServiceError, $ as isStoreError, a0 as isUnauthorizedError, a1 as isValidationError, a2 as isValidationFieldError, a3 as networkError, a4 as notFound, a5 as parseError, a6 as protectedEntity, a7 as rateLimited, a8 as scanError, a9 as storeError, aa as unauthorized, ab as validation, ac as validationFieldError } from '../errors.d-BUNZEN7j.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-
|
|
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-Dt-0_WMH.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-
|
|
8
|
+
import '../schema.d-CUm4wtV_.js';
|
|
9
9
|
|
|
10
10
|
declare const brand: unique symbol;
|
|
11
11
|
type Brand<T, B extends string> = T & {
|
|
@@ -6140,6 +6140,23 @@ declare const pipeline_grant: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
6140
6140
|
}, {}, {
|
|
6141
6141
|
length: number | undefined;
|
|
6142
6142
|
}>;
|
|
6143
|
+
auto_approved: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
6144
|
+
name: "auto_approved";
|
|
6145
|
+
tableName: "pipeline_grant";
|
|
6146
|
+
dataType: "boolean";
|
|
6147
|
+
columnType: "SQLiteBoolean";
|
|
6148
|
+
data: boolean;
|
|
6149
|
+
driverParam: number;
|
|
6150
|
+
notNull: true;
|
|
6151
|
+
hasDefault: true;
|
|
6152
|
+
isPrimaryKey: false;
|
|
6153
|
+
isAutoincrement: false;
|
|
6154
|
+
hasRuntimeDefault: false;
|
|
6155
|
+
enumValues: undefined;
|
|
6156
|
+
baseColumn: never;
|
|
6157
|
+
identity: undefined;
|
|
6158
|
+
generated: undefined;
|
|
6159
|
+
}, {}, {}>;
|
|
6143
6160
|
created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
6144
6161
|
name: "created_by";
|
|
6145
6162
|
tableName: "pipeline_grant";
|
|
@@ -6869,6 +6886,44 @@ declare const pipeline_oidc_trust: drizzle_orm_sqlite_core.SQLiteTableWithColumn
|
|
|
6869
6886
|
}, {}, {
|
|
6870
6887
|
length: number | undefined;
|
|
6871
6888
|
}>;
|
|
6889
|
+
repository_id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
6890
|
+
name: "repository_id";
|
|
6891
|
+
tableName: "pipeline_oidc_trust";
|
|
6892
|
+
dataType: "string";
|
|
6893
|
+
columnType: "SQLiteText";
|
|
6894
|
+
data: string;
|
|
6895
|
+
driverParam: string;
|
|
6896
|
+
notNull: false;
|
|
6897
|
+
hasDefault: false;
|
|
6898
|
+
isPrimaryKey: false;
|
|
6899
|
+
isAutoincrement: false;
|
|
6900
|
+
hasRuntimeDefault: false;
|
|
6901
|
+
enumValues: [string, ...string[]];
|
|
6902
|
+
baseColumn: never;
|
|
6903
|
+
identity: undefined;
|
|
6904
|
+
generated: undefined;
|
|
6905
|
+
}, {}, {
|
|
6906
|
+
length: number | undefined;
|
|
6907
|
+
}>;
|
|
6908
|
+
repository_owner_id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
6909
|
+
name: "repository_owner_id";
|
|
6910
|
+
tableName: "pipeline_oidc_trust";
|
|
6911
|
+
dataType: "string";
|
|
6912
|
+
columnType: "SQLiteText";
|
|
6913
|
+
data: string;
|
|
6914
|
+
driverParam: string;
|
|
6915
|
+
notNull: false;
|
|
6916
|
+
hasDefault: false;
|
|
6917
|
+
isPrimaryKey: false;
|
|
6918
|
+
isAutoincrement: false;
|
|
6919
|
+
hasRuntimeDefault: false;
|
|
6920
|
+
enumValues: [string, ...string[]];
|
|
6921
|
+
baseColumn: never;
|
|
6922
|
+
identity: undefined;
|
|
6923
|
+
generated: undefined;
|
|
6924
|
+
}, {}, {
|
|
6925
|
+
length: number | undefined;
|
|
6926
|
+
}>;
|
|
6872
6927
|
created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
6873
6928
|
name: "created_by";
|
|
6874
6929
|
tableName: "pipeline_oidc_trust";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferSelectModel } from 'drizzle-orm';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { t as api_keys, V as project, a3 as todo_updates, r as action, A as ActionType, I as milestone, _ as task, y as goal, z as hook, B as hook_delivery, v as codebase_tasks, a0 as task_link, Y as tag, w as document, s as annotation_thread, X as signoff, Q as pipeline_run, U as pipeline_stage_event, M as pipeline_grant, O as pipeline_package, J as pipeline_analysis_template, N as pipeline_oidc_trust, u as apply_log, x as github_webhook_event, E as ignore_path, K as pipeline_approval, L as pipeline_dispatch, W as session, Z as tag_config, $ as task_event, a1 as task_rollup, a2 as task_tag, a4 as tracker_result, a5 as user } from './schema.d-
|
|
3
|
+
import { t as api_keys, V as project, a3 as todo_updates, r as action, A as ActionType, I as milestone, _ as task, y as goal, z as hook, B as hook_delivery, v as codebase_tasks, a0 as task_link, Y as tag, w as document, s as annotation_thread, X as signoff, Q as pipeline_run, U as pipeline_stage_event, M as pipeline_grant, O as pipeline_package, J as pipeline_analysis_template, N as pipeline_oidc_trust, u as apply_log, x as github_webhook_event, E as ignore_path, K as pipeline_approval, L as pipeline_dispatch, W as session, Z as tag_config, $ as task_event, a1 as task_rollup, a2 as task_tag, a4 as tracker_result, a5 as user } from './schema.d-CUm4wtV_.js';
|
|
4
4
|
import * as drizzle_zod from 'drizzle-zod';
|
|
5
5
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
6
6
|
|
|
@@ -712,6 +712,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
|
|
|
712
712
|
scope: z.ZodString;
|
|
713
713
|
granted_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
714
714
|
granted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
+
auto_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
715
716
|
}, "strip", z.ZodTypeAny, {
|
|
716
717
|
scope: string;
|
|
717
718
|
package_id: string;
|
|
@@ -719,6 +720,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
|
|
|
719
720
|
id?: string | null | undefined;
|
|
720
721
|
granted_by?: string | null | undefined;
|
|
721
722
|
granted_at?: string | null | undefined;
|
|
723
|
+
auto_approved?: boolean | null | undefined;
|
|
722
724
|
}, {
|
|
723
725
|
scope: string;
|
|
724
726
|
package_id: string;
|
|
@@ -726,6 +728,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
|
|
|
726
728
|
id?: string | null | undefined;
|
|
727
729
|
granted_by?: string | null | undefined;
|
|
728
730
|
granted_at?: string | null | undefined;
|
|
731
|
+
auto_approved?: boolean | null | undefined;
|
|
729
732
|
}>;
|
|
730
733
|
declare const upsert_pipeline_approval: z.ZodObject<{
|
|
731
734
|
run_id: z.ZodString;
|
|
@@ -809,6 +812,8 @@ declare const upsert_pipeline_oidc_trust: z.ZodObject<{
|
|
|
809
812
|
allowed_actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
810
813
|
session_ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
811
814
|
last_used_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
repository_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
|
+
repository_owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
817
|
}, "strip", z.ZodTypeAny, {
|
|
813
818
|
owner_id: string;
|
|
814
819
|
github_owner: string;
|
|
@@ -821,6 +826,8 @@ declare const upsert_pipeline_oidc_trust: z.ZodObject<{
|
|
|
821
826
|
allowed_environments?: string[] | undefined;
|
|
822
827
|
allowed_actions?: string[] | undefined;
|
|
823
828
|
session_ttl_seconds?: number | undefined;
|
|
829
|
+
repository_id?: string | null | undefined;
|
|
830
|
+
repository_owner_id?: string | null | undefined;
|
|
824
831
|
}, {
|
|
825
832
|
owner_id: string;
|
|
826
833
|
github_owner: string;
|
|
@@ -833,6 +840,8 @@ declare const upsert_pipeline_oidc_trust: z.ZodObject<{
|
|
|
833
840
|
allowed_environments?: string[] | undefined;
|
|
834
841
|
allowed_actions?: string[] | undefined;
|
|
835
842
|
session_ttl_seconds?: number | undefined;
|
|
843
|
+
repository_id?: string | null | undefined;
|
|
844
|
+
repository_owner_id?: string | null | undefined;
|
|
836
845
|
}>;
|
|
837
846
|
declare const webhook_event_body: z.ZodObject<{
|
|
838
847
|
stage_name: z.ZodString;
|
|
@@ -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 { t as api_keys } from './schema.d-
|
|
4
|
+
import { t as api_keys } from './schema.d-CUm4wtV_.js';
|
|
5
5
|
|
|
6
6
|
declare const GitHubSettingsSchema: z.ZodObject<{
|
|
7
7
|
hidden_repos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/api",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
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.9",
|
|
72
72
|
"@types/node": "^20.11.24",
|
|
73
73
|
"bun-types": "latest",
|
|
74
74
|
"tsup": "^8.0.0",
|