@lucern/sdk 1.0.11 → 1.0.12
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/CHANGELOG.md +3 -0
- package/dist/.generated +2 -0
- package/dist/accessControl.d.ts +19 -26
- package/dist/accessControl.js +195 -1423
- package/dist/adminClient.d.ts +52 -59
- package/dist/adminClient.js +364 -1142
- package/dist/answersClient.d.ts +5 -14
- package/dist/answersClient.js +19 -737
- package/dist/audience/index.d.ts +18 -18
- package/dist/audience/index.js +87 -90
- package/dist/audiencesClient.d.ts +19 -27
- package/dist/audiencesClient.js +107 -868
- package/dist/auditClient.d.ts +8 -15
- package/dist/auditClient.js +18 -791
- package/dist/authContext.d.ts +11 -16
- package/dist/authContext.js +122 -154
- package/dist/authDeviceClient.d.ts +8 -17
- package/dist/authDeviceClient.js +113 -102
- package/dist/beliefs/index.d.ts +15 -67
- package/dist/beliefs/index.js +17 -10181
- package/dist/beliefs/lifecycle.d.ts +10 -11
- package/dist/beliefs/lifecycle.js +78 -80
- package/dist/beliefsClient.d.ts +26 -32
- package/dist/beliefsClient.js +250 -990
- package/dist/boundaryClientSurface.d.ts +11 -16
- package/dist/boundaryClientSurface.js +49 -68
- package/dist/client.d.ts +64 -112
- package/dist/client.js +232 -10155
- package/dist/clientAssemblyTypes.d.ts +3 -3
- package/dist/clientAssemblyTypes.js +1 -2
- package/dist/clientConfig.d.ts +45 -59
- package/dist/clientConfig.js +1 -2
- package/dist/clientEvidenceCompat.d.ts +7 -14
- package/dist/clientEvidenceCompat.js +50 -64
- package/dist/clientGraphNamespaces.d.ts +3 -5
- package/dist/clientGraphNamespaces.js +170 -245
- package/dist/clientHelpers.d.ts +20 -25
- package/dist/clientHelpers.js +104 -127
- package/dist/clientKnowledgeNamespaces.d.ts +6 -53
- package/dist/clientKnowledgeNamespaces.js +502 -506
- package/dist/clientLocalHelpers.d.ts +11 -56
- package/dist/clientLocalHelpers.js +503 -732
- package/dist/clientPlatformNamespaces.d.ts +5 -53
- package/dist/clientPlatformNamespaces.js +229 -323
- package/dist/clientRuntime.d.ts +5 -53
- package/dist/clientRuntime.js +26 -30
- package/dist/clientWorkflowNamespaces.d.ts +6 -15
- package/dist/clientWorkflowNamespaces.js +529 -596
- package/dist/contextClient.d.ts +9 -17
- package/dist/contextClient.js +92 -805
- package/dist/contextFacade.d.ts +11 -2
- package/dist/contextFacade.js +10 -81
- package/dist/contextPackCompiler.d.ts +10 -11
- package/dist/contextPackCompiler.js +494 -1040
- package/dist/contextPackPolicy.d.ts +14 -15
- package/dist/contextPackPolicy.js +227 -305
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +169 -176
- package/dist/contextTypes.d.ts +14 -15
- package/dist/contextTypes.js +1 -2
- package/dist/contracts/api-enums.contract.d.ts +29 -30
- package/dist/contracts/api-enums.contract.js +162 -88
- package/dist/contracts/auth-session.contract.d.ts +13 -14
- package/dist/contracts/auth-session.contract.js +55 -52
- package/dist/contracts/context-pack.contract.d.ts +54 -55
- package/dist/contracts/context-pack.contract.js +160 -88
- package/dist/contracts/contextPack.d.ts +2 -1
- package/dist/contracts/contextPack.js +1 -97
- package/dist/contracts/index.d.ts +11 -12
- package/dist/contracts/index.js +10 -854
- package/dist/contracts/lens-filter.contract.d.ts +9 -10
- package/dist/contracts/lens-filter.contract.js +82 -58
- package/dist/contracts/lens-workflow.contract.d.ts +21 -23
- package/dist/contracts/lens-workflow.contract.js +48 -117
- package/dist/contracts/lensFilter.d.ts +2 -1
- package/dist/contracts/lensFilter.js +1 -71
- package/dist/contracts/lensWorkflow.d.ts +2 -2
- package/dist/contracts/lensWorkflow.js +1 -123
- package/dist/contracts/mcpTools.d.ts +16 -18
- package/dist/contracts/mcpTools.js +89 -123
- package/dist/contracts/prompt.contract.d.ts +4 -5
- package/dist/contracts/prompt.contract.js +23 -10
- package/dist/contracts/prompt.d.ts +2 -1
- package/dist/contracts/prompt.js +1 -11
- package/dist/contracts/sdk-tools.contract.d.ts +2 -1
- package/dist/contracts/sdk-tools.contract.js +1 -2
- package/dist/contracts/sdkTools.d.ts +2 -1
- package/dist/contracts/sdkTools.js +1 -26
- package/dist/contracts/tool-contracts.d.ts +2 -1
- package/dist/contracts/tool-contracts.js +1 -2
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -46
- package/dist/contracts/workflow-runtime.contract.js +241 -228
- package/dist/contracts/workflowRuntime.d.ts +2 -1
- package/dist/contracts/workflowRuntime.js +1 -244
- package/dist/contradictions/index.d.ts +8 -60
- package/dist/contradictions/index.js +11 -10175
- package/dist/control-plane.d.ts +17 -24
- package/dist/control-plane.js +124 -840
- package/dist/controlObjectOwnership.d.ts +19 -20
- package/dist/controlObjectOwnership.js +207 -201
- package/dist/coreClient.d.ts +23 -28
- package/dist/coreClient.js +567 -692
- package/dist/customTools.d.ts +17 -21
- package/dist/customTools.js +221 -221
- package/dist/decisions/index.d.ts +7 -58
- package/dist/decisions/index.js +14 -10177
- package/dist/decisionsClient.d.ts +25 -32
- package/dist/decisionsClient.js +113 -913
- package/dist/domainContext.d.ts +2 -1
- package/dist/domainContext.js +1 -2
- package/dist/edges/index.d.ts +21 -73
- package/dist/edges/index.js +12 -10176
- package/dist/embeddingsClient.d.ts +22 -30
- package/dist/embeddingsClient.js +73 -922
- package/dist/eventingClient.d.ts +23 -31
- package/dist/eventingClient.js +89 -918
- package/dist/events.d.ts +48 -49
- package/dist/events.js +257 -241
- package/dist/eventsCore.d.ts +20 -29
- package/dist/eventsCore.js +86 -830
- package/dist/evidence/index.d.ts +9 -60
- package/dist/evidence/index.js +13 -10176
- package/dist/evidenceClient.d.ts +13 -22
- package/dist/evidenceClient.js +34 -751
- package/dist/facade/context.d.ts +7 -8
- package/dist/facade/context.js +73 -72
- package/dist/functionSurface.d.ts +2 -156
- package/dist/functionSurface.js +1 -1460
- package/dist/functionSurfaceClient.d.ts +2 -9
- package/dist/functionSurfaceClient.js +1 -1460
- package/dist/gatewayFacades.d.ts +79 -296
- package/dist/gatewayFacades.factories.d.ts +209 -14
- package/dist/gatewayFacades.factories.js +561 -2227
- package/dist/gatewayFacades.js +284 -2627
- package/dist/generated/functionSurface.d.ts +149 -0
- package/dist/generated/functionSurface.js +749 -0
- package/dist/graphAnalysisClient.d.ts +41 -49
- package/dist/graphAnalysisClient.js +185 -974
- package/dist/graphClient.d.ts +53 -60
- package/dist/graphClient.js +219 -1090
- package/dist/graphIntel.d.ts +2 -4
- package/dist/graphIntel.js +1 -2
- package/dist/graphIntelligence.d.ts +4 -2
- package/dist/graphIntelligence.js +2 -46
- package/dist/graphRecommendationsClient.d.ts +15 -23
- package/dist/graphRecommendationsClient.js +70 -849
- package/dist/graphStateClassifierClient.d.ts +17 -25
- package/dist/graphStateClassifierClient.js +67 -908
- package/dist/harnessClient.d.ts +40 -47
- package/dist/harnessClient.js +198 -993
- package/dist/identityClient.d.ts +25 -33
- package/dist/identityClient.js +245 -1186
- package/dist/index.d.ts +73 -69
- package/dist/index.js +72 -13313
- package/dist/infisicalRuntime.d.ts +12 -14
- package/dist/infisicalRuntime.js +290 -297
- package/dist/jobsClient.d.ts +24 -32
- package/dist/jobsClient.js +101 -916
- package/dist/learningClient.d.ts +8 -16
- package/dist/learningClient.js +45 -809
- package/dist/lenses/index.d.ts +13 -65
- package/dist/lenses/index.js +11 -10175
- package/dist/mcpClient.d.ts +14 -23
- package/dist/mcpClient.js +115 -856
- package/dist/modelRuntimeClient.d.ts +18 -26
- package/dist/modelRuntimeClient.js +74 -894
- package/dist/nodes/index.d.ts +7 -58
- package/dist/nodes/index.js +14 -10177
- package/dist/ontologies/index.d.ts +21 -73
- package/dist/ontologies/index.js +14 -10178
- package/dist/ontologyClient.d.ts +23 -31
- package/dist/ontologyClient.js +138 -924
- package/dist/ontologyLinksClient.d.ts +16 -24
- package/dist/ontologyLinksClient.js +76 -886
- package/dist/opinion.d.ts +5 -6
- package/dist/opinion.js +21 -25
- package/dist/orgGraphSearchClient.d.ts +19 -27
- package/dist/orgGraphSearchClient.js +89 -857
- package/dist/packRuntime.d.ts +2 -2
- package/dist/packRuntime.js +1 -2
- package/dist/packsClient.d.ts +30 -37
- package/dist/packsClient.js +131 -906
- package/dist/policyClient.d.ts +21 -29
- package/dist/policyClient.js +267 -1026
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +9 -60
- package/dist/questions/index.js +15 -10178
- package/dist/realtime/index.d.ts +20 -16
- package/dist/realtime/index.js +30 -19
- package/dist/realtime/refs.d.ts +4 -6
- package/dist/realtime/refs.js +12 -7
- package/dist/realtime-refs.d.ts +1 -0
- package/dist/realtime-refs.js +1 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +1 -0
- package/dist/reportsClient.d.ts +10 -19
- package/dist/reportsClient.js +48 -836
- package/dist/schemaClient.d.ts +16 -23
- package/dist/schemaClient.js +62 -832
- package/dist/sdkSurface.d.ts +18 -25
- package/dist/sdkSurface.js +135 -106
- package/dist/secrets.d.ts +2 -1
- package/dist/secrets.js +1 -2
- package/dist/sourcesClient.d.ts +11 -18
- package/dist/sourcesClient.js +18 -741
- package/dist/telemetryClient.d.ts +22 -30
- package/dist/telemetryClient.js +107 -931
- package/dist/toolRegistryClient.d.ts +27 -35
- package/dist/toolRegistryClient.js +116 -954
- package/dist/topics/index.d.ts +13 -64
- package/dist/topics/index.js +15 -10178
- package/dist/topicsClient.d.ts +19 -27
- package/dist/topicsClient.js +106 -894
- package/dist/types.d.ts +84 -87
- package/dist/types.js +1 -2
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -5
- package/dist/workflowClient.d.ts +60 -65
- package/dist/workflowClient.js +343 -1219
- package/dist/worktrees/index.d.ts +16 -68
- package/dist/worktrees/index.js +14 -10178
- package/package.json +6 -6
- package/dist/accessControl.js.map +0 -1
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.js.map +0 -1
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.js.map +0 -1
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/clientAssemblyTypes.js.map +0 -1
- package/dist/clientConfig.js.map +0 -1
- package/dist/clientEvidenceCompat.js.map +0 -1
- package/dist/clientGraphNamespaces.js.map +0 -1
- package/dist/clientHelpers.js.map +0 -1
- package/dist/clientKnowledgeNamespaces.js.map +0 -1
- package/dist/clientLocalHelpers.js.map +0 -1
- package/dist/clientPlatformNamespaces.js.map +0 -1
- package/dist/clientRuntime.js.map +0 -1
- package/dist/clientWorkflowNamespaces.js.map +0 -1
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/tool-contracts.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.js.map +0 -1
- package/dist/control-plane.js.map +0 -1
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.js.map +0 -1
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.js.map +0 -1
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/gatewayFacades.factories.js.map +0 -1
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphClient.js.map +0 -1
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.js.map +0 -1
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js.map +0 -1
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/opinion.js.map +0 -1
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +0 -22
- package/dist/sdkSurface.js.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/sourcesClient.js.map +0 -1
- package/dist/telemetryClient.js.map +0 -1
- package/dist/tool-contracts-BUiL9P6z.d.ts +0 -22
- package/dist/toolRegistryClient.js.map +0 -1
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.js.map +0 -1
package/dist/adminClient.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { GatewayClientConfig,
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import './authContext.js';
|
|
7
|
-
import './contracts/auth-session.contract.js';
|
|
8
|
-
import './contracts/workflow-runtime.contract.js';
|
|
9
|
-
import './contracts/lens-workflow.contract.js';
|
|
10
|
-
import './contracts/lens-filter.contract.js';
|
|
11
|
-
|
|
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";
|
|
12
6
|
/** Configuration for the admin client. */
|
|
13
|
-
type AdminClientConfig = GatewayClientConfig;
|
|
14
|
-
type TenantApiKeyRecord = {
|
|
7
|
+
export type AdminClientConfig = GatewayClientConfig;
|
|
8
|
+
export type TenantApiKeyRecord = {
|
|
15
9
|
id?: string;
|
|
16
10
|
tenantId?: string;
|
|
17
11
|
workspaceId?: string;
|
|
@@ -28,7 +22,7 @@ type TenantApiKeyRecord = {
|
|
|
28
22
|
createdAt?: number;
|
|
29
23
|
updatedAt?: number;
|
|
30
24
|
};
|
|
31
|
-
type TenantVaultSecretRecord = {
|
|
25
|
+
export type TenantVaultSecretRecord = {
|
|
32
26
|
id?: string;
|
|
33
27
|
tenantId?: string;
|
|
34
28
|
workspaceId?: string;
|
|
@@ -40,11 +34,11 @@ type TenantVaultSecretRecord = {
|
|
|
40
34
|
createdAt?: number;
|
|
41
35
|
updatedAt?: number;
|
|
42
36
|
};
|
|
43
|
-
type TenantAuthPolicyMode = "open" | "invite_only" | "sso_required";
|
|
44
|
-
type TenantTopicVisibility = "private" | "tenant" | "public";
|
|
45
|
-
type TenantFeatureFlags = Record<string, boolean>;
|
|
46
|
-
type TenantModelSlotOverrides = Record<string, string>;
|
|
47
|
-
type TenantConfigRecord = {
|
|
37
|
+
export type TenantAuthPolicyMode = "open" | "invite_only" | "sso_required";
|
|
38
|
+
export type TenantTopicVisibility = "private" | "tenant" | "public";
|
|
39
|
+
export type TenantFeatureFlags = Record<string, boolean>;
|
|
40
|
+
export type TenantModelSlotOverrides = Record<string, string>;
|
|
41
|
+
export type TenantConfigRecord = {
|
|
48
42
|
tenantId: string;
|
|
49
43
|
authPolicyMode: TenantAuthPolicyMode;
|
|
50
44
|
defaultSessionTTL: number;
|
|
@@ -55,7 +49,7 @@ type TenantConfigRecord = {
|
|
|
55
49
|
updatedAt?: number;
|
|
56
50
|
updatedBy?: string;
|
|
57
51
|
};
|
|
58
|
-
type TenantModelRoutingSlotRecord = {
|
|
52
|
+
export type TenantModelRoutingSlotRecord = {
|
|
59
53
|
slot: string;
|
|
60
54
|
category?: string;
|
|
61
55
|
description?: string;
|
|
@@ -65,7 +59,7 @@ type TenantModelRoutingSlotRecord = {
|
|
|
65
59
|
maxTokens?: number;
|
|
66
60
|
enabled?: boolean;
|
|
67
61
|
};
|
|
68
|
-
type TenantModelRoutingModelRecord = {
|
|
62
|
+
export type TenantModelRoutingModelRecord = {
|
|
69
63
|
key: string;
|
|
70
64
|
name?: string;
|
|
71
65
|
modelId?: string;
|
|
@@ -74,17 +68,17 @@ type TenantModelRoutingModelRecord = {
|
|
|
74
68
|
recommended?: boolean;
|
|
75
69
|
notes?: string;
|
|
76
70
|
};
|
|
77
|
-
type TenantModelRoutingBindingRecord = {
|
|
71
|
+
export type TenantModelRoutingBindingRecord = {
|
|
78
72
|
slot: string;
|
|
79
73
|
providerId: string;
|
|
80
74
|
secretRef: string;
|
|
81
75
|
label?: string;
|
|
82
76
|
keyHint?: string;
|
|
83
77
|
};
|
|
84
|
-
type TenantModelRouteOverrideStatus = "inherit" | "active" | "blocked_missing_model" | "blocked_missing_binding";
|
|
85
|
-
type TenantModelRouteBindingState = "ready" | "missing";
|
|
86
|
-
type TenantModelRouteSource = "platform_default" | "tenant_override";
|
|
87
|
-
type TenantModelRouteRow = {
|
|
78
|
+
export type TenantModelRouteOverrideStatus = "inherit" | "active" | "blocked_missing_model" | "blocked_missing_binding";
|
|
79
|
+
export type TenantModelRouteBindingState = "ready" | "missing";
|
|
80
|
+
export type TenantModelRouteSource = "platform_default" | "tenant_override";
|
|
81
|
+
export type TenantModelRouteRow = {
|
|
88
82
|
slot: string;
|
|
89
83
|
category: string;
|
|
90
84
|
description?: string;
|
|
@@ -106,14 +100,14 @@ type TenantModelRouteRow = {
|
|
|
106
100
|
bindingKeyHint?: string;
|
|
107
101
|
bindingSecretRef?: string;
|
|
108
102
|
};
|
|
109
|
-
type TenantModelRoutingSummary = {
|
|
103
|
+
export type TenantModelRoutingSummary = {
|
|
110
104
|
totalSlots: number;
|
|
111
105
|
promptBoundSlots: number;
|
|
112
106
|
activeOverrides: number;
|
|
113
107
|
blockedOverrides: number;
|
|
114
108
|
readyBindings: number;
|
|
115
109
|
};
|
|
116
|
-
type TenantModelRoutingSnapshot = {
|
|
110
|
+
export type TenantModelRoutingSnapshot = {
|
|
117
111
|
tenantId: string;
|
|
118
112
|
defaultModelSlotOverrides: Record<string, string>;
|
|
119
113
|
slots: TenantModelRoutingSlotRecord[];
|
|
@@ -128,14 +122,14 @@ type TenantModelRoutingSnapshot = {
|
|
|
128
122
|
* @param config - Gateway transport configuration.
|
|
129
123
|
* @returns An object with methods to manage tenants, workspaces, and memberships.
|
|
130
124
|
*/
|
|
131
|
-
declare function createAdminClient(config?: AdminClientConfig): {
|
|
125
|
+
export declare function createAdminClient(config?: AdminClientConfig): {
|
|
132
126
|
/**
|
|
133
127
|
* List tenants visible to the current principal.
|
|
134
128
|
*/
|
|
135
129
|
listTenants(query?: {
|
|
136
130
|
status?: "provisioning" | "active" | "disabled" | "suspended" | "archived";
|
|
137
131
|
limit?: number;
|
|
138
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "tenants">>>;
|
|
132
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "tenants">>>;
|
|
139
133
|
/**
|
|
140
134
|
* Create a tenant.
|
|
141
135
|
*/
|
|
@@ -150,22 +144,22 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
150
144
|
lucernDeploymentUrl?: string;
|
|
151
145
|
appDeploymentUrl?: string;
|
|
152
146
|
metadata?: JsonObject;
|
|
153
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
147
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
154
148
|
/**
|
|
155
149
|
* Get the control-object ownership contract.
|
|
156
150
|
*/
|
|
157
|
-
getControlObjectOwnership: () => Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
151
|
+
getControlObjectOwnership: () => Promise<import("./coreClient").PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
158
152
|
/**
|
|
159
153
|
* @deprecated Use getControlObjectOwnership.
|
|
160
154
|
*/
|
|
161
|
-
getControlObjectOwnershipContract: () => Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
155
|
+
getControlObjectOwnershipContract: () => Promise<import("./coreClient").PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
162
156
|
/**
|
|
163
157
|
* List workspaces for the current admin scope.
|
|
164
158
|
*/
|
|
165
159
|
listWorkspaces(query?: GatewayScope & {
|
|
166
160
|
status?: "active" | "archived";
|
|
167
161
|
limit?: number;
|
|
168
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "workspaces">>>;
|
|
162
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "workspaces">>>;
|
|
169
163
|
/**
|
|
170
164
|
* Create a workspace.
|
|
171
165
|
*/
|
|
@@ -178,7 +172,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
178
172
|
defaultProjectVisibility?: "private" | "team" | "firm" | "external" | "public";
|
|
179
173
|
restore?: boolean;
|
|
180
174
|
metadata?: JsonObject;
|
|
181
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
175
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
182
176
|
/**
|
|
183
177
|
* List memberships for the current admin scope.
|
|
184
178
|
*/
|
|
@@ -187,7 +181,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
187
181
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
188
182
|
role?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
189
183
|
limit?: number;
|
|
190
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "memberships">>>;
|
|
184
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "memberships">>>;
|
|
191
185
|
/**
|
|
192
186
|
* Create a membership.
|
|
193
187
|
*/
|
|
@@ -197,7 +191,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
197
191
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
198
192
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
199
193
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
200
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
194
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
201
195
|
/**
|
|
202
196
|
* Update a membership.
|
|
203
197
|
*/
|
|
@@ -207,7 +201,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
207
201
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
208
202
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
209
203
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
210
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
204
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
211
205
|
/**
|
|
212
206
|
* @deprecated Use createMembership or updateMembership.
|
|
213
207
|
*/
|
|
@@ -217,7 +211,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
217
211
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
218
212
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
219
213
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
220
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
214
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
221
215
|
/**
|
|
222
216
|
* List tenant API keys in the current admin scope.
|
|
223
217
|
*/
|
|
@@ -254,7 +248,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
254
248
|
*/
|
|
255
249
|
revokeTenantApiKey(keyId: string, input?: GatewayScope & {
|
|
256
250
|
reason?: string;
|
|
257
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
251
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
258
252
|
/**
|
|
259
253
|
* List tenant vault secrets.
|
|
260
254
|
*/
|
|
@@ -302,14 +296,14 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
302
296
|
/**
|
|
303
297
|
* Delete a tenant vault secret.
|
|
304
298
|
*/
|
|
305
|
-
deleteTenantVaultSecret(secretId: string, scope: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
299
|
+
deleteTenantVaultSecret(secretId: string, scope: GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
306
300
|
/**
|
|
307
301
|
* List tenant provider secrets.
|
|
308
302
|
*/
|
|
309
303
|
listTenantSecrets(scope: GatewayScope & {
|
|
310
304
|
providerId?: string;
|
|
311
305
|
status?: "active" | "revoked";
|
|
312
|
-
}): Promise<PlatformGatewaySuccess<unknown>>;
|
|
306
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
313
307
|
/**
|
|
314
308
|
* Upsert a tenant provider secret.
|
|
315
309
|
*/
|
|
@@ -320,35 +314,35 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
320
314
|
modelSlotIds?: string[];
|
|
321
315
|
passThroughOnly?: boolean;
|
|
322
316
|
metadata?: JsonObject;
|
|
323
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
317
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
324
318
|
/**
|
|
325
319
|
* Revoke a tenant provider secret.
|
|
326
320
|
*/
|
|
327
321
|
revokeTenantSecret(secretRef: string, input: GatewayScope & {
|
|
328
322
|
reason?: string;
|
|
329
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
323
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
330
324
|
/**
|
|
331
325
|
* Get tenant configuration.
|
|
332
326
|
*/
|
|
333
327
|
getTenantConfig(scope: GatewayScope & {
|
|
334
328
|
tenantId: string;
|
|
335
|
-
}): Promise<PlatformGatewaySuccess<TenantConfigRecord>>;
|
|
329
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<TenantConfigRecord>>;
|
|
336
330
|
/**
|
|
337
331
|
* Get tenant model routing.
|
|
338
332
|
*/
|
|
339
333
|
getTenantModelRouting(scope: GatewayScope & {
|
|
340
334
|
tenantId: string;
|
|
341
|
-
}): Promise<PlatformGatewaySuccess<TenantModelRoutingSnapshot>>;
|
|
335
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<TenantModelRoutingSnapshot>>;
|
|
342
336
|
/**
|
|
343
337
|
* Upsert tenant configuration.
|
|
344
338
|
*/
|
|
345
|
-
upsertTenantConfig(input: GatewayScope & Omit<TenantConfigRecord, "updatedAt" | "updatedBy">, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantConfigRecord>>;
|
|
339
|
+
upsertTenantConfig(input: GatewayScope & Omit<TenantConfigRecord, "updatedAt" | "updatedBy">, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<TenantConfigRecord>>;
|
|
346
340
|
/**
|
|
347
341
|
* List groups.
|
|
348
342
|
*/
|
|
349
343
|
listGroups(scope?: GatewayScope & {
|
|
350
344
|
limit?: number;
|
|
351
|
-
}): Promise<PlatformGatewaySuccess<unknown>>;
|
|
345
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
352
346
|
/**
|
|
353
347
|
* Create a group.
|
|
354
348
|
*/
|
|
@@ -357,7 +351,7 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
357
351
|
groupKey?: string;
|
|
358
352
|
groupType?: string;
|
|
359
353
|
description?: string;
|
|
360
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
354
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
361
355
|
/**
|
|
362
356
|
* Update a group.
|
|
363
357
|
*/
|
|
@@ -366,38 +360,38 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
366
360
|
description?: string;
|
|
367
361
|
workspaceId?: string;
|
|
368
362
|
clearWorkspaceId?: boolean;
|
|
369
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
363
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
370
364
|
/**
|
|
371
365
|
* Delete a group.
|
|
372
366
|
*/
|
|
373
|
-
deleteGroup(groupId: string, input?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
367
|
+
deleteGroup(groupId: string, input?: GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
374
368
|
/**
|
|
375
369
|
* List group members.
|
|
376
370
|
*/
|
|
377
371
|
listGroupMembers(query: GatewayScope & {
|
|
378
372
|
groupId: string;
|
|
379
|
-
}): Promise<PlatformGatewaySuccess<unknown>>;
|
|
373
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
380
374
|
/**
|
|
381
375
|
* Add a group member.
|
|
382
376
|
*/
|
|
383
377
|
addGroupMember(input: GatewayScope & {
|
|
384
378
|
groupId: string;
|
|
385
379
|
principalId: string;
|
|
386
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
380
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
387
381
|
/**
|
|
388
382
|
* Remove a group member.
|
|
389
383
|
*/
|
|
390
384
|
removeGroupMember(input: GatewayScope & {
|
|
391
385
|
groupId: string;
|
|
392
386
|
principalId: string;
|
|
393
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
387
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
394
388
|
/**
|
|
395
389
|
* List pack-to-group assignments.
|
|
396
390
|
*/
|
|
397
391
|
listPackGroupAssignments(query?: GatewayScope & {
|
|
398
392
|
groupId?: string;
|
|
399
393
|
status?: string;
|
|
400
|
-
}): Promise<PlatformGatewaySuccess<unknown>>;
|
|
394
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
401
395
|
/**
|
|
402
396
|
* Assign a pack to a group.
|
|
403
397
|
*/
|
|
@@ -405,14 +399,13 @@ declare function createAdminClient(config?: AdminClientConfig): {
|
|
|
405
399
|
groupId: string;
|
|
406
400
|
packKey: string;
|
|
407
401
|
packVersion?: string;
|
|
408
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
402
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
409
403
|
/**
|
|
410
404
|
* Remove a pack from a group.
|
|
411
405
|
*/
|
|
412
406
|
removePackFromGroup(input: GatewayScope & {
|
|
413
407
|
groupId: string;
|
|
414
408
|
packKey: string;
|
|
415
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
409
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
416
410
|
};
|
|
417
|
-
|
|
418
|
-
export { type AdminClientConfig, GatewayScope, PlatformGatewaySuccess, type TenantApiKeyRecord, type TenantAuthPolicyMode, type TenantConfigRecord, type TenantFeatureFlags, type TenantModelRouteBindingState, type TenantModelRouteOverrideStatus, type TenantModelRouteRow, type TenantModelRouteSource, type TenantModelRoutingBindingRecord, type TenantModelRoutingModelRecord, type TenantModelRoutingSlotRecord, type TenantModelRoutingSnapshot, type TenantModelRoutingSummary, type TenantModelSlotOverrides, type TenantTopicVisibility, type TenantVaultSecretRecord, createAdminClient };
|
|
411
|
+
//# sourceMappingURL=adminClient.d.ts.map
|