@kahitsan/plugin-sdk 0.4.3-staging.25 → 0.4.4
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 +1 -13
- package/dist/index.js +1 -1
- package/package.json +1 -5
- package/dist/test.d.ts +0 -32
- package/dist/test.js +0 -121
package/dist/index.d.ts
CHANGED
|
@@ -592,18 +592,6 @@ type ServiceHandler = (args: unknown, ctx: {
|
|
|
592
592
|
declare function mountPluginServices(app: Hono, handlers: Record<string, ServiceHandler>, opts: {
|
|
593
593
|
parseIdentity: MiddlewareHandler;
|
|
594
594
|
}): void;
|
|
595
|
-
declare function s3Enabled(): boolean;
|
|
596
|
-
declare function s3PublicUrl(key: string): string;
|
|
597
|
-
declare function s3KeyFromUrl(s3Link: string | null | undefined): string | null;
|
|
598
|
-
declare function s3PutObject(key: string, body: Buffer, contentType: string, opts?: {
|
|
599
|
-
acl?: "public-read" | "private";
|
|
600
|
-
}): Promise<void>;
|
|
601
|
-
declare function s3GetObject(key: string): Promise<{
|
|
602
|
-
body: Buffer;
|
|
603
|
-
contentType: string | null;
|
|
604
|
-
}>;
|
|
605
|
-
declare function s3DeleteObject(key: string): Promise<void>;
|
|
606
|
-
declare function s3PresignUrl(key: string, expirySeconds?: number): string;
|
|
607
595
|
interface PluginSettings {
|
|
608
596
|
get<T = unknown>(key: string): Promise<T | undefined>;
|
|
609
597
|
all(): Promise<Record<string, unknown>>;
|
|
@@ -792,5 +780,5 @@ type ExecFlow = Omit<FlowDefinition, "nodes"> & {
|
|
|
792
780
|
nodes: ExecNode[];
|
|
793
781
|
};
|
|
794
782
|
declare function runFlow(flow: ExecFlow, startId: string, ctx: FlowContext): Promise<void>;
|
|
795
|
-
export { FlowSteps, IDENTITY_HEADER, INTERNAL_SECRET_HEADER, MIGRATION_ADVISORY_LOCK_KEY, MigrationBuilder, PROTOCOL_VERSION, PluginUnavailableError, Types, applyTenantContext, asyncHandler, buildFlow, buildResourceRouter, buildResourceServices, callPlugin, checkInternalSecret, checkProtocol, compileCreateTable, composeWhere, createPlugin, createPluginServer, defineFlow, defineJob, defineResource, defineSchema, edge, escapeLike, identityHeaderOf, indexExpr, loadMigrations, makeDataSurface, makeDatabaseService, migration, mountPluginServices, mountWsReceiver, node, parseIdentity, quoteIdent, readIdentity, requireAuth, requirePermission, requireWorkspace, resolveEngine, resourceMigrations, rollbackMigration, runFlow, runMigrationList, runMigrations, runWithTenantContext,
|
|
783
|
+
export { FlowSteps, IDENTITY_HEADER, INTERNAL_SECRET_HEADER, MIGRATION_ADVISORY_LOCK_KEY, MigrationBuilder, PROTOCOL_VERSION, PluginUnavailableError, Types, applyTenantContext, asyncHandler, buildFlow, buildResourceRouter, buildResourceServices, callPlugin, checkInternalSecret, checkProtocol, compileCreateTable, composeWhere, createPlugin, createPluginServer, defineFlow, defineJob, defineResource, defineSchema, edge, escapeLike, identityHeaderOf, indexExpr, loadMigrations, makeDataSurface, makeDatabaseService, migration, mountPluginServices, mountWsReceiver, node, parseIdentity, quoteIdent, readIdentity, requireAuth, requirePermission, requireWorkspace, resolveEngine, resourceMigrations, rollbackMigration, runFlow, runMigrationList, runMigrations, runWithTenantContext, searchFragment, statusFilter, tenant, tryCallPlugin, verifyIdentity, withTenantContext };
|
|
796
784
|
export type { AdditionalMount, AuthProvider, AuthProviderDecl, AuthService, AuthenticatedUser, BackfillOpts, ColumnDef, ColumnDefault, ColumnKind, ColumnOpts, CompileTableOpts, CoreServices, CreatePluginServerOptions, DataSurface, DecimalOpts, DefinedResource, Engine, EscapeHatch, ExecFlow, ExecNode, FindOpts, FlowContext, FlowDefinition, FlowNode, FlowNodeDef, FlowNodeKind, FlowPort, ForwardedIdentity, Identity, IndexMember, IndexOpts, Logger, MemberDTO, Migration, MigrationContext, MigrationOpts, NodeExec, PermissionsService, PluginAsset, PluginAssets, PluginContext, PluginDb, PluginDefinition, PluginEvents, PluginInitInput, PluginInitOutput, PluginKernel, PluginManifest, PluginPeer, PluginRouterFactory, PluginRpc, PluginServerContext, PluginServerHandle, PluginServicesFactory, PluginSettings, PresignedAsset, ResourceColumns, ResourceCreateSpec, ResourceField, ResourceFields, ResourceFilter, ResourceIndex, ResourceListSpec, ResourcePagination, ResourceRouterDeps, ResourceSearch, ResourceService, ResourceSoftDelete, ResourceSort, ResourceSpec, ResourceUpdateSpec, RunMigrationsOptions, SchemaDef, SqlFragment, StringOpts, TableDef, TenantContext, TenantDb, WhereOpts, WorkspaceDTO, WsReceiverOptions };
|