@devpad/api 2.2.12 → 2.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -8
- package/dist/index.js +11 -7
- package/dist/schema/blog.d.ts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/media.d.ts +8 -8
- package/dist/{types.d-yIorr_SU.d.ts → types.d-DUtDEHYM.d.ts} +28 -28
- package/package.json +2 -2
- package/dist/{types.d-B3vp62jJ.d.ts → types.d-BhWQru2j.d.ts} +5 -5
- package/dist/{types.d-BcKx3ryl.d.ts → types.d-ELBwaLBA.d.ts} +218 -218
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-
|
|
3
|
-
import { a as ApiKey, l as Project, Z as UpsertProject, G as GetConfigResult, S as SaveConfigRequest, B as TodoUpdate, H as HistoryAction, M as Milestone, d as Goal, z as TaskWithDetails, $ as UpsertTodo, _ as UpsertTag, v as TagWithTypedColor, D as DashboardResponse, j as PipelineRun, k as PipelineStageEvent, g as PipelineGrant, i as PipelinePackage, P as PipelineAnalysisTemplate, h as PipelineOidcTrust } from './types.d-
|
|
4
|
-
export { m as ProjectConfig, w as Task } from './types.d-
|
|
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-BhWQru2j.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-ELBwaLBA.js';
|
|
3
|
+
import { a as ApiKey, l as Project, Z as UpsertProject, G as GetConfigResult, S as SaveConfigRequest, B as TodoUpdate, H as HistoryAction, M as Milestone, d as Goal, z as TaskWithDetails, $ as UpsertTodo, _ as UpsertTag, v as TagWithTypedColor, D as DashboardResponse, j as PipelineRun, k as PipelineStageEvent, g as PipelineGrant, i as PipelinePackage, P as PipelineAnalysisTemplate, h as PipelineOidcTrust } from './types.d-DUtDEHYM.js';
|
|
4
|
+
export { m as ProjectConfig, w as Task } from './types.d-DUtDEHYM.js';
|
|
5
5
|
import { Result } from '@f0rbit/corpus';
|
|
6
6
|
export { Result, err, ok } from '@f0rbit/corpus';
|
|
7
7
|
import { S as StageEventKind } from './schema.d-BeVFWenc.js';
|
|
@@ -10,13 +10,13 @@ import 'drizzle-orm';
|
|
|
10
10
|
import './media.d-R87HGuRp.js';
|
|
11
11
|
import 'drizzle-orm/sqlite-core';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
type BufferedQueue<T> = {
|
|
14
14
|
latest(): T | null;
|
|
15
15
|
list(): T[];
|
|
16
16
|
add(item: T): void;
|
|
17
17
|
size(): number;
|
|
18
18
|
clear(): void;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
type RequestOptions = {
|
|
21
21
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
22
22
|
headers?: Record<string, string>;
|
|
@@ -1012,12 +1012,12 @@ declare function parseZodErrors(errorMessage: string): string;
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
declare function getUserFriendlyErrorMessage(error: unknown): string;
|
|
1014
1014
|
|
|
1015
|
-
|
|
1015
|
+
type ToolDefinition = {
|
|
1016
1016
|
name: string;
|
|
1017
1017
|
description: string;
|
|
1018
1018
|
inputSchema: z.ZodTypeAny;
|
|
1019
1019
|
execute: (client: ApiClient, input: unknown) => Promise<unknown>;
|
|
1020
|
-
}
|
|
1020
|
+
};
|
|
1021
1021
|
declare const tools: Record<string, ToolDefinition>;
|
|
1022
1022
|
declare const toolNames: string[];
|
|
1023
1023
|
declare function getTool(name: string): ToolDefinition | undefined;
|
package/dist/index.js
CHANGED
|
@@ -75,7 +75,8 @@ async function handleResponseError(response) {
|
|
|
75
75
|
const errorMessage = errorText || "Request failed";
|
|
76
76
|
let parsedError = null;
|
|
77
77
|
try {
|
|
78
|
-
|
|
78
|
+
const raw = JSON.parse(errorText);
|
|
79
|
+
parsedError = raw;
|
|
79
80
|
} catch {
|
|
80
81
|
}
|
|
81
82
|
if (response.status === HTTP_STATUS.BAD_REQUEST && parsedError?.error?.name === "ZodError") {
|
|
@@ -101,12 +102,14 @@ function tryParseZodErrorString(errorMessage) {
|
|
|
101
102
|
const zodErrorMatch = errorMessage.match(/ZodError: (.+)/);
|
|
102
103
|
if (!zodErrorMatch?.[1]) return null;
|
|
103
104
|
try {
|
|
104
|
-
|
|
105
|
+
const raw = JSON.parse(zodErrorMatch[1]);
|
|
106
|
+
return raw;
|
|
105
107
|
} catch {
|
|
106
108
|
const issuesMatch = errorMessage.match(/issues:\s*(\[.*\])/s);
|
|
107
109
|
if (!issuesMatch?.[1]) return null;
|
|
108
110
|
try {
|
|
109
|
-
|
|
111
|
+
const raw_issues = JSON.parse(issuesMatch[1]);
|
|
112
|
+
return { issues: raw_issues };
|
|
110
113
|
} catch {
|
|
111
114
|
return null;
|
|
112
115
|
}
|
|
@@ -116,7 +119,8 @@ function parseZodErrors(errorMessage) {
|
|
|
116
119
|
try {
|
|
117
120
|
let parsedError = null;
|
|
118
121
|
try {
|
|
119
|
-
|
|
122
|
+
const raw = JSON.parse(errorMessage);
|
|
123
|
+
parsedError = raw;
|
|
120
124
|
} catch {
|
|
121
125
|
parsedError = tryParseZodErrorString(errorMessage);
|
|
122
126
|
}
|
|
@@ -177,8 +181,7 @@ function parseZodErrors(errorMessage) {
|
|
|
177
181
|
return `Validation failed:
|
|
178
182
|
\u2022 ${friendlyMessages.join("\n\u2022 ")}`;
|
|
179
183
|
}
|
|
180
|
-
} catch
|
|
181
|
-
console.debug("Failed to parse Zod error:", e);
|
|
184
|
+
} catch {
|
|
182
185
|
}
|
|
183
186
|
return errorMessage;
|
|
184
187
|
}
|
|
@@ -346,7 +349,8 @@ var ApiClient = class {
|
|
|
346
349
|
result = void 0;
|
|
347
350
|
} else {
|
|
348
351
|
try {
|
|
349
|
-
|
|
352
|
+
const raw = JSON.parse(text2);
|
|
353
|
+
result = raw;
|
|
350
354
|
} catch {
|
|
351
355
|
result = text2;
|
|
352
356
|
}
|
package/dist/schema/blog.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
|
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';
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, 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-
|
|
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-DUtDEHYM.js';
|
|
3
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';
|
package/dist/schema/media.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-ELBwaLBA.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '@f0rbit/corpus';
|
|
5
5
|
import 'drizzle-orm';
|
|
@@ -36,9 +36,9 @@ declare const GitHubRepoCommitSchema: z.ZodObject<{
|
|
|
36
36
|
deletions: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
files_changed: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
message: string;
|
|
39
40
|
branch: string;
|
|
40
41
|
sha: string;
|
|
41
|
-
message: string;
|
|
42
42
|
url: string;
|
|
43
43
|
author_name: string;
|
|
44
44
|
author_email: string;
|
|
@@ -50,9 +50,9 @@ declare const GitHubRepoCommitSchema: z.ZodObject<{
|
|
|
50
50
|
deletions?: number | undefined;
|
|
51
51
|
files_changed?: number | undefined;
|
|
52
52
|
}, {
|
|
53
|
+
message: string;
|
|
53
54
|
branch: string;
|
|
54
55
|
sha: string;
|
|
55
|
-
message: string;
|
|
56
56
|
url: string;
|
|
57
57
|
author_name: string;
|
|
58
58
|
author_email: string;
|
|
@@ -83,9 +83,9 @@ declare const GitHubRepoCommitsStoreSchema: z.ZodObject<{
|
|
|
83
83
|
deletions: z.ZodOptional<z.ZodNumber>;
|
|
84
84
|
files_changed: z.ZodOptional<z.ZodNumber>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
message: string;
|
|
86
87
|
branch: string;
|
|
87
88
|
sha: string;
|
|
88
|
-
message: string;
|
|
89
89
|
url: string;
|
|
90
90
|
author_name: string;
|
|
91
91
|
author_email: string;
|
|
@@ -97,9 +97,9 @@ declare const GitHubRepoCommitsStoreSchema: z.ZodObject<{
|
|
|
97
97
|
deletions?: number | undefined;
|
|
98
98
|
files_changed?: number | undefined;
|
|
99
99
|
}, {
|
|
100
|
+
message: string;
|
|
100
101
|
branch: string;
|
|
101
102
|
sha: string;
|
|
102
|
-
message: string;
|
|
103
103
|
url: string;
|
|
104
104
|
author_name: string;
|
|
105
105
|
author_email: string;
|
|
@@ -118,9 +118,9 @@ declare const GitHubRepoCommitsStoreSchema: z.ZodObject<{
|
|
|
118
118
|
repo: string;
|
|
119
119
|
branches: string[];
|
|
120
120
|
commits: {
|
|
121
|
+
message: string;
|
|
121
122
|
branch: string;
|
|
122
123
|
sha: string;
|
|
123
|
-
message: string;
|
|
124
124
|
url: string;
|
|
125
125
|
author_name: string;
|
|
126
126
|
author_email: string;
|
|
@@ -139,9 +139,9 @@ declare const GitHubRepoCommitsStoreSchema: z.ZodObject<{
|
|
|
139
139
|
repo: string;
|
|
140
140
|
branches: string[];
|
|
141
141
|
commits: {
|
|
142
|
+
message: string;
|
|
142
143
|
branch: string;
|
|
143
144
|
sha: string;
|
|
144
|
-
message: string;
|
|
145
145
|
url: string;
|
|
146
146
|
author_name: string;
|
|
147
147
|
author_email: string;
|
|
@@ -885,9 +885,9 @@ declare const TwitterMetaStoreSchema: z.ZodObject<{
|
|
|
885
885
|
pinned_tweet_id: z.ZodOptional<z.ZodString>;
|
|
886
886
|
fetched_at: z.ZodString;
|
|
887
887
|
}, "strip", z.ZodTypeAny, {
|
|
888
|
-
protected: boolean;
|
|
889
888
|
id: string;
|
|
890
889
|
name: string;
|
|
890
|
+
protected: boolean;
|
|
891
891
|
created_at: string;
|
|
892
892
|
fetched_at: string;
|
|
893
893
|
username: string;
|
|
@@ -32,8 +32,8 @@ declare const upsert_project: z.ZodObject<{
|
|
|
32
32
|
link_text: string | null;
|
|
33
33
|
current_version: string | null;
|
|
34
34
|
id?: string | null | undefined;
|
|
35
|
-
owner_id?: string | undefined;
|
|
36
35
|
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
36
|
+
owner_id?: string | undefined;
|
|
37
37
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
38
38
|
force?: boolean | undefined;
|
|
39
39
|
}, {
|
|
@@ -48,9 +48,9 @@ declare const upsert_project: z.ZodObject<{
|
|
|
48
48
|
link_text: string | null;
|
|
49
49
|
current_version: string | null;
|
|
50
50
|
id?: string | null | undefined;
|
|
51
|
+
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
51
52
|
deleted?: boolean | undefined;
|
|
52
53
|
owner_id?: string | undefined;
|
|
53
|
-
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
54
54
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
55
55
|
force?: boolean | undefined;
|
|
56
56
|
}>;
|
|
@@ -125,23 +125,23 @@ declare const project_config: z.ZodObject<{
|
|
|
125
125
|
name: z.ZodString;
|
|
126
126
|
match: z.ZodArray<z.ZodString, "many">;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
match: string[];
|
|
129
128
|
name: string;
|
|
130
|
-
}, {
|
|
131
129
|
match: string[];
|
|
130
|
+
}, {
|
|
132
131
|
name: string;
|
|
132
|
+
match: string[];
|
|
133
133
|
}>, "many">;
|
|
134
134
|
ignore: z.ZodArray<z.ZodString, "many">;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
tags: {
|
|
137
|
-
match: string[];
|
|
138
137
|
name: string;
|
|
138
|
+
match: string[];
|
|
139
139
|
}[];
|
|
140
140
|
ignore: string[];
|
|
141
141
|
}, {
|
|
142
142
|
tags: {
|
|
143
|
-
match: string[];
|
|
144
143
|
name: string;
|
|
144
|
+
match: string[];
|
|
145
145
|
}[];
|
|
146
146
|
ignore: string[];
|
|
147
147
|
}>;
|
|
@@ -152,23 +152,23 @@ declare const save_config_request: z.ZodObject<{
|
|
|
152
152
|
name: z.ZodString;
|
|
153
153
|
match: z.ZodArray<z.ZodString, "many">;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
match: string[];
|
|
156
155
|
name: string;
|
|
157
|
-
}, {
|
|
158
156
|
match: string[];
|
|
157
|
+
}, {
|
|
159
158
|
name: string;
|
|
159
|
+
match: string[];
|
|
160
160
|
}>, "many">;
|
|
161
161
|
ignore: z.ZodArray<z.ZodString, "many">;
|
|
162
162
|
}, "strip", z.ZodTypeAny, {
|
|
163
163
|
tags: {
|
|
164
|
-
match: string[];
|
|
165
164
|
name: string;
|
|
165
|
+
match: string[];
|
|
166
166
|
}[];
|
|
167
167
|
ignore: string[];
|
|
168
168
|
}, {
|
|
169
169
|
tags: {
|
|
170
|
-
match: string[];
|
|
171
170
|
name: string;
|
|
171
|
+
match: string[];
|
|
172
172
|
}[];
|
|
173
173
|
ignore: string[];
|
|
174
174
|
}>;
|
|
@@ -177,8 +177,8 @@ declare const save_config_request: z.ZodObject<{
|
|
|
177
177
|
id: string;
|
|
178
178
|
config: {
|
|
179
179
|
tags: {
|
|
180
|
-
match: string[];
|
|
181
180
|
name: string;
|
|
181
|
+
match: string[];
|
|
182
182
|
}[];
|
|
183
183
|
ignore: string[];
|
|
184
184
|
};
|
|
@@ -187,8 +187,8 @@ declare const save_config_request: z.ZodObject<{
|
|
|
187
187
|
id: string;
|
|
188
188
|
config: {
|
|
189
189
|
tags: {
|
|
190
|
-
match: string[];
|
|
191
190
|
name: string;
|
|
191
|
+
match: string[];
|
|
192
192
|
}[];
|
|
193
193
|
ignore: string[];
|
|
194
194
|
};
|
|
@@ -225,38 +225,38 @@ declare const update_user: z.ZodObject<{
|
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
id: string;
|
|
227
227
|
name?: string | undefined;
|
|
228
|
+
task_view?: "list" | "grid" | undefined;
|
|
228
229
|
email_verified?: boolean | undefined;
|
|
229
230
|
image_url?: string | undefined;
|
|
230
|
-
task_view?: "list" | "grid" | undefined;
|
|
231
231
|
}, {
|
|
232
232
|
id: string;
|
|
233
233
|
name?: string | undefined;
|
|
234
|
+
task_view?: "list" | "grid" | undefined;
|
|
234
235
|
email_verified?: boolean | undefined;
|
|
235
236
|
image_url?: string | undefined;
|
|
236
|
-
task_view?: "list" | "grid" | undefined;
|
|
237
237
|
}>;
|
|
238
238
|
declare const config_schema: z.ZodObject<{
|
|
239
239
|
tags: z.ZodArray<z.ZodObject<{
|
|
240
240
|
name: z.ZodString;
|
|
241
241
|
match: z.ZodArray<z.ZodString, "many">;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
match: string[];
|
|
244
243
|
name: string;
|
|
245
|
-
}, {
|
|
246
244
|
match: string[];
|
|
245
|
+
}, {
|
|
247
246
|
name: string;
|
|
247
|
+
match: string[];
|
|
248
248
|
}>, "many">;
|
|
249
249
|
ignore: z.ZodArray<z.ZodString, "many">;
|
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
251
|
tags: {
|
|
252
|
-
match: string[];
|
|
253
252
|
name: string;
|
|
253
|
+
match: string[];
|
|
254
254
|
}[];
|
|
255
255
|
ignore: string[];
|
|
256
256
|
}, {
|
|
257
257
|
tags: {
|
|
258
|
-
match: string[];
|
|
259
258
|
name: string;
|
|
259
|
+
match: string[];
|
|
260
260
|
}[];
|
|
261
261
|
ignore: string[];
|
|
262
262
|
}>;
|
|
@@ -545,8 +545,8 @@ declare const upsert_pipeline_run: z.ZodObject<{
|
|
|
545
545
|
template: string;
|
|
546
546
|
}>;
|
|
547
547
|
id?: string | null | undefined;
|
|
548
|
-
kind?: "deploy" | "rollback" | undefined;
|
|
549
548
|
status?: "queued" | "deploying" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
|
|
549
|
+
kind?: "deploy" | "rollback" | undefined;
|
|
550
550
|
finished_at?: string | null | undefined;
|
|
551
551
|
current_stage?: string | null | undefined;
|
|
552
552
|
forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
|
|
@@ -575,8 +575,8 @@ declare const upsert_pipeline_run: z.ZodObject<{
|
|
|
575
575
|
template: string;
|
|
576
576
|
}>;
|
|
577
577
|
id?: string | null | undefined;
|
|
578
|
-
kind?: "deploy" | "rollback" | undefined;
|
|
579
578
|
status?: "queued" | "deploying" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
|
|
579
|
+
kind?: "deploy" | "rollback" | undefined;
|
|
580
580
|
finished_at?: string | null | undefined;
|
|
581
581
|
current_stage?: string | null | undefined;
|
|
582
582
|
forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
|
|
@@ -930,21 +930,21 @@ type UpsertGoal = z.infer<typeof upsert_goal>;
|
|
|
930
930
|
type UpdateAction = z.infer<typeof update_action>;
|
|
931
931
|
type ProjectConfig = z.infer<typeof project_config>;
|
|
932
932
|
type SaveConfigRequest = z.infer<typeof save_config_request>;
|
|
933
|
-
|
|
933
|
+
type TaskWithDetails = {
|
|
934
934
|
task: Task;
|
|
935
935
|
codebase_tasks: CodebaseTask | null;
|
|
936
936
|
tags: string[];
|
|
937
|
-
}
|
|
938
|
-
|
|
937
|
+
};
|
|
938
|
+
type ProjectWithTasks = {
|
|
939
939
|
project: Project;
|
|
940
940
|
tasks: TaskWithDetails[];
|
|
941
|
-
}
|
|
942
|
-
|
|
941
|
+
};
|
|
942
|
+
type TagWithColor = {
|
|
943
943
|
id: string;
|
|
944
944
|
title: string;
|
|
945
945
|
color: string | null;
|
|
946
946
|
count?: number;
|
|
947
|
-
}
|
|
947
|
+
};
|
|
948
948
|
type GetConfigResult = {
|
|
949
949
|
config: ProjectConfig;
|
|
950
950
|
scan_branch: string;
|
|
@@ -1019,7 +1019,7 @@ type ScanStatus = "PENDING" | "ACCEPTED" | "REJECTED" | "IGNORED";
|
|
|
1019
1019
|
type HistoryAction = Omit<Action, "updated_at" | "owner_id" | "type"> & {
|
|
1020
1020
|
type: ActionType | "SCAN";
|
|
1021
1021
|
};
|
|
1022
|
-
|
|
1022
|
+
type UpdateData = {
|
|
1023
1023
|
id: string;
|
|
1024
1024
|
tag: string;
|
|
1025
1025
|
type: "SAME" | "UPDATE" | "DELETE" | "NEW" | "MOVE";
|
|
@@ -1038,7 +1038,7 @@ interface UpdateData {
|
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
1040
|
task?: TaskWithDetails;
|
|
1041
|
-
}
|
|
1041
|
+
};
|
|
1042
1042
|
type UpdateUser = z.infer<typeof update_user>;
|
|
1043
1043
|
type ConfigSchemaType = z.infer<typeof config_schema>;
|
|
1044
1044
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/api",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
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.2.
|
|
71
|
+
"@devpad/schema": "^2.2.14",
|
|
72
72
|
"@types/node": "^20.11.24",
|
|
73
73
|
"bun-types": "latest",
|
|
74
74
|
"tsup": "^8.0.0",
|
|
@@ -274,19 +274,19 @@ declare const IntegrationSchema: z.ZodObject<{
|
|
|
274
274
|
created_at: z.ZodDate;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
276
|
id: number;
|
|
277
|
+
status: string | null;
|
|
277
278
|
data: Record<string, unknown> | null;
|
|
278
279
|
user_id: string;
|
|
279
280
|
created_at: Date;
|
|
280
|
-
status: string | null;
|
|
281
281
|
source: string;
|
|
282
282
|
location: string;
|
|
283
283
|
last_fetch: Date | null;
|
|
284
284
|
}, {
|
|
285
285
|
id: number;
|
|
286
|
+
status: string | null;
|
|
286
287
|
data: Record<string, unknown> | null;
|
|
287
288
|
user_id: string;
|
|
288
289
|
created_at: Date;
|
|
289
|
-
status: string | null;
|
|
290
290
|
source: string;
|
|
291
291
|
location: string;
|
|
292
292
|
last_fetch: Date | null;
|
|
@@ -306,18 +306,18 @@ declare const IntegrationInsertSchema: z.ZodObject<{
|
|
|
306
306
|
source: string;
|
|
307
307
|
location: string;
|
|
308
308
|
id?: number | undefined;
|
|
309
|
+
status?: string | null | undefined;
|
|
309
310
|
data?: Record<string, unknown> | null | undefined;
|
|
310
311
|
created_at?: Date | undefined;
|
|
311
|
-
status?: string | null | undefined;
|
|
312
312
|
last_fetch?: Date | null | undefined;
|
|
313
313
|
}, {
|
|
314
314
|
user_id: string;
|
|
315
315
|
source: string;
|
|
316
316
|
location: string;
|
|
317
317
|
id?: number | undefined;
|
|
318
|
+
status?: string | null | undefined;
|
|
318
319
|
data?: Record<string, unknown> | null | undefined;
|
|
319
320
|
created_at?: Date | undefined;
|
|
320
|
-
status?: string | null | undefined;
|
|
321
321
|
last_fetch?: Date | null | undefined;
|
|
322
322
|
}>;
|
|
323
323
|
type IntegrationInsert = z.infer<typeof IntegrationInsertSchema>;
|
|
@@ -494,9 +494,9 @@ declare const PostListParamsSchema: z.ZodObject<{
|
|
|
494
494
|
tag?: string | undefined;
|
|
495
495
|
category?: string | undefined;
|
|
496
496
|
}, {
|
|
497
|
-
project?: string | undefined;
|
|
498
497
|
status?: "all" | "published" | "scheduled" | "draft" | undefined;
|
|
499
498
|
sort?: "published" | "created" | "updated" | undefined;
|
|
499
|
+
project?: string | undefined;
|
|
500
500
|
tag?: string | undefined;
|
|
501
501
|
category?: string | undefined;
|
|
502
502
|
archived?: boolean | undefined;
|