@elevasis/sdk 1.28.1 → 1.30.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/cli.cjs +1611 -595
- package/dist/index.d.ts +105 -1
- package/dist/index.js +30 -25
- package/dist/node/index.d.ts +84 -1
- package/dist/test-utils/index.d.ts +102 -1
- package/dist/test-utils/index.js +242 -23
- package/dist/worker/index.js +1 -0
- package/package.json +4 -4
- package/reference/_navigation.md +4 -4
- package/reference/_reference-manifest.json +8 -8
- package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +3 -3
- package/reference/claude-config/rules/topbar-actions.md +70 -0
- package/reference/claude-config/skills/om/SKILL.md +18 -1
- package/reference/claude-config/skills/tutorial/technical.md +5 -5
- package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
- package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +45 -45
- package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +52 -52
- package/reference/claude-config/sync-notes/2026-05-17-sdk-boundary-consolidation.md +33 -33
- package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +32 -32
- package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +43 -43
- package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +40 -40
- package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +61 -61
- package/reference/claude-config/sync-notes/2026-05-23-branding-names-to-identity.md +49 -49
- package/reference/claude-config/sync-notes/2026-05-23-lead-gen-manage-access.md +31 -31
- package/reference/claude-config/sync-notes/2026-05-23-om-deployment-drift-detection.md +42 -42
- package/reference/claude-config/sync-notes/2026-05-23-om-full-model-deploy-contract.md +33 -33
- package/reference/claude-config/sync-notes/2026-05-23-ui-sdk-package-fixes.md +37 -37
- package/reference/claude-config/sync-notes/2026-05-24-platform-invite-router-core-baseline.md +28 -0
- package/reference/claude-config/sync-notes/2026-05-24-system-interface-readiness.md +43 -43
- package/reference/claude-config/sync-notes/2026-05-25-invitation-login-loader.md +26 -0
- package/reference/claude-config/sync-notes/2026-05-25-om-topbar-requests.md +33 -0
- package/reference/claude-config/sync-notes/2026-05-25-system-interface-profile-registry-and-substrate.md +35 -0
- package/reference/claude-config/sync-notes/2026-05-25-tenant-om-scaffold-cli.md +49 -0
- package/reference/claude-config/sync-notes/2026-05-25-vibe-operate-intent.md +47 -0
- package/reference/core/exports.mdx +16 -0
- package/reference/core/index.mdx +58 -0
- package/reference/examples/organization-model.ts +18 -0
- package/reference/index.mdx +36 -67
- package/reference/rules/organization-model.md +4 -1
- package/reference/rules/organization-os.md +7 -1
- package/reference/rules/ui.md +207 -207
- package/reference/rules/vibe.md +52 -18
- package/reference/scaffold/index.mdx +9 -7
- package/reference/scaffold/operations/propagation-pipeline.md +152 -152
- package/reference/scaffold/operations/scaffold-maintenance.md +14 -4
- package/reference/scaffold/reference/contracts.md +423 -338
- package/reference/scaffold/reference/glossary.md +14 -2
- package/reference/scaffold/reference/system-interface-capabilities.md +50 -0
- package/reference/{cli-management.mdx → sdk/cli-management.mdx} +159 -13
- package/reference/{cli.mdx → sdk/cli.mdx} +68 -12
- package/reference/sdk/exports.mdx +14 -0
- package/reference/sdk/index.mdx +93 -0
- package/reference/sdk/platform-tools/adapters-integration.mdx +25 -0
- package/reference/sdk/platform-tools/adapters-platform.mdx +24 -0
- package/reference/{platform-tools → sdk/platform-tools}/index.mdx +9 -30
- package/reference/{resources → sdk/resources}/patterns.mdx +29 -11
- package/reference/ui/exports.mdx +60 -0
- package/reference/ui/index.mdx +75 -0
- package/reference/platform-tools/adapters-integration.mdx +0 -300
- package/reference/platform-tools/adapters-platform.mdx +0 -552
- /package/reference/claude-config/skills/deploy/{skill.md → SKILL.md} +0 -0
- /package/reference/{concepts.mdx → sdk/concepts.mdx} +0 -0
- /package/reference/{deployment → sdk/deployment}/command-center.mdx +0 -0
- /package/reference/{deployment → sdk/deployment}/execution-reference.mdx +0 -0
- /package/reference/{deployment → sdk/deployment}/index.mdx +0 -0
- /package/reference/{framework → sdk/framework}/agent.mdx +0 -0
- /package/reference/{framework → sdk/framework}/index.mdx +0 -0
- /package/reference/{framework → sdk/framework}/interaction-guidance.mdx +0 -0
- /package/reference/{framework → sdk/framework}/memory.mdx +0 -0
- /package/reference/{framework → sdk/framework}/project-structure.mdx +0 -0
- /package/reference/{framework → sdk/framework}/resource-documentation.mdx +0 -0
- /package/reference/{framework → sdk/framework}/tutorial-system.mdx +0 -0
- /package/reference/{getting-started.mdx → sdk/getting-started.mdx} +0 -0
- /package/reference/{platform-tools → sdk/platform-tools}/type-safety.mdx +0 -0
- /package/reference/{resources → sdk/resources}/index.mdx +0 -0
- /package/reference/{resources → sdk/resources}/types.mdx +0 -0
- /package/reference/{roadmap.mdx → sdk/roadmap.mdx} +0 -0
- /package/reference/{runtime.mdx → sdk/runtime.mdx} +0 -0
- /package/reference/{templates → sdk/templates}/data-enrichment.mdx +0 -0
- /package/reference/{templates → sdk/templates}/email-sender.mdx +0 -0
- /package/reference/{templates → sdk/templates}/index.mdx +0 -0
- /package/reference/{templates → sdk/templates}/lead-scorer.mdx +0 -0
- /package/reference/{templates → sdk/templates}/pdf-generator.mdx +0 -0
- /package/reference/{templates → sdk/templates}/recurring-job.mdx +0 -0
- /package/reference/{templates → sdk/templates}/text-classifier.mdx +0 -0
- /package/reference/{templates → sdk/templates}/web-scraper.mdx +0 -0
- /package/reference/{troubleshooting.mdx → sdk/troubleshooting.mdx} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -4546,6 +4546,17 @@ type Database = {
|
|
|
4546
4546
|
Args: never;
|
|
4547
4547
|
Returns: undefined;
|
|
4548
4548
|
};
|
|
4549
|
+
repair_membership_role_assignments: {
|
|
4550
|
+
Args: never;
|
|
4551
|
+
Returns: {
|
|
4552
|
+
membership_id: string;
|
|
4553
|
+
organization_id: string;
|
|
4554
|
+
repaired: boolean;
|
|
4555
|
+
role_id: string;
|
|
4556
|
+
role_slug: string;
|
|
4557
|
+
user_id: string;
|
|
4558
|
+
}[];
|
|
4559
|
+
};
|
|
4549
4560
|
sync_all_memberships_with_role: {
|
|
4550
4561
|
Args: {
|
|
4551
4562
|
p_role_id: string;
|
|
@@ -4558,6 +4569,13 @@ type Database = {
|
|
|
4558
4569
|
};
|
|
4559
4570
|
Returns: undefined;
|
|
4560
4571
|
};
|
|
4572
|
+
update_membership_role_assignment: {
|
|
4573
|
+
Args: {
|
|
4574
|
+
p_role_slug: string;
|
|
4575
|
+
p_workos_membership_id: string;
|
|
4576
|
+
};
|
|
4577
|
+
Returns: string;
|
|
4578
|
+
};
|
|
4561
4579
|
upsert_user_profile: {
|
|
4562
4580
|
Args: never;
|
|
4563
4581
|
Returns: {
|
|
@@ -4657,6 +4675,7 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
|
4657
4675
|
edit: "edit";
|
|
4658
4676
|
view: "view";
|
|
4659
4677
|
launch: "launch";
|
|
4678
|
+
"message-plus": "message-plus";
|
|
4660
4679
|
escalate: "escalate";
|
|
4661
4680
|
promote: "promote";
|
|
4662
4681
|
submit: "submit";
|
|
@@ -4794,6 +4813,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4794
4813
|
edit: "edit";
|
|
4795
4814
|
view: "view";
|
|
4796
4815
|
launch: "launch";
|
|
4816
|
+
"message-plus": "message-plus";
|
|
4797
4817
|
escalate: "escalate";
|
|
4798
4818
|
promote: "promote";
|
|
4799
4819
|
submit: "submit";
|
|
@@ -4861,6 +4881,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4861
4881
|
edit: "edit";
|
|
4862
4882
|
view: "view";
|
|
4863
4883
|
launch: "launch";
|
|
4884
|
+
"message-plus": "message-plus";
|
|
4864
4885
|
escalate: "escalate";
|
|
4865
4886
|
promote: "promote";
|
|
4866
4887
|
submit: "submit";
|
|
@@ -6664,7 +6685,11 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
|
6664
6685
|
archived: "archived";
|
|
6665
6686
|
disabled: "disabled";
|
|
6666
6687
|
}>>;
|
|
6667
|
-
readinessProfile: z.ZodOptional<z.
|
|
6688
|
+
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
6689
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
6690
|
+
"sales.crm.api": "sales.crm.api";
|
|
6691
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
6692
|
+
}>>;
|
|
6668
6693
|
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6669
6694
|
}, z.core.$strict>;
|
|
6670
6695
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -6964,6 +6989,84 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6964
6989
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
6965
6990
|
bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
6966
6991
|
}, z.core.$strip>>;
|
|
6992
|
+
topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6993
|
+
id: z.ZodString;
|
|
6994
|
+
label: z.ZodString;
|
|
6995
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
6996
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
6997
|
+
message: "message";
|
|
6998
|
+
error: "error";
|
|
6999
|
+
agent: "agent";
|
|
7000
|
+
workflow: "workflow";
|
|
7001
|
+
"google-sheets": "google-sheets";
|
|
7002
|
+
dashboard: "dashboard";
|
|
7003
|
+
calendar: "calendar";
|
|
7004
|
+
sales: "sales";
|
|
7005
|
+
crm: "crm";
|
|
7006
|
+
"lead-gen": "lead-gen";
|
|
7007
|
+
projects: "projects";
|
|
7008
|
+
clients: "clients";
|
|
7009
|
+
operations: "operations";
|
|
7010
|
+
monitoring: "monitoring";
|
|
7011
|
+
knowledge: "knowledge";
|
|
7012
|
+
settings: "settings";
|
|
7013
|
+
admin: "admin";
|
|
7014
|
+
archive: "archive";
|
|
7015
|
+
business: "business";
|
|
7016
|
+
finance: "finance";
|
|
7017
|
+
platform: "platform";
|
|
7018
|
+
seo: "seo";
|
|
7019
|
+
playbook: "playbook";
|
|
7020
|
+
strategy: "strategy";
|
|
7021
|
+
reference: "reference";
|
|
7022
|
+
integration: "integration";
|
|
7023
|
+
database: "database";
|
|
7024
|
+
user: "user";
|
|
7025
|
+
team: "team";
|
|
7026
|
+
gmail: "gmail";
|
|
7027
|
+
attio: "attio";
|
|
7028
|
+
overview: "overview";
|
|
7029
|
+
"command-view": "command-view";
|
|
7030
|
+
"command-queue": "command-queue";
|
|
7031
|
+
pipeline: "pipeline";
|
|
7032
|
+
lists: "lists";
|
|
7033
|
+
resources: "resources";
|
|
7034
|
+
approve: "approve";
|
|
7035
|
+
reject: "reject";
|
|
7036
|
+
retry: "retry";
|
|
7037
|
+
edit: "edit";
|
|
7038
|
+
view: "view";
|
|
7039
|
+
launch: "launch";
|
|
7040
|
+
"message-plus": "message-plus";
|
|
7041
|
+
escalate: "escalate";
|
|
7042
|
+
promote: "promote";
|
|
7043
|
+
submit: "submit";
|
|
7044
|
+
email: "email";
|
|
7045
|
+
success: "success";
|
|
7046
|
+
warning: "warning";
|
|
7047
|
+
info: "info";
|
|
7048
|
+
pending: "pending";
|
|
7049
|
+
bolt: "bolt";
|
|
7050
|
+
building: "building";
|
|
7051
|
+
briefcase: "briefcase";
|
|
7052
|
+
apps: "apps";
|
|
7053
|
+
graph: "graph";
|
|
7054
|
+
shield: "shield";
|
|
7055
|
+
users: "users";
|
|
7056
|
+
"chart-bar": "chart-bar";
|
|
7057
|
+
search: "search";
|
|
7058
|
+
}>, z.ZodString]>>;
|
|
7059
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
7060
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7061
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7062
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
7063
|
+
targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
7064
|
+
systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7065
|
+
entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7066
|
+
resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7067
|
+
actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
7068
|
+
}, z.core.$strip>>>;
|
|
7069
|
+
}, z.core.$strip>>>;
|
|
6967
7070
|
}, z.core.$strip>>;
|
|
6968
7071
|
identity: z.ZodDefault<z.ZodObject<{
|
|
6969
7072
|
mission: z.ZodDefault<z.ZodString>;
|
|
@@ -7632,6 +7735,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7632
7735
|
edit: "edit";
|
|
7633
7736
|
view: "view";
|
|
7634
7737
|
launch: "launch";
|
|
7738
|
+
"message-plus": "message-plus";
|
|
7635
7739
|
escalate: "escalate";
|
|
7636
7740
|
promote: "promote";
|
|
7637
7741
|
submit: "submit";
|
package/dist/index.js
CHANGED
|
@@ -421,6 +421,7 @@ var ORGANIZATION_MODEL_ICON_TOKENS = [
|
|
|
421
421
|
"view",
|
|
422
422
|
"launch",
|
|
423
423
|
"message",
|
|
424
|
+
"message-plus",
|
|
424
425
|
"escalate",
|
|
425
426
|
"promote",
|
|
426
427
|
"submit",
|
|
@@ -600,10 +601,27 @@ var SystemUiSchema = z.object({
|
|
|
600
601
|
});
|
|
601
602
|
var SystemInterfaceKeySchema = ModelIdSchema;
|
|
602
603
|
var SystemInterfaceLifecycleSchema = z.enum(["draft", "active", "disabled", "deprecated", "archived"]).meta({ label: "System interface lifecycle", color: "teal" });
|
|
603
|
-
var
|
|
604
|
-
|
|
605
|
-
|
|
604
|
+
var SYSTEM_INTERFACE_PROFILES = [
|
|
605
|
+
{
|
|
606
|
+
systemPath: "sales.lead-gen",
|
|
607
|
+
interfaceKey: "api",
|
|
608
|
+
readinessProfile: "sales.lead-gen.api"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
systemPath: "sales.crm",
|
|
612
|
+
interfaceKey: "api",
|
|
613
|
+
readinessProfile: "sales.crm.api"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
systemPath: "sales.lead-gen",
|
|
617
|
+
interfaceKey: "crm-handoff",
|
|
618
|
+
readinessProfile: "sales.lead-gen.crm-handoff"
|
|
619
|
+
}
|
|
620
|
+
];
|
|
621
|
+
var SYSTEM_INTERFACE_READINESS_PROFILES = SYSTEM_INTERFACE_PROFILES.map(
|
|
622
|
+
(profile) => profile.readinessProfile
|
|
606
623
|
);
|
|
624
|
+
var SystemInterfaceReadinessProfileSchema = z.enum(SYSTEM_INTERFACE_READINESS_PROFILES);
|
|
607
625
|
var SystemInterfaceResourceScopeSchema = z.array(ModelIdSchema).default([]);
|
|
608
626
|
var SystemApiInterfaceSchema = z.object({
|
|
609
627
|
lifecycle: SystemInterfaceLifecycleSchema.default("active"),
|
|
@@ -1575,23 +1593,12 @@ function validateModelConfig(config) {
|
|
|
1575
1593
|
}
|
|
1576
1594
|
|
|
1577
1595
|
// ../core/src/business/acquisition/ontology-validation.ts
|
|
1578
|
-
var LEAD_GEN_API_INTERFACE =
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
readinessProfile: "sales.lead-gen.api"
|
|
1582
|
-
};
|
|
1583
|
-
var CRM_API_INTERFACE = {
|
|
1584
|
-
systemPath: "sales.crm",
|
|
1585
|
-
interfaceKey: "api",
|
|
1586
|
-
readinessProfile: "sales.crm.api"
|
|
1587
|
-
};
|
|
1588
|
-
var LEAD_GEN_CRM_HANDOFF_INTERFACE = {
|
|
1589
|
-
systemPath: "sales.lead-gen",
|
|
1590
|
-
interfaceKey: "crm-handoff",
|
|
1591
|
-
readinessProfile: "sales.lead-gen.crm-handoff"
|
|
1592
|
-
};
|
|
1596
|
+
var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
|
|
1597
|
+
var CRM_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[1];
|
|
1598
|
+
var LEAD_GEN_CRM_HANDOFF_INTERFACE = SYSTEM_INTERFACE_PROFILES[2];
|
|
1593
1599
|
var LEAD_GEN_API_READINESS_LABEL = LEAD_GEN_API_INTERFACE.readinessProfile;
|
|
1594
1600
|
var CRM_API_READINESS_LABEL = CRM_API_INTERFACE.readinessProfile;
|
|
1601
|
+
LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile;
|
|
1595
1602
|
var LEAD_GEN_LIST_OBJECT_ONTOLOGY_ID = formatOntologyId({
|
|
1596
1603
|
scope: "sales.lead-gen",
|
|
1597
1604
|
kind: "object",
|
|
@@ -1692,6 +1699,9 @@ function formatInterfaceReadinessFailure(result) {
|
|
|
1692
1699
|
const issueSummary = result.issues.map((issue) => `${issue.family}:${issue.code}: ${issue.message}`).join("; ");
|
|
1693
1700
|
return `${identity} readiness failed${result.readinessProfile ? ` (${result.readinessProfile})` : ""}: ${issueSummary}`;
|
|
1694
1701
|
}
|
|
1702
|
+
function formatSupportedReadinessProfiles() {
|
|
1703
|
+
return SYSTEM_INTERFACE_READINESS_PROFILES.map((profile) => `"${profile}"`).join(", ");
|
|
1704
|
+
}
|
|
1695
1705
|
function throwIfInterfaceNotReady(result) {
|
|
1696
1706
|
if (result.ready) return;
|
|
1697
1707
|
throw new SystemInterfaceReadinessError(result);
|
|
@@ -1975,18 +1985,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1975
1985
|
{ path: `${readinessMarkerPath(request)}.lifecycle` }
|
|
1976
1986
|
);
|
|
1977
1987
|
}
|
|
1978
|
-
const
|
|
1979
|
-
LEAD_GEN_API_INTERFACE.readinessProfile,
|
|
1980
|
-
CRM_API_INTERFACE.readinessProfile,
|
|
1981
|
-
LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile
|
|
1982
|
-
];
|
|
1983
|
-
const supportedProfile = readinessProfile !== void 0 && supportedProfiles.some((profile) => profile === readinessProfile);
|
|
1988
|
+
const supportedProfile = readinessProfile !== void 0 && SYSTEM_INTERFACE_PROFILES.some((profile) => profile.readinessProfile === readinessProfile);
|
|
1984
1989
|
if (!supportedProfile) {
|
|
1985
1990
|
addReadinessIssue(
|
|
1986
1991
|
issues,
|
|
1987
1992
|
"SYSTEM_INTERFACE_INVALID",
|
|
1988
1993
|
"unknown-readiness-profile",
|
|
1989
|
-
`System Interface "${formatInterfaceIdentity(request.systemPath, request.interfaceKey)}" references unknown readiness profile "${readinessProfile}".`,
|
|
1994
|
+
`System Interface "${formatInterfaceIdentity(request.systemPath, request.interfaceKey)}" references unknown readiness profile "${readinessProfile}". Supported profiles: ${formatSupportedReadinessProfiles()}. Custom Systems should not declare apiInterface; route custom behavior through workflows/operations plus ontology, resources, and topology.`,
|
|
1990
1995
|
{ path: `${readinessMarkerPath(request)}.readinessProfile`, ref: readinessProfile }
|
|
1991
1996
|
);
|
|
1992
1997
|
return {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1396,7 +1396,11 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
|
1396
1396
|
archived: "archived";
|
|
1397
1397
|
disabled: "disabled";
|
|
1398
1398
|
}>>;
|
|
1399
|
-
readinessProfile: z.ZodOptional<z.
|
|
1399
|
+
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
1400
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
1401
|
+
"sales.crm.api": "sales.crm.api";
|
|
1402
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
1403
|
+
}>>;
|
|
1400
1404
|
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1401
1405
|
}, z.core.$strict>;
|
|
1402
1406
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -1696,6 +1700,84 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1696
1700
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
1697
1701
|
bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
1698
1702
|
}, z.core.$strip>>;
|
|
1703
|
+
topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1704
|
+
id: z.ZodString;
|
|
1705
|
+
label: z.ZodString;
|
|
1706
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1708
|
+
message: "message";
|
|
1709
|
+
error: "error";
|
|
1710
|
+
agent: "agent";
|
|
1711
|
+
workflow: "workflow";
|
|
1712
|
+
"google-sheets": "google-sheets";
|
|
1713
|
+
dashboard: "dashboard";
|
|
1714
|
+
calendar: "calendar";
|
|
1715
|
+
sales: "sales";
|
|
1716
|
+
crm: "crm";
|
|
1717
|
+
"lead-gen": "lead-gen";
|
|
1718
|
+
projects: "projects";
|
|
1719
|
+
clients: "clients";
|
|
1720
|
+
operations: "operations";
|
|
1721
|
+
monitoring: "monitoring";
|
|
1722
|
+
knowledge: "knowledge";
|
|
1723
|
+
settings: "settings";
|
|
1724
|
+
admin: "admin";
|
|
1725
|
+
archive: "archive";
|
|
1726
|
+
business: "business";
|
|
1727
|
+
finance: "finance";
|
|
1728
|
+
platform: "platform";
|
|
1729
|
+
seo: "seo";
|
|
1730
|
+
playbook: "playbook";
|
|
1731
|
+
strategy: "strategy";
|
|
1732
|
+
reference: "reference";
|
|
1733
|
+
integration: "integration";
|
|
1734
|
+
database: "database";
|
|
1735
|
+
user: "user";
|
|
1736
|
+
team: "team";
|
|
1737
|
+
gmail: "gmail";
|
|
1738
|
+
attio: "attio";
|
|
1739
|
+
overview: "overview";
|
|
1740
|
+
"command-view": "command-view";
|
|
1741
|
+
"command-queue": "command-queue";
|
|
1742
|
+
pipeline: "pipeline";
|
|
1743
|
+
lists: "lists";
|
|
1744
|
+
resources: "resources";
|
|
1745
|
+
approve: "approve";
|
|
1746
|
+
reject: "reject";
|
|
1747
|
+
retry: "retry";
|
|
1748
|
+
edit: "edit";
|
|
1749
|
+
view: "view";
|
|
1750
|
+
launch: "launch";
|
|
1751
|
+
"message-plus": "message-plus";
|
|
1752
|
+
escalate: "escalate";
|
|
1753
|
+
promote: "promote";
|
|
1754
|
+
submit: "submit";
|
|
1755
|
+
email: "email";
|
|
1756
|
+
success: "success";
|
|
1757
|
+
warning: "warning";
|
|
1758
|
+
info: "info";
|
|
1759
|
+
pending: "pending";
|
|
1760
|
+
bolt: "bolt";
|
|
1761
|
+
building: "building";
|
|
1762
|
+
briefcase: "briefcase";
|
|
1763
|
+
apps: "apps";
|
|
1764
|
+
graph: "graph";
|
|
1765
|
+
shield: "shield";
|
|
1766
|
+
users: "users";
|
|
1767
|
+
"chart-bar": "chart-bar";
|
|
1768
|
+
search: "search";
|
|
1769
|
+
}>, z.ZodString]>>;
|
|
1770
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1771
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1772
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1773
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
1774
|
+
targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1775
|
+
systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1776
|
+
entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1777
|
+
resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1778
|
+
actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1779
|
+
}, z.core.$strip>>>;
|
|
1780
|
+
}, z.core.$strip>>>;
|
|
1699
1781
|
}, z.core.$strip>>;
|
|
1700
1782
|
identity: z.ZodDefault<z.ZodObject<{
|
|
1701
1783
|
mission: z.ZodDefault<z.ZodString>;
|
|
@@ -2364,6 +2446,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2364
2446
|
edit: "edit";
|
|
2365
2447
|
view: "view";
|
|
2366
2448
|
launch: "launch";
|
|
2449
|
+
"message-plus": "message-plus";
|
|
2367
2450
|
escalate: "escalate";
|
|
2368
2451
|
promote: "promote";
|
|
2369
2452
|
submit: "submit";
|
|
@@ -4379,6 +4379,17 @@ type Database = {
|
|
|
4379
4379
|
Args: never;
|
|
4380
4380
|
Returns: undefined;
|
|
4381
4381
|
};
|
|
4382
|
+
repair_membership_role_assignments: {
|
|
4383
|
+
Args: never;
|
|
4384
|
+
Returns: {
|
|
4385
|
+
membership_id: string;
|
|
4386
|
+
organization_id: string;
|
|
4387
|
+
repaired: boolean;
|
|
4388
|
+
role_id: string;
|
|
4389
|
+
role_slug: string;
|
|
4390
|
+
user_id: string;
|
|
4391
|
+
}[];
|
|
4392
|
+
};
|
|
4382
4393
|
sync_all_memberships_with_role: {
|
|
4383
4394
|
Args: {
|
|
4384
4395
|
p_role_id: string;
|
|
@@ -4391,6 +4402,13 @@ type Database = {
|
|
|
4391
4402
|
};
|
|
4392
4403
|
Returns: undefined;
|
|
4393
4404
|
};
|
|
4405
|
+
update_membership_role_assignment: {
|
|
4406
|
+
Args: {
|
|
4407
|
+
p_role_slug: string;
|
|
4408
|
+
p_workos_membership_id: string;
|
|
4409
|
+
};
|
|
4410
|
+
Returns: string;
|
|
4411
|
+
};
|
|
4394
4412
|
upsert_user_profile: {
|
|
4395
4413
|
Args: never;
|
|
4396
4414
|
Returns: {
|
|
@@ -5862,7 +5880,11 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
|
5862
5880
|
archived: "archived";
|
|
5863
5881
|
disabled: "disabled";
|
|
5864
5882
|
}>>;
|
|
5865
|
-
readinessProfile: z.ZodOptional<z.
|
|
5883
|
+
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
5884
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
5885
|
+
"sales.crm.api": "sales.crm.api";
|
|
5886
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
5887
|
+
}>>;
|
|
5866
5888
|
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5867
5889
|
}, z.core.$strict>;
|
|
5868
5890
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -6162,6 +6184,84 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6162
6184
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
6163
6185
|
bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
6164
6186
|
}, z.core.$strip>>;
|
|
6187
|
+
topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6188
|
+
id: z.ZodString;
|
|
6189
|
+
label: z.ZodString;
|
|
6190
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
6191
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
6192
|
+
message: "message";
|
|
6193
|
+
error: "error";
|
|
6194
|
+
agent: "agent";
|
|
6195
|
+
workflow: "workflow";
|
|
6196
|
+
"google-sheets": "google-sheets";
|
|
6197
|
+
dashboard: "dashboard";
|
|
6198
|
+
calendar: "calendar";
|
|
6199
|
+
sales: "sales";
|
|
6200
|
+
crm: "crm";
|
|
6201
|
+
"lead-gen": "lead-gen";
|
|
6202
|
+
projects: "projects";
|
|
6203
|
+
clients: "clients";
|
|
6204
|
+
operations: "operations";
|
|
6205
|
+
monitoring: "monitoring";
|
|
6206
|
+
knowledge: "knowledge";
|
|
6207
|
+
settings: "settings";
|
|
6208
|
+
admin: "admin";
|
|
6209
|
+
archive: "archive";
|
|
6210
|
+
business: "business";
|
|
6211
|
+
finance: "finance";
|
|
6212
|
+
platform: "platform";
|
|
6213
|
+
seo: "seo";
|
|
6214
|
+
playbook: "playbook";
|
|
6215
|
+
strategy: "strategy";
|
|
6216
|
+
reference: "reference";
|
|
6217
|
+
integration: "integration";
|
|
6218
|
+
database: "database";
|
|
6219
|
+
user: "user";
|
|
6220
|
+
team: "team";
|
|
6221
|
+
gmail: "gmail";
|
|
6222
|
+
attio: "attio";
|
|
6223
|
+
overview: "overview";
|
|
6224
|
+
"command-view": "command-view";
|
|
6225
|
+
"command-queue": "command-queue";
|
|
6226
|
+
pipeline: "pipeline";
|
|
6227
|
+
lists: "lists";
|
|
6228
|
+
resources: "resources";
|
|
6229
|
+
approve: "approve";
|
|
6230
|
+
reject: "reject";
|
|
6231
|
+
retry: "retry";
|
|
6232
|
+
edit: "edit";
|
|
6233
|
+
view: "view";
|
|
6234
|
+
launch: "launch";
|
|
6235
|
+
"message-plus": "message-plus";
|
|
6236
|
+
escalate: "escalate";
|
|
6237
|
+
promote: "promote";
|
|
6238
|
+
submit: "submit";
|
|
6239
|
+
email: "email";
|
|
6240
|
+
success: "success";
|
|
6241
|
+
warning: "warning";
|
|
6242
|
+
info: "info";
|
|
6243
|
+
pending: "pending";
|
|
6244
|
+
bolt: "bolt";
|
|
6245
|
+
building: "building";
|
|
6246
|
+
briefcase: "briefcase";
|
|
6247
|
+
apps: "apps";
|
|
6248
|
+
graph: "graph";
|
|
6249
|
+
shield: "shield";
|
|
6250
|
+
users: "users";
|
|
6251
|
+
"chart-bar": "chart-bar";
|
|
6252
|
+
search: "search";
|
|
6253
|
+
}>, z.ZodString]>>;
|
|
6254
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6255
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6256
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
6257
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
6258
|
+
targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
6259
|
+
systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6260
|
+
entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6261
|
+
resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6262
|
+
actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6263
|
+
}, z.core.$strip>>>;
|
|
6264
|
+
}, z.core.$strip>>>;
|
|
6165
6265
|
}, z.core.$strip>>;
|
|
6166
6266
|
identity: z.ZodDefault<z.ZodObject<{
|
|
6167
6267
|
mission: z.ZodDefault<z.ZodString>;
|
|
@@ -6830,6 +6930,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6830
6930
|
edit: "edit";
|
|
6831
6931
|
view: "view";
|
|
6832
6932
|
launch: "launch";
|
|
6933
|
+
"message-plus": "message-plus";
|
|
6833
6934
|
escalate: "escalate";
|
|
6834
6935
|
promote: "promote";
|
|
6835
6936
|
submit: "submit";
|