@devpad/api 2.3.4 → 2.3.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.
@@ -1,4 +1,4 @@
1
- export { A as AccessKey, a as AccessKeyCreate, b as AccessKeyCreateSchema, c as AccessKeyInsert, d as AccessKeyInsertSchema, e as AccessKeyRow, f as AccessKeyRowSchema, g as AccessKeySchema, h as AccessKeyUpdate, i as AccessKeyUpdateSchema, j as ApiError, C as Category, k as CategoryCreate, l as CategoryCreateSchema, m as CategoryInsert, n as CategoryInsertSchema, o as CategorySchema, F as FetchLink, p as FetchLinkInsert, q as FetchLinkInsertSchema, r as FetchLinkSchema, I as Integration, s as IntegrationInsert, t as IntegrationInsertSchema, u as IntegrationSchema, v as IntegrationUpsert, w as IntegrationUpsertSchema, P as PaginatedResponse, x as Post, y as PostContent, z as PostContentSchema, B as PostCorpusError, D as PostCreate, E as PostCreateSchema, G as PostListParams, H as PostListParamsSchema, J as PostRow, K as PostRowInsert, L as PostRowInsertSchema, M as PostRowSchema, N as PostSchema, O as PostStatus, Q as PostUpdate, R as PostUpdateSchema, S as PostsCorpus, T as PostsResponse, U as PostsResponseSchema, V as Tag, W as TagInsert, X as TagInsertSchema, Y as TagSchema, Z as VersionInfo, _ as VersionInfoSchema, $ as corpusPath, a0 as isDraft, a1 as isPublished, a2 as isScheduled, a3 as mapCorpusError, a4 as parsePostContent, a5 as postStatus, a6 as postStoreId, a7 as postsStoreDefinition, a8 as serializePostContent } from '../types.d-BhWQru2j.js';
1
+ export { A as AccessKey, a as AccessKeyCreate, b as AccessKeyCreateSchema, c as AccessKeyInsert, d as AccessKeyInsertSchema, e as AccessKeyRow, f as AccessKeyRowSchema, g as AccessKeySchema, h as AccessKeyUpdate, i as AccessKeyUpdateSchema, j as ApiError, C as Category, k as CategoryCreate, l as CategoryCreateSchema, m as CategoryInsert, n as CategoryInsertSchema, o as CategorySchema, F as FetchLink, p as FetchLinkInsert, q as FetchLinkInsertSchema, r as FetchLinkSchema, I as Integration, s as IntegrationInsert, t as IntegrationInsertSchema, u as IntegrationSchema, v as IntegrationUpsert, w as IntegrationUpsertSchema, P as PaginatedResponse, x as Post, y as PostContent, z as PostContentSchema, B as PostCorpusError, D as PostCreate, E as PostCreateSchema, G as PostListParams, H as PostListParamsSchema, J as PostRow, K as PostRowInsert, L as PostRowInsertSchema, M as PostRowSchema, N as PostSchema, O as PostStatus, Q as PostUpdate, R as PostUpdateSchema, S as PostsCorpus, T as PostsResponse, U as PostsResponseSchema, V as Tag, W as TagInsert, X as TagInsertSchema, Y as TagSchema, Z as VersionInfo, _ as VersionInfoSchema, $ as corpusPath, a0 as isDraft, a1 as isPublished, a2 as isScheduled, a3 as mapCorpusError, a4 as parsePostContent, a5 as postStatus, a6 as postStoreId, a7 as postsStoreDefinition, a8 as serializePostContent } from '../types.d-BEtzx3lu.js';
2
2
  export { Backend, Corpus, CorpusError, FetchError, ListOpts, Pipe, PutOpts, Result, Snapshot, SnapshotMeta, Store, StoreDefinition, at, create_cloudflare_backend, create_corpus, create_memory_backend, define_store, err, fetch_result, first, format_error, json_codec, last, match, ok, pipe, to_fallback, to_nullable, try_catch, try_catch_async, unwrap_or } from '@f0rbit/corpus';
3
3
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
4
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
@@ -2255,6 +2255,25 @@ declare const fullSchema: {
2255
2255
  }, {}, {
2256
2256
  length: number | undefined;
2257
2257
  }>;
2258
+ project_id: drizzle_orm_sqlite_core.SQLiteColumn<{
2259
+ name: "project_id";
2260
+ tableName: "api_keys";
2261
+ dataType: "string";
2262
+ columnType: "SQLiteText";
2263
+ data: string;
2264
+ driverParam: string;
2265
+ notNull: false;
2266
+ hasDefault: false;
2267
+ isPrimaryKey: false;
2268
+ isAutoincrement: false;
2269
+ hasRuntimeDefault: false;
2270
+ enumValues: [string, ...string[]];
2271
+ baseColumn: never;
2272
+ identity: undefined;
2273
+ generated: undefined;
2274
+ }, {}, {
2275
+ length: number | undefined;
2276
+ }>;
2258
2277
  enabled: drizzle_orm_sqlite_core.SQLiteColumn<{
2259
2278
  name: "enabled";
2260
2279
  tableName: "api_keys";
@@ -2562,6 +2581,23 @@ declare const fullSchema: {
2562
2581
  }, {}, {
2563
2582
  length: number | undefined;
2564
2583
  }>;
2584
+ github_autoclose: drizzle_orm_sqlite_core.SQLiteColumn<{
2585
+ name: "github_autoclose";
2586
+ tableName: "project";
2587
+ dataType: "boolean";
2588
+ columnType: "SQLiteBoolean";
2589
+ data: boolean;
2590
+ driverParam: number;
2591
+ notNull: true;
2592
+ hasDefault: true;
2593
+ isPrimaryKey: false;
2594
+ isAutoincrement: false;
2595
+ hasRuntimeDefault: false;
2596
+ enumValues: undefined;
2597
+ baseColumn: never;
2598
+ identity: undefined;
2599
+ generated: undefined;
2600
+ }, {}, {}>;
2565
2601
  owner_id: drizzle_orm_sqlite_core.SQLiteColumn<{
2566
2602
  name: "owner_id";
2567
2603
  tableName: "project";
@@ -4870,6 +4906,453 @@ declare const fullSchema: {
4870
4906
  };
4871
4907
  dialect: "sqlite";
4872
4908
  }>;
4909
+ hook: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4910
+ name: "hook";
4911
+ schema: undefined;
4912
+ columns: {
4913
+ project_id: drizzle_orm_sqlite_core.SQLiteColumn<{
4914
+ name: "project_id";
4915
+ tableName: "hook";
4916
+ dataType: "string";
4917
+ columnType: "SQLiteText";
4918
+ data: string;
4919
+ driverParam: string;
4920
+ notNull: true;
4921
+ hasDefault: false;
4922
+ isPrimaryKey: false;
4923
+ isAutoincrement: false;
4924
+ hasRuntimeDefault: false;
4925
+ enumValues: [string, ...string[]];
4926
+ baseColumn: never;
4927
+ identity: undefined;
4928
+ generated: undefined;
4929
+ }, {}, {
4930
+ length: number | undefined;
4931
+ }>;
4932
+ enabled: drizzle_orm_sqlite_core.SQLiteColumn<{
4933
+ name: "enabled";
4934
+ tableName: "hook";
4935
+ dataType: "boolean";
4936
+ columnType: "SQLiteBoolean";
4937
+ data: boolean;
4938
+ driverParam: number;
4939
+ notNull: true;
4940
+ hasDefault: true;
4941
+ isPrimaryKey: false;
4942
+ isAutoincrement: false;
4943
+ hasRuntimeDefault: false;
4944
+ enumValues: undefined;
4945
+ baseColumn: never;
4946
+ identity: undefined;
4947
+ generated: undefined;
4948
+ }, {}, {}>;
4949
+ trigger: drizzle_orm_sqlite_core.SQLiteColumn<{
4950
+ name: "trigger";
4951
+ tableName: "hook";
4952
+ dataType: "json";
4953
+ columnType: "SQLiteTextJson";
4954
+ data: unknown;
4955
+ driverParam: string;
4956
+ notNull: true;
4957
+ hasDefault: false;
4958
+ isPrimaryKey: false;
4959
+ isAutoincrement: false;
4960
+ hasRuntimeDefault: false;
4961
+ enumValues: undefined;
4962
+ baseColumn: never;
4963
+ identity: undefined;
4964
+ generated: undefined;
4965
+ }, {}, {}>;
4966
+ action: drizzle_orm_sqlite_core.SQLiteColumn<{
4967
+ name: "action";
4968
+ tableName: "hook";
4969
+ dataType: "json";
4970
+ columnType: "SQLiteTextJson";
4971
+ data: unknown;
4972
+ driverParam: string;
4973
+ notNull: true;
4974
+ hasDefault: false;
4975
+ isPrimaryKey: false;
4976
+ isAutoincrement: false;
4977
+ hasRuntimeDefault: false;
4978
+ enumValues: undefined;
4979
+ baseColumn: never;
4980
+ identity: undefined;
4981
+ generated: undefined;
4982
+ }, {}, {}>;
4983
+ created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
4984
+ name: "created_by";
4985
+ tableName: "hook";
4986
+ dataType: "string";
4987
+ columnType: "SQLiteText";
4988
+ data: "user" | "api";
4989
+ driverParam: string;
4990
+ notNull: true;
4991
+ hasDefault: true;
4992
+ isPrimaryKey: false;
4993
+ isAutoincrement: false;
4994
+ hasRuntimeDefault: false;
4995
+ enumValues: ["user", "api"];
4996
+ baseColumn: never;
4997
+ identity: undefined;
4998
+ generated: undefined;
4999
+ }, {}, {
5000
+ length: number | undefined;
5001
+ }>;
5002
+ modified_by: drizzle_orm_sqlite_core.SQLiteColumn<{
5003
+ name: "modified_by";
5004
+ tableName: "hook";
5005
+ dataType: "string";
5006
+ columnType: "SQLiteText";
5007
+ data: "user" | "api";
5008
+ driverParam: string;
5009
+ notNull: true;
5010
+ hasDefault: true;
5011
+ isPrimaryKey: false;
5012
+ isAutoincrement: false;
5013
+ hasRuntimeDefault: false;
5014
+ enumValues: ["user", "api"];
5015
+ baseColumn: never;
5016
+ identity: undefined;
5017
+ generated: undefined;
5018
+ }, {}, {
5019
+ length: number | undefined;
5020
+ }>;
5021
+ protected: drizzle_orm_sqlite_core.SQLiteColumn<{
5022
+ name: "protected";
5023
+ tableName: "hook";
5024
+ dataType: "boolean";
5025
+ columnType: "SQLiteBoolean";
5026
+ data: boolean;
5027
+ driverParam: number;
5028
+ notNull: true;
5029
+ hasDefault: true;
5030
+ isPrimaryKey: false;
5031
+ isAutoincrement: false;
5032
+ hasRuntimeDefault: false;
5033
+ enumValues: undefined;
5034
+ baseColumn: never;
5035
+ identity: undefined;
5036
+ generated: undefined;
5037
+ }, {}, {}>;
5038
+ deleted: drizzle_orm_sqlite_core.SQLiteColumn<{
5039
+ name: "deleted";
5040
+ tableName: "hook";
5041
+ dataType: "boolean";
5042
+ columnType: "SQLiteBoolean";
5043
+ data: boolean;
5044
+ driverParam: number;
5045
+ notNull: true;
5046
+ hasDefault: true;
5047
+ isPrimaryKey: false;
5048
+ isAutoincrement: false;
5049
+ hasRuntimeDefault: false;
5050
+ enumValues: undefined;
5051
+ baseColumn: never;
5052
+ identity: undefined;
5053
+ generated: undefined;
5054
+ }, {}, {}>;
5055
+ created_at: drizzle_orm_sqlite_core.SQLiteColumn<{
5056
+ name: "created_at";
5057
+ tableName: "hook";
5058
+ dataType: "string";
5059
+ columnType: "SQLiteText";
5060
+ data: string;
5061
+ driverParam: string;
5062
+ notNull: true;
5063
+ hasDefault: true;
5064
+ isPrimaryKey: false;
5065
+ isAutoincrement: false;
5066
+ hasRuntimeDefault: false;
5067
+ enumValues: [string, ...string[]];
5068
+ baseColumn: never;
5069
+ identity: undefined;
5070
+ generated: undefined;
5071
+ }, {}, {
5072
+ length: number | undefined;
5073
+ }>;
5074
+ updated_at: drizzle_orm_sqlite_core.SQLiteColumn<{
5075
+ name: "updated_at";
5076
+ tableName: "hook";
5077
+ dataType: "string";
5078
+ columnType: "SQLiteText";
5079
+ data: string;
5080
+ driverParam: string;
5081
+ notNull: true;
5082
+ hasDefault: true;
5083
+ isPrimaryKey: false;
5084
+ isAutoincrement: false;
5085
+ hasRuntimeDefault: false;
5086
+ enumValues: [string, ...string[]];
5087
+ baseColumn: never;
5088
+ identity: undefined;
5089
+ generated: undefined;
5090
+ }, {}, {
5091
+ length: number | undefined;
5092
+ }>;
5093
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
5094
+ name: "id";
5095
+ tableName: "hook";
5096
+ dataType: "string";
5097
+ columnType: "SQLiteText";
5098
+ data: string;
5099
+ driverParam: string;
5100
+ notNull: true;
5101
+ hasDefault: true;
5102
+ isPrimaryKey: true;
5103
+ isAutoincrement: false;
5104
+ hasRuntimeDefault: true;
5105
+ enumValues: [string, ...string[]];
5106
+ baseColumn: never;
5107
+ identity: undefined;
5108
+ generated: undefined;
5109
+ }, {}, {
5110
+ length: number | undefined;
5111
+ }>;
5112
+ };
5113
+ dialect: "sqlite";
5114
+ }>;
5115
+ HOOK_DELIVERY_STATUSES: readonly ["pending", "delivered", "failed_transient", "failed_permanent"];
5116
+ hook_delivery: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
5117
+ name: "hook_delivery";
5118
+ schema: undefined;
5119
+ columns: {
5120
+ created_at: drizzle_orm_sqlite_core.SQLiteColumn<{
5121
+ name: "created_at";
5122
+ tableName: "hook_delivery";
5123
+ dataType: "string";
5124
+ columnType: "SQLiteText";
5125
+ data: string;
5126
+ driverParam: string;
5127
+ notNull: true;
5128
+ hasDefault: true;
5129
+ isPrimaryKey: false;
5130
+ isAutoincrement: false;
5131
+ hasRuntimeDefault: false;
5132
+ enumValues: [string, ...string[]];
5133
+ baseColumn: never;
5134
+ identity: undefined;
5135
+ generated: undefined;
5136
+ }, {}, {
5137
+ length: number | undefined;
5138
+ }>;
5139
+ updated_at: drizzle_orm_sqlite_core.SQLiteColumn<{
5140
+ name: "updated_at";
5141
+ tableName: "hook_delivery";
5142
+ dataType: "string";
5143
+ columnType: "SQLiteText";
5144
+ data: string;
5145
+ driverParam: string;
5146
+ notNull: true;
5147
+ hasDefault: true;
5148
+ isPrimaryKey: false;
5149
+ isAutoincrement: false;
5150
+ hasRuntimeDefault: false;
5151
+ enumValues: [string, ...string[]];
5152
+ baseColumn: never;
5153
+ identity: undefined;
5154
+ generated: undefined;
5155
+ }, {}, {
5156
+ length: number | undefined;
5157
+ }>;
5158
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
5159
+ name: "id";
5160
+ tableName: "hook_delivery";
5161
+ dataType: "string";
5162
+ columnType: "SQLiteText";
5163
+ data: string;
5164
+ driverParam: string;
5165
+ notNull: true;
5166
+ hasDefault: false;
5167
+ isPrimaryKey: true;
5168
+ isAutoincrement: false;
5169
+ hasRuntimeDefault: false;
5170
+ enumValues: [string, ...string[]];
5171
+ baseColumn: never;
5172
+ identity: undefined;
5173
+ generated: undefined;
5174
+ }, {}, {
5175
+ length: number | undefined;
5176
+ }>;
5177
+ hook_id: drizzle_orm_sqlite_core.SQLiteColumn<{
5178
+ name: "hook_id";
5179
+ tableName: "hook_delivery";
5180
+ dataType: "string";
5181
+ columnType: "SQLiteText";
5182
+ data: string;
5183
+ driverParam: string;
5184
+ notNull: true;
5185
+ hasDefault: false;
5186
+ isPrimaryKey: false;
5187
+ isAutoincrement: false;
5188
+ hasRuntimeDefault: false;
5189
+ enumValues: [string, ...string[]];
5190
+ baseColumn: never;
5191
+ identity: undefined;
5192
+ generated: undefined;
5193
+ }, {}, {
5194
+ length: number | undefined;
5195
+ }>;
5196
+ event_id: drizzle_orm_sqlite_core.SQLiteColumn<{
5197
+ name: "event_id";
5198
+ tableName: "hook_delivery";
5199
+ dataType: "string";
5200
+ columnType: "SQLiteText";
5201
+ data: string;
5202
+ driverParam: string;
5203
+ notNull: true;
5204
+ hasDefault: false;
5205
+ isPrimaryKey: false;
5206
+ isAutoincrement: false;
5207
+ hasRuntimeDefault: false;
5208
+ enumValues: [string, ...string[]];
5209
+ baseColumn: never;
5210
+ identity: undefined;
5211
+ generated: undefined;
5212
+ }, {}, {
5213
+ length: number | undefined;
5214
+ }>;
5215
+ status: drizzle_orm_sqlite_core.SQLiteColumn<{
5216
+ name: "status";
5217
+ tableName: "hook_delivery";
5218
+ dataType: "string";
5219
+ columnType: "SQLiteText";
5220
+ data: "pending" | "delivered" | "failed_transient" | "failed_permanent";
5221
+ driverParam: string;
5222
+ notNull: true;
5223
+ hasDefault: true;
5224
+ isPrimaryKey: false;
5225
+ isAutoincrement: false;
5226
+ hasRuntimeDefault: false;
5227
+ enumValues: ["pending", "delivered", "failed_transient", "failed_permanent"];
5228
+ baseColumn: never;
5229
+ identity: undefined;
5230
+ generated: undefined;
5231
+ }, {}, {
5232
+ length: number | undefined;
5233
+ }>;
5234
+ attempts: drizzle_orm_sqlite_core.SQLiteColumn<{
5235
+ name: "attempts";
5236
+ tableName: "hook_delivery";
5237
+ dataType: "number";
5238
+ columnType: "SQLiteInteger";
5239
+ data: number;
5240
+ driverParam: number;
5241
+ notNull: true;
5242
+ hasDefault: true;
5243
+ isPrimaryKey: false;
5244
+ isAutoincrement: false;
5245
+ hasRuntimeDefault: false;
5246
+ enumValues: undefined;
5247
+ baseColumn: never;
5248
+ identity: undefined;
5249
+ generated: undefined;
5250
+ }, {}, {}>;
5251
+ last_error: drizzle_orm_sqlite_core.SQLiteColumn<{
5252
+ name: "last_error";
5253
+ tableName: "hook_delivery";
5254
+ dataType: "string";
5255
+ columnType: "SQLiteText";
5256
+ data: string;
5257
+ driverParam: string;
5258
+ notNull: false;
5259
+ hasDefault: false;
5260
+ isPrimaryKey: false;
5261
+ isAutoincrement: false;
5262
+ hasRuntimeDefault: false;
5263
+ enumValues: [string, ...string[]];
5264
+ baseColumn: never;
5265
+ identity: undefined;
5266
+ generated: undefined;
5267
+ }, {}, {
5268
+ length: number | undefined;
5269
+ }>;
5270
+ };
5271
+ dialect: "sqlite";
5272
+ }>;
5273
+ github_webhook_event: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
5274
+ name: "github_webhook_event";
5275
+ schema: undefined;
5276
+ columns: {
5277
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
5278
+ name: "id";
5279
+ tableName: "github_webhook_event";
5280
+ dataType: "string";
5281
+ columnType: "SQLiteText";
5282
+ data: string;
5283
+ driverParam: string;
5284
+ notNull: true;
5285
+ hasDefault: false;
5286
+ isPrimaryKey: true;
5287
+ isAutoincrement: false;
5288
+ hasRuntimeDefault: false;
5289
+ enumValues: [string, ...string[]];
5290
+ baseColumn: never;
5291
+ identity: undefined;
5292
+ generated: undefined;
5293
+ }, {}, {
5294
+ length: number | undefined;
5295
+ }>;
5296
+ delivery_guid: drizzle_orm_sqlite_core.SQLiteColumn<{
5297
+ name: "delivery_guid";
5298
+ tableName: "github_webhook_event";
5299
+ dataType: "string";
5300
+ columnType: "SQLiteText";
5301
+ data: string;
5302
+ driverParam: string;
5303
+ notNull: true;
5304
+ hasDefault: false;
5305
+ isPrimaryKey: false;
5306
+ isAutoincrement: false;
5307
+ hasRuntimeDefault: false;
5308
+ enumValues: [string, ...string[]];
5309
+ baseColumn: never;
5310
+ identity: undefined;
5311
+ generated: undefined;
5312
+ }, {}, {
5313
+ length: number | undefined;
5314
+ }>;
5315
+ event_type: drizzle_orm_sqlite_core.SQLiteColumn<{
5316
+ name: "event_type";
5317
+ tableName: "github_webhook_event";
5318
+ dataType: "string";
5319
+ columnType: "SQLiteText";
5320
+ data: string;
5321
+ driverParam: string;
5322
+ notNull: true;
5323
+ hasDefault: false;
5324
+ isPrimaryKey: false;
5325
+ isAutoincrement: false;
5326
+ hasRuntimeDefault: false;
5327
+ enumValues: [string, ...string[]];
5328
+ baseColumn: never;
5329
+ identity: undefined;
5330
+ generated: undefined;
5331
+ }, {}, {
5332
+ length: number | undefined;
5333
+ }>;
5334
+ processed_at: drizzle_orm_sqlite_core.SQLiteColumn<{
5335
+ name: "processed_at";
5336
+ tableName: "github_webhook_event";
5337
+ dataType: "string";
5338
+ columnType: "SQLiteText";
5339
+ data: string;
5340
+ driverParam: string;
5341
+ notNull: true;
5342
+ hasDefault: true;
5343
+ isPrimaryKey: false;
5344
+ isAutoincrement: false;
5345
+ hasRuntimeDefault: false;
5346
+ enumValues: [string, ...string[]];
5347
+ baseColumn: never;
5348
+ identity: undefined;
5349
+ generated: undefined;
5350
+ }, {}, {
5351
+ length: number | undefined;
5352
+ }>;
5353
+ };
5354
+ dialect: "sqlite";
5355
+ }>;
4873
5356
  checklist: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4874
5357
  name: "checklist";
4875
5358
  schema: undefined;
@@ -7997,6 +8480,13 @@ declare const fullSchema: {
7997
8480
  task_event_relations: drizzle_orm.Relations<"task_event", {
7998
8481
  subject: drizzle_orm.One<"task", true>;
7999
8482
  }>;
8483
+ hook_relations: drizzle_orm.Relations<"hook", {
8484
+ project: drizzle_orm.One<"project", true>;
8485
+ deliveries: drizzle_orm.Many<"hook_delivery">;
8486
+ }>;
8487
+ hook_delivery_relations: drizzle_orm.Relations<"hook_delivery", {
8488
+ hook: drizzle_orm.One<"hook", true>;
8489
+ }>;
8000
8490
  checklist_relations: drizzle_orm.Relations<"checklist", {
8001
8491
  task: drizzle_orm.One<"task", true>;
8002
8492
  items: drizzle_orm.Many<"checklist_item">;
@@ -1,6 +1,6 @@
1
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, b as ApplyLog, c as ApplyOp, d as ApplyRequest, C as ClaimRequest, e as CodebaseTask, f as ConfigSchemaType, D as DashboardResponse, g as DashboardWindowQuery, h as DoneRequest, E as ExternalRef, G as GetConfigResult, i as Goal, H as HistoryAction, I as IgnorePath, j as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, k as PipelineApproval, l as PipelineGrant, m as PipelineOidcTrust, n as PipelinePackage, o as PipelineRun, p as PipelineStageEvent, q as Project, r as ProjectConfig, s as ProjectWithTasks, R as RolloutShapeZ, t as RunKindZ, S as SaveConfigRequest, u as ScanStatus, v as Session, T as TAG_COLOURS, w as Tag, x as TagColor, y as TagConfig, z as TagWithColor, B as TagWithTypedColor, F as Task, J as TaskEvent, K as TaskEventPayload, L as TaskLink, O as TaskRollup, Q as TaskTag, U as TaskView, V as TaskWithDetails, W as TodoUpdate, X as TrackerResult, Y as UpdateAction, Z as UpdateData, _ as UpdateUser, $ as UpsertGoal, a0 as UpsertMilestone, a1 as UpsertPipelineAnalysisTemplate, a2 as UpsertPipelineApproval, a3 as UpsertPipelineGrant, a4 as UpsertPipelineOidcTrust, a5 as UpsertPipelinePackage, a6 as UpsertPipelineRun, a7 as UpsertProject, a8 as UpsertTag, a9 as UpsertTaskLink, aa as UpsertTodo, ab as User, ac as WebhookEventBody, ad as apply_op, ae as apply_request, af as approval_decision, ag as claim_request, ah as config_schema, ai as dashboard_response, aj as dashboard_window_query, ak as done_request, al as external_ref, am as forced_atomic_reason, an as gate_descriptor, ao as grant_scope, ap as insert_pipeline_stage_event, aq as pipeline_oidc_provider, ar as project_config, as as resolved_gates, at as resolved_rollout, au as rollout_shape, av as rollout_stage, aw as run_kind, ax as run_status, ay as save_config_request, az as save_tags_request, aA as stage_event_kind, aB as task_event_actor, aC as task_event_payload, aD as task_link_kind, aE as update_action, aF as update_user, aG as upsert_goal, aH as upsert_milestone, aI as upsert_pipeline_analysis_template, aJ as upsert_pipeline_approval, aK as upsert_pipeline_grant, aL as upsert_pipeline_oidc_trust, aM as upsert_pipeline_package, aN as upsert_pipeline_run, aO as upsert_project, aP as upsert_tag, aQ as upsert_task_link, aR as upsert_todo, aS as webhook_event_body } from '../types.d-BJ3g4B0G.js';
3
- export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, c as GRAPH_DEPTH_CAP, P as PipelineOidcProvider, R as RolloutShape, d as RunStatus, S as StageEventKind, T as TaskEventActor, e as TaskEventDispatchStatus, f as TaskEventKind, g as TaskKind, h as TaskLinkKind } from '../schema.d-DfzLWuRW.js';
2
+ export { A as Action, a as ApiKey, b as ApplyLog, c as ApplyOp, d as ApplyRequest, C as ClaimRequest, e as CodebaseTask, f as ConfigSchemaType, D as DashboardResponse, g as DashboardWindowQuery, h as DoneRequest, E as ExternalRef, G as GetConfigResult, i as GithubWebhookEvent, j as Goal, H as HistoryAction, k as Hook, l as HookActionInput, m as HookActionPublic, n as HookActionStored, o as HookDelivery, p as HookSelector, q as HookTrigger, I as IgnorePath, r as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, s as PipelineApproval, t as PipelineGrant, u as PipelineOidcTrust, v as PipelinePackage, w as PipelineRun, x as PipelineStageEvent, y as Project, z as ProjectConfig, B as ProjectWithTasks, R as RolloutShapeZ, F as RunKindZ, S as SaveConfigRequest, J as ScanStatus, K as Session, T as TAG_COLOURS, L as Tag, O as TagColor, Q as TagConfig, U as TagWithColor, V as TagWithTypedColor, W as Task, X as TaskEvent, Y as TaskEventPayload, Z as TaskLink, _ as TaskRollup, $ as TaskTag, a0 as TaskView, a1 as TaskWithDetails, a2 as TodoUpdate, a3 as TrackerResult, a4 as UpdateAction, a5 as UpdateData, a6 as UpdateUser, a7 as UpsertGoal, a8 as UpsertHook, a9 as UpsertMilestone, aa as UpsertPipelineAnalysisTemplate, ab as UpsertPipelineApproval, ac as UpsertPipelineGrant, ad as UpsertPipelineOidcTrust, ae as UpsertPipelinePackage, af as UpsertPipelineRun, ag as UpsertProject, ah as UpsertTag, ai as UpsertTaskLink, aj as UpsertTodo, ak as User, al as WebhookEventBody, am as apply_op, an as apply_request, ao as approval_decision, ap as claim_request, aq as config_schema, ar as dashboard_response, as as dashboard_window_query, at as done_request, au as external_ref, av as forced_atomic_reason, aw as gate_descriptor, ax as grant_scope, ay as hook_action_input, az as hook_action_public, aA as hook_action_stored, aB as hook_selector, aC as hook_trigger, aD as insert_pipeline_stage_event, aE as pipeline_oidc_provider, aF as project_config, aG as resolved_gates, aH as resolved_rollout, aI as rollout_shape, aJ as rollout_stage, aK as run_kind, aL as run_status, aM as save_config_request, aN as save_tags_request, aO as stage_event_kind, aP as task_event_actor, aQ as task_event_payload, aR as task_link_kind, aS as update_action, aT as update_user, aU as upsert_goal, aV as upsert_hook, aW as upsert_milestone, aX as upsert_pipeline_analysis_template, aY as upsert_pipeline_approval, aZ as upsert_pipeline_grant, a_ as upsert_pipeline_oidc_trust, a$ as upsert_pipeline_package, b0 as upsert_pipeline_run, b1 as upsert_project, b2 as upsert_tag, b3 as upsert_task_link, b4 as upsert_todo, b5 as webhook_event_body } from '../types.d-NajL6dL5.js';
3
+ export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, c as GRAPH_DEPTH_CAP, H as HookDeliveryStatus, P as PipelineOidcProvider, R as RolloutShape, d as RunStatus, S as StageEventKind, T as TaskEventActor, e as TaskEventDispatchStatus, f as TaskEventKind, g as TaskKind, h as TaskLinkKind } from '../schema.d-CFQELmTM.js';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import 'zod';
@@ -13,6 +13,11 @@ import {
13
13
  forced_atomic_reason,
14
14
  gate_descriptor,
15
15
  grant_scope,
16
+ hook_action_input,
17
+ hook_action_public,
18
+ hook_action_stored,
19
+ hook_selector,
20
+ hook_trigger,
16
21
  insert_pipeline_stage_event,
17
22
  pipeline_oidc_provider,
18
23
  project_config,
@@ -31,6 +36,7 @@ import {
31
36
  update_action,
32
37
  update_user,
33
38
  upsert_goal,
39
+ upsert_hook,
34
40
  upsert_milestone,
35
41
  upsert_pipeline_analysis_template,
36
42
  upsert_pipeline_approval,
@@ -43,7 +49,7 @@ import {
43
49
  upsert_task_link,
44
50
  upsert_todo,
45
51
  webhook_event_body
46
- } from "../chunk-XHTCNYWS.js";
52
+ } from "../chunk-A7B2SE7T.js";
47
53
  import {
48
54
  apiError,
49
55
  authExpired,
@@ -127,6 +133,11 @@ export {
127
133
  gate_descriptor,
128
134
  githubError,
129
135
  grant_scope,
136
+ hook_action_input,
137
+ hook_action_public,
138
+ hook_action_stored,
139
+ hook_selector,
140
+ hook_trigger,
130
141
  insert_pipeline_stage_event,
131
142
  isApiError,
132
143
  isAuthExpiredError,
@@ -173,6 +184,7 @@ export {
173
184
  update_action,
174
185
  update_user,
175
186
  upsert_goal,
187
+ upsert_hook,
176
188
  upsert_milestone,
177
189
  upsert_pipeline_analysis_template,
178
190
  upsert_pipeline_approval,
@@ -1,11 +1,11 @@
1
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-ip2SzstN.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-CK6qaT-O.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-DfzLWuRW.js';
8
+ import '../schema.d-CFQELmTM.js';
9
9
 
10
10
  declare const brand: unique symbol;
11
11
  type Brand<T, B extends string> = T & {