@kahitsan/plugin-sdk 0.7.3 → 0.8.0
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 +40 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/shell/_build/.vite/manifest.json +20 -19
- package/shell/_build/.vite/manifest.json.br +0 -0
- package/shell/_build/.vite/manifest.json.gz +0 -0
- package/shell/_build/assets/{_...slug_-BcdF4l5Z.js → _...slug_-B4-_ue16.js} +1 -1
- package/shell/_build/assets/_...slug_-B4-_ue16.js.br +0 -0
- package/shell/_build/assets/_...slug_-B4-_ue16.js.gz +0 -0
- package/shell/_build/assets/auth-Cej23JxT.js +72 -0
- package/shell/_build/assets/auth-Cej23JxT.js.br +0 -0
- package/shell/_build/assets/auth-Cej23JxT.js.gz +0 -0
- package/shell/_build/assets/client-BC2r94zJ.js +2 -0
- package/shell/_build/assets/client-BC2r94zJ.js.br +0 -0
- package/shell/_build/assets/client-BC2r94zJ.js.gz +0 -0
- package/shell/_build/assets/client-DHSje8fl.css +1 -0
- package/shell/_build/assets/client-DHSje8fl.css.br +0 -0
- package/shell/_build/assets/client-DHSje8fl.css.gz +0 -0
- package/shell/_build/assets/{index-CwObwzl5.js → index-CHZcwpj8.js} +1 -1
- package/shell/_build/assets/plugin-ui-CpJUaqcE.js +10 -0
- package/shell/_build/assets/plugin-ui-CpJUaqcE.js.br +0 -0
- package/shell/_build/assets/plugin-ui-CpJUaqcE.js.gz +0 -0
- package/shell/_build/assets/workspace-nav-aH0jw7aW.js +1 -0
- package/shell/_build/assets/workspace-nav-aH0jw7aW.js.br +0 -0
- package/shell/_build/assets/workspace-nav-aH0jw7aW.js.gz +0 -0
- package/shell/_server/assets/app-DHSje8fl.css +1 -0
- package/shell/_server/assets/app-DHSje8fl.css.br +0 -0
- package/shell/_server/assets/app-DHSje8fl.css.gz +0 -0
- package/shell/index.html +1 -1
- package/shell/index.html.br +0 -0
- package/shell/index.html.gz +0 -0
- package/shell/_build/assets/_...slug_-BcdF4l5Z.js.br +0 -0
- package/shell/_build/assets/_...slug_-BcdF4l5Z.js.gz +0 -0
- package/shell/_build/assets/auth-DnjIzX2B.js +0 -70
- package/shell/_build/assets/auth-DnjIzX2B.js.br +0 -0
- package/shell/_build/assets/auth-DnjIzX2B.js.gz +0 -0
- package/shell/_build/assets/client-BmadCoeU.css +0 -1
- package/shell/_build/assets/client-BmadCoeU.css.br +0 -0
- package/shell/_build/assets/client-BmadCoeU.css.gz +0 -0
- package/shell/_build/assets/client-StEn6jq1.js +0 -2
- package/shell/_build/assets/client-StEn6jq1.js.br +0 -0
- package/shell/_build/assets/client-StEn6jq1.js.gz +0 -0
- package/shell/_build/assets/plugin-ui-CBTroTyb.js +0 -10
- package/shell/_build/assets/plugin-ui-CBTroTyb.js.br +0 -0
- package/shell/_build/assets/plugin-ui-CBTroTyb.js.gz +0 -0
- package/shell/_build/assets/workspace-nav-fkYL3-AV.js +0 -1
- package/shell/_build/assets/workspace-nav-fkYL3-AV.js.br +0 -0
- package/shell/_build/assets/workspace-nav-fkYL3-AV.js.gz +0 -0
- package/shell/_server/assets/app-BmadCoeU.css +0 -1
- package/shell/_server/assets/app-BmadCoeU.css.br +0 -0
- package/shell/_server/assets/app-BmadCoeU.css.gz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -706,6 +706,44 @@ interface PluginServerHandle {
|
|
|
706
706
|
ctx?: PluginServerContext;
|
|
707
707
|
}
|
|
708
708
|
declare function createPluginServer(opts: CreatePluginServerOptions): Promise<PluginServerHandle>;
|
|
709
|
+
type PluginEmailField = {
|
|
710
|
+
label: string;
|
|
711
|
+
value: string;
|
|
712
|
+
};
|
|
713
|
+
type PluginEmailItem = {
|
|
714
|
+
name: string;
|
|
715
|
+
status: string;
|
|
716
|
+
detail?: string;
|
|
717
|
+
};
|
|
718
|
+
type PluginEmailData = {
|
|
719
|
+
project: string;
|
|
720
|
+
title: string;
|
|
721
|
+
summary?: string;
|
|
722
|
+
fields?: PluginEmailField[];
|
|
723
|
+
url?: string;
|
|
724
|
+
urlLabel?: string;
|
|
725
|
+
items?: PluginEmailItem[];
|
|
726
|
+
footer?: string;
|
|
727
|
+
brandName?: string;
|
|
728
|
+
logoUrl?: string;
|
|
729
|
+
footerLinks?: {
|
|
730
|
+
label: string;
|
|
731
|
+
url: string;
|
|
732
|
+
}[];
|
|
733
|
+
footerAddress?: string;
|
|
734
|
+
};
|
|
735
|
+
type PluginEmailMessage = {
|
|
736
|
+
to: string | string[];
|
|
737
|
+
template: "report";
|
|
738
|
+
data: PluginEmailData;
|
|
739
|
+
};
|
|
740
|
+
type PluginEmailResult = {
|
|
741
|
+
ok: boolean;
|
|
742
|
+
messageId?: string;
|
|
743
|
+
source?: "workspace" | "system";
|
|
744
|
+
error?: string;
|
|
745
|
+
};
|
|
746
|
+
declare function sendEmail(rpc: PluginRpc, message: PluginEmailMessage): Promise<PluginEmailResult>;
|
|
709
747
|
interface WsReceiverOptions {
|
|
710
748
|
httpPort: number;
|
|
711
749
|
secret: string;
|
|
@@ -806,5 +844,5 @@ interface ResourceFlows {
|
|
|
806
844
|
readonly all: readonly ExecFlow[];
|
|
807
845
|
}
|
|
808
846
|
declare function resourceFlows(cfg: ResourceFlowsConfig): ResourceFlows;
|
|
809
|
-
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, isWorkspaceElevated, loadMigrations, makeDataSurface, makeDatabaseService, migration, mountPluginServices, mountWsReceiver, node, parseIdentity, quoteIdent, readIdentity, requireAuth, requirePermission, requireWorkspace, resolveEngine, resourceFlows, resourceMigrations, rollbackMigration, runFlow, runMigrationList, runMigrations, runWithTenantContext, s3DeleteObject, s3Enabled, s3GetObject, s3KeyFromUrl, s3PresignUrl, s3PublicUrl, s3PutObject, searchFragment, statusFilter, tenant, tryCallPlugin, verifyIdentity, withTenantContext };
|
|
810
|
-
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, ResourceFlows, ResourceFlowsConfig, ResourceIndex, ResourceListSpec, ResourcePagination, ResourceRouterDeps, ResourceSearch, ResourceService, ResourceSoftDelete, ResourceSort, ResourceSpec, ResourceUpdateSpec, RunMigrationsOptions, SchemaDef, SqlFragment, StringOpts, TableDef, TenantContext, TenantDb, WhereOpts, WorkspaceDTO, WsReceiverOptions };
|
|
847
|
+
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, isWorkspaceElevated, loadMigrations, makeDataSurface, makeDatabaseService, migration, mountPluginServices, mountWsReceiver, node, parseIdentity, quoteIdent, readIdentity, requireAuth, requirePermission, requireWorkspace, resolveEngine, resourceFlows, resourceMigrations, rollbackMigration, runFlow, runMigrationList, runMigrations, runWithTenantContext, s3DeleteObject, s3Enabled, s3GetObject, s3KeyFromUrl, s3PresignUrl, s3PublicUrl, s3PutObject, searchFragment, sendEmail, statusFilter, tenant, tryCallPlugin, verifyIdentity, withTenantContext };
|
|
848
|
+
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, PluginEmailData, PluginEmailField, PluginEmailItem, PluginEmailMessage, PluginEmailResult, PluginEvents, PluginInitInput, PluginInitOutput, PluginKernel, PluginManifest, PluginPeer, PluginRouterFactory, PluginRpc, PluginServerContext, PluginServerHandle, PluginServicesFactory, PluginSettings, PresignedAsset, ResourceColumns, ResourceCreateSpec, ResourceField, ResourceFields, ResourceFilter, ResourceFlows, ResourceFlowsConfig, ResourceIndex, ResourceListSpec, ResourcePagination, ResourceRouterDeps, ResourceSearch, ResourceService, ResourceSoftDelete, ResourceSort, ResourceSpec, ResourceUpdateSpec, RunMigrationsOptions, SchemaDef, SqlFragment, StringOpts, TableDef, TenantContext, TenantDb, WhereOpts, WorkspaceDTO, WsReceiverOptions };
|