@lucern/sdk 0.3.0-alpha.2 → 0.3.0-alpha.3
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/adminClient.d.ts +2 -0
- package/dist/adminClient.js +194 -3
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.d.ts +2 -0
- package/dist/answersClient.js +194 -3
- package/dist/answersClient.js.map +1 -1
- package/dist/audiencesClient.d.ts +2 -0
- package/dist/audiencesClient.js +194 -3
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.d.ts +2 -0
- package/dist/auditClient.js +196 -5
- package/dist/auditClient.js.map +1 -1
- package/dist/authContext.d.ts +56 -0
- package/dist/authContext.js +169 -0
- package/dist/authContext.js.map +1 -0
- package/dist/authDeviceClient.d.ts +49 -0
- package/dist/authDeviceClient.js +108 -0
- package/dist/authDeviceClient.js.map +1 -0
- package/dist/beliefs/index.d.ts +19 -2
- package/dist/beliefs/index.js +2356 -329
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.d.ts +2 -0
- package/dist/beliefsClient.js +198 -7
- package/dist/beliefsClient.js.map +1 -1
- package/dist/boundaryClientSurface.d.ts +20 -0
- package/dist/boundaryClientSurface.js +66 -0
- package/dist/boundaryClientSurface.js.map +1 -0
- package/dist/{client-B6aWUUwp.d.ts → client-EiG9nJOY.d.ts} +365 -6
- package/dist/client.d.ts +20 -3
- package/dist/client.js +2356 -329
- package/dist/client.js.map +1 -1
- package/dist/contextClient.d.ts +2 -0
- package/dist/contextClient.js +200 -9
- package/dist/contextClient.js.map +1 -1
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +104 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/mcpTools.d.ts +46 -1
- package/dist/contracts/mcpTools.js +102 -0
- package/dist/contracts/mcpTools.js.map +1 -1
- package/dist/contradictions/index.d.ts +19 -2
- package/dist/contradictions/index.js +2356 -329
- package/dist/contradictions/index.js.map +1 -1
- package/dist/coreClient.d.ts +9 -0
- package/dist/coreClient.js +194 -3
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +19 -2
- package/dist/decisions/index.js +2356 -329
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.d.ts +2 -0
- package/dist/decisionsClient.js +197 -6
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +19 -2
- package/dist/edges/index.js +2356 -329
- package/dist/edges/index.js.map +1 -1
- package/dist/embeddingsClient.d.ts +106 -0
- package/dist/embeddingsClient.js +707 -0
- package/dist/embeddingsClient.js.map +1 -0
- package/dist/eventingClient.d.ts +96 -0
- package/dist/eventingClient.js +704 -0
- package/dist/eventingClient.js.map +1 -0
- package/dist/eventsCore.d.ts +2 -0
- package/dist/eventsCore.js +194 -3
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +19 -2
- package/dist/evidence/index.js +2356 -329
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.d.ts +2 -0
- package/dist/evidenceClient.js +194 -3
- package/dist/evidenceClient.js.map +1 -1
- package/dist/gatewayFacades.d.ts +4 -2
- package/dist/gatewayFacades.js +370 -12
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphAnalysisClient.d.ts +140 -0
- package/dist/graphAnalysisClient.js +753 -0
- package/dist/graphAnalysisClient.js.map +1 -0
- package/dist/graphClient.d.ts +2 -0
- package/dist/graphClient.js +201 -10
- package/dist/graphClient.js.map +1 -1
- package/dist/graphRecommendationsClient.d.ts +56 -0
- package/dist/graphRecommendationsClient.js +645 -0
- package/dist/graphRecommendationsClient.js.map +1 -0
- package/dist/graphStateClassifierClient.d.ts +73 -0
- package/dist/graphStateClassifierClient.js +693 -0
- package/dist/graphStateClassifierClient.js.map +1 -0
- package/dist/harnessClient.d.ts +2 -0
- package/dist/harnessClient.js +196 -5
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.d.ts +89 -3
- package/dist/identityClient.js +362 -4
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +20 -3
- package/dist/index.js +2516 -356
- package/dist/index.js.map +1 -1
- package/dist/jobsClient.d.ts +98 -0
- package/dist/jobsClient.js +703 -0
- package/dist/jobsClient.js.map +1 -0
- package/dist/learningClient.d.ts +2 -0
- package/dist/learningClient.js +196 -5
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +19 -2
- package/dist/lenses/index.js +2356 -329
- package/dist/lenses/index.js.map +1 -1
- package/dist/mcpClient.d.ts +28 -0
- package/dist/mcpClient.js +649 -0
- package/dist/mcpClient.js.map +1 -0
- package/dist/modelRuntimeClient.d.ts +72 -0
- package/dist/modelRuntimeClient.js +680 -0
- package/dist/modelRuntimeClient.js.map +1 -0
- package/dist/nodes/index.d.ts +19 -2
- package/dist/nodes/index.js +2356 -329
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +19 -2
- package/dist/ontologies/index.js +2356 -329
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.d.ts +2 -0
- package/dist/ontologyClient.js +194 -3
- package/dist/ontologyClient.js.map +1 -1
- package/dist/ontologyLinksClient.d.ts +71 -0
- package/dist/ontologyLinksClient.js +674 -0
- package/dist/ontologyLinksClient.js.map +1 -0
- package/dist/orgGraphSearchClient.d.ts +85 -0
- package/dist/orgGraphSearchClient.js +651 -0
- package/dist/orgGraphSearchClient.js.map +1 -0
- package/dist/packRuntime.d.ts +1 -2
- package/dist/packsClient.d.ts +2 -0
- package/dist/packsClient.js +194 -3
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.d.ts +2 -0
- package/dist/policyClient.js +194 -3
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +19 -2
- package/dist/questions/index.js +2356 -329
- package/dist/questions/index.js.map +1 -1
- package/dist/reportsClient.d.ts +2 -0
- package/dist/reportsClient.js +196 -5
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.d.ts +2 -0
- package/dist/schemaClient.js +194 -3
- package/dist/schemaClient.js.map +1 -1
- package/dist/sdkSurface.d.ts +2 -0
- package/dist/sourcesClient.d.ts +2 -0
- package/dist/sourcesClient.js +194 -3
- package/dist/sourcesClient.js.map +1 -1
- package/dist/telemetryClient.d.ts +94 -0
- package/dist/telemetryClient.js +718 -0
- package/dist/telemetryClient.js.map +1 -0
- package/dist/toolRegistryClient.d.ts +107 -0
- package/dist/toolRegistryClient.js +732 -0
- package/dist/toolRegistryClient.js.map +1 -0
- package/dist/topics/index.d.ts +19 -2
- package/dist/topics/index.js +2356 -329
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.d.ts +2 -0
- package/dist/topicsClient.js +199 -8
- package/dist/topicsClient.js.map +1 -1
- package/dist/workflowClient.d.ts +2 -0
- package/dist/workflowClient.js +199 -8
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +19 -2
- package/dist/worktrees/index.js +2356 -329
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// src/sdkSurface.ts
|
|
2
|
+
function createListResult(items, legacyKey) {
|
|
3
|
+
const result = {
|
|
4
|
+
items,
|
|
5
|
+
total: items.length
|
|
6
|
+
};
|
|
7
|
+
if (legacyKey) {
|
|
8
|
+
result[legacyKey] = items;
|
|
9
|
+
}
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/boundaryClientSurface.ts
|
|
14
|
+
function cleanOptionalString(value) {
|
|
15
|
+
const normalized = value?.trim();
|
|
16
|
+
return normalized ? normalized : void 0;
|
|
17
|
+
}
|
|
18
|
+
function cleanRequiredString(value, label) {
|
|
19
|
+
const normalized = cleanOptionalString(value);
|
|
20
|
+
if (!normalized) {
|
|
21
|
+
throw new Error(`${label} is required`);
|
|
22
|
+
}
|
|
23
|
+
return normalized;
|
|
24
|
+
}
|
|
25
|
+
function readTopicId(input) {
|
|
26
|
+
return cleanOptionalString(input.topicId) ?? cleanOptionalString(input.projectId);
|
|
27
|
+
}
|
|
28
|
+
function requireTopicId(input) {
|
|
29
|
+
const topicId = readTopicId(input);
|
|
30
|
+
if (!topicId) {
|
|
31
|
+
throw new Error("topicId is required");
|
|
32
|
+
}
|
|
33
|
+
return topicId;
|
|
34
|
+
}
|
|
35
|
+
function assertKnownKeys(input, allowed, operation) {
|
|
36
|
+
const allowedSet = new Set(allowed);
|
|
37
|
+
const unknownKeys = Object.keys(input).filter((key) => !allowedSet.has(key));
|
|
38
|
+
if (unknownKeys.length > 0) {
|
|
39
|
+
throw new Error(
|
|
40
|
+
`${operation} received unsupported field(s): ${unknownKeys.join(", ")}`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function knownPayload(input, allowed, operation) {
|
|
45
|
+
assertKnownKeys(input, allowed, operation);
|
|
46
|
+
return { ...input };
|
|
47
|
+
}
|
|
48
|
+
function topicPayload(input, allowed, operation) {
|
|
49
|
+
assertKnownKeys(input, allowed, operation);
|
|
50
|
+
return {
|
|
51
|
+
...input,
|
|
52
|
+
topicId: requireTopicId(input),
|
|
53
|
+
projectId: void 0
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function listResultFromEnvelope(data, legacyKey) {
|
|
57
|
+
const record = data && typeof data === "object" ? data : {};
|
|
58
|
+
return createListResult(
|
|
59
|
+
Array.isArray(record[legacyKey]) ? record[legacyKey] : Array.isArray(data) ? data : [],
|
|
60
|
+
legacyKey
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { assertKnownKeys, cleanOptionalString, cleanRequiredString, knownPayload, listResultFromEnvelope, readTopicId, requireTopicId, topicPayload };
|
|
65
|
+
//# sourceMappingURL=boundaryClientSurface.js.map
|
|
66
|
+
//# sourceMappingURL=boundaryClientSurface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/sdkSurface.ts","../src/boundaryClientSurface.ts"],"names":[],"mappings":";AAkJO,SAAS,gBAAA,CACd,OACA,SAAA,EAC0B;AAC1B,EAAA,MAAM,MAAA,GAAS;AAAA,IACb,KAAA;AAAA,IACA,OAAO,KAAA,CAAM;AAAA,GACf;AAEA,EAAA,IAAI,SAAA,EAAW;AACb,IAAC,MAAA,CAAmC,SAAS,CAAA,GAAI,KAAA;AAAA,EACnD;AAEA,EAAA,OAAO,MAAA;AACT;;;ACvJO,SAAS,oBAAoB,KAAA,EAA2B;AAC7D,EAAA,MAAM,UAAA,GAAa,OAAO,IAAA,EAAK;AAC/B,EAAA,OAAO,aAAa,UAAA,GAAa,MAAA;AACnC;AAEO,SAAS,mBAAA,CACd,OACA,KAAA,EACA;AACA,EAAA,MAAM,UAAA,GAAa,oBAAoB,KAAK,CAAA;AAC5C,EAAA,IAAI,CAAC,UAAA,EAAY;AACf,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA,EAAG,KAAK,CAAA,YAAA,CAAc,CAAA;AAAA,EACxC;AACA,EAAA,OAAO,UAAA;AACT;AAEO,SAAS,YAAY,KAAA,EAA+B;AACzD,EAAA,OAAO,oBAAoB,KAAA,CAAM,OAAO,CAAA,IAAK,mBAAA,CAAoB,MAAM,SAAS,CAAA;AAClF;AAEO,SAAS,eAAe,KAAA,EAA+B;AAC5D,EAAA,MAAM,OAAA,GAAU,YAAY,KAAK,CAAA;AACjC,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,MAAM,IAAI,MAAM,qBAAqB,CAAA;AAAA,EACvC;AACA,EAAA,OAAO,OAAA;AACT;AAEO,SAAS,eAAA,CACd,KAAA,EACA,OAAA,EACA,SAAA,EACA;AACA,EAAA,MAAM,UAAA,GAAa,IAAI,GAAA,CAAY,OAAO,CAAA;AAC1C,EAAA,MAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,KAAK,CAAA,CAAE,MAAA,CAAO,CAAC,GAAA,KAAQ,CAAC,UAAA,CAAW,GAAA,CAAI,GAAG,CAAC,CAAA;AAC3E,EAAA,IAAI,WAAA,CAAY,SAAS,CAAA,EAAG;AAC1B,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,GAAG,SAAS,CAAA,gCAAA,EAAmC,WAAA,CAAY,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,KACvE;AAAA,EACF;AACF;AAEO,SAAS,YAAA,CACd,KAAA,EACA,OAAA,EACA,SAAA,EACA;AACA,EAAA,eAAA,CAAgB,KAAA,EAAO,SAAS,SAAS,CAAA;AACzC,EAAA,OAAO,EAAE,GAAG,KAAA,EAAM;AACpB;AAEO,SAAS,YAAA,CACd,KAAA,EACA,OAAA,EACA,SAAA,EACA;AACA,EAAA,eAAA,CAAgB,KAAA,EAAO,SAAS,SAAS,CAAA;AACzC,EAAA,OAAO;AAAA,IACL,GAAG,KAAA;AAAA,IACH,OAAA,EAAS,eAAe,KAAK,CAAA;AAAA,IAC7B,SAAA,EAAW;AAAA,GACb;AACF;AAEO,SAAS,sBAAA,CACd,MACA,SAAA,EAC0B;AAC1B,EAAA,MAAM,SAAS,IAAA,IAAQ,OAAO,IAAA,KAAS,QAAA,GAAW,OAAO,EAAC;AAC1D,EAAA,OAAO,gBAAA;AAAA,IACL,KAAA,CAAM,OAAA,CAAS,MAAA,CAAmC,SAAS,CAAC,CAAA,GACtD,MAAA,CAA+B,SAAS,CAAA,GAC1C,KAAA,CAAM,OAAA,CAAQ,IAAI,CAAA,GACf,OACD,EAAC;AAAA,IACP;AAAA,GACF;AACF","file":"boundaryClientSurface.js","sourcesContent":["import type { PlatformGatewaySuccess } from \"./coreClient\";\nimport type { JsonObject, ListResult } from \"./types\";\n\ntype TopicScopedValue = {\n topicId?: string;\n};\n\ntype TextScopedValue = {\n text?: string;\n canonicalText?: string;\n};\n\ntype AnyRecord = Record<string, unknown>;\n\nfunction asRecord(value: unknown): AnyRecord {\n return value && typeof value === \"object\" ? (value as AnyRecord) : {};\n}\n\nfunction cleanString(value: unknown): string | undefined {\n return typeof value === \"string\" && value.trim().length > 0\n ? value.trim()\n : undefined;\n}\n\nfunction normalizeVerificationStatus(value: unknown): string | undefined {\n const status = cleanString(value);\n if (!status) {\n return undefined;\n }\n if (status === \"verified\") {\n return \"human_verified\";\n }\n if (status === \"rejected\") {\n return \"contradicted\";\n }\n return status;\n}\n\nfunction cloneWith<T extends AnyRecord>(value: T, patch: AnyRecord): T {\n return { ...value, ...patch } as T;\n}\n\n/**\n * Resolve the canonical topic identifier.\n */\nexport function resolveTopicId(value: TopicScopedValue): string | undefined {\n return cleanString(value.topicId);\n}\n\n/**\n * Resolve the canonical text field from text-first or legacy canonicalText-first inputs.\n */\nexport function resolveText(value: TextScopedValue): string | undefined {\n return cleanString(value.text) ?? cleanString(value.canonicalText);\n}\n\n/**\n * Attach the topicId to a record.\n */\nexport function withTopicAlias<T extends AnyRecord>(value: T): T {\n const topicId = cleanString(value.topicId) ?? undefined;\n if (!topicId) {\n return value;\n }\n return cloneWith(value, { topicId });\n}\n\n/**\n * Attach the text/canonicalText alias pair to a record.\n */\nexport function withTextAlias<T extends AnyRecord>(value: T): T {\n const text =\n cleanString(value.text) ?? cleanString(value.canonicalText) ?? undefined;\n if (!text) {\n return value;\n }\n return cloneWith(value, { text, canonicalText: text });\n}\n\n/**\n * Attach topic and text aliases to SDK node-like records.\n */\nexport function withSdkAliases<T extends AnyRecord>(value: T): T {\n return withTopicAlias(withTextAlias(value));\n}\n\n/**\n * Normalize a belief/question/evidence write payload to the canonical gateway shape.\n */\nexport function normalizeNodeWriteInput<T extends JsonObject>(value: T): T {\n const topicId = resolveTopicId(value);\n const text = resolveText(value);\n const verificationStatus = normalizeVerificationStatus(value.verificationStatus);\n const next = { ...value } as JsonObject;\n\n if (topicId) {\n next.topicId = topicId;\n }\n if (text) {\n next.text = text;\n next.canonicalText = text;\n }\n if (verificationStatus) {\n next.verificationStatus = verificationStatus;\n }\n\n return next as T;\n}\n\nexport function normalizeNodeVerificationStatus(value: unknown) {\n return normalizeVerificationStatus(value);\n}\n\n/**\n * Build a topic-aware query object.\n */\nexport function normalizeTopicQuery<T extends JsonObject>(value: T): T {\n const topicId = cleanString(value.topicId);\n if (!topicId) {\n return value;\n }\n return { ...value, topicId } as T;\n}\n\n/**\n * Extract list items from array or list-envelope payloads.\n */\nexport function asListItems<T>(data: unknown, legacyKey?: string): T[] {\n if (Array.isArray(data)) {\n return data as T[];\n }\n\n const record = asRecord(data);\n if (Array.isArray(record.items)) {\n return record.items as T[];\n }\n if (legacyKey && Array.isArray(record[legacyKey])) {\n return record[legacyKey] as T[];\n }\n\n return [];\n}\n\n/**\n * Standardize list data to { items, total } while retaining an optional legacy array key.\n */\nexport function createListResult<T, LegacyKey extends string>(\n items: T[],\n legacyKey?: LegacyKey\n): ListResult<T, LegacyKey> {\n const result = {\n items,\n total: items.length,\n } as ListResult<T, LegacyKey>;\n\n if (legacyKey) {\n (result as Record<string, unknown>)[legacyKey] = items;\n }\n\n return result;\n}\n\n/**\n * Map a gateway success envelope's data while preserving the transport metadata.\n */\nexport function mapGatewayData<T, U>(\n response: PlatformGatewaySuccess<T>,\n mapper: (data: T) => U\n): PlatformGatewaySuccess<U> {\n return {\n ...response,\n data: mapper(response.data),\n };\n}\n\n/**\n * Apply SDK aliases across all items in a list-like payload.\n */\nexport function mapAliasedList<\n TItem extends AnyRecord,\n LegacyKey extends string,\n>(\n data: unknown,\n legacyKey?: LegacyKey\n): ListResult<TItem, LegacyKey> {\n const items = asListItems<TItem>(data, legacyKey).map((item) =>\n withSdkAliases(item)\n );\n return createListResult(items, legacyKey);\n}\n","import { createListResult } from \"./sdkSurface\";\nimport type { JsonObject, ListResult } from \"./types\";\n\nexport type TopicProjectAliasInput = {\n topicId?: string;\n /** @deprecated Use topicId. */\n projectId?: string;\n};\n\nexport function cleanOptionalString(value: string | undefined) {\n const normalized = value?.trim();\n return normalized ? normalized : undefined;\n}\n\nexport function cleanRequiredString(\n value: string | undefined,\n label: string\n) {\n const normalized = cleanOptionalString(value);\n if (!normalized) {\n throw new Error(`${label} is required`);\n }\n return normalized;\n}\n\nexport function readTopicId(input: TopicProjectAliasInput) {\n return cleanOptionalString(input.topicId) ?? cleanOptionalString(input.projectId);\n}\n\nexport function requireTopicId(input: TopicProjectAliasInput) {\n const topicId = readTopicId(input);\n if (!topicId) {\n throw new Error(\"topicId is required\");\n }\n return topicId;\n}\n\nexport function assertKnownKeys<T extends string>(\n input: Record<string, unknown>,\n allowed: readonly T[],\n operation: string\n) {\n const allowedSet = new Set<string>(allowed);\n const unknownKeys = Object.keys(input).filter((key) => !allowedSet.has(key));\n if (unknownKeys.length > 0) {\n throw new Error(\n `${operation} received unsupported field(s): ${unknownKeys.join(\", \")}`\n );\n }\n}\n\nexport function knownPayload<T extends string>(\n input: Record<string, unknown>,\n allowed: readonly T[],\n operation: string\n) {\n assertKnownKeys(input, allowed, operation);\n return { ...input } as JsonObject;\n}\n\nexport function topicPayload<T extends string>(\n input: TopicProjectAliasInput & Record<string, unknown>,\n allowed: readonly T[],\n operation: string\n) {\n assertKnownKeys(input, allowed, operation);\n return {\n ...input,\n topicId: requireTopicId(input),\n projectId: undefined,\n } as JsonObject;\n}\n\nexport function listResultFromEnvelope<T, LegacyKey extends string>(\n data: unknown,\n legacyKey: LegacyKey\n): ListResult<T, LegacyKey> {\n const record = data && typeof data === \"object\" ? data : {};\n return createListResult(\n Array.isArray((record as Record<string, unknown>)[legacyKey])\n ? ((record as Record<string, T[]>)[legacyKey])\n : Array.isArray(data)\n ? (data as T[])\n : [],\n legacyKey\n );\n}\n"]}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { AudiencesClientConfig, AudienceRegistryInput, AudienceGrantInput, AudienceGrantRevokeInput } from './audiencesClient.js';
|
|
2
2
|
import { SchemaClientConfig, SchemaPackInstallInput, SchemaEntitlementInput } from './schemaClient.js';
|
|
3
3
|
import { HarnessClientConfig, HarnessAgentWriteInput, HarnessInvokeManagedAgentInput, HarnessToolWriteInput, HarnessExecuteToolInput, HarnessExecuteToolResult, HarnessStartRunInput, HarnessRunReportInput, HarnessCompleteRunInput } from './harnessClient.js';
|
|
4
|
-
import { IdentityClientConfig, ClerkUserSearchResult } from './identityClient.js';
|
|
5
4
|
import { AdminClientConfig, TenantApiKeyRecord, TenantVaultSecretRecord, TenantConfigRecord, TenantModelRoutingSnapshot } from './adminClient.js';
|
|
6
5
|
import { ControlObjectOwnershipContract } from './controlObjectOwnership.js';
|
|
7
6
|
import { BeliefsClientConfig, ModulateConfidenceInput, OpinionHistoryEntry, CreateBeliefInput, RefineBeliefInput, ModulateConfidenceOpinionInput, ForkBeliefInput, UpdateBeliefStatusInput, UpdateBeliefRationaleInput, LinkBeliefsInput, UnlinkBeliefEvidenceInput, UpdateBeliefCriticalityInput, BatchUpdateBeliefCriticalityInput, ReassignBeliefsTopicInput } from './beliefsClient.js';
|
|
7
|
+
import { DeviceCodeInput, DeviceCodeResponse, DeviceTokenResponse } from './authDeviceClient.js';
|
|
8
|
+
import { McpBootstrapSessionInput, McpBootstrapSessionResponse, McpCheckWritePolicyInput, McpCheckWritePolicyResponse, McpBeginBuildSessionInput, McpBeginBuildSessionResponse, McpEvaluateEngineeringContractInput, McpContractEvaluationResponse, McpEvaluateResearchContractInput } from './mcpClient.js';
|
|
9
|
+
import { IdentityClientConfig, PolicyEvaluationInput, PolicyDecisionRecord, RecordPolicyDecisionInput, PutTenantSecretReferenceInput, TenantSecretReference, ClerkUserSearchResult, TenantIdentityScope, TenantIdentityConfigRecord, UpdateTenantConfigInput, TenantIntegrationRecord, UpsertTenantIntegrationInput } from './identityClient.js';
|
|
8
10
|
import { PacksClientConfig, PackInstallInput, PackEnableInput, PackDisableInput, PackEntitlementInput, PackUninstallInput, PackUpgradeInput } from './packsClient.js';
|
|
9
11
|
import { CustomToolRegistration, RegisteredCustomTool } from './customTools.js';
|
|
12
|
+
import { ToolRegistryClientConfig, ToolRegistryQuery, ToolCatalogEntry, UpsertCoreToolsInput, SetPackToolsStatusInput, CreateToolAclInput, ToolAclRecord, DeleteToolAclInput, RegisterCustomToolInput } from './toolRegistryClient.js';
|
|
13
|
+
import { TelemetryClientConfig, LogSystemEventInput, LogToolCallsBatchInput, RecordEpistemicAuditInput, RecordTelemetryPolicyDecisionInput, StartTelemetryRunInput, TelemetryRunRecord, FinishTelemetryRunInput, TelemetryScope } from './telemetryClient.js';
|
|
14
|
+
import { JobsClientConfig, EnqueueJobInput, JobRecord, JobsScope, ClaimJobInput, UpdateJobStatusInput, RetryJobInput, RecordJobRunStartInput, JobRunRecord, RecordJobRunFinishInput } from './jobsClient.js';
|
|
15
|
+
import { ModelRuntimeClientConfig, ModelRuntimeScope, ModelRegistryRecord, ModelFunctionSlot, ResolveModelSlotInput, UpdateModelSlotConfigInput } from './modelRuntimeClient.js';
|
|
16
|
+
import { GraphStateClassifierClientConfig, ClassifyNodeInput, GraphStateClassification, ClassifyTopicInput, ListGraphStateClassificationsInput, RecordGraphStateClassificationInput } from './graphStateClassifierClient.js';
|
|
17
|
+
import { OntologyLinksClientConfig, OntologyLinkWriteInput, OntologyLinkRecord, ListOntologyLinksForNodeInput, UpdateOntologyLinkStatusInput } from './ontologyLinksClient.js';
|
|
18
|
+
import { OrgGraphSearchClientConfig, OrgGraphSearchInput, OrgGraphSearchResponse, GetOrgGraphNodeInput, OrgGraphSearchResult, ListOrgGraphByProvenanceInput, ListPublishedFromWorkspaceInput } from './orgGraphSearchClient.js';
|
|
19
|
+
import { GraphRecommendationsClientConfig, GraphRecommendationListInput, GraphRecommendationRecord, MarkGraphRecommendationStatusInput } from './graphRecommendationsClient.js';
|
|
20
|
+
import { GraphAnalysisClientConfig, SaveGraphAnalysisInput, GraphAnalysisRecord, ListGraphAnalysesInput, GetLatestGraphAnalysisInput, SaveGraphSuggestionsInput, GraphAnalysisSuggestionsResponse, UpdateGraphSuggestionStatusInput, GraphAnalysisSuggestion, ListGraphSuggestionsInput, ListGraphChangesInput, ComputeOrRequestGraphAnalysisInput } from './graphAnalysisClient.js';
|
|
21
|
+
import { EmbeddingsClientConfig, GetEmbeddingsByNodeIdsInput, EmbeddingRecord, ListMissingEmbeddingsInput, MissingEmbeddingCandidate, VectorSearchByTopicInput, VectorSearchMatch, MarkEmbeddingBackfillQueuedInput } from './embeddingsClient.js';
|
|
10
22
|
import { PolicyClientConfig, PermissionDecision, PermissionKind, WritePolicyRecord, WritePolicyCreateInput, WritePolicyUpdateInput, TenantPolicyRecord, TenantPolicyPermission } from './policyClient.js';
|
|
11
23
|
import { GatewayClientConfig, PlatformGatewaySuccess, GatewayScope } from './coreClient.js';
|
|
12
24
|
import { OntologyClientConfig, OntologyBindingInput, OntologyDefinitionInput, OntologyDefinitionUpdateInput, OntologyVersionInput } from './ontologyClient.js';
|
|
@@ -14,13 +26,14 @@ import { CompileContextInput, PublicCompiledContext } from './contextTypes.js';
|
|
|
14
26
|
import { TopicsClientConfig, TopicListInput, TopicCreateInput, TopicUpdateInput, TopicTreeQuery, TopicCoverageQuery, TopicBulkCreateInput } from './topicsClient.js';
|
|
15
27
|
import { AnswersClientConfig } from './answersClient.js';
|
|
16
28
|
import { AuditClientConfig } from './auditClient.js';
|
|
29
|
+
import { JsonObject, ListResult, PlatformSourceRecord, PlatformGraphNode, PlatformGraphEdge, GraphNeighborhoodResponse, JsonArray, RecordJudgmentResponse, ListJudgmentsResponse, GetJudgmentResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse, TopicIdentifierInput, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse, TopicListResponse, TopicRecord, TopicTreeResponse, TopicCoverageResponse, PlatformBeliefRecord, ModulateConfidenceResponse, ForkBeliefResponse, DeleteEdgeResponse, GraphPathResponse, GraphAnalyticsResponse, MergeWorktreeResponse, ListTopicsResponse, SwitchTopicContextResponse, CreateTaskResponse, CompleteTaskResponse, UpdateTaskResponse, ReportTemplatesResponse, ReportWithSectionsResponse } from './types.js';
|
|
17
30
|
import { ContextClientConfig } from './contextClient.js';
|
|
18
31
|
import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from './contracts/lens-workflow.contract.js';
|
|
19
32
|
import { DecisionsClientConfig, RecordJudgmentInput, ListJudgmentsInput, RecordJudgmentOutcomeInput, GetJudgmentCalibrationInput, ListPendingJudgmentOutcomeReviewInput, GetJudgmentTransitionAuditIntegrityInput } from './decisionsClient.js';
|
|
20
33
|
import { EvidenceClientConfig, EvidenceClassificationRequestConfig, ClassifyEvidenceResult, ClassifyEvidenceBatchItem, ClassifyEvidenceBatchResult } from './evidenceClient.js';
|
|
34
|
+
import { EventingClientConfig, RecordEventInput, EventingRecord, EventingScope, EventingWebhookRecord, EnqueueDeliveryInput, EventingDeliveryRecord, RecordDeliveryAttemptInput, UpdateDeliveryStatusInput } from './eventingClient.js';
|
|
21
35
|
import { GraphClientConfig, ListNodesInput, GetNodeInput, CreateNodeInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput, CreateEdgeInput, NeighborhoodInput, QueryNodesInput, ListEdgesInput, QueryEdgesInput, DeleteEdgeInput, TraverseInput, AnalyzeInput, BiasInput, GapsInput, SearchInput, PathInput, AnalyticsInput } from './graphClient.js';
|
|
22
36
|
import { LearningClientConfig } from './learningClient.js';
|
|
23
|
-
import { JsonObject, PlatformSourceRecord, ListResult, PlatformGraphNode, PlatformGraphEdge, GraphNeighborhoodResponse, JsonArray, RecordJudgmentResponse, ListJudgmentsResponse, GetJudgmentResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse, TopicIdentifierInput, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse, TopicListResponse, TopicRecord, TopicTreeResponse, TopicCoverageResponse, PlatformBeliefRecord, ModulateConfidenceResponse, ForkBeliefResponse, DeleteEdgeResponse, GraphPathResponse, GraphAnalyticsResponse, MergeWorktreeResponse, ListTopicsResponse, SwitchTopicContextResponse, CreateTaskResponse, CompleteTaskResponse, UpdateTaskResponse, ReportTemplatesResponse, ReportWithSectionsResponse } from './types.js';
|
|
24
37
|
import { ReportsClientConfig } from './reportsClient.js';
|
|
25
38
|
import { SourcesClientConfig, UpsertSourceSpec } from './sourcesClient.js';
|
|
26
39
|
import { WorkflowClientConfig, WorkflowLensPerspectiveType, WorkflowLensStatus, AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput, CreateTaskInput, CompleteTaskInput, UpdateTaskInput, WorkflowBranchStatus, CompleteWorktreeInput, AdvanceWorktreePhaseInput, SetWorktreePhaseInput, PatchWorktreeStateInput, BulkCreateWorktreesInput, ListTopicsInput, SwitchTopicContextInput } from './workflowClient.js';
|
|
@@ -142,7 +155,7 @@ declare function createFunctionSurfaceClient(config?: FunctionSurfaceClientConfi
|
|
|
142
155
|
updateWorktreeTargets(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
143
156
|
};
|
|
144
157
|
|
|
145
|
-
type ClientConfig = BeliefsClientConfig | SourcesClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | EvidenceClientConfig | IdentityClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | FunctionSurfaceClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig;
|
|
158
|
+
type ClientConfig = BeliefsClientConfig | SourcesClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | EvidenceClientConfig | EmbeddingsClientConfig | EventingClientConfig | GraphAnalysisClientConfig | GraphRecommendationsClientConfig | GraphStateClassifierClientConfig | IdentityClientConfig | JobsClientConfig | ModelRuntimeClientConfig | OntologyLinksClientConfig | OrgGraphSearchClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | TelemetryClientConfig | ToolRegistryClientConfig | FunctionSurfaceClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig;
|
|
146
159
|
type CustomToolInput = JsonObject;
|
|
147
160
|
type CustomToolInvoker = (input?: CustomToolInput) => Promise<unknown>;
|
|
148
161
|
type CustomToolNamespace = Record<string, CustomToolInvoker>;
|
|
@@ -185,6 +198,7 @@ type LucernClientConfig = ClientConfig & {
|
|
|
185
198
|
* When present, the SDK operates in user-scoped mode with
|
|
186
199
|
* pack-aware tool filtering. When absent, operates in agent mode.
|
|
187
200
|
*/
|
|
201
|
+
/** Lucern platform session token for interactive/user-scoped requests. */
|
|
188
202
|
userToken?: string;
|
|
189
203
|
/**
|
|
190
204
|
* Optional pack key for auto-install convenience.
|
|
@@ -258,6 +272,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
258
272
|
}>>>[0]): Promise<GatewayDataEnvelope<{
|
|
259
273
|
[x: string]: unknown;
|
|
260
274
|
}>>;
|
|
275
|
+
recordEvent: (input: RecordEventInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingRecord>>;
|
|
276
|
+
listEvents: (input: EventingScope) => Promise<PlatformGatewaySuccess<ListResult<EventingRecord, "events">>>;
|
|
277
|
+
listWebhooks: (input: EventingScope) => Promise<PlatformGatewaySuccess<ListResult<EventingWebhookRecord, "webhooks">>>;
|
|
278
|
+
enqueueDelivery: (input: EnqueueDeliveryInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
279
|
+
recordDeliveryAttempt: (input: RecordDeliveryAttemptInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
280
|
+
updateDeliveryStatus: (input: UpdateDeliveryStatusInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
261
281
|
};
|
|
262
282
|
beliefs: {
|
|
263
283
|
create(input: BeliefsCompatCreateInput): Promise<GatewayDataEnvelope<{
|
|
@@ -1558,7 +1578,102 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1558
1578
|
bootstrap: {
|
|
1559
1579
|
generateSessionHandoff(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
|
|
1560
1580
|
};
|
|
1581
|
+
embeddings: {
|
|
1582
|
+
getByNodeIds(input: GetEmbeddingsByNodeIdsInput): Promise<PlatformGatewaySuccess<ListResult<EmbeddingRecord, "embeddings">>>;
|
|
1583
|
+
listMissingForTopic(input: ListMissingEmbeddingsInput): Promise<PlatformGatewaySuccess<ListResult<MissingEmbeddingCandidate, "nodes">>>;
|
|
1584
|
+
vectorSearchByTopic(input: VectorSearchByTopicInput): Promise<PlatformGatewaySuccess<ListResult<VectorSearchMatch, "results">>>;
|
|
1585
|
+
markEmbeddingBackfillQueued(input: MarkEmbeddingBackfillQueuedInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1586
|
+
queued: number;
|
|
1587
|
+
topicId: string;
|
|
1588
|
+
workspaceId: string;
|
|
1589
|
+
nodeIds: string[];
|
|
1590
|
+
}>>;
|
|
1591
|
+
};
|
|
1592
|
+
graphAnalysis: {
|
|
1593
|
+
saveAnalysis(input: SaveGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1594
|
+
listAnalyses(input: ListGraphAnalysesInput): Promise<PlatformGatewaySuccess<ListResult<any, "analyses">>>;
|
|
1595
|
+
getLatestAnalysis(input: GetLatestGraphAnalysisInput): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1596
|
+
saveSuggestions(input: SaveGraphSuggestionsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestionsResponse>>;
|
|
1597
|
+
updateSuggestionStatus(input: UpdateGraphSuggestionStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestion>>;
|
|
1598
|
+
listSuggestions(input: ListGraphSuggestionsInput): Promise<PlatformGatewaySuccess<ListResult<any, "suggestions">>>;
|
|
1599
|
+
listGraphChanges(input: ListGraphChangesInput): Promise<PlatformGatewaySuccess<ListResult<any, "changes">>>;
|
|
1600
|
+
computeOrRequestAnalysis(input: ComputeOrRequestGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1601
|
+
};
|
|
1602
|
+
graphRecommendations: {
|
|
1603
|
+
listForTopic(input: GraphRecommendationListInput): Promise<PlatformGatewaySuccess<ListResult<any, "recommendations">>>;
|
|
1604
|
+
getRecommendation(recommendationId: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
|
|
1605
|
+
markRecommendationStatus(input: MarkGraphRecommendationStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
|
|
1606
|
+
};
|
|
1607
|
+
orgGraphSearch: {
|
|
1608
|
+
search(input: OrgGraphSearchInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
1609
|
+
getNode(input: GetOrgGraphNodeInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResult>>;
|
|
1610
|
+
listByProvenance(input: ListOrgGraphByProvenanceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
1611
|
+
listPublishedFromWorkspace(input: ListPublishedFromWorkspaceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
1612
|
+
};
|
|
1613
|
+
ontologyLinks: {
|
|
1614
|
+
createLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
1615
|
+
upsertLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
1616
|
+
listLinksForNode(input: ListOntologyLinksForNodeInput): Promise<PlatformGatewaySuccess<ListResult<OntologyLinkRecord, "links">>>;
|
|
1617
|
+
updateLinkStatus(input: UpdateOntologyLinkStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
1618
|
+
};
|
|
1619
|
+
graphStateClassifier: {
|
|
1620
|
+
classifyNode(input: ClassifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
|
|
1621
|
+
classifyTopic(input: ClassifyTopicInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
|
|
1622
|
+
listClassifications(input: ListGraphStateClassificationsInput): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
|
|
1623
|
+
recordClassification(input: RecordGraphStateClassificationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
|
|
1624
|
+
};
|
|
1625
|
+
modelRuntime: {
|
|
1626
|
+
listModels(input: ModelRuntimeScope): Promise<PlatformGatewaySuccess<ListResult<ModelRegistryRecord, "models">>>;
|
|
1627
|
+
getModel(input: ModelRuntimeScope & {
|
|
1628
|
+
modelId: string;
|
|
1629
|
+
}): Promise<PlatformGatewaySuccess<ModelRegistryRecord>>;
|
|
1630
|
+
listFunctionSlots(input: ModelRuntimeScope & {
|
|
1631
|
+
functionName?: string;
|
|
1632
|
+
}): Promise<PlatformGatewaySuccess<ListResult<ModelFunctionSlot, "slots">>>;
|
|
1633
|
+
resolveSlot(input: ResolveModelSlotInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
|
|
1634
|
+
updateSlotConfig(input: UpdateModelSlotConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
|
|
1635
|
+
};
|
|
1636
|
+
jobs: {
|
|
1637
|
+
enqueue(input: EnqueueJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
1638
|
+
list(input: JobsScope): Promise<PlatformGatewaySuccess<ListResult<JobRecord, "jobs">>>;
|
|
1639
|
+
claim(input: ClaimJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
1640
|
+
updateStatus(input: UpdateJobStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
1641
|
+
retry(input: RetryJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
1642
|
+
recordRunStart(input: RecordJobRunStartInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
|
|
1643
|
+
recordRunFinish(input: RecordJobRunFinishInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
|
|
1644
|
+
};
|
|
1645
|
+
telemetry: {
|
|
1646
|
+
logSystemEvent(input: LogSystemEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1647
|
+
eventId?: string;
|
|
1648
|
+
recorded: boolean;
|
|
1649
|
+
}>>;
|
|
1650
|
+
logToolCallsBatch(input: LogToolCallsBatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1651
|
+
recorded: number;
|
|
1652
|
+
}>>;
|
|
1653
|
+
recordEpistemicAudit(input: RecordEpistemicAuditInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1654
|
+
auditId?: string;
|
|
1655
|
+
recorded: boolean;
|
|
1656
|
+
}>>;
|
|
1657
|
+
recordPolicyDecision(input: RecordTelemetryPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1658
|
+
decisionId?: string;
|
|
1659
|
+
recorded: boolean;
|
|
1660
|
+
}>>;
|
|
1661
|
+
startRun(input: StartTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
|
|
1662
|
+
finishRun(input: FinishTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
|
|
1663
|
+
listRuns(input: TelemetryScope): Promise<PlatformGatewaySuccess<ListResult<TelemetryRunRecord, "runs">>>;
|
|
1664
|
+
};
|
|
1561
1665
|
tools: {
|
|
1666
|
+
listCatalog: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1667
|
+
listExecutable: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1668
|
+
listEffectiveTools: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1669
|
+
upsertCoreTools: (input: UpsertCoreToolsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1670
|
+
setPackToolsStatus: (input: SetPackToolsStatusInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1671
|
+
createAcl: (input: CreateToolAclInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolAclRecord>>;
|
|
1672
|
+
deleteAcl: (input: DeleteToolAclInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
1673
|
+
aclId: string;
|
|
1674
|
+
deleted: boolean;
|
|
1675
|
+
}>>;
|
|
1676
|
+
registerCustomTool: (input: RegisterCustomToolInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolCatalogEntry>>;
|
|
1562
1677
|
register(registration: CustomToolRegistration): RegisteredCustomTool;
|
|
1563
1678
|
unregister(fullName: string): boolean;
|
|
1564
1679
|
list(): RegisteredCustomTool[];
|
|
@@ -1596,9 +1711,116 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1596
1711
|
hardDelete(input: Parameters<(input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1597
1712
|
};
|
|
1598
1713
|
identity: {
|
|
1714
|
+
evaluatePolicy: (input: PolicyEvaluationInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
1715
|
+
recordPolicyDecision: (input: RecordPolicyDecisionInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
1716
|
+
putSecretReference: (input: PutTenantSecretReferenceInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TenantSecretReference>>;
|
|
1717
|
+
createPrincipal: (input: GatewayScope & {
|
|
1718
|
+
principalId: string;
|
|
1719
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1720
|
+
clerkId?: string;
|
|
1721
|
+
email?: string;
|
|
1722
|
+
displayName?: string;
|
|
1723
|
+
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1724
|
+
metadata?: JsonObject;
|
|
1725
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1726
|
+
updatePrincipal: (input: GatewayScope & {
|
|
1727
|
+
principalId: string;
|
|
1728
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1729
|
+
clerkId?: string;
|
|
1730
|
+
email?: string;
|
|
1731
|
+
displayName?: string;
|
|
1732
|
+
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1733
|
+
metadata?: JsonObject;
|
|
1734
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1735
|
+
raw: {
|
|
1736
|
+
whoami(): Promise<PlatformGatewaySuccess<{
|
|
1737
|
+
principalId: string;
|
|
1738
|
+
principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
|
|
1739
|
+
tenantId: string | null;
|
|
1740
|
+
workspaceId: string | null;
|
|
1741
|
+
scopes: string[];
|
|
1742
|
+
roles: string[];
|
|
1743
|
+
isPlatformAdmin: boolean;
|
|
1744
|
+
isTenantAdmin: boolean;
|
|
1745
|
+
isWorkspaceAdmin: boolean;
|
|
1746
|
+
authMode: string | undefined;
|
|
1747
|
+
sessionId: string | undefined;
|
|
1748
|
+
delegatedBy: string | undefined;
|
|
1749
|
+
expiresAt: number | undefined;
|
|
1750
|
+
}>>;
|
|
1751
|
+
listPrincipals(query?: GatewayScope & {
|
|
1752
|
+
status?: string;
|
|
1753
|
+
principalType?: string;
|
|
1754
|
+
query?: string;
|
|
1755
|
+
limit?: number;
|
|
1756
|
+
}): Promise<PlatformGatewaySuccess<ListResult<any, "principals">>>;
|
|
1757
|
+
createPrincipal(input: GatewayScope & {
|
|
1758
|
+
principalId: string;
|
|
1759
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1760
|
+
clerkId?: string;
|
|
1761
|
+
email?: string;
|
|
1762
|
+
displayName?: string;
|
|
1763
|
+
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1764
|
+
metadata?: JsonObject;
|
|
1765
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1766
|
+
updatePrincipal(input: GatewayScope & {
|
|
1767
|
+
principalId: string;
|
|
1768
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1769
|
+
clerkId?: string;
|
|
1770
|
+
email?: string;
|
|
1771
|
+
displayName?: string;
|
|
1772
|
+
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1773
|
+
metadata?: JsonObject;
|
|
1774
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1775
|
+
upsertPrincipal(input: GatewayScope & {
|
|
1776
|
+
principalId: string;
|
|
1777
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1778
|
+
clerkId?: string;
|
|
1779
|
+
email?: string;
|
|
1780
|
+
displayName?: string;
|
|
1781
|
+
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1782
|
+
metadata?: JsonObject;
|
|
1783
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1784
|
+
listKeys(query?: GatewayScope & {
|
|
1785
|
+
principalId?: string;
|
|
1786
|
+
status?: string;
|
|
1787
|
+
limit?: number;
|
|
1788
|
+
}): Promise<PlatformGatewaySuccess<ListResult<any, "keys">>>;
|
|
1789
|
+
createKey(input: GatewayScope & {
|
|
1790
|
+
principalId: string;
|
|
1791
|
+
keyId?: string;
|
|
1792
|
+
token?: string;
|
|
1793
|
+
scopes?: string[];
|
|
1794
|
+
environment?: "sandbox" | "production";
|
|
1795
|
+
expiresInDays?: number;
|
|
1796
|
+
rateLimitTier?: "free" | "developer" | "partner";
|
|
1797
|
+
metadata?: JsonObject;
|
|
1798
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1799
|
+
rotateKey(keyId: string, input?: {
|
|
1800
|
+
replacementKeyId?: string;
|
|
1801
|
+
replacementToken?: string;
|
|
1802
|
+
replacementExpiresInDays?: number;
|
|
1803
|
+
gracePeriodHours?: number;
|
|
1804
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1805
|
+
deleteKey(keyId: string, input?: {
|
|
1806
|
+
reason?: string;
|
|
1807
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1808
|
+
revokeKey(keyId: string, input?: {
|
|
1809
|
+
reason?: string;
|
|
1810
|
+
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1811
|
+
searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
|
|
1812
|
+
getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
1813
|
+
updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
1814
|
+
listIntegrations(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantIntegrationRecord, "integrations">>>;
|
|
1815
|
+
upsertIntegration(input: UpsertTenantIntegrationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIntegrationRecord>>;
|
|
1816
|
+
listSecrets(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantSecretReference, "secrets">>>;
|
|
1817
|
+
putSecretReference(input: PutTenantSecretReferenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantSecretReference>>;
|
|
1818
|
+
evaluatePolicy(input: PolicyEvaluationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
1819
|
+
recordPolicyDecision(input: RecordPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
1820
|
+
};
|
|
1599
1821
|
whoami(): Promise<PlatformGatewaySuccess<{
|
|
1600
1822
|
principalId: string;
|
|
1601
|
-
principalType: "
|
|
1823
|
+
principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
|
|
1602
1824
|
tenantId: string | null;
|
|
1603
1825
|
workspaceId: string | null;
|
|
1604
1826
|
scopes: string[];
|
|
@@ -1612,7 +1834,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1612
1834
|
expiresAt: number | undefined;
|
|
1613
1835
|
}> & {
|
|
1614
1836
|
principalId: string;
|
|
1615
|
-
principalType: "
|
|
1837
|
+
principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
|
|
1616
1838
|
tenantId: string | null;
|
|
1617
1839
|
workspaceId: string | null;
|
|
1618
1840
|
scopes: string[];
|
|
@@ -1626,6 +1848,19 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1626
1848
|
expiresAt: number | undefined;
|
|
1627
1849
|
}>;
|
|
1628
1850
|
};
|
|
1851
|
+
mcp: {
|
|
1852
|
+
bootstrapSession(input?: Parameters<(input?: McpBootstrapSessionInput) => Promise<McpBootstrapSessionResponse>>[0]): Promise<McpBootstrapSessionResponse>;
|
|
1853
|
+
checkWritePolicy(input: Parameters<(input: McpCheckWritePolicyInput) => Promise<McpCheckWritePolicyResponse>>[0]): Promise<McpCheckWritePolicyResponse>;
|
|
1854
|
+
beginBuildSession(input: Parameters<(input: McpBeginBuildSessionInput) => Promise<McpBeginBuildSessionResponse>>[0]): Promise<McpBeginBuildSessionResponse>;
|
|
1855
|
+
evaluateEngineeringContract(input: Parameters<(input: McpEvaluateEngineeringContractInput) => Promise<McpContractEvaluationResponse>>[0]): Promise<McpContractEvaluationResponse>;
|
|
1856
|
+
evaluateResearchContract(input: Parameters<(input: McpEvaluateResearchContractInput) => Promise<McpContractEvaluationResponse>>[0]): Promise<McpContractEvaluationResponse>;
|
|
1857
|
+
};
|
|
1858
|
+
auth: {
|
|
1859
|
+
device: {
|
|
1860
|
+
createCode(input?: DeviceCodeInput): Promise<DeviceCodeResponse>;
|
|
1861
|
+
pollToken(deviceCode: string): Promise<DeviceTokenResponse>;
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1629
1864
|
custom: CustomToolNamespace;
|
|
1630
1865
|
extensions: Record<string, CustomToolNamespace>;
|
|
1631
1866
|
raw: {
|
|
@@ -1652,6 +1887,25 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1652
1887
|
classifyEvidence(beliefId: string, evidenceId: string, classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ClassifyEvidenceResult>>;
|
|
1653
1888
|
classifyEvidenceBatch(beliefId: string, evidence: ClassifyEvidenceBatchItem[], classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ClassifyEvidenceBatchResult>>;
|
|
1654
1889
|
};
|
|
1890
|
+
embeddings: {
|
|
1891
|
+
getByNodeIds(input: GetEmbeddingsByNodeIdsInput): Promise<PlatformGatewaySuccess<ListResult<EmbeddingRecord, "embeddings">>>;
|
|
1892
|
+
listMissingForTopic(input: ListMissingEmbeddingsInput): Promise<PlatformGatewaySuccess<ListResult<MissingEmbeddingCandidate, "nodes">>>;
|
|
1893
|
+
vectorSearchByTopic(input: VectorSearchByTopicInput): Promise<PlatformGatewaySuccess<ListResult<VectorSearchMatch, "results">>>;
|
|
1894
|
+
markEmbeddingBackfillQueued(input: MarkEmbeddingBackfillQueuedInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1895
|
+
queued: number;
|
|
1896
|
+
topicId: string;
|
|
1897
|
+
workspaceId: string;
|
|
1898
|
+
nodeIds: string[];
|
|
1899
|
+
}>>;
|
|
1900
|
+
};
|
|
1901
|
+
eventing: {
|
|
1902
|
+
recordEvent(input: RecordEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingRecord>>;
|
|
1903
|
+
listEvents(input: EventingScope): Promise<PlatformGatewaySuccess<ListResult<EventingRecord, "events">>>;
|
|
1904
|
+
listWebhooks(input: EventingScope): Promise<PlatformGatewaySuccess<ListResult<EventingWebhookRecord, "webhooks">>>;
|
|
1905
|
+
enqueueDelivery(input: EnqueueDeliveryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
1906
|
+
recordDeliveryAttempt(input: RecordDeliveryAttemptInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
1907
|
+
updateDeliveryStatus(input: UpdateDeliveryStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
|
|
1908
|
+
};
|
|
1655
1909
|
graph: {
|
|
1656
1910
|
listNodes(query: ListNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
1657
1911
|
queryNodes(query: QueryNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
@@ -1676,6 +1930,27 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1676
1930
|
getPath(query: PathInput): Promise<PlatformGatewaySuccess<GraphPathResponse>>;
|
|
1677
1931
|
getAnalytics(query?: AnalyticsInput): Promise<PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
1678
1932
|
};
|
|
1933
|
+
graphAnalysis: {
|
|
1934
|
+
saveAnalysis(input: SaveGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1935
|
+
listAnalyses(input: ListGraphAnalysesInput): Promise<PlatformGatewaySuccess<ListResult<any, "analyses">>>;
|
|
1936
|
+
getLatestAnalysis(input: GetLatestGraphAnalysisInput): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1937
|
+
saveSuggestions(input: SaveGraphSuggestionsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestionsResponse>>;
|
|
1938
|
+
updateSuggestionStatus(input: UpdateGraphSuggestionStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestion>>;
|
|
1939
|
+
listSuggestions(input: ListGraphSuggestionsInput): Promise<PlatformGatewaySuccess<ListResult<any, "suggestions">>>;
|
|
1940
|
+
listGraphChanges(input: ListGraphChangesInput): Promise<PlatformGatewaySuccess<ListResult<any, "changes">>>;
|
|
1941
|
+
computeOrRequestAnalysis(input: ComputeOrRequestGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
|
|
1942
|
+
};
|
|
1943
|
+
graphRecommendations: {
|
|
1944
|
+
listForTopic(input: GraphRecommendationListInput): Promise<PlatformGatewaySuccess<ListResult<any, "recommendations">>>;
|
|
1945
|
+
getRecommendation(recommendationId: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
|
|
1946
|
+
markRecommendationStatus(input: MarkGraphRecommendationStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
|
|
1947
|
+
};
|
|
1948
|
+
graphStateClassifier: {
|
|
1949
|
+
classifyNode(input: ClassifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
|
|
1950
|
+
classifyTopic(input: ClassifyTopicInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
|
|
1951
|
+
listClassifications(input: ListGraphStateClassificationsInput): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
|
|
1952
|
+
recordClassification(input: RecordGraphStateClassificationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
|
|
1953
|
+
};
|
|
1679
1954
|
decisions: {
|
|
1680
1955
|
listJudgments(query: ListJudgmentsInput): Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
|
|
1681
1956
|
getJudgment(judgmentId: string): Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
|
|
@@ -1810,6 +2085,10 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1810
2085
|
limit?: number;
|
|
1811
2086
|
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<any, "events">>>;
|
|
1812
2087
|
};
|
|
2088
|
+
authDevice: {
|
|
2089
|
+
createDeviceCode(input?: DeviceCodeInput): Promise<DeviceCodeResponse>;
|
|
2090
|
+
pollDeviceToken(deviceCode: string): Promise<DeviceTokenResponse>;
|
|
2091
|
+
};
|
|
1813
2092
|
admin: {
|
|
1814
2093
|
listTenants(query?: {
|
|
1815
2094
|
status?: "provisioning" | "active" | "disabled" | "suspended" | "archived";
|
|
@@ -2000,7 +2279,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2000
2279
|
identity: {
|
|
2001
2280
|
whoami(): Promise<PlatformGatewaySuccess<{
|
|
2002
2281
|
principalId: string;
|
|
2003
|
-
principalType: "
|
|
2282
|
+
principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
|
|
2004
2283
|
tenantId: string | null;
|
|
2005
2284
|
workspaceId: string | null;
|
|
2006
2285
|
scopes: string[];
|
|
@@ -2074,6 +2353,14 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2074
2353
|
reason?: string;
|
|
2075
2354
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2076
2355
|
searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
|
|
2356
|
+
getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
2357
|
+
updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
2358
|
+
listIntegrations(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantIntegrationRecord, "integrations">>>;
|
|
2359
|
+
upsertIntegration(input: UpsertTenantIntegrationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIntegrationRecord>>;
|
|
2360
|
+
listSecrets(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantSecretReference, "secrets">>>;
|
|
2361
|
+
putSecretReference(input: PutTenantSecretReferenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantSecretReference>>;
|
|
2362
|
+
evaluatePolicy(input: PolicyEvaluationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
2363
|
+
recordPolicyDecision(input: RecordPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
2077
2364
|
};
|
|
2078
2365
|
policy: {
|
|
2079
2366
|
listDecisions(query?: GatewayScope & {
|
|
@@ -2269,6 +2556,18 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2269
2556
|
listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
2270
2557
|
listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
2271
2558
|
};
|
|
2559
|
+
ontologyLinks: {
|
|
2560
|
+
createLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
2561
|
+
upsertLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
2562
|
+
listLinksForNode(input: ListOntologyLinksForNodeInput): Promise<PlatformGatewaySuccess<ListResult<OntologyLinkRecord, "links">>>;
|
|
2563
|
+
updateLinkStatus(input: UpdateOntologyLinkStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
2564
|
+
};
|
|
2565
|
+
orgGraphSearch: {
|
|
2566
|
+
search(input: OrgGraphSearchInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
2567
|
+
getNode(input: GetOrgGraphNodeInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResult>>;
|
|
2568
|
+
listByProvenance(input: ListOrgGraphByProvenanceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
2569
|
+
listPublishedFromWorkspace(input: ListPublishedFromWorkspaceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
|
|
2570
|
+
};
|
|
2272
2571
|
functionSurface: {
|
|
2273
2572
|
sessionId: string;
|
|
2274
2573
|
activateWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -2381,6 +2680,30 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2381
2680
|
updateWorktreeMetadata(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
2382
2681
|
updateWorktreeTargets(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
2383
2682
|
};
|
|
2683
|
+
toolRegistry: {
|
|
2684
|
+
listCatalog(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2685
|
+
listExecutable(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2686
|
+
listEffectiveTools(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2687
|
+
upsertCoreTools(input: UpsertCoreToolsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2688
|
+
setPackToolsStatus(input: SetPackToolsStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2689
|
+
createAcl(input: CreateToolAclInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ToolAclRecord>>;
|
|
2690
|
+
deleteAcl(input: DeleteToolAclInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
2691
|
+
aclId: string;
|
|
2692
|
+
deleted: boolean;
|
|
2693
|
+
}>>;
|
|
2694
|
+
registerCustomTool(input: RegisterCustomToolInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ToolCatalogEntry>>;
|
|
2695
|
+
};
|
|
2696
|
+
modelRuntime: {
|
|
2697
|
+
listModels(input: ModelRuntimeScope): Promise<PlatformGatewaySuccess<ListResult<ModelRegistryRecord, "models">>>;
|
|
2698
|
+
getModel(input: ModelRuntimeScope & {
|
|
2699
|
+
modelId: string;
|
|
2700
|
+
}): Promise<PlatformGatewaySuccess<ModelRegistryRecord>>;
|
|
2701
|
+
listFunctionSlots(input: ModelRuntimeScope & {
|
|
2702
|
+
functionName?: string;
|
|
2703
|
+
}): Promise<PlatformGatewaySuccess<ListResult<ModelFunctionSlot, "slots">>>;
|
|
2704
|
+
resolveSlot(input: ResolveModelSlotInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
|
|
2705
|
+
updateSlotConfig(input: UpdateModelSlotConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
|
|
2706
|
+
};
|
|
2384
2707
|
packs: {
|
|
2385
2708
|
listCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
2386
2709
|
getCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
@@ -2440,6 +2763,42 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2440
2763
|
hours?: number;
|
|
2441
2764
|
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2442
2765
|
};
|
|
2766
|
+
mcp: {
|
|
2767
|
+
bootstrapSession(input?: McpBootstrapSessionInput): Promise<McpBootstrapSessionResponse>;
|
|
2768
|
+
checkWritePolicy(input: McpCheckWritePolicyInput): Promise<McpCheckWritePolicyResponse>;
|
|
2769
|
+
beginBuildSession(input: McpBeginBuildSessionInput): Promise<McpBeginBuildSessionResponse>;
|
|
2770
|
+
evaluateEngineeringContract(input: McpEvaluateEngineeringContractInput): Promise<McpContractEvaluationResponse>;
|
|
2771
|
+
evaluateResearchContract(input: McpEvaluateResearchContractInput): Promise<McpContractEvaluationResponse>;
|
|
2772
|
+
};
|
|
2773
|
+
jobs: {
|
|
2774
|
+
enqueue(input: EnqueueJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
2775
|
+
list(input: JobsScope): Promise<PlatformGatewaySuccess<ListResult<JobRecord, "jobs">>>;
|
|
2776
|
+
claim(input: ClaimJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
2777
|
+
updateStatus(input: UpdateJobStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
2778
|
+
retry(input: RetryJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
|
|
2779
|
+
recordRunStart(input: RecordJobRunStartInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
|
|
2780
|
+
recordRunFinish(input: RecordJobRunFinishInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
|
|
2781
|
+
};
|
|
2782
|
+
telemetry: {
|
|
2783
|
+
logSystemEvent(input: LogSystemEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
2784
|
+
eventId?: string;
|
|
2785
|
+
recorded: boolean;
|
|
2786
|
+
}>>;
|
|
2787
|
+
logToolCallsBatch(input: LogToolCallsBatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
2788
|
+
recorded: number;
|
|
2789
|
+
}>>;
|
|
2790
|
+
recordEpistemicAudit(input: RecordEpistemicAuditInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
2791
|
+
auditId?: string;
|
|
2792
|
+
recorded: boolean;
|
|
2793
|
+
}>>;
|
|
2794
|
+
recordPolicyDecision(input: RecordTelemetryPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
2795
|
+
decisionId?: string;
|
|
2796
|
+
recorded: boolean;
|
|
2797
|
+
}>>;
|
|
2798
|
+
startRun(input: StartTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
|
|
2799
|
+
finishRun(input: FinishTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
|
|
2800
|
+
listRuns(input: TelemetryScope): Promise<PlatformGatewaySuccess<ListResult<TelemetryRunRecord, "runs">>>;
|
|
2801
|
+
};
|
|
2443
2802
|
harness: {
|
|
2444
2803
|
listAgentDefinitions(scope?: GatewayScope & {
|
|
2445
2804
|
status?: string;
|