@lucern/sdk 0.2.0-alpha.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/README.md +97 -0
- package/dist/index.js +8980 -0
- package/dist/index.js.map +1 -0
- package/dist/lucern/contracts/src/auth-session.contract.d.ts +53 -0
- package/dist/lucern/contracts/src/context-pack.contract.d.ts +494 -0
- package/dist/lucern/contracts/src/lens-filter.contract.d.ts +70 -0
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +84 -0
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +151 -0
- package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +161 -0
- package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +119 -0
- package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +18 -0
- package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +78 -0
- package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +53 -0
- package/dist/lucern/packages/client-core/src/beliefs.d.ts +30 -0
- package/dist/lucern/packages/client-core/src/context.d.ts +29 -0
- package/dist/lucern/packages/client-core/src/contradictions.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/edges.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/events.d.ts +9 -0
- package/dist/lucern/packages/client-core/src/evidence.d.ts +21 -0
- package/dist/lucern/packages/client-core/src/graph.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/identity.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ids.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ontologies.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/questions.d.ts +39 -0
- package/dist/lucern/packages/client-core/src/search.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/tasks.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/topics.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/webhooks.d.ts +35 -0
- package/dist/lucern/packages/client-core/src/worktrees.d.ts +17 -0
- package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +283 -0
- package/dist/lucern/packages/domain-beliefs/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-context/src/compile.d.ts +11 -0
- package/dist/lucern/packages/domain-context/src/context-pack-compiler.d.ts +101 -0
- package/dist/lucern/packages/domain-context/src/index.d.ts +4 -0
- package/dist/lucern/packages/domain-context/src/ports.d.ts +58 -0
- package/dist/lucern/packages/domain-context/src/public-types.d.ts +1 -0
- package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +59 -0
- package/dist/lucern/packages/domain-edges/src/edges.d.ts +91 -0
- package/dist/lucern/packages/domain-edges/src/index.d.ts +2 -0
- package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +115 -0
- package/dist/lucern/packages/domain-evidence/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-graph/src/graph.d.ts +150 -0
- package/dist/lucern/packages/domain-identity/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-identity/src/whoami.d.ts +13 -0
- package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +123 -0
- package/dist/lucern/packages/domain-questions/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-questions/src/questions.d.ts +147 -0
- package/dist/lucern/packages/domain-search/src/search.d.ts +97 -0
- package/dist/lucern/packages/domain-tasks/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +102 -0
- package/dist/lucern/packages/domain-topics/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-topics/src/topics.d.ts +147 -0
- package/dist/lucern/packages/domain-worktrees/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +185 -0
- package/dist/lucern/packages/events/src/index.d.ts +4 -0
- package/dist/lucern/packages/events/src/matching.d.ts +3 -0
- package/dist/lucern/packages/events/src/outbox.d.ts +15 -0
- package/dist/lucern/packages/events/src/types.d.ts +151 -0
- package/dist/lucern/packages/events/src/webhooks.d.ts +9 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +15 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +12 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +6 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +21 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +39 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +16 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/adminClient.d.ts +89 -0
- package/dist/packages/sdk/src/answersClient.d.ts +5 -0
- package/dist/packages/sdk/src/audiencesClient.d.ts +87 -0
- package/dist/packages/sdk/src/auditClient.d.ts +23 -0
- package/dist/packages/sdk/src/beliefsClient.d.ts +54 -0
- package/dist/packages/sdk/src/client.d.ts +1610 -0
- package/dist/packages/sdk/src/contextClient.d.ts +9 -0
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +58 -0
- package/dist/packages/sdk/src/controlObjectOwnership.d.ts +293 -0
- package/dist/packages/sdk/src/coreClient.d.ts +120 -0
- package/dist/packages/sdk/src/customTools.d.ts +65 -0
- package/dist/packages/sdk/src/decisionsClient.d.ts +110 -0
- package/dist/packages/sdk/src/graphClient.d.ts +209 -0
- package/dist/packages/sdk/src/harnessClient.d.ts +222 -0
- package/dist/packages/sdk/src/identityClient.d.ts +104 -0
- package/dist/packages/sdk/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/learningClient.d.ts +43 -0
- package/dist/packages/sdk/src/mcpParityClient.d.ts +68 -0
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
- package/dist/packages/sdk/src/ontologyClient.d.ts +115 -0
- package/dist/packages/sdk/src/packsClient.d.ts +101 -0
- package/dist/packages/sdk/src/policyClient.d.ts +204 -0
- package/dist/packages/sdk/src/reportsClient.d.ts +31 -0
- package/dist/packages/sdk/src/schemaClient.d.ts +54 -0
- package/dist/packages/sdk/src/sdkSurface.d.ts +56 -0
- package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
- package/dist/packages/sdk/src/types.d.ts +489 -0
- package/dist/packages/sdk/src/version.d.ts +2 -0
- package/dist/packages/sdk/src/workflowClient.d.ts +274 -0
- package/package.json +56 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "./facade/beliefs";
|
|
2
|
+
export * from "./facade/contradictions";
|
|
3
|
+
export * from "./facade/edges";
|
|
4
|
+
export * from "./facade/events";
|
|
5
|
+
export * from "./facade/identity";
|
|
6
|
+
export * from "./facade/evidence";
|
|
7
|
+
export * from "./facade/graph";
|
|
8
|
+
export * from "./facade/ontologies";
|
|
9
|
+
export * from "./facade/questions";
|
|
10
|
+
export * from "./facade/search";
|
|
11
|
+
export * from "./facade/tasks";
|
|
12
|
+
export * from "./facade/topics";
|
|
13
|
+
export * from "./facade/webhooks";
|
|
14
|
+
export * from "./facade/worktrees";
|
|
15
|
+
export * from "@/lucern/packages/domain-beliefs/src/beliefs";
|
|
16
|
+
export * from "@/lucern/packages/domain-edges/src/contradictions";
|
|
17
|
+
export * from "@/lucern/packages/domain-edges/src/edges";
|
|
18
|
+
export * from "@/lucern/packages/domain-evidence/src/evidence";
|
|
19
|
+
export * from "@/lucern/packages/domain-graph/src/graph";
|
|
20
|
+
export * from "@/lucern/packages/domain-identity/src/whoami";
|
|
21
|
+
export * from "@/lucern/packages/domain-ontologies/src/ontologies";
|
|
22
|
+
export * from "@/lucern/packages/domain-questions/src/questions";
|
|
23
|
+
export * from "@/lucern/packages/domain-search/src/search";
|
|
24
|
+
export * from "@/lucern/packages/domain-tasks/src/tasks";
|
|
25
|
+
export * from "@/lucern/packages/domain-topics/src/topics";
|
|
26
|
+
export * from "@/lucern/packages/domain-worktrees/src/worktrees";
|
|
27
|
+
export * from "@/lucern/packages/events/src/types";
|
|
28
|
+
export * from "./facade/context";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { ControlObjectOwnershipContract } from "./controlObjectOwnership";
|
|
3
|
+
import type { JsonObject } from "./types";
|
|
4
|
+
export { LucernApiError };
|
|
5
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
6
|
+
export type AdminClientConfig = GatewayClientConfig;
|
|
7
|
+
/**
|
|
8
|
+
* Create the admin client for tenant, workspace, and membership administration.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createAdminClient(config?: AdminClientConfig): {
|
|
11
|
+
/**
|
|
12
|
+
* List tenants visible to the current principal.
|
|
13
|
+
*/
|
|
14
|
+
listTenants(query?: {
|
|
15
|
+
status?: "active" | "disabled" | "archived";
|
|
16
|
+
limit?: number;
|
|
17
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "tenants">>>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a tenant.
|
|
20
|
+
*/
|
|
21
|
+
createTenant(input: {
|
|
22
|
+
key: string;
|
|
23
|
+
slug?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
status?: "active" | "disabled" | "archived";
|
|
26
|
+
metadata?: JsonObject;
|
|
27
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get the control-object ownership contract.
|
|
30
|
+
*/
|
|
31
|
+
getControlObjectOwnership(): Promise<import("./coreClient").PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Use getControlObjectOwnership.
|
|
34
|
+
*/
|
|
35
|
+
getControlObjectOwnershipContract(): Promise<import("./coreClient").PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
36
|
+
/**
|
|
37
|
+
* List workspaces for the current admin scope.
|
|
38
|
+
*/
|
|
39
|
+
listWorkspaces(query?: GatewayScope & {
|
|
40
|
+
status?: "active" | "archived";
|
|
41
|
+
limit?: number;
|
|
42
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "workspaces">>>;
|
|
43
|
+
/**
|
|
44
|
+
* Create a workspace.
|
|
45
|
+
*/
|
|
46
|
+
createWorkspace(input: GatewayScope & {
|
|
47
|
+
key: string;
|
|
48
|
+
slug?: string;
|
|
49
|
+
name: string;
|
|
50
|
+
status?: "active" | "archived";
|
|
51
|
+
defaultProjectVisibility?: "private" | "firm" | "public";
|
|
52
|
+
metadata?: JsonObject;
|
|
53
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
54
|
+
/**
|
|
55
|
+
* List memberships for the current admin scope.
|
|
56
|
+
*/
|
|
57
|
+
listMemberships(query?: GatewayScope & {
|
|
58
|
+
principalId?: string;
|
|
59
|
+
status?: "active" | "revoked" | "expired";
|
|
60
|
+
limit?: number;
|
|
61
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "memberships">>>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a membership.
|
|
64
|
+
*/
|
|
65
|
+
createMembership(input: GatewayScope & {
|
|
66
|
+
principalId: string;
|
|
67
|
+
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
68
|
+
status?: "active" | "revoked" | "expired";
|
|
69
|
+
source?: "bootstrap" | "manual" | "sync" | "invitation";
|
|
70
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
71
|
+
/**
|
|
72
|
+
* Update a membership.
|
|
73
|
+
*/
|
|
74
|
+
updateMembership(input: GatewayScope & {
|
|
75
|
+
principalId: string;
|
|
76
|
+
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
77
|
+
status?: "active" | "revoked" | "expired";
|
|
78
|
+
source?: "bootstrap" | "manual" | "sync" | "invitation";
|
|
79
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Use createMembership or updateMembership.
|
|
82
|
+
*/
|
|
83
|
+
upsertMembership(input: GatewayScope & {
|
|
84
|
+
principalId: string;
|
|
85
|
+
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
86
|
+
status?: "active" | "revoked" | "expired";
|
|
87
|
+
source?: "bootstrap" | "manual" | "sync" | "invitation";
|
|
88
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
89
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GatewayClientConfig } from "./coreClient";
|
|
2
|
+
export type AnswersClientConfig = GatewayClientConfig;
|
|
3
|
+
export declare function createAnswersClient(config?: AnswersClientConfig): {
|
|
4
|
+
get(questionId: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope } from "./coreClient";
|
|
2
|
+
import type { JsonObject } from "./types";
|
|
3
|
+
export type AudiencesClientConfig = GatewayClientConfig;
|
|
4
|
+
export type AudienceRegistryInput = GatewayScope & {
|
|
5
|
+
audienceKey: string;
|
|
6
|
+
audienceLabel: string;
|
|
7
|
+
audienceClass: "internal" | "restricted_external" | "public";
|
|
8
|
+
status?: "active" | "disabled" | "archived";
|
|
9
|
+
description?: string;
|
|
10
|
+
metadata?: JsonObject;
|
|
11
|
+
};
|
|
12
|
+
export type AudienceGrantInput = GatewayScope & {
|
|
13
|
+
audienceKey: string;
|
|
14
|
+
audienceClass?: "internal" | "restricted_external" | "public";
|
|
15
|
+
principalId?: string;
|
|
16
|
+
groupId?: string;
|
|
17
|
+
expiresAt?: number;
|
|
18
|
+
metadata?: JsonObject;
|
|
19
|
+
};
|
|
20
|
+
export type AudienceGrantRevokeInput = GatewayScope & {
|
|
21
|
+
grantId: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Create the audiences client for registry entries and grants.
|
|
25
|
+
*/
|
|
26
|
+
export declare function createAudiencesClient(config?: AudiencesClientConfig): {
|
|
27
|
+
/**
|
|
28
|
+
* List audience registry entries.
|
|
29
|
+
*/
|
|
30
|
+
listRegistry(query?: GatewayScope & {
|
|
31
|
+
effective?: boolean;
|
|
32
|
+
status?: "active" | "disabled" | "archived";
|
|
33
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "registryEntries">>>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use listRegistry.
|
|
36
|
+
*/
|
|
37
|
+
getRegistry(query?: GatewayScope & {
|
|
38
|
+
effective?: boolean;
|
|
39
|
+
status?: "active" | "disabled" | "archived";
|
|
40
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "registryEntries">>>;
|
|
41
|
+
/**
|
|
42
|
+
* Create an audience registry entry.
|
|
43
|
+
*/
|
|
44
|
+
createRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
45
|
+
/**
|
|
46
|
+
* Update an audience registry entry.
|
|
47
|
+
*/
|
|
48
|
+
updateRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Use createRegistryEntry or updateRegistryEntry.
|
|
51
|
+
*/
|
|
52
|
+
upsertRegistry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
53
|
+
/**
|
|
54
|
+
* List audience grants.
|
|
55
|
+
*/
|
|
56
|
+
listGrants(query?: GatewayScope & {
|
|
57
|
+
audienceKey?: string;
|
|
58
|
+
principalId?: string;
|
|
59
|
+
groupId?: string;
|
|
60
|
+
status?: "active" | "revoked" | "expired";
|
|
61
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "grants">>>;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Use listGrants.
|
|
64
|
+
*/
|
|
65
|
+
getGrants(query?: GatewayScope & {
|
|
66
|
+
audienceKey?: string;
|
|
67
|
+
principalId?: string;
|
|
68
|
+
groupId?: string;
|
|
69
|
+
status?: "active" | "revoked" | "expired";
|
|
70
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "grants">>>;
|
|
71
|
+
/**
|
|
72
|
+
* Create an audience grant.
|
|
73
|
+
*/
|
|
74
|
+
createGrant(input: AudienceGrantInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Use createGrant.
|
|
77
|
+
*/
|
|
78
|
+
grant(input: AudienceGrantInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
79
|
+
/**
|
|
80
|
+
* Delete an audience grant by revoking it.
|
|
81
|
+
*/
|
|
82
|
+
deleteGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use deleteGrant.
|
|
85
|
+
*/
|
|
86
|
+
revokeGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
87
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type AuditClientConfig = GatewayClientConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Create the audit client for transport-level audit event reads.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createAuditClient(config?: AuditClientConfig): {
|
|
10
|
+
/**
|
|
11
|
+
* List audit events for the current scope.
|
|
12
|
+
*/
|
|
13
|
+
listEvents(query?: GatewayScope & {
|
|
14
|
+
action?: string;
|
|
15
|
+
decision?: string;
|
|
16
|
+
traceId?: string;
|
|
17
|
+
principalId?: string;
|
|
18
|
+
topicId?: string;
|
|
19
|
+
/** @deprecated Use topicId. */
|
|
20
|
+
projectId?: string;
|
|
21
|
+
limit?: number;
|
|
22
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "events">>>;
|
|
23
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { ForkBeliefResponse, JsonObject, ModulateConfidenceResponse, TextAliasInput, TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type { CreateBeliefResponse, ForkBeliefResponse, ModulateConfidenceResponse, } from "./types";
|
|
6
|
+
export type BeliefsClientConfig = GatewayClientConfig;
|
|
7
|
+
export type CreateBeliefInput = {
|
|
8
|
+
topicId?: string;
|
|
9
|
+
/** @deprecated Use text. */
|
|
10
|
+
canonicalText?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
/** @deprecated Use topicId. */
|
|
13
|
+
projectId?: string;
|
|
14
|
+
layer?: "L1" | "L2" | "L3" | "L4";
|
|
15
|
+
domain?: string;
|
|
16
|
+
sourceType?: "human" | "ai" | "agent" | "imported";
|
|
17
|
+
content?: string;
|
|
18
|
+
contentHash?: string;
|
|
19
|
+
globalId?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
subtype?: string;
|
|
22
|
+
confidence?: number;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
metadata?: JsonObject;
|
|
25
|
+
verificationStatus?: "unverified" | "verified" | "rejected";
|
|
26
|
+
} & TopicIdentifierInput & TextAliasInput;
|
|
27
|
+
export type ModulateConfidenceInput = {
|
|
28
|
+
confidence: number;
|
|
29
|
+
trigger?: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "manual" | "decay" | "agent_assessment" | "merge_outcome" | "sprint_outcome" | "sprint_completed";
|
|
30
|
+
rationale: string;
|
|
31
|
+
certainty?: number;
|
|
32
|
+
};
|
|
33
|
+
export type ForkBeliefInput = {
|
|
34
|
+
newFormulation: string;
|
|
35
|
+
forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
|
|
36
|
+
rationale?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Create the beliefs client for belief lifecycle operations.
|
|
40
|
+
*/
|
|
41
|
+
export declare function createBeliefsClient(config?: BeliefsClientConfig): {
|
|
42
|
+
/**
|
|
43
|
+
* Create a belief within a topic scope.
|
|
44
|
+
*/
|
|
45
|
+
createBelief(input: CreateBeliefInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformBeliefRecord>>;
|
|
46
|
+
/**
|
|
47
|
+
* Record a confidence change for an existing belief.
|
|
48
|
+
*/
|
|
49
|
+
modulateConfidence(beliefId: string, input: ModulateConfidenceInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<ModulateConfidenceResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* Fork a scored belief into a new formulation.
|
|
52
|
+
*/
|
|
53
|
+
forkBelief(beliefId: string, input: ForkBeliefInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<ForkBeliefResponse>>;
|
|
54
|
+
};
|