@elevasis/core 0.34.2 → 0.35.1
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/auth/index.d.ts +74 -2
- package/dist/auth/index.js +67 -30
- package/dist/index.d.ts +60 -2
- package/dist/index.js +54 -1
- package/dist/knowledge/index.d.ts +12 -0
- package/dist/organization-model/index.d.ts +60 -2
- package/dist/organization-model/index.js +54 -1
- package/dist/test-utils/index.d.ts +12 -0
- package/dist/test-utils/index.js +51 -0
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +69 -30
- package/src/auth/multi-tenancy/index.ts +29 -26
- package/src/auth/multi-tenancy/org-id.test.ts +139 -0
- package/src/auth/multi-tenancy/org-id.ts +112 -0
- package/src/business/acquisition/api-schemas.test.ts +456 -28
- package/src/business/acquisition/ontology-validation.ts +715 -23
- package/src/execution/engine/tools/platform/storage/__tests__/storage.test.ts +997 -998
- package/src/organization-model/__tests__/domains/systems.test.ts +61 -15
- package/src/organization-model/__tests__/domains/topology.test.ts +23 -0
- package/src/organization-model/__tests__/lookup-helpers.test.ts +34 -0
- package/src/organization-model/__tests__/schema.test.ts +112 -0
- package/src/organization-model/domains/systems.ts +44 -0
- package/src/organization-model/domains/topology.ts +18 -1
- package/src/organization-model/helpers.ts +18 -0
- package/src/organization-model/published.ts +19 -1
- package/src/organization-model/schema-refinements.ts +23 -0
- package/src/organization-model/types.ts +17 -1
- package/src/platform/constants/versions.ts +3 -3
- package/src/platform/registry/__tests__/resource-registry.test.ts +73 -4
- package/src/platform/registry/__tests__/validation.test.ts +218 -4
- package/src/platform/registry/index.ts +28 -15
- package/src/platform/registry/resource-registry.ts +2 -0
- package/src/platform/registry/validation.ts +172 -2
- package/src/reference/_generated/contracts.md +44 -0
- package/src/supabase/__tests__/helpers.test.ts +92 -51
- package/src/supabase/helpers.ts +40 -20
- package/src/supabase/index.ts +52 -52
package/dist/auth/index.d.ts
CHANGED
|
@@ -88,6 +88,66 @@ interface OrgMetadata {
|
|
|
88
88
|
workos_updated_at?: string;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Branded organization identifiers.
|
|
93
|
+
*
|
|
94
|
+
* Every organization carries TWO distinct ID values that are both plain
|
|
95
|
+
* strings at runtime but mean different things:
|
|
96
|
+
*
|
|
97
|
+
* - WorkOS organization id (`org_...`) -- the auth/JWT identity. Used for API
|
|
98
|
+
* requests, SSE headers, and org-scoped query keys.
|
|
99
|
+
* - Supabase organization id (UUID) -- the database key. Used for
|
|
100
|
+
* `.eq('organization_id', ...)` queries and RLS scoping.
|
|
101
|
+
*
|
|
102
|
+
* They are not interchangeable, yet both are `string` -- so a swap compiles
|
|
103
|
+
* cleanly and fails silently (zero rows on the Supabase side, cross-pollinated
|
|
104
|
+
* cache keys on the API side). These brands make the two non-assignable to one
|
|
105
|
+
* another, turning that silent footgun into a compile error at the sink.
|
|
106
|
+
*
|
|
107
|
+
* Mint a brand only through the `as*` factories below: they are the single
|
|
108
|
+
* validate-and-tag boundary (compile-time brand + runtime format check). The
|
|
109
|
+
* type predicates double as the cast, so no raw `as` cast is needed anywhere.
|
|
110
|
+
*
|
|
111
|
+
* Lives on the published `@repo/core` / `@repo/core/auth` surface so the UI,
|
|
112
|
+
* the API, and the dogfooding `@repo/elevasis-*` packages can all use it.
|
|
113
|
+
*/
|
|
114
|
+
declare const supabaseOrgIdBrand: unique symbol;
|
|
115
|
+
declare const workOsOrgIdBrand: unique symbol;
|
|
116
|
+
/** A Supabase organization id (UUID) -- the database key for RLS-scoped rows. */
|
|
117
|
+
type SupabaseOrgId = string & {
|
|
118
|
+
readonly [supabaseOrgIdBrand]: true;
|
|
119
|
+
};
|
|
120
|
+
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
121
|
+
type WorkOsOrgId = string & {
|
|
122
|
+
readonly [workOsOrgIdBrand]: true;
|
|
123
|
+
};
|
|
124
|
+
/** True when `value` is shaped like a Supabase organization UUID. */
|
|
125
|
+
declare function isSupabaseOrgId(value: string): value is SupabaseOrgId;
|
|
126
|
+
/** True when `value` is shaped like a WorkOS organization id (`org_...`). */
|
|
127
|
+
declare function isWorkOsOrgId(value: string): value is WorkOsOrgId;
|
|
128
|
+
/**
|
|
129
|
+
* Validate-and-brand a string as a Supabase organization id.
|
|
130
|
+
*
|
|
131
|
+
* @throws {Error} if the value is not a UUID (e.g. a WorkOS `org_...` id leaked in).
|
|
132
|
+
*/
|
|
133
|
+
declare function asSupabaseOrgId(value: string): SupabaseOrgId;
|
|
134
|
+
/**
|
|
135
|
+
* Validate-and-brand a string as a WorkOS organization id.
|
|
136
|
+
*
|
|
137
|
+
* @throws {Error} if the value is not `org_...` (e.g. a Supabase UUID leaked in).
|
|
138
|
+
*/
|
|
139
|
+
declare function asWorkOsOrgId(value: string): WorkOsOrgId;
|
|
140
|
+
/** Nullable convenience for mint sites that read `... ?? null` from a membership. */
|
|
141
|
+
declare function asSupabaseOrgIdOrNull(value: string | null | undefined): SupabaseOrgId | null;
|
|
142
|
+
/** Nullable convenience for mint sites that read `... ?? null` from a membership. */
|
|
143
|
+
declare function asWorkOsOrgIdOrNull(value: string | null | undefined): WorkOsOrgId | null;
|
|
144
|
+
/** Brand a trusted string as a Supabase organization id without validating. */
|
|
145
|
+
declare function brandSupabaseOrgId(value: string): SupabaseOrgId;
|
|
146
|
+
declare function brandSupabaseOrgId(value: string | null | undefined): SupabaseOrgId | null;
|
|
147
|
+
/** Brand a trusted string as a WorkOS organization id without validating. */
|
|
148
|
+
declare function brandWorkOsOrgId(value: string): WorkOsOrgId;
|
|
149
|
+
declare function brandWorkOsOrgId(value: string | null | undefined): WorkOsOrgId | null;
|
|
150
|
+
|
|
91
151
|
/**
|
|
92
152
|
* Canonical permission catalog.
|
|
93
153
|
*
|
|
@@ -4183,6 +4243,17 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4183
4243
|
}, z.core.$strip>>;
|
|
4184
4244
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
4185
4245
|
|
|
4246
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
4247
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
4248
|
+
active: "active";
|
|
4249
|
+
deprecated: "deprecated";
|
|
4250
|
+
draft: "draft";
|
|
4251
|
+
archived: "archived";
|
|
4252
|
+
disabled: "disabled";
|
|
4253
|
+
}>>;
|
|
4254
|
+
readinessProfile: z.ZodOptional<z.ZodString>;
|
|
4255
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4256
|
+
}, z.core.$strict>;
|
|
4186
4257
|
type JsonPrimitive = string | number | boolean | null;
|
|
4187
4258
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
4188
4259
|
[key: string]: JsonValue;
|
|
@@ -4211,6 +4282,7 @@ interface SystemEntry {
|
|
|
4211
4282
|
}[];
|
|
4212
4283
|
policies?: string[];
|
|
4213
4284
|
drivesGoals?: string[];
|
|
4285
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
4214
4286
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
4215
4287
|
status?: 'active' | 'deprecated' | 'archived';
|
|
4216
4288
|
path?: string;
|
|
@@ -5343,5 +5415,5 @@ interface AccessModel {
|
|
|
5343
5415
|
declare function checkAccess(input: AccessKeyInput, ctx: AccessContext): AccessAnswer;
|
|
5344
5416
|
declare function createAccessModel(organizationModel: OrganizationModel): AccessModel;
|
|
5345
5417
|
|
|
5346
|
-
export { AcceptInvitationSchema, AccessActionSchema, AccessKeyInputSchema, AccessKeyObjectSchema, AccessKeySchema, AccessKeys, AssignMembershipRoleRequestSchema, CreateMembershipSchema, CreateOrgRoleRequestSchema, CreateOrganizationSchema, DEFAULT_ACCESS_ACTION, DIAGNOSTIC_VIEW_ACCESS_KEYS, ExternalIdParamSchema, InvitationIdParamSchema, ListInvitationsQuerySchema, ListMembershipsQuerySchema, ListOrganizationsQuerySchema, ListUsersQuerySchema, MEMBERSHIP_STATUS_COLORS, MembershipIdParamSchema, MembershipParamsSchema, MembershipRoleParamsSchema, MembershipRoleSchema, MembershipStatusSchema, MyOrgPermissionsResponseSchema, NormalizedAccessKeySchema, OrgIdParamSchema, OrgRoleParamsSchema, OrgRolesParamsSchema, OrganizationDomainSchema, OrganizationIdParamSchema, OrganizationNameSchema, PERMISSIONS, PERMISSION_CATALOG, PLATFORM_ADMIN_ACCESS_KEY, PLATFORM_ADMIN_ACCESS_KEY_SHORTHAND, SendInvitationSchema, THEME_PRESETS, ThemePresetEnum, UpdateMembershipSchema, UpdateMyProfileSchema, UpdateOrgRoleRequestSchema, UpdateOrganizationSchema, UpdateUserSchema, UserIdParamSchema, accessKeyToString, checkAccess, createAccessModel, deriveAccessKeyCatalog, findAccessCatalogEntry, isPermissionKey, listAccessKeys, normalizeAccessKey, rolePermissionForAccessKey, transformMembershipToTableRow, transformSupabaseToInvitation, transformSupabaseToMembership };
|
|
5347
|
-
export type { AcceptInvitationInput, AcceptInvitationRequest, AcceptanceResult, AccessAction, AccessAnswer, AccessCatalogEntry, AccessCatalogEntrySource, AccessContext, AccessContextMembership, AccessContextProfile, AccessKey, AccessKeyCatalog, AccessKeyInput, AccessKeyObject, AccessModel, AccessReason, AccessRestrictedBy, AdminOrgInvitation, AssignMembershipRoleInput, CreateCredentialParams, CreateMembershipInput, CreateMembershipRequest, CreateOrgRoleInput, CreateOrganizationInput, CreateUserRequest, CredentialMetadata, DeriveAccessKeyCatalogOptions, ExternalIdParam, Invitation, InvitationIdParam, InvitationListQuery, InvitationState, InvitationSummaryResponse, InvitationWithDetails, ListInvitationsParams, ListInvitationsQuery, ListMembershipsParams, ListMembershipsQuery, ListMembershipsResponse, ListOrganizationsQuery, ListUsersParams, ListUsersQuery, ListUsersResponse, MembershipIdParam, MembershipParams, MembershipRole, MembershipRoleParams, MembershipStatus, MembershipTableRow, MembershipWithDetails, MyOrgPermissionsResponse, NormalizedAccessKey, OrgIdParam, OrgMetadata, OrgRoleParams, OrgRolesParams, Organization, OrganizationIdParam, OrganizationMembership, OrganizationSummary, PermissionDescriptor, PermissionKey, SendInvitationInput, SendInvitationRequest, SupabaseOrgInvitation, SupabaseOrgInvitationInsert, SupabaseOrgInvitationUpdate, SupabaseOrgMembership, SupabaseOrgMembershipInsert, SupabaseOrgMembershipUpdate, ThemePresetName, UpdateMembershipInput, UpdateMembershipRequest, UpdateMyProfileInput, UpdateOrgRoleInput, UpdateOrganizationInput, UpdateUserInput, UpdateUserRequest, User, UserConfig, UserIdParam, UserSummary };
|
|
5418
|
+
export { AcceptInvitationSchema, AccessActionSchema, AccessKeyInputSchema, AccessKeyObjectSchema, AccessKeySchema, AccessKeys, AssignMembershipRoleRequestSchema, CreateMembershipSchema, CreateOrgRoleRequestSchema, CreateOrganizationSchema, DEFAULT_ACCESS_ACTION, DIAGNOSTIC_VIEW_ACCESS_KEYS, ExternalIdParamSchema, InvitationIdParamSchema, ListInvitationsQuerySchema, ListMembershipsQuerySchema, ListOrganizationsQuerySchema, ListUsersQuerySchema, MEMBERSHIP_STATUS_COLORS, MembershipIdParamSchema, MembershipParamsSchema, MembershipRoleParamsSchema, MembershipRoleSchema, MembershipStatusSchema, MyOrgPermissionsResponseSchema, NormalizedAccessKeySchema, OrgIdParamSchema, OrgRoleParamsSchema, OrgRolesParamsSchema, OrganizationDomainSchema, OrganizationIdParamSchema, OrganizationNameSchema, PERMISSIONS, PERMISSION_CATALOG, PLATFORM_ADMIN_ACCESS_KEY, PLATFORM_ADMIN_ACCESS_KEY_SHORTHAND, SendInvitationSchema, THEME_PRESETS, ThemePresetEnum, UpdateMembershipSchema, UpdateMyProfileSchema, UpdateOrgRoleRequestSchema, UpdateOrganizationSchema, UpdateUserSchema, UserIdParamSchema, accessKeyToString, asSupabaseOrgId, asSupabaseOrgIdOrNull, asWorkOsOrgId, asWorkOsOrgIdOrNull, brandSupabaseOrgId, brandWorkOsOrgId, checkAccess, createAccessModel, deriveAccessKeyCatalog, findAccessCatalogEntry, isPermissionKey, isSupabaseOrgId, isWorkOsOrgId, listAccessKeys, normalizeAccessKey, rolePermissionForAccessKey, transformMembershipToTableRow, transformSupabaseToInvitation, transformSupabaseToMembership };
|
|
5419
|
+
export type { AcceptInvitationInput, AcceptInvitationRequest, AcceptanceResult, AccessAction, AccessAnswer, AccessCatalogEntry, AccessCatalogEntrySource, AccessContext, AccessContextMembership, AccessContextProfile, AccessKey, AccessKeyCatalog, AccessKeyInput, AccessKeyObject, AccessModel, AccessReason, AccessRestrictedBy, AdminOrgInvitation, AssignMembershipRoleInput, CreateCredentialParams, CreateMembershipInput, CreateMembershipRequest, CreateOrgRoleInput, CreateOrganizationInput, CreateUserRequest, CredentialMetadata, DeriveAccessKeyCatalogOptions, ExternalIdParam, Invitation, InvitationIdParam, InvitationListQuery, InvitationState, InvitationSummaryResponse, InvitationWithDetails, ListInvitationsParams, ListInvitationsQuery, ListMembershipsParams, ListMembershipsQuery, ListMembershipsResponse, ListOrganizationsQuery, ListUsersParams, ListUsersQuery, ListUsersResponse, MembershipIdParam, MembershipParams, MembershipRole, MembershipRoleParams, MembershipStatus, MembershipTableRow, MembershipWithDetails, MyOrgPermissionsResponse, NormalizedAccessKey, OrgIdParam, OrgMetadata, OrgRoleParams, OrgRolesParams, Organization, OrganizationIdParam, OrganizationMembership, OrganizationSummary, PermissionDescriptor, PermissionKey, SendInvitationInput, SendInvitationRequest, SupabaseOrgId, SupabaseOrgInvitation, SupabaseOrgInvitationInsert, SupabaseOrgInvitationUpdate, SupabaseOrgMembership, SupabaseOrgMembershipInsert, SupabaseOrgMembershipUpdate, ThemePresetName, UpdateMembershipInput, UpdateMembershipRequest, UpdateMyProfileInput, UpdateOrgRoleInput, UpdateOrganizationInput, UpdateUserInput, UpdateUserRequest, User, UserConfig, UserIdParam, UserSummary, WorkOsOrgId };
|
package/dist/auth/index.js
CHANGED
|
@@ -24,6 +24,70 @@ var THEME_PRESETS = [
|
|
|
24
24
|
"quarry"
|
|
25
25
|
];
|
|
26
26
|
var ThemePresetEnum = z.enum(THEME_PRESETS);
|
|
27
|
+
var UuidSchema = z.string().uuid();
|
|
28
|
+
z.string().trim().min(1).max(1e3);
|
|
29
|
+
z.enum(["agent", "workflow"]);
|
|
30
|
+
z.enum(["agent", "workflow", "scheduler", "api"]);
|
|
31
|
+
z.string().trim().toLowerCase().min(1, "Credential name required").max(100, "Credential name too long (max 100 chars)").regex(
|
|
32
|
+
/^[a-z0-9]+(-[a-z0-9]+)+$/,
|
|
33
|
+
"Credential name must be lowercase letters, numbers, and hyphens in format: service-environment (e.g., gmail-prod, attio-dev)"
|
|
34
|
+
);
|
|
35
|
+
z.enum(["google-sheets", "google-calendar", "dropbox"]);
|
|
36
|
+
z.string().min(10, "Authorization code too short").max(1e3, "Authorization code too long");
|
|
37
|
+
z.string().min(10, "State parameter too short").max(2048, "State parameter too long");
|
|
38
|
+
z.string().trim().transform((str) => str.replace(/[<>'"]/g, ""));
|
|
39
|
+
var EmailSchema = z.string().email();
|
|
40
|
+
z.string().url();
|
|
41
|
+
z.object({
|
|
42
|
+
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
43
|
+
offset: z.coerce.number().int().min(0).default(0)
|
|
44
|
+
});
|
|
45
|
+
z.string().datetime();
|
|
46
|
+
z.object({
|
|
47
|
+
startDate: z.string().datetime(),
|
|
48
|
+
endDate: z.string().datetime()
|
|
49
|
+
});
|
|
50
|
+
function createStringSchema(minLength, maxLength, fieldName) {
|
|
51
|
+
const schema = z.string().trim().min(minLength).max(maxLength);
|
|
52
|
+
return fieldName ? schema.describe(`${fieldName} (${minLength}-${maxLength} characters)`) : schema;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// src/auth/multi-tenancy/org-id.ts
|
|
56
|
+
var WORKOS_ORG_ID_PREFIX = "org_";
|
|
57
|
+
function isSupabaseOrgId(value) {
|
|
58
|
+
return UuidSchema.safeParse(value).success;
|
|
59
|
+
}
|
|
60
|
+
function isWorkOsOrgId(value) {
|
|
61
|
+
return value.startsWith(WORKOS_ORG_ID_PREFIX);
|
|
62
|
+
}
|
|
63
|
+
function asSupabaseOrgId(value) {
|
|
64
|
+
if (!isSupabaseOrgId(value)) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
`Expected a Supabase organization UUID, received "${value}". A WorkOS org id (org_...) was likely used where the database key is required.`
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
function asWorkOsOrgId(value) {
|
|
72
|
+
if (!isWorkOsOrgId(value)) {
|
|
73
|
+
throw new Error(
|
|
74
|
+
`Expected a WorkOS organization id (org_...), received "${value}". A Supabase UUID was likely used where the auth identity is required.`
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
function asSupabaseOrgIdOrNull(value) {
|
|
80
|
+
return value == null ? null : asSupabaseOrgId(value);
|
|
81
|
+
}
|
|
82
|
+
function asWorkOsOrgIdOrNull(value) {
|
|
83
|
+
return value == null ? null : asWorkOsOrgId(value);
|
|
84
|
+
}
|
|
85
|
+
function brandSupabaseOrgId(value) {
|
|
86
|
+
return value ?? null;
|
|
87
|
+
}
|
|
88
|
+
function brandWorkOsOrgId(value) {
|
|
89
|
+
return value ?? null;
|
|
90
|
+
}
|
|
27
91
|
|
|
28
92
|
// src/auth/multi-tenancy/permissions.ts
|
|
29
93
|
var PERMISSIONS = {
|
|
@@ -139,35 +203,6 @@ var UpdateOrgRoleRequestSchema = z.object({
|
|
|
139
203
|
var AssignMembershipRoleRequestSchema = z.object({
|
|
140
204
|
roleId: z.string().uuid()
|
|
141
205
|
}).strict();
|
|
142
|
-
var UuidSchema = z.string().uuid();
|
|
143
|
-
z.string().trim().min(1).max(1e3);
|
|
144
|
-
z.enum(["agent", "workflow"]);
|
|
145
|
-
z.enum(["agent", "workflow", "scheduler", "api"]);
|
|
146
|
-
z.string().trim().toLowerCase().min(1, "Credential name required").max(100, "Credential name too long (max 100 chars)").regex(
|
|
147
|
-
/^[a-z0-9]+(-[a-z0-9]+)+$/,
|
|
148
|
-
"Credential name must be lowercase letters, numbers, and hyphens in format: service-environment (e.g., gmail-prod, attio-dev)"
|
|
149
|
-
);
|
|
150
|
-
z.enum(["google-sheets", "google-calendar", "dropbox"]);
|
|
151
|
-
z.string().min(10, "Authorization code too short").max(1e3, "Authorization code too long");
|
|
152
|
-
z.string().min(10, "State parameter too short").max(2048, "State parameter too long");
|
|
153
|
-
z.string().trim().transform((str) => str.replace(/[<>'"]/g, ""));
|
|
154
|
-
var EmailSchema = z.string().email();
|
|
155
|
-
z.string().url();
|
|
156
|
-
z.object({
|
|
157
|
-
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
158
|
-
offset: z.coerce.number().int().min(0).default(0)
|
|
159
|
-
});
|
|
160
|
-
z.string().datetime();
|
|
161
|
-
z.object({
|
|
162
|
-
startDate: z.string().datetime(),
|
|
163
|
-
endDate: z.string().datetime()
|
|
164
|
-
});
|
|
165
|
-
function createStringSchema(minLength, maxLength, fieldName) {
|
|
166
|
-
const schema = z.string().trim().min(minLength).max(maxLength);
|
|
167
|
-
return fieldName ? schema.describe(`${fieldName} (${minLength}-${maxLength} characters)`) : schema;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// src/auth/multi-tenancy/organizations/api-schemas.ts
|
|
171
206
|
var OrganizationNameSchema = z.string().min(2, "Organization name must be at least 2 characters").max(100, "Organization name must be at most 100 characters").trim().regex(
|
|
172
207
|
/^[a-zA-Z0-9\s\-_]+$/,
|
|
173
208
|
"Organization name must contain only letters, numbers, spaces, hyphens, and underscores"
|
|
@@ -375,6 +410,8 @@ function childSystemsOf(system) {
|
|
|
375
410
|
return system.systems ?? system.subsystems ?? {};
|
|
376
411
|
}
|
|
377
412
|
function getSystem(model, path) {
|
|
413
|
+
const flatMatch = model.systems[path];
|
|
414
|
+
if (flatMatch !== void 0) return flatMatch;
|
|
378
415
|
const segments = path.split(".");
|
|
379
416
|
let current = model.systems;
|
|
380
417
|
let node;
|
|
@@ -599,4 +636,4 @@ function createAccessModel(organizationModel) {
|
|
|
599
636
|
};
|
|
600
637
|
}
|
|
601
638
|
|
|
602
|
-
export { AcceptInvitationSchema, AccessActionSchema, AccessKeyInputSchema, AccessKeyObjectSchema, AccessKeySchema, AccessKeys, AssignMembershipRoleRequestSchema, CreateMembershipSchema, CreateOrgRoleRequestSchema, CreateOrganizationSchema, DEFAULT_ACCESS_ACTION, DIAGNOSTIC_VIEW_ACCESS_KEYS, ExternalIdParamSchema, InvitationIdParamSchema, ListInvitationsQuerySchema, ListMembershipsQuerySchema, ListOrganizationsQuerySchema, ListUsersQuerySchema, MEMBERSHIP_STATUS_COLORS, MembershipIdParamSchema, MembershipParamsSchema, MembershipRoleParamsSchema, MembershipRoleSchema, MembershipStatusSchema, MyOrgPermissionsResponseSchema, NormalizedAccessKeySchema, OrgIdParamSchema, OrgRoleParamsSchema, OrgRolesParamsSchema, OrganizationDomainSchema, OrganizationIdParamSchema, OrganizationNameSchema, PERMISSIONS, PERMISSION_CATALOG, PLATFORM_ADMIN_ACCESS_KEY, PLATFORM_ADMIN_ACCESS_KEY_SHORTHAND, SendInvitationSchema, THEME_PRESETS, ThemePresetEnum, UpdateMembershipSchema, UpdateMyProfileSchema, UpdateOrgRoleRequestSchema, UpdateOrganizationSchema, UpdateUserSchema, UserIdParamSchema, accessKeyToString, checkAccess, createAccessModel, deriveAccessKeyCatalog, findAccessCatalogEntry, isPermissionKey, listAccessKeys, normalizeAccessKey, rolePermissionForAccessKey, transformMembershipToTableRow, transformSupabaseToInvitation, transformSupabaseToMembership };
|
|
639
|
+
export { AcceptInvitationSchema, AccessActionSchema, AccessKeyInputSchema, AccessKeyObjectSchema, AccessKeySchema, AccessKeys, AssignMembershipRoleRequestSchema, CreateMembershipSchema, CreateOrgRoleRequestSchema, CreateOrganizationSchema, DEFAULT_ACCESS_ACTION, DIAGNOSTIC_VIEW_ACCESS_KEYS, ExternalIdParamSchema, InvitationIdParamSchema, ListInvitationsQuerySchema, ListMembershipsQuerySchema, ListOrganizationsQuerySchema, ListUsersQuerySchema, MEMBERSHIP_STATUS_COLORS, MembershipIdParamSchema, MembershipParamsSchema, MembershipRoleParamsSchema, MembershipRoleSchema, MembershipStatusSchema, MyOrgPermissionsResponseSchema, NormalizedAccessKeySchema, OrgIdParamSchema, OrgRoleParamsSchema, OrgRolesParamsSchema, OrganizationDomainSchema, OrganizationIdParamSchema, OrganizationNameSchema, PERMISSIONS, PERMISSION_CATALOG, PLATFORM_ADMIN_ACCESS_KEY, PLATFORM_ADMIN_ACCESS_KEY_SHORTHAND, SendInvitationSchema, THEME_PRESETS, ThemePresetEnum, UpdateMembershipSchema, UpdateMyProfileSchema, UpdateOrgRoleRequestSchema, UpdateOrganizationSchema, UpdateUserSchema, UserIdParamSchema, accessKeyToString, asSupabaseOrgId, asSupabaseOrgIdOrNull, asWorkOsOrgId, asWorkOsOrgIdOrNull, brandSupabaseOrgId, brandWorkOsOrgId, checkAccess, createAccessModel, deriveAccessKeyCatalog, findAccessCatalogEntry, isPermissionKey, isSupabaseOrgId, isWorkOsOrgId, listAccessKeys, normalizeAccessKey, rolePermissionForAccessKey, transformMembershipToTableRow, transformSupabaseToInvitation, transformSupabaseToMembership };
|
package/dist/index.d.ts
CHANGED
|
@@ -449,6 +449,30 @@ declare const SystemUiSchema: z.ZodObject<{
|
|
|
449
449
|
}>, z.ZodString]>>;
|
|
450
450
|
order: z.ZodOptional<z.ZodNumber>;
|
|
451
451
|
}, z.core.$strip>;
|
|
452
|
+
declare const SystemInterfaceKeySchema: z.ZodString;
|
|
453
|
+
declare const SystemInterfaceLifecycleSchema: z.ZodEnum<{
|
|
454
|
+
active: "active";
|
|
455
|
+
deprecated: "deprecated";
|
|
456
|
+
draft: "draft";
|
|
457
|
+
archived: "archived";
|
|
458
|
+
disabled: "disabled";
|
|
459
|
+
}>;
|
|
460
|
+
declare const SystemInterfaceReadinessProfileSchema: z.ZodString;
|
|
461
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
462
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
463
|
+
active: "active";
|
|
464
|
+
deprecated: "deprecated";
|
|
465
|
+
draft: "draft";
|
|
466
|
+
archived: "archived";
|
|
467
|
+
disabled: "disabled";
|
|
468
|
+
}>>;
|
|
469
|
+
readinessProfile: z.ZodOptional<z.ZodString>;
|
|
470
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
declare const SystemInterfaceRefSchema: z.ZodObject<{
|
|
473
|
+
systemPath: z.ZodString;
|
|
474
|
+
interfaceKey: z.ZodString;
|
|
475
|
+
}, z.core.$strict>;
|
|
452
476
|
type JsonPrimitive = string | number | boolean | null;
|
|
453
477
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
454
478
|
[key: string]: JsonValue;
|
|
@@ -477,6 +501,7 @@ interface SystemEntry {
|
|
|
477
501
|
}[];
|
|
478
502
|
policies?: string[];
|
|
479
503
|
drivesGoals?: string[];
|
|
504
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
480
505
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
481
506
|
status?: 'active' | 'deprecated' | 'archived';
|
|
482
507
|
path?: string;
|
|
@@ -2272,6 +2297,32 @@ declare const OmTopologyNodeRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2272
2297
|
id: z.ZodString;
|
|
2273
2298
|
}, z.core.$strip>], "kind">;
|
|
2274
2299
|
declare const OmTopologyMetadataSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2300
|
+
declare const OmTopologySystemInterfaceGrantSchema: z.ZodObject<{
|
|
2301
|
+
consumer: z.ZodObject<{
|
|
2302
|
+
systemPath: z.ZodString;
|
|
2303
|
+
interfaceKey: z.ZodString;
|
|
2304
|
+
}, z.core.$strict>;
|
|
2305
|
+
provider: z.ZodObject<{
|
|
2306
|
+
systemPath: z.ZodString;
|
|
2307
|
+
interfaceKey: z.ZodString;
|
|
2308
|
+
}, z.core.$strict>;
|
|
2309
|
+
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2310
|
+
ontologyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2311
|
+
}, z.core.$strict>;
|
|
2312
|
+
declare const OmTopologySystemInterfaceGrantMetadataSchema: z.ZodObject<{
|
|
2313
|
+
systemInterfaceGrant: z.ZodObject<{
|
|
2314
|
+
consumer: z.ZodObject<{
|
|
2315
|
+
systemPath: z.ZodString;
|
|
2316
|
+
interfaceKey: z.ZodString;
|
|
2317
|
+
}, z.core.$strict>;
|
|
2318
|
+
provider: z.ZodObject<{
|
|
2319
|
+
systemPath: z.ZodString;
|
|
2320
|
+
interfaceKey: z.ZodString;
|
|
2321
|
+
}, z.core.$strict>;
|
|
2322
|
+
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2323
|
+
ontologyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2324
|
+
}, z.core.$strict>;
|
|
2325
|
+
}, z.core.$strict>;
|
|
2275
2326
|
declare const OmTopologyRelationshipSchema: z.ZodObject<{
|
|
2276
2327
|
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2277
2328
|
kind: z.ZodLiteral<"system">;
|
|
@@ -3367,6 +3418,11 @@ type OrganizationModelSystemEntry = z.infer<typeof SystemEntrySchema>;
|
|
|
3367
3418
|
type OrganizationModelSystemId = z.infer<typeof SystemIdSchema>;
|
|
3368
3419
|
type OrganizationModelSystemKind = z.infer<typeof SystemKindSchema>;
|
|
3369
3420
|
type OrganizationModelSystemLifecycle = z.infer<typeof SystemLifecycleSchema>;
|
|
3421
|
+
type OrganizationModelSystemInterfaceKey = z.infer<typeof SystemInterfaceKeySchema>;
|
|
3422
|
+
type OrganizationModelSystemInterfaceLifecycle = z.infer<typeof SystemInterfaceLifecycleSchema>;
|
|
3423
|
+
type OrganizationModelSystemInterfaceReadinessProfile = z.infer<typeof SystemInterfaceReadinessProfileSchema>;
|
|
3424
|
+
type OrganizationModelSystemApiInterface = z.infer<typeof SystemApiInterfaceSchema>;
|
|
3425
|
+
type OrganizationModelSystemInterfaceRef = z.infer<typeof SystemInterfaceRefSchema>;
|
|
3370
3426
|
/** @deprecated Use OrganizationModelSystemLifecycle. Accepted for one publish cycle. */
|
|
3371
3427
|
type OrganizationModelSystemStatus = z.infer<typeof SystemStatusSchema>;
|
|
3372
3428
|
type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
|
|
@@ -3396,6 +3452,8 @@ type OrganizationModelTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>;
|
|
|
3396
3452
|
type OrganizationModelTopologyRelationshipKind = z.infer<typeof OmTopologyRelationshipKindSchema>;
|
|
3397
3453
|
type OrganizationModelTopologyRelationship = z.infer<typeof OmTopologyRelationshipSchema>;
|
|
3398
3454
|
type OrganizationModelTopologyMetadata = z.infer<typeof OmTopologyMetadataSchema>;
|
|
3455
|
+
type OrganizationModelTopologySystemInterfaceGrant = z.infer<typeof OmTopologySystemInterfaceGrantSchema>;
|
|
3456
|
+
type OrganizationModelTopologySystemInterfaceGrantMetadata = z.infer<typeof OmTopologySystemInterfaceGrantMetadataSchema>;
|
|
3399
3457
|
type OrganizationModelActions = z.infer<typeof ActionsDomainSchema>;
|
|
3400
3458
|
type OrganizationModelAction = z.infer<typeof ActionSchema>;
|
|
3401
3459
|
type OrganizationModelActionId = z.infer<typeof ActionIdSchema>;
|
|
@@ -4807,5 +4865,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4807
4865
|
}, z.core.$strip>>>>;
|
|
4808
4866
|
}, z.core.$strip>;
|
|
4809
4867
|
|
|
4810
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4811
|
-
export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
|
4868
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4869
|
+
export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
package/dist/index.js
CHANGED
|
@@ -726,6 +726,8 @@ function childSystemsOf2(system) {
|
|
|
726
726
|
return system.systems ?? system.subsystems ?? {};
|
|
727
727
|
}
|
|
728
728
|
function getSystem(model, path) {
|
|
729
|
+
const flatMatch = model.systems[path];
|
|
730
|
+
if (flatMatch !== void 0) return flatMatch;
|
|
729
731
|
const segments = path.split(".");
|
|
730
732
|
let current = model.systems;
|
|
731
733
|
let node;
|
|
@@ -992,6 +994,26 @@ var SystemUiSchema = z.object({
|
|
|
992
994
|
icon: IconNameSchema.optional(),
|
|
993
995
|
order: z.number().int().optional()
|
|
994
996
|
});
|
|
997
|
+
var SystemInterfaceKeySchema = ModelIdSchema;
|
|
998
|
+
var SystemInterfaceLifecycleSchema = z.enum(["draft", "active", "disabled", "deprecated", "archived"]).meta({ label: "System interface lifecycle", color: "teal" });
|
|
999
|
+
var SystemInterfaceReadinessProfileSchema = z.string().trim().min(1).max(200).regex(
|
|
1000
|
+
/^[a-z0-9][a-z0-9-]*(?:\.[a-z0-9][a-z0-9-]*)*(?:\.[a-z0-9][a-z0-9-]*)?$/,
|
|
1001
|
+
'Readiness profiles must use dotted lowercase identifiers (e.g. "sales.lead-gen.api")'
|
|
1002
|
+
);
|
|
1003
|
+
var SystemInterfaceResourceScopeSchema = z.array(ModelIdSchema).default([]);
|
|
1004
|
+
var SystemApiInterfaceSchema = z.object({
|
|
1005
|
+
lifecycle: SystemInterfaceLifecycleSchema.default("active"),
|
|
1006
|
+
readinessProfile: SystemInterfaceReadinessProfileSchema.optional(),
|
|
1007
|
+
/**
|
|
1008
|
+
* Resource ids that participate in this API interface. This scopes readiness
|
|
1009
|
+
* derivation without duplicating authored required/provided contract refs.
|
|
1010
|
+
*/
|
|
1011
|
+
resourceIds: SystemInterfaceResourceScopeSchema.optional()
|
|
1012
|
+
}).strict();
|
|
1013
|
+
var SystemInterfaceRefSchema = z.object({
|
|
1014
|
+
systemPath: SystemPathSchema,
|
|
1015
|
+
interfaceKey: SystemInterfaceKeySchema
|
|
1016
|
+
}).strict();
|
|
995
1017
|
var JsonValueSchema = z.lazy(
|
|
996
1018
|
() => z.union([
|
|
997
1019
|
z.string(),
|
|
@@ -1030,6 +1052,8 @@ var SystemEntrySchema = z.object({
|
|
|
1030
1052
|
policies: z.array(ModelIdSchema.meta({ ref: "policy" })).default([]).optional(),
|
|
1031
1053
|
/** Optional goals this system contributes to. */
|
|
1032
1054
|
drivesGoals: z.array(ModelIdSchema.meta({ ref: "goal" })).default([]).optional(),
|
|
1055
|
+
/** Thin API runtime-boundary marker. Readiness is derived from scoped resources and topology. */
|
|
1056
|
+
apiInterface: SystemApiInterfaceSchema.optional(),
|
|
1033
1057
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
1034
1058
|
status: SystemStatusSchema.optional(),
|
|
1035
1059
|
/** @deprecated Use ui.path. Kept for one-cycle Feature compatibility. */
|
|
@@ -1508,6 +1532,15 @@ var OmTopologyMetadataSchema = z.record(z.string().trim().min(1).max(120), JsonV
|
|
|
1508
1532
|
}
|
|
1509
1533
|
visit(metadata, []);
|
|
1510
1534
|
});
|
|
1535
|
+
var OmTopologySystemInterfaceGrantSchema = z.object({
|
|
1536
|
+
consumer: SystemInterfaceRefSchema,
|
|
1537
|
+
provider: SystemInterfaceRefSchema,
|
|
1538
|
+
resourceIds: z.array(ResourceIdSchema).default([]),
|
|
1539
|
+
ontologyIds: z.array(OntologyIdSchema).default([])
|
|
1540
|
+
}).strict();
|
|
1541
|
+
var OmTopologySystemInterfaceGrantMetadataSchema = z.object({
|
|
1542
|
+
systemInterfaceGrant: OmTopologySystemInterfaceGrantSchema
|
|
1543
|
+
}).strict();
|
|
1511
1544
|
var OmTopologyRelationshipSchema = z.object({
|
|
1512
1545
|
from: OmTopologyNodeRefSchema,
|
|
1513
1546
|
kind: OmTopologyRelationshipKindSchema,
|
|
@@ -2247,6 +2280,26 @@ function refineOrganizationModel(model, ctx) {
|
|
|
2247
2280
|
);
|
|
2248
2281
|
}
|
|
2249
2282
|
});
|
|
2283
|
+
allSystems.forEach(({ path: systemPath, schemaPath, system }) => {
|
|
2284
|
+
system.apiInterface?.resourceIds?.forEach((resourceId, resourceIndex) => {
|
|
2285
|
+
const resource = resourcesById.get(resourceId);
|
|
2286
|
+
if (resource === void 0) {
|
|
2287
|
+
addIssue(
|
|
2288
|
+
ctx,
|
|
2289
|
+
[...schemaPath, "apiInterface", "resourceIds", resourceIndex],
|
|
2290
|
+
`System Interface "${systemPath}/api" scopes unknown resource "${resourceId}"`
|
|
2291
|
+
);
|
|
2292
|
+
return;
|
|
2293
|
+
}
|
|
2294
|
+
if (resource.systemPath !== systemPath) {
|
|
2295
|
+
addIssue(
|
|
2296
|
+
ctx,
|
|
2297
|
+
[...schemaPath, "apiInterface", "resourceIds", resourceIndex],
|
|
2298
|
+
`System Interface "${systemPath}/api" scopes resource "${resourceId}" from system "${resource.systemPath}"`
|
|
2299
|
+
);
|
|
2300
|
+
}
|
|
2301
|
+
});
|
|
2302
|
+
});
|
|
2250
2303
|
function validateResourceOntologyBinding(resourceId, bindingKey, expectedKind, ids) {
|
|
2251
2304
|
const ontologyIds2 = ids === void 0 ? [] : Array.isArray(ids) ? ids : [ids];
|
|
2252
2305
|
ontologyIds2.forEach((ontologyId, ontologyIndex) => {
|
|
@@ -3406,4 +3459,4 @@ function scaffoldOrganizationModel(model, spec) {
|
|
|
3406
3459
|
return scaffoldKnowledgeNode(model, spec);
|
|
3407
3460
|
}
|
|
3408
3461
|
|
|
3409
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
3462
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
@@ -94,6 +94,17 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
94
94
|
}, z.core.$strip>>;
|
|
95
95
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
96
96
|
|
|
97
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
98
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
active: "active";
|
|
100
|
+
deprecated: "deprecated";
|
|
101
|
+
draft: "draft";
|
|
102
|
+
archived: "archived";
|
|
103
|
+
disabled: "disabled";
|
|
104
|
+
}>>;
|
|
105
|
+
readinessProfile: z.ZodOptional<z.ZodString>;
|
|
106
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
107
|
+
}, z.core.$strict>;
|
|
97
108
|
type JsonPrimitive = string | number | boolean | null;
|
|
98
109
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
99
110
|
[key: string]: JsonValue;
|
|
@@ -122,6 +133,7 @@ interface SystemEntry {
|
|
|
122
133
|
}[];
|
|
123
134
|
policies?: string[];
|
|
124
135
|
drivesGoals?: string[];
|
|
136
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
125
137
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
126
138
|
status?: 'active' | 'deprecated' | 'archived';
|
|
127
139
|
path?: string;
|
|
@@ -449,6 +449,30 @@ declare const SystemUiSchema: z.ZodObject<{
|
|
|
449
449
|
}>, z.ZodString]>>;
|
|
450
450
|
order: z.ZodOptional<z.ZodNumber>;
|
|
451
451
|
}, z.core.$strip>;
|
|
452
|
+
declare const SystemInterfaceKeySchema: z.ZodString;
|
|
453
|
+
declare const SystemInterfaceLifecycleSchema: z.ZodEnum<{
|
|
454
|
+
active: "active";
|
|
455
|
+
deprecated: "deprecated";
|
|
456
|
+
draft: "draft";
|
|
457
|
+
archived: "archived";
|
|
458
|
+
disabled: "disabled";
|
|
459
|
+
}>;
|
|
460
|
+
declare const SystemInterfaceReadinessProfileSchema: z.ZodString;
|
|
461
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
462
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
463
|
+
active: "active";
|
|
464
|
+
deprecated: "deprecated";
|
|
465
|
+
draft: "draft";
|
|
466
|
+
archived: "archived";
|
|
467
|
+
disabled: "disabled";
|
|
468
|
+
}>>;
|
|
469
|
+
readinessProfile: z.ZodOptional<z.ZodString>;
|
|
470
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
declare const SystemInterfaceRefSchema: z.ZodObject<{
|
|
473
|
+
systemPath: z.ZodString;
|
|
474
|
+
interfaceKey: z.ZodString;
|
|
475
|
+
}, z.core.$strict>;
|
|
452
476
|
type JsonPrimitive = string | number | boolean | null;
|
|
453
477
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
454
478
|
[key: string]: JsonValue;
|
|
@@ -477,6 +501,7 @@ interface SystemEntry {
|
|
|
477
501
|
}[];
|
|
478
502
|
policies?: string[];
|
|
479
503
|
drivesGoals?: string[];
|
|
504
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
480
505
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
481
506
|
status?: 'active' | 'deprecated' | 'archived';
|
|
482
507
|
path?: string;
|
|
@@ -2272,6 +2297,32 @@ declare const OmTopologyNodeRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2272
2297
|
id: z.ZodString;
|
|
2273
2298
|
}, z.core.$strip>], "kind">;
|
|
2274
2299
|
declare const OmTopologyMetadataSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2300
|
+
declare const OmTopologySystemInterfaceGrantSchema: z.ZodObject<{
|
|
2301
|
+
consumer: z.ZodObject<{
|
|
2302
|
+
systemPath: z.ZodString;
|
|
2303
|
+
interfaceKey: z.ZodString;
|
|
2304
|
+
}, z.core.$strict>;
|
|
2305
|
+
provider: z.ZodObject<{
|
|
2306
|
+
systemPath: z.ZodString;
|
|
2307
|
+
interfaceKey: z.ZodString;
|
|
2308
|
+
}, z.core.$strict>;
|
|
2309
|
+
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2310
|
+
ontologyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2311
|
+
}, z.core.$strict>;
|
|
2312
|
+
declare const OmTopologySystemInterfaceGrantMetadataSchema: z.ZodObject<{
|
|
2313
|
+
systemInterfaceGrant: z.ZodObject<{
|
|
2314
|
+
consumer: z.ZodObject<{
|
|
2315
|
+
systemPath: z.ZodString;
|
|
2316
|
+
interfaceKey: z.ZodString;
|
|
2317
|
+
}, z.core.$strict>;
|
|
2318
|
+
provider: z.ZodObject<{
|
|
2319
|
+
systemPath: z.ZodString;
|
|
2320
|
+
interfaceKey: z.ZodString;
|
|
2321
|
+
}, z.core.$strict>;
|
|
2322
|
+
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2323
|
+
ontologyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2324
|
+
}, z.core.$strict>;
|
|
2325
|
+
}, z.core.$strict>;
|
|
2275
2326
|
declare const OmTopologyRelationshipSchema: z.ZodObject<{
|
|
2276
2327
|
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2277
2328
|
kind: z.ZodLiteral<"system">;
|
|
@@ -3367,6 +3418,11 @@ type OrganizationModelSystemEntry = z.infer<typeof SystemEntrySchema>;
|
|
|
3367
3418
|
type OrganizationModelSystemId = z.infer<typeof SystemIdSchema>;
|
|
3368
3419
|
type OrganizationModelSystemKind = z.infer<typeof SystemKindSchema>;
|
|
3369
3420
|
type OrganizationModelSystemLifecycle = z.infer<typeof SystemLifecycleSchema>;
|
|
3421
|
+
type OrganizationModelSystemInterfaceKey = z.infer<typeof SystemInterfaceKeySchema>;
|
|
3422
|
+
type OrganizationModelSystemInterfaceLifecycle = z.infer<typeof SystemInterfaceLifecycleSchema>;
|
|
3423
|
+
type OrganizationModelSystemInterfaceReadinessProfile = z.infer<typeof SystemInterfaceReadinessProfileSchema>;
|
|
3424
|
+
type OrganizationModelSystemApiInterface = z.infer<typeof SystemApiInterfaceSchema>;
|
|
3425
|
+
type OrganizationModelSystemInterfaceRef = z.infer<typeof SystemInterfaceRefSchema>;
|
|
3370
3426
|
/** @deprecated Use OrganizationModelSystemLifecycle. Accepted for one publish cycle. */
|
|
3371
3427
|
type OrganizationModelSystemStatus = z.infer<typeof SystemStatusSchema>;
|
|
3372
3428
|
type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
|
|
@@ -3396,6 +3452,8 @@ type OrganizationModelTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>;
|
|
|
3396
3452
|
type OrganizationModelTopologyRelationshipKind = z.infer<typeof OmTopologyRelationshipKindSchema>;
|
|
3397
3453
|
type OrganizationModelTopologyRelationship = z.infer<typeof OmTopologyRelationshipSchema>;
|
|
3398
3454
|
type OrganizationModelTopologyMetadata = z.infer<typeof OmTopologyMetadataSchema>;
|
|
3455
|
+
type OrganizationModelTopologySystemInterfaceGrant = z.infer<typeof OmTopologySystemInterfaceGrantSchema>;
|
|
3456
|
+
type OrganizationModelTopologySystemInterfaceGrantMetadata = z.infer<typeof OmTopologySystemInterfaceGrantMetadataSchema>;
|
|
3399
3457
|
type OrganizationModelActions = z.infer<typeof ActionsDomainSchema>;
|
|
3400
3458
|
type OrganizationModelAction = z.infer<typeof ActionSchema>;
|
|
3401
3459
|
type OrganizationModelActionId = z.infer<typeof ActionIdSchema>;
|
|
@@ -4807,5 +4865,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4807
4865
|
}, z.core.$strip>>>>;
|
|
4808
4866
|
}, z.core.$strip>;
|
|
4809
4867
|
|
|
4810
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4811
|
-
export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
|
4868
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4869
|
+
export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|