@axiom-lattice/protocols 7.1.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +179 -0
- package/dist/index.d.mts +740 -8
- package/dist/index.d.ts +740 -8
- package/dist/index.js +184 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +161 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AuthProviderProtocol.ts +80 -0
- package/src/InviteLinkStoreProtocol.ts +59 -0
- package/src/McpLatticeProtocol.ts +2 -2
- package/src/McpServerConfigStoreProtocol.ts +118 -0
- package/src/ModelProviderProtocol.ts +20 -4
- package/src/OidcIdentityClaimStoreProtocol.ts +117 -0
- package/src/OidcProviderConfigStoreProtocol.ts +84 -0
- package/src/PlatformAuditProtocol.ts +80 -0
- package/src/PlatformInvitationStoreProtocol.ts +60 -0
- package/src/PlatformMemberStoreProtocol.ts +23 -0
- package/src/PlatformOpsProtocol.ts +73 -0
- package/src/PlatformSettingsProtocol.ts +161 -0
- package/src/SandboxPluginProtocol.ts +1 -1
- package/src/UserExternalIdentityStoreProtocol.ts +53 -0
- package/src/__tests__/AuthProviderProtocol.test.ts +20 -0
- package/src/index.ts +10 -0
package/dist/index.d.mts
CHANGED
|
@@ -1856,7 +1856,7 @@ interface SkillLatticeProtocol extends BaseLatticeProtocol<SkillConfig, SkillCli
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* MCP transport type
|
|
1858
1858
|
*/
|
|
1859
|
-
type McpTransportType = "stdio" | "streamable_http"
|
|
1859
|
+
type McpTransportType = "stdio" | "streamable_http";
|
|
1860
1860
|
/**
|
|
1861
1861
|
* MCP protocol era selection for client connections.
|
|
1862
1862
|
*
|
|
@@ -1884,7 +1884,7 @@ interface McpServerConfig {
|
|
|
1884
1884
|
/** Environment variables (stdio transport; credentials passed to the server process) */
|
|
1885
1885
|
env?: Record<string, string>;
|
|
1886
1886
|
/**
|
|
1887
|
-
* Custom HTTP headers sent with every request (streamable_http
|
|
1887
|
+
* Custom HTTP headers sent with every request (streamable_http only).
|
|
1888
1888
|
* Commonly used for authentication, e.g. `{ Authorization: "Bearer <token>" }`.
|
|
1889
1889
|
* Ignored for stdio transport. Values are encrypted at rest by config stores.
|
|
1890
1890
|
*/
|
|
@@ -3033,6 +3033,11 @@ interface McpServerConfigEntry {
|
|
|
3033
3033
|
* Tenant identifier for multi-tenant isolation
|
|
3034
3034
|
*/
|
|
3035
3035
|
tenantId: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* Personal assistant that owns this configuration, when it belongs to the
|
|
3038
|
+
* personal data domain. Tenant-scoped entries leave this undefined.
|
|
3039
|
+
*/
|
|
3040
|
+
ownerAssistantId?: string;
|
|
3036
3041
|
/**
|
|
3037
3042
|
* Business key for the configuration (unique within tenant)
|
|
3038
3043
|
*/
|
|
@@ -3208,6 +3213,58 @@ interface McpServerConfigStore {
|
|
|
3208
3213
|
*/
|
|
3209
3214
|
hasConfig(tenantId: string, id: string): Promise<boolean>;
|
|
3210
3215
|
}
|
|
3216
|
+
/**
|
|
3217
|
+
* MCP server configuration owned by one personal assistant.
|
|
3218
|
+
*
|
|
3219
|
+
* Personal configs live in a separate store surface so tenant-only code paths
|
|
3220
|
+
* can never read them by accident; the owning assistant id is part of every
|
|
3221
|
+
* lookup key.
|
|
3222
|
+
*/
|
|
3223
|
+
interface PersonalMcpServerConfigEntry extends McpServerConfigEntry {
|
|
3224
|
+
/** Personal assistant that owns this configuration. */
|
|
3225
|
+
ownerAssistantId: string;
|
|
3226
|
+
}
|
|
3227
|
+
/**
|
|
3228
|
+
* Store operations for the personal MCP data domain.
|
|
3229
|
+
*
|
|
3230
|
+
* Every method scopes by `(tenantId, ownerAssistantId)`. Implementations must
|
|
3231
|
+
* never merge personal rows into the tenant-only methods of
|
|
3232
|
+
* {@link McpServerConfigStore}.
|
|
3233
|
+
*/
|
|
3234
|
+
interface PersonalMcpServerConfigStore {
|
|
3235
|
+
/** List all personal MCP configs belonging to one assistant. */
|
|
3236
|
+
getAllConfigsForAssistant(tenantId: string, ownerAssistantId: string): Promise<PersonalMcpServerConfigEntry[]>;
|
|
3237
|
+
/**
|
|
3238
|
+
* List every personal MCP config across tenants.
|
|
3239
|
+
*
|
|
3240
|
+
* Intended for operations and tests only; startup restoration must not call
|
|
3241
|
+
* it (personal connections are established lazily).
|
|
3242
|
+
*/
|
|
3243
|
+
getAllPersonalConfigsWithoutTenant(): Promise<PersonalMcpServerConfigEntry[]>;
|
|
3244
|
+
/** Get one personal config by id, scoped to its assistant. */
|
|
3245
|
+
getConfigByIdForAssistant(tenantId: string, ownerAssistantId: string, id: string): Promise<PersonalMcpServerConfigEntry | null>;
|
|
3246
|
+
/** Get one personal config by business key, scoped to its assistant. */
|
|
3247
|
+
getConfigByKeyForAssistant(tenantId: string, ownerAssistantId: string, key: string): Promise<PersonalMcpServerConfigEntry | null>;
|
|
3248
|
+
/** Create a personal config for one assistant. */
|
|
3249
|
+
createConfigForAssistant(tenantId: string, ownerAssistantId: string, id: string, data: CreateMcpServerConfigRequest): Promise<PersonalMcpServerConfigEntry>;
|
|
3250
|
+
/** Update a personal config by id, scoped to its assistant. */
|
|
3251
|
+
updateConfigForAssistant(tenantId: string, ownerAssistantId: string, id: string, updates: Partial<UpdateMcpServerConfigRequest>): Promise<PersonalMcpServerConfigEntry | null>;
|
|
3252
|
+
/** Delete one personal config by id; returns whether a row was removed. */
|
|
3253
|
+
deleteConfigForAssistant(tenantId: string, ownerAssistantId: string, id: string): Promise<boolean>;
|
|
3254
|
+
/** Delete every personal config owned by one assistant; returns the count. */
|
|
3255
|
+
deleteConfigsForAssistant(tenantId: string, ownerAssistantId: string): Promise<number>;
|
|
3256
|
+
/** Check whether a personal config id exists for one assistant. */
|
|
3257
|
+
hasConfigForAssistant(tenantId: string, ownerAssistantId: string, id: string): Promise<boolean>;
|
|
3258
|
+
}
|
|
3259
|
+
/** A store that serves both the tenant and personal MCP data domains. */
|
|
3260
|
+
type McpConfigStoreWithPersonal = McpServerConfigStore & PersonalMcpServerConfigStore;
|
|
3261
|
+
/**
|
|
3262
|
+
* Narrow a store to the personal MCP surface at runtime.
|
|
3263
|
+
*
|
|
3264
|
+
* Custom hosts may register a tenant-only MCP store; callers use this guard to
|
|
3265
|
+
* degrade gracefully instead of assuming the personal methods exist.
|
|
3266
|
+
*/
|
|
3267
|
+
declare function isPersonalMcpServerConfigStore(store: McpServerConfigStore): store is McpConfigStoreWithPersonal;
|
|
3211
3268
|
|
|
3212
3269
|
/**
|
|
3213
3270
|
* ModelProviderProtocol
|
|
@@ -3269,6 +3326,19 @@ type ModelKind = "chat" | "embedding" | "asr";
|
|
|
3269
3326
|
declare const DEFAULT_MODEL_KEY = "default";
|
|
3270
3327
|
declare const EMBEDDING_DEFAULT_KEY = "default:embedding";
|
|
3271
3328
|
declare const ASR_DEFAULT_KEY = "default:asr";
|
|
3329
|
+
/**
|
|
3330
|
+
* Reserved tenant id for the platform-owned model provider catalog.
|
|
3331
|
+
*
|
|
3332
|
+
* The platform catalog lives in the same encrypted `modelProvider` store as a
|
|
3333
|
+
* tenant's own providers, under this reserved id. It is deliberately distinct
|
|
3334
|
+
* from the deployment `"default"` namespace, which holds the models registered
|
|
3335
|
+
* from environment configuration at boot.
|
|
3336
|
+
*
|
|
3337
|
+
* Resolution uses it as the second step: a tenant with providers of its own
|
|
3338
|
+
* never reaches it, a tenant with none falls back to it while it has providers,
|
|
3339
|
+
* and only an empty platform catalog falls through to the deployment namespace.
|
|
3340
|
+
*/
|
|
3341
|
+
declare const PLATFORM_MODEL_TENANT_ID = "__platform__";
|
|
3272
3342
|
/**
|
|
3273
3343
|
* Build the tenant-scoped model key.
|
|
3274
3344
|
*
|
|
@@ -3571,11 +3641,12 @@ interface ModelSelection {
|
|
|
3571
3641
|
*/
|
|
3572
3642
|
kind?: ModelKind;
|
|
3573
3643
|
/**
|
|
3574
|
-
* Whether this is the tenant's default model.
|
|
3644
|
+
* Whether this is the tenant's default model of its kind.
|
|
3575
3645
|
*
|
|
3576
|
-
*
|
|
3577
|
-
*
|
|
3578
|
-
*
|
|
3646
|
+
* The flag is scoped per *(tenant, kind)*: at most one chat model, one
|
|
3647
|
+
* embedding model, and one ASR model may carry it. Omitted means "leave the
|
|
3648
|
+
* stored flag alone"; a default can only be replaced, never dropped by
|
|
3649
|
+
* omission — see `ModelProviderStore.getDefaultModel`.
|
|
3579
3650
|
*/
|
|
3580
3651
|
isDefault?: boolean;
|
|
3581
3652
|
}
|
|
@@ -4109,6 +4180,115 @@ interface UserTenantLinkStore {
|
|
|
4109
4180
|
hasLink(userId: string, tenantId: string): Promise<boolean>;
|
|
4110
4181
|
}
|
|
4111
4182
|
|
|
4183
|
+
/** Interactive login surface. Machine credentials are not part of this extension point. */
|
|
4184
|
+
type LoginSurface = "console";
|
|
4185
|
+
/** One selectable sign-in method for a UI. */
|
|
4186
|
+
interface AuthProviderDescriptor {
|
|
4187
|
+
id: string;
|
|
4188
|
+
displayName: string;
|
|
4189
|
+
interaction: "form" | "redirect" | "none";
|
|
4190
|
+
surfaces: LoginSurface[];
|
|
4191
|
+
/**
|
|
4192
|
+
* True when the form provider is only an emergency local account and normal
|
|
4193
|
+
* password sign-in is disabled. UIs should label it instead of treating it as
|
|
4194
|
+
* the default sign-in method.
|
|
4195
|
+
*/
|
|
4196
|
+
breakGlassOnly?: boolean;
|
|
4197
|
+
}
|
|
4198
|
+
/** Authenticated external identity. Contains no tenant or authorization data. */
|
|
4199
|
+
interface Principal {
|
|
4200
|
+
subject: string;
|
|
4201
|
+
method: string;
|
|
4202
|
+
email?: string;
|
|
4203
|
+
emailVerified?: boolean;
|
|
4204
|
+
name?: string;
|
|
4205
|
+
/** IdP-provided avatar URL (OIDC `picture`); validated only at render time. */
|
|
4206
|
+
picture?: string;
|
|
4207
|
+
tenantHint?: string;
|
|
4208
|
+
claims?: Record<string, unknown>;
|
|
4209
|
+
}
|
|
4210
|
+
/** A cookie a provider asks the route layer to set. */
|
|
4211
|
+
interface AuthCookie {
|
|
4212
|
+
name: string;
|
|
4213
|
+
value: string;
|
|
4214
|
+
options: {
|
|
4215
|
+
httpOnly?: boolean;
|
|
4216
|
+
secure?: boolean;
|
|
4217
|
+
sameSite?: "lax" | "strict" | "none";
|
|
4218
|
+
path?: string;
|
|
4219
|
+
maxAge?: number;
|
|
4220
|
+
};
|
|
4221
|
+
}
|
|
4222
|
+
type AuthChallenge = {
|
|
4223
|
+
kind: "redirect";
|
|
4224
|
+
url: string;
|
|
4225
|
+
cookies?: AuthCookie[];
|
|
4226
|
+
} | {
|
|
4227
|
+
kind: "form";
|
|
4228
|
+
fields: Array<{
|
|
4229
|
+
name: string;
|
|
4230
|
+
label: string;
|
|
4231
|
+
secret?: boolean;
|
|
4232
|
+
}>;
|
|
4233
|
+
} | {
|
|
4234
|
+
kind: "none";
|
|
4235
|
+
};
|
|
4236
|
+
interface AuthRequestContext {
|
|
4237
|
+
surface: LoginSurface;
|
|
4238
|
+
tenantId?: string;
|
|
4239
|
+
params?: Record<string, string>;
|
|
4240
|
+
cookies?: Record<string, string>;
|
|
4241
|
+
}
|
|
4242
|
+
interface AuthProvider {
|
|
4243
|
+
readonly descriptor: AuthProviderDescriptor;
|
|
4244
|
+
begin?(ctx: AuthRequestContext): Promise<AuthChallenge>;
|
|
4245
|
+
callback?(ctx: AuthRequestContext): Promise<Principal>;
|
|
4246
|
+
verify?(ctx: AuthRequestContext & {
|
|
4247
|
+
credential: unknown;
|
|
4248
|
+
}): Promise<Principal>;
|
|
4249
|
+
}
|
|
4250
|
+
type AuthErrorCode = "INVALID_CREDENTIALS" | "PROVIDER_ERROR" | "TENANT_UNAVAILABLE" | "INVALID_STATE" | "EMAIL_REQUIRED" | "NOT_PROVISIONED";
|
|
4251
|
+
declare class AuthError extends Error {
|
|
4252
|
+
readonly code: AuthErrorCode;
|
|
4253
|
+
readonly status: 400 | 401 | 502;
|
|
4254
|
+
constructor(code: AuthErrorCode, status: 400 | 401 | 502, message: string);
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
interface UserExternalIdentity {
|
|
4258
|
+
userId: string;
|
|
4259
|
+
providerId: string;
|
|
4260
|
+
/** OIDC issuer (or derived provider key); prevents cross-IdP subject collisions. */
|
|
4261
|
+
issuer: string;
|
|
4262
|
+
subject: string;
|
|
4263
|
+
email?: string;
|
|
4264
|
+
linkedAt: Date;
|
|
4265
|
+
}
|
|
4266
|
+
declare class ExternalIdentityConflictError extends Error {
|
|
4267
|
+
readonly providerId: string;
|
|
4268
|
+
readonly issuer: string;
|
|
4269
|
+
readonly subject: string;
|
|
4270
|
+
readonly code = "EXTERNAL_IDENTITY_CONFLICT";
|
|
4271
|
+
constructor(providerId: string, issuer: string, subject: string);
|
|
4272
|
+
}
|
|
4273
|
+
/**
|
|
4274
|
+
* Raised when a store cannot read back an external identity immediately after a
|
|
4275
|
+
* successful write, which indicates a persistence invariant failure rather than a
|
|
4276
|
+
* user-facing conflict.
|
|
4277
|
+
*/
|
|
4278
|
+
declare class ExternalIdentityPersistError extends Error {
|
|
4279
|
+
readonly providerId: string;
|
|
4280
|
+
readonly issuer: string;
|
|
4281
|
+
readonly subject: string;
|
|
4282
|
+
readonly code = "EXTERNAL_IDENTITY_PERSIST_FAILED";
|
|
4283
|
+
constructor(providerId: string, issuer: string, subject: string);
|
|
4284
|
+
}
|
|
4285
|
+
interface UserExternalIdentityStore {
|
|
4286
|
+
getByProviderSubject(providerId: string, issuer: string, subject: string): Promise<UserExternalIdentity | null>;
|
|
4287
|
+
listByUser(userId: string): Promise<UserExternalIdentity[]>;
|
|
4288
|
+
link(identity: UserExternalIdentity): Promise<void>;
|
|
4289
|
+
unlink(providerId: string, issuer: string, subject: string): Promise<void>;
|
|
4290
|
+
}
|
|
4291
|
+
|
|
4112
4292
|
/**
|
|
4113
4293
|
* WorkflowTrackingStoreProtocol
|
|
4114
4294
|
*
|
|
@@ -6784,6 +6964,290 @@ interface UserPushSubscriptionStore {
|
|
|
6784
6964
|
delete(tenantId: string, userId: string, endpoint: string): Promise<boolean>;
|
|
6785
6965
|
}
|
|
6786
6966
|
|
|
6967
|
+
interface OidcProviderConfig {
|
|
6968
|
+
id: string;
|
|
6969
|
+
displayName: string;
|
|
6970
|
+
issuer: string;
|
|
6971
|
+
clientId: string;
|
|
6972
|
+
clientSecret: string;
|
|
6973
|
+
scopes: string;
|
|
6974
|
+
enabled: boolean;
|
|
6975
|
+
jitProvisioning: boolean;
|
|
6976
|
+
autoLinkEmail: boolean;
|
|
6977
|
+
defaultTenantId?: string;
|
|
6978
|
+
/**
|
|
6979
|
+
* Exact hostnames allowed to resolve to a private address for this provider.
|
|
6980
|
+
*
|
|
6981
|
+
* `undefined` falls back to the deployment allowlist; an explicit empty array
|
|
6982
|
+
* denies all private-network issuers for this provider.
|
|
6983
|
+
*/
|
|
6984
|
+
allowedPrivateHosts?: string[];
|
|
6985
|
+
createdAt: Date;
|
|
6986
|
+
updatedAt: Date;
|
|
6987
|
+
}
|
|
6988
|
+
interface CreateOidcProviderConfigInput {
|
|
6989
|
+
displayName: string;
|
|
6990
|
+
issuer: string;
|
|
6991
|
+
clientId: string;
|
|
6992
|
+
clientSecret: string;
|
|
6993
|
+
scopes: string;
|
|
6994
|
+
enabled: boolean;
|
|
6995
|
+
jitProvisioning: boolean;
|
|
6996
|
+
autoLinkEmail: boolean;
|
|
6997
|
+
defaultTenantId?: string;
|
|
6998
|
+
allowedPrivateHosts?: string[];
|
|
6999
|
+
}
|
|
7000
|
+
interface UpdateOidcProviderConfigInput {
|
|
7001
|
+
displayName?: string;
|
|
7002
|
+
issuer?: string;
|
|
7003
|
+
clientId?: string;
|
|
7004
|
+
clientSecret?: string;
|
|
7005
|
+
scopes?: string;
|
|
7006
|
+
enabled?: boolean;
|
|
7007
|
+
jitProvisioning?: boolean;
|
|
7008
|
+
autoLinkEmail?: boolean;
|
|
7009
|
+
defaultTenantId?: string | null;
|
|
7010
|
+
allowedPrivateHosts?: string[];
|
|
7011
|
+
}
|
|
7012
|
+
/**
|
|
7013
|
+
* Normalizes an allowed-private-hosts list by trimming and lowercasing each
|
|
7014
|
+
* entry and removing duplicates. Empty entries are preserved; callers that
|
|
7015
|
+
* accept user input must reject them before calling this helper.
|
|
7016
|
+
*
|
|
7017
|
+
* @param values - Raw hostname entries.
|
|
7018
|
+
* @returns Deduplicated, normalized hostname entries.
|
|
7019
|
+
*/
|
|
7020
|
+
declare function normalizeAllowedPrivateHosts(values: readonly string[]): string[];
|
|
7021
|
+
declare class OidcProviderConfigConflictError extends Error {
|
|
7022
|
+
readonly id: string;
|
|
7023
|
+
readonly code = "OIDC_PROVIDER_CONFIG_CONFLICT";
|
|
7024
|
+
constructor(id: string);
|
|
7025
|
+
}
|
|
7026
|
+
interface OidcProviderConfigStore {
|
|
7027
|
+
list(): Promise<OidcProviderConfig[]>;
|
|
7028
|
+
get(id: string): Promise<OidcProviderConfig | null>;
|
|
7029
|
+
create(id: string, input: CreateOidcProviderConfigInput): Promise<OidcProviderConfig>;
|
|
7030
|
+
update(id: string, updates: UpdateOidcProviderConfigInput): Promise<OidcProviderConfig | null>;
|
|
7031
|
+
delete(id: string): Promise<boolean>;
|
|
7032
|
+
}
|
|
7033
|
+
|
|
7034
|
+
/** Platform-level role, independent of any tenant role. */
|
|
7035
|
+
type PlatformRole = "owner" | "admin" | "auditor";
|
|
7036
|
+
/** Durable platform grant for a single user. */
|
|
7037
|
+
interface PlatformMember {
|
|
7038
|
+
userId: string;
|
|
7039
|
+
role: PlatformRole;
|
|
7040
|
+
grantedBy?: string;
|
|
7041
|
+
grantedAt: Date;
|
|
7042
|
+
updatedAt: Date;
|
|
7043
|
+
}
|
|
7044
|
+
/** Persistence operations for platform members. */
|
|
7045
|
+
interface PlatformMemberStore {
|
|
7046
|
+
/** Lists every platform member. */
|
|
7047
|
+
list(): Promise<PlatformMember[]>;
|
|
7048
|
+
/** Returns the platform member for a user, or null. */
|
|
7049
|
+
get(userId: string): Promise<PlatformMember | null>;
|
|
7050
|
+
/** Inserts or replaces a member keyed by user id (last write wins). */
|
|
7051
|
+
upsert(member: PlatformMember): Promise<PlatformMember>;
|
|
7052
|
+
/** Deletes a member. Returns whether a row was removed. */
|
|
7053
|
+
delete(userId: string): Promise<boolean>;
|
|
7054
|
+
}
|
|
7055
|
+
|
|
7056
|
+
/**
|
|
7057
|
+
* Normalizes a platform invitation email for storage and lookup.
|
|
7058
|
+
*
|
|
7059
|
+
* Emails are trimmed and lower-cased so the same address maps to a single
|
|
7060
|
+
* invitation regardless of caller formatting.
|
|
7061
|
+
*
|
|
7062
|
+
* @param email Raw email address supplied by a caller.
|
|
7063
|
+
* @returns The normalized email address.
|
|
7064
|
+
*/
|
|
7065
|
+
declare function normalizePlatformInvitationEmail(email: string): string;
|
|
7066
|
+
/** Durable invitation for a platform-level role, keyed by normalized email. */
|
|
7067
|
+
interface PlatformInvitation {
|
|
7068
|
+
/** Normalized (trimmed, lower-cased) invitee email. */
|
|
7069
|
+
email: string;
|
|
7070
|
+
/** Platform role granted when the invitation is consumed. */
|
|
7071
|
+
role: PlatformRole;
|
|
7072
|
+
/** User id of the platform owner/admin who created the invitation. */
|
|
7073
|
+
invitedBy?: string;
|
|
7074
|
+
/** When the invitation was created. */
|
|
7075
|
+
createdAt: Date;
|
|
7076
|
+
/** Optional expiry; invitations at or after this instant cannot be consumed. */
|
|
7077
|
+
expiresAt?: Date;
|
|
7078
|
+
/** When the invitation was consumed, or omitted while pending. */
|
|
7079
|
+
consumedAt?: Date;
|
|
7080
|
+
}
|
|
7081
|
+
/**
|
|
7082
|
+
* Persistence operations for platform invitations.
|
|
7083
|
+
*
|
|
7084
|
+
* Implementations normalize emails on every write and lookup. All operations
|
|
7085
|
+
* are idempotent with respect to normalization.
|
|
7086
|
+
*/
|
|
7087
|
+
interface PlatformInvitationStore {
|
|
7088
|
+
/** Lists every invitation, ordered by normalized email. */
|
|
7089
|
+
list(): Promise<PlatformInvitation[]>;
|
|
7090
|
+
/** Returns the invitation for an email, or null. */
|
|
7091
|
+
get(email: string): Promise<PlatformInvitation | null>;
|
|
7092
|
+
/**
|
|
7093
|
+
* Inserts or replaces an invitation keyed by normalized email.
|
|
7094
|
+
*
|
|
7095
|
+
* The supplied invitation replaces any existing row in full (last write wins),
|
|
7096
|
+
* including `expiresAt` and `consumedAt`.
|
|
7097
|
+
*/
|
|
7098
|
+
upsert(invitation: PlatformInvitation): Promise<PlatformInvitation>;
|
|
7099
|
+
/** Deletes an invitation. Returns whether a row was removed. */
|
|
7100
|
+
delete(email: string): Promise<boolean>;
|
|
7101
|
+
/**
|
|
7102
|
+
* Atomically consumes a pending, unexpired invitation.
|
|
7103
|
+
*
|
|
7104
|
+
* A row is consumable only when `consumedAt` is unset and `expiresAt` is
|
|
7105
|
+
* unset or strictly after `at`. Returns the consumed invitation, or null
|
|
7106
|
+
* when the row is missing, already consumed, or expired.
|
|
7107
|
+
*/
|
|
7108
|
+
consume(email: string, at: Date): Promise<PlatformInvitation | null>;
|
|
7109
|
+
}
|
|
7110
|
+
|
|
7111
|
+
/**
|
|
7112
|
+
* Pending SSO identity claims.
|
|
7113
|
+
*
|
|
7114
|
+
* A claim is created when an enterprise IdP authenticates a user without an
|
|
7115
|
+
* email. It deliberately does not create a user or link an external identity
|
|
7116
|
+
* until a platform administrator reviews it. This keeps unverified,
|
|
7117
|
+
* user-entered email separate from local accounts and lets an admin either
|
|
7118
|
+
* create a new user or explicitly link the SSO identity to an existing one.
|
|
7119
|
+
*/
|
|
7120
|
+
type OidcIdentityClaimStatus = "pending" | "approved" | "rejected" | "expired";
|
|
7121
|
+
interface OidcIdentityClaim {
|
|
7122
|
+
id: string;
|
|
7123
|
+
providerId: string;
|
|
7124
|
+
issuer: string;
|
|
7125
|
+
subject: string;
|
|
7126
|
+
email: string;
|
|
7127
|
+
name?: string;
|
|
7128
|
+
picture?: string;
|
|
7129
|
+
status: OidcIdentityClaimStatus;
|
|
7130
|
+
createdAt: Date;
|
|
7131
|
+
updatedAt: Date;
|
|
7132
|
+
expiresAt: Date;
|
|
7133
|
+
reviewedBy?: string;
|
|
7134
|
+
reviewedAt?: Date;
|
|
7135
|
+
linkedUserId?: string;
|
|
7136
|
+
/** Where the request came from; omitted for legacy email-completion claims. */
|
|
7137
|
+
source?: "email_completion" | "invite_link";
|
|
7138
|
+
inviteLinkId?: string;
|
|
7139
|
+
/** Existing user the request is about, for invite links. */
|
|
7140
|
+
requestedUserId?: string;
|
|
7141
|
+
requestedPlatformRole?: PlatformRole;
|
|
7142
|
+
requestedTenantId?: string;
|
|
7143
|
+
requestedTenantRole?: UserTenantRole;
|
|
7144
|
+
}
|
|
7145
|
+
interface CreateOidcIdentityClaimInput {
|
|
7146
|
+
id: string;
|
|
7147
|
+
providerId: string;
|
|
7148
|
+
issuer: string;
|
|
7149
|
+
subject: string;
|
|
7150
|
+
email: string;
|
|
7151
|
+
name?: string;
|
|
7152
|
+
picture?: string;
|
|
7153
|
+
expiresAt: Date;
|
|
7154
|
+
source?: "email_completion" | "invite_link";
|
|
7155
|
+
inviteLinkId?: string;
|
|
7156
|
+
requestedUserId?: string;
|
|
7157
|
+
requestedPlatformRole?: PlatformRole;
|
|
7158
|
+
requestedTenantId?: string;
|
|
7159
|
+
requestedTenantRole?: UserTenantRole;
|
|
7160
|
+
}
|
|
7161
|
+
interface UpdateOidcIdentityClaimInput {
|
|
7162
|
+
email?: string;
|
|
7163
|
+
name?: string;
|
|
7164
|
+
picture?: string;
|
|
7165
|
+
}
|
|
7166
|
+
interface OidcIdentityClaimApproval {
|
|
7167
|
+
reviewedBy: string;
|
|
7168
|
+
linkedUserId: string;
|
|
7169
|
+
}
|
|
7170
|
+
interface OidcIdentityClaimStore {
|
|
7171
|
+
/** Lists claims in a stable order, optionally filtered by status. */
|
|
7172
|
+
list(status?: OidcIdentityClaimStatus): Promise<OidcIdentityClaim[]>;
|
|
7173
|
+
get(id: string): Promise<OidcIdentityClaim | null>;
|
|
7174
|
+
/** Returns the live pending claim for a subject, or null. */
|
|
7175
|
+
getPendingBySubject(providerId: string, issuer: string, subject: string, now: Date): Promise<OidcIdentityClaim | null>;
|
|
7176
|
+
/**
|
|
7177
|
+
* Creates a pending claim.
|
|
7178
|
+
*
|
|
7179
|
+
* Expired pending claims for the same subject are marked `expired` rather
|
|
7180
|
+
* than blocking a retry. A live pending claim raises
|
|
7181
|
+
* {@link OidcIdentityClaimConflictError}.
|
|
7182
|
+
*/
|
|
7183
|
+
create(input: CreateOidcIdentityClaimInput): Promise<OidcIdentityClaim>;
|
|
7184
|
+
/** Updates the requested profile of a live pending claim. */
|
|
7185
|
+
updatePending(id: string, updates: UpdateOidcIdentityClaimInput, now: Date): Promise<OidcIdentityClaim | null>;
|
|
7186
|
+
/** Approves a live pending claim with CAS semantics. */
|
|
7187
|
+
approve(id: string, approval: OidcIdentityClaimApproval, now: Date): Promise<OidcIdentityClaim | null>;
|
|
7188
|
+
/** Rejects a live pending claim with CAS semantics. */
|
|
7189
|
+
reject(id: string, reviewedBy: string, now: Date): Promise<OidcIdentityClaim | null>;
|
|
7190
|
+
delete(id: string): Promise<boolean>;
|
|
7191
|
+
}
|
|
7192
|
+
declare class OidcIdentityClaimConflictError extends Error {
|
|
7193
|
+
readonly providerId: string;
|
|
7194
|
+
readonly issuer: string;
|
|
7195
|
+
readonly subject: string;
|
|
7196
|
+
constructor(providerId: string, issuer: string, subject: string);
|
|
7197
|
+
}
|
|
7198
|
+
declare function normalizeOidcIdentityEmail(email: string): string;
|
|
7199
|
+
|
|
7200
|
+
type InviteLinkScope = "platform" | "tenant";
|
|
7201
|
+
/**
|
|
7202
|
+
* A bearer invitation link. The token is stored encrypted at rest and also
|
|
7203
|
+
* hashed for lookup; the plaintext token is only returned to platform admins
|
|
7204
|
+
* who are allowed to manage the link.
|
|
7205
|
+
*/
|
|
7206
|
+
interface InviteLink {
|
|
7207
|
+
id: string;
|
|
7208
|
+
scope: InviteLinkScope;
|
|
7209
|
+
token: string;
|
|
7210
|
+
tokenHash: string;
|
|
7211
|
+
email?: string;
|
|
7212
|
+
platformRole?: PlatformRole;
|
|
7213
|
+
tenantId?: string;
|
|
7214
|
+
tenantRole?: UserTenantRole;
|
|
7215
|
+
createdBy?: string;
|
|
7216
|
+
createdAt: Date;
|
|
7217
|
+
updatedAt: Date;
|
|
7218
|
+
expiresAt: Date;
|
|
7219
|
+
maxUses: number;
|
|
7220
|
+
usedCount: number;
|
|
7221
|
+
revokedAt?: Date;
|
|
7222
|
+
}
|
|
7223
|
+
interface CreateInviteLinkInput {
|
|
7224
|
+
id: string;
|
|
7225
|
+
scope: InviteLinkScope;
|
|
7226
|
+
token: string;
|
|
7227
|
+
tokenHash: string;
|
|
7228
|
+
email?: string;
|
|
7229
|
+
platformRole?: PlatformRole;
|
|
7230
|
+
tenantId?: string;
|
|
7231
|
+
tenantRole?: UserTenantRole;
|
|
7232
|
+
createdBy?: string;
|
|
7233
|
+
expiresAt: Date;
|
|
7234
|
+
maxUses: number;
|
|
7235
|
+
}
|
|
7236
|
+
interface InviteLinkStore {
|
|
7237
|
+
list(): Promise<InviteLink[]>;
|
|
7238
|
+
get(id: string): Promise<InviteLink | null>;
|
|
7239
|
+
getByTokenHash(tokenHash: string): Promise<InviteLink | null>;
|
|
7240
|
+
create(input: CreateInviteLinkInput): Promise<InviteLink>;
|
|
7241
|
+
/**
|
|
7242
|
+
* Atomically consumes one use of a live link.
|
|
7243
|
+
*
|
|
7244
|
+
* Returns null when the link is missing, revoked, expired, or exhausted.
|
|
7245
|
+
*/
|
|
7246
|
+
consume(tokenHash: string, now: Date): Promise<InviteLink | null>;
|
|
7247
|
+
revoke(id: string, now: Date): Promise<InviteLink | null>;
|
|
7248
|
+
}
|
|
7249
|
+
declare function normalizeInviteLinkEmail(email: string): string;
|
|
7250
|
+
|
|
6787
7251
|
/** Lifecycle states of a published plugin's resident service. */
|
|
6788
7252
|
type PluginDeploymentStatus = "requested" | "provisioning" | "running" | "paused" | "stopping" | "stopped" | "failed";
|
|
6789
7253
|
/** Lifecycle strategy: lazily paused vs. permanently resident. */
|
|
@@ -8134,7 +8598,7 @@ interface SandboxPluginConnectionDef {
|
|
|
8134
8598
|
}
|
|
8135
8599
|
/**
|
|
8136
8600
|
* Authoritative declarative definition of a tenant plugin, stored at
|
|
8137
|
-
* `/
|
|
8601
|
+
* the configured agents root `/plugins/<type>/plugin.json`.
|
|
8138
8602
|
*/
|
|
8139
8603
|
interface SandboxPluginManifest {
|
|
8140
8604
|
schemaVersion: 1;
|
|
@@ -8552,4 +9016,272 @@ interface LangfuseObservabilityDashboardPayload {
|
|
|
8552
9016
|
tools: LangfuseToolBreakdownRow[];
|
|
8553
9017
|
}
|
|
8554
9018
|
|
|
8555
|
-
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentInterrupt, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ChannelReplyJob, type ChannelReplyJobStatus, type ChannelReplyJobStore, type CheckpointMaintenance, type CheckpointStorage, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateChannelReplyJobInput, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateFileShareRequest, type CreateMcpAppShareRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRecord, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FileMenuConfig, type FileShareRecord, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptAnswerKey, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpProtocolMode, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogConnection, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OpenGrantSelector, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunCancelSignal, type RunScope, type RunStep, STORE_IDENTITY_SEPARATOR, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareCardData, type ShareKind, type ShareRecord, type ShareRecordPatch, type ShareResult, type ShareTarget, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type StoreItem, type StoreProtocol, type StorePutInput, type StoreSearchInput, StoreValidationError, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadCheckpointStorage, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, a2aEventCursorSchema, affinityEchoHeaders, assertGenericProjectConfig, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeChannelReplyJobListLimit, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
|
9019
|
+
/** Source that produced an effective platform setting value. */
|
|
9020
|
+
type PlatformSettingSource = "default" | "env" | "platform";
|
|
9021
|
+
/** Branding fields applied to the console and public surfaces. */
|
|
9022
|
+
interface PlatformBranding {
|
|
9023
|
+
brandName?: string;
|
|
9024
|
+
logoUrl?: string;
|
|
9025
|
+
faviconUrl?: string;
|
|
9026
|
+
primaryColor?: string;
|
|
9027
|
+
backgroundColor?: string;
|
|
9028
|
+
loginTitle?: string;
|
|
9029
|
+
loginSubtitle?: string;
|
|
9030
|
+
}
|
|
9031
|
+
/** Host-scoped branding and public endpoint overrides. */
|
|
9032
|
+
interface BrandingDomain {
|
|
9033
|
+
host: string;
|
|
9034
|
+
status?: "active" | "pending";
|
|
9035
|
+
publicGatewayUrl?: string;
|
|
9036
|
+
publicConsoleUrl?: string;
|
|
9037
|
+
branding?: PlatformBranding;
|
|
9038
|
+
}
|
|
9039
|
+
/** Platform default branding plus host-specific overrides. */
|
|
9040
|
+
interface PlatformBrandingSettings {
|
|
9041
|
+
default?: PlatformBranding;
|
|
9042
|
+
domains?: BrandingDomain[];
|
|
9043
|
+
}
|
|
9044
|
+
/** Branding resolved for a request host. */
|
|
9045
|
+
interface ResolvedPlatformBranding {
|
|
9046
|
+
branding: PlatformBranding;
|
|
9047
|
+
source: "domain" | "default";
|
|
9048
|
+
host?: string;
|
|
9049
|
+
publicGatewayUrl?: string;
|
|
9050
|
+
publicConsoleUrl?: string;
|
|
9051
|
+
}
|
|
9052
|
+
/** Platform override for one gateway rate-limit policy. */
|
|
9053
|
+
interface PlatformRateLimitPolicyOverride {
|
|
9054
|
+
/** New fixed-window request limit. Omitted keeps the deployment limit. */
|
|
9055
|
+
limit?: number;
|
|
9056
|
+
/** Set false to disable this policy. Omitted keeps the deployment state. */
|
|
9057
|
+
enabled?: boolean;
|
|
9058
|
+
}
|
|
9059
|
+
/** Persisted, partial platform settings document managed by platform admins. */
|
|
9060
|
+
interface PlatformSettingsDocument {
|
|
9061
|
+
auth?: {
|
|
9062
|
+
emailCompletionEnabled?: boolean;
|
|
9063
|
+
};
|
|
9064
|
+
invite?: {
|
|
9065
|
+
defaultExpiresInHours?: number;
|
|
9066
|
+
defaultMaxUses?: number;
|
|
9067
|
+
};
|
|
9068
|
+
rateLimits?: {
|
|
9069
|
+
/** Per-policy platform overrides keyed by policy name. */
|
|
9070
|
+
policies?: Record<string, PlatformRateLimitPolicyOverride>;
|
|
9071
|
+
/** PATCH-only command: remove platform overrides for these policies. */
|
|
9072
|
+
resetPolicies?: string[];
|
|
9073
|
+
maxActiveRunTasksPerTenant?: number | null;
|
|
9074
|
+
};
|
|
9075
|
+
branding?: PlatformBrandingSettings;
|
|
9076
|
+
}
|
|
9077
|
+
/** Stored platform settings record with version and audit metadata. */
|
|
9078
|
+
interface PlatformSettingsRecord extends PlatformSettingsDocument {
|
|
9079
|
+
version: number;
|
|
9080
|
+
updatedBy?: string;
|
|
9081
|
+
updatedAt: Date;
|
|
9082
|
+
}
|
|
9083
|
+
/** Fully-resolved platform settings (no optional fields). */
|
|
9084
|
+
interface EffectivePlatformSettings {
|
|
9085
|
+
auth: {
|
|
9086
|
+
emailCompletionEnabled: boolean;
|
|
9087
|
+
};
|
|
9088
|
+
invite: {
|
|
9089
|
+
defaultExpiresInHours: number;
|
|
9090
|
+
defaultMaxUses: number;
|
|
9091
|
+
};
|
|
9092
|
+
rateLimits: {
|
|
9093
|
+
openApiPerMinute: number;
|
|
9094
|
+
openAgentPerMinute: number;
|
|
9095
|
+
a2aJsonRpcPerMinute: number;
|
|
9096
|
+
a2aJsonRpcIpPerMinute: number;
|
|
9097
|
+
maxActiveRunTasksPerTenant: number | null;
|
|
9098
|
+
};
|
|
9099
|
+
}
|
|
9100
|
+
/** Read-only snapshot of effective settings, provenance, and fallbacks. */
|
|
9101
|
+
interface PlatformSettingsSnapshot {
|
|
9102
|
+
version: number;
|
|
9103
|
+
effective: EffectivePlatformSettings;
|
|
9104
|
+
sources: Record<string, PlatformSettingSource>;
|
|
9105
|
+
fallbacks: EffectivePlatformSettings;
|
|
9106
|
+
updatedBy?: string;
|
|
9107
|
+
updatedAt?: Date;
|
|
9108
|
+
/** Time this snapshot was last loaded or applied from the store. */
|
|
9109
|
+
refreshedAt?: Date;
|
|
9110
|
+
}
|
|
9111
|
+
/** Read-only accessor for effective platform settings. */
|
|
9112
|
+
interface PlatformSettingsProvider {
|
|
9113
|
+
getSnapshot(): PlatformSettingsSnapshot;
|
|
9114
|
+
getEffective(): EffectivePlatformSettings;
|
|
9115
|
+
getInviteDefaults(): EffectivePlatformSettings["invite"];
|
|
9116
|
+
getRateLimits(): EffectivePlatformSettings["rateLimits"];
|
|
9117
|
+
/** Platform-only policy overrides; absent for consumers that do not need them. */
|
|
9118
|
+
getRateLimitPolicyOverrides?(): Record<string, PlatformRateLimitPolicyOverride>;
|
|
9119
|
+
}
|
|
9120
|
+
/** Persistence operations for platform settings with version CAS. */
|
|
9121
|
+
interface PlatformSettingsStore {
|
|
9122
|
+
get(): Promise<PlatformSettingsRecord | null>;
|
|
9123
|
+
save(document: PlatformSettingsDocument, expectedVersion: number, updatedBy?: string): Promise<PlatformSettingsRecord>;
|
|
9124
|
+
}
|
|
9125
|
+
/** Thrown when a save is attempted against a stale settings version. */
|
|
9126
|
+
declare class PlatformSettingsVersionConflictError extends Error {
|
|
9127
|
+
readonly expectedVersion: number;
|
|
9128
|
+
readonly actualVersion?: number | undefined;
|
|
9129
|
+
readonly code = "PLATFORM_SETTINGS_VERSION_CONFLICT";
|
|
9130
|
+
constructor(expectedVersion: number, actualVersion?: number | undefined);
|
|
9131
|
+
}
|
|
9132
|
+
/** Built-in fallback values used when neither platform nor env set a value. */
|
|
9133
|
+
declare const PLATFORM_SETTINGS_DEFAULTS: {
|
|
9134
|
+
readonly auth: {
|
|
9135
|
+
readonly emailCompletionEnabled: false;
|
|
9136
|
+
};
|
|
9137
|
+
readonly invite: {
|
|
9138
|
+
readonly defaultExpiresInHours: 168;
|
|
9139
|
+
readonly defaultMaxUses: 1;
|
|
9140
|
+
};
|
|
9141
|
+
readonly rateLimits: {
|
|
9142
|
+
readonly openApiPerMinute: 60000;
|
|
9143
|
+
readonly openAgentPerMinute: 2000;
|
|
9144
|
+
readonly a2aJsonRpcPerMinute: 600;
|
|
9145
|
+
readonly a2aJsonRpcIpPerMinute: 300;
|
|
9146
|
+
readonly maxActiveRunTasksPerTenant: null;
|
|
9147
|
+
};
|
|
9148
|
+
};
|
|
9149
|
+
/** Branding used when neither the platform default nor a domain overrides it. */
|
|
9150
|
+
declare const DEFAULT_PLATFORM_BRANDING: PlatformBranding;
|
|
9151
|
+
/**
|
|
9152
|
+
* Canonicalizes a request or configured host for matching.
|
|
9153
|
+
*
|
|
9154
|
+
* Lowercases the value, strips an optional port, unwraps bracketed IPv6
|
|
9155
|
+
* literals, and removes trailing dots.
|
|
9156
|
+
*/
|
|
9157
|
+
declare function normalizeBrandingHost(raw: string): string;
|
|
9158
|
+
|
|
9159
|
+
/** Actor on whose behalf a platform-level audit record was produced. */
|
|
9160
|
+
type PlatformAuditInitiator = {
|
|
9161
|
+
type: "human";
|
|
9162
|
+
userId: string;
|
|
9163
|
+
role: "owner" | "admin" | "auditor";
|
|
9164
|
+
} | {
|
|
9165
|
+
type: "bootstrap";
|
|
9166
|
+
} | {
|
|
9167
|
+
type: "system";
|
|
9168
|
+
component: string;
|
|
9169
|
+
};
|
|
9170
|
+
/** Execution surface that performed the audited platform operation. */
|
|
9171
|
+
type PlatformAuditExecutor = {
|
|
9172
|
+
type: "admin_center";
|
|
9173
|
+
route: string;
|
|
9174
|
+
} | {
|
|
9175
|
+
type: "ops_agent";
|
|
9176
|
+
agentId: "platform-ops";
|
|
9177
|
+
threadId: string;
|
|
9178
|
+
runId: string;
|
|
9179
|
+
toolName: string;
|
|
9180
|
+
} | {
|
|
9181
|
+
type: "bootstrap";
|
|
9182
|
+
} | {
|
|
9183
|
+
type: "system";
|
|
9184
|
+
component: string;
|
|
9185
|
+
};
|
|
9186
|
+
/** Entry point that originated a platform-level audit record. */
|
|
9187
|
+
type PlatformAuditSource = "admin_center" | "ops_agent" | "bootstrap" | "system";
|
|
9188
|
+
/** Kind of platform operation captured by an audit record. */
|
|
9189
|
+
type PlatformAuditAction = "write" | "playbook";
|
|
9190
|
+
/** Terminal outcome of the audited operation. */
|
|
9191
|
+
type PlatformAuditStatus = "ok" | "error" | "cancelled";
|
|
9192
|
+
/** Input accepted when appending a platform audit record. */
|
|
9193
|
+
interface PlatformAuditAppendInput {
|
|
9194
|
+
initiator: PlatformAuditInitiator;
|
|
9195
|
+
source: PlatformAuditSource;
|
|
9196
|
+
executor: PlatformAuditExecutor;
|
|
9197
|
+
tenantId?: string;
|
|
9198
|
+
action: PlatformAuditAction;
|
|
9199
|
+
status: PlatformAuditStatus;
|
|
9200
|
+
summary: Record<string, unknown>;
|
|
9201
|
+
before?: Record<string, unknown>;
|
|
9202
|
+
after?: Record<string, unknown>;
|
|
9203
|
+
errorCode?: string;
|
|
9204
|
+
durationMs: number;
|
|
9205
|
+
}
|
|
9206
|
+
/** Persisted platform audit record. */
|
|
9207
|
+
interface PlatformAuditRecord extends PlatformAuditAppendInput {
|
|
9208
|
+
id: string;
|
|
9209
|
+
createdAt: Date;
|
|
9210
|
+
}
|
|
9211
|
+
/**
|
|
9212
|
+
* Filter and pagination options for querying platform audit records.
|
|
9213
|
+
*
|
|
9214
|
+
* Results are ordered newest-first by `createdAt` descending, then by `id`
|
|
9215
|
+
* descending as a total-order tie-break. `from` is inclusive and `to` is
|
|
9216
|
+
* exclusive on `createdAt`. `limit` defaults to 100; negative `offset` and
|
|
9217
|
+
* `limit` values are clamped to 0. `initiatorUserId` matches human initiators
|
|
9218
|
+
* only.
|
|
9219
|
+
*/
|
|
9220
|
+
interface PlatformAuditQuery {
|
|
9221
|
+
initiatorUserId?: string;
|
|
9222
|
+
source?: PlatformAuditSource;
|
|
9223
|
+
tenantId?: string;
|
|
9224
|
+
action?: PlatformAuditAction;
|
|
9225
|
+
status?: PlatformAuditStatus;
|
|
9226
|
+
from?: string;
|
|
9227
|
+
to?: string;
|
|
9228
|
+
limit?: number;
|
|
9229
|
+
offset?: number;
|
|
9230
|
+
}
|
|
9231
|
+
/** Persistence operations for platform audit records. */
|
|
9232
|
+
interface PlatformAuditStore {
|
|
9233
|
+
append(record: PlatformAuditAppendInput): Promise<PlatformAuditRecord>;
|
|
9234
|
+
get(id: string): Promise<PlatformAuditRecord | null>;
|
|
9235
|
+
query(params: PlatformAuditQuery): Promise<PlatformAuditRecord[]>;
|
|
9236
|
+
}
|
|
9237
|
+
|
|
9238
|
+
/**
|
|
9239
|
+
* PlatformOpsProtocol
|
|
9240
|
+
*
|
|
9241
|
+
* Shared identity constants for the platform-scoped operations surface.
|
|
9242
|
+
*
|
|
9243
|
+
* The Ops Agent runs on a hidden system tenant so it can reuse the normal
|
|
9244
|
+
* agent runtime (threads, runs, SSE, leases) without appearing in any tenant
|
|
9245
|
+
* or agent list. These identifiers are deliberately reserved and must not be
|
|
9246
|
+
* user-selectable.
|
|
9247
|
+
*/
|
|
9248
|
+
/**
|
|
9249
|
+
* Reserved tenant id that owns platform-scoped configuration and agent
|
|
9250
|
+
* execution (platform model catalog, Ops Agent threads, …).
|
|
9251
|
+
*/
|
|
9252
|
+
declare const PLATFORM_TENANT_ID = "__platform__";
|
|
9253
|
+
/**
|
|
9254
|
+
* Fixed key of the platform operations agent. It is registered explicitly at
|
|
9255
|
+
* startup rather than created through assistant management routes.
|
|
9256
|
+
*/
|
|
9257
|
+
declare const PLATFORM_OPS_AGENT_ID = "platform-ops";
|
|
9258
|
+
/**
|
|
9259
|
+
* Stable error code returned when a normal tenant route tries to mutate the
|
|
9260
|
+
* hidden platform tenant.
|
|
9261
|
+
*/
|
|
9262
|
+
declare const PLATFORM_TENANT_PROTECTED_ERROR = "PLATFORM_TENANT_PROTECTED";
|
|
9263
|
+
/**
|
|
9264
|
+
* Whether a tenant id belongs to the hidden platform tenant.
|
|
9265
|
+
*/
|
|
9266
|
+
declare function isPlatformTenantId(tenantId: string): boolean;
|
|
9267
|
+
/**
|
|
9268
|
+
* Stable error raised when a tenant-plane operation tries to address the
|
|
9269
|
+
* hidden platform tenant.
|
|
9270
|
+
*/
|
|
9271
|
+
declare class PlatformTenantProtectedError extends Error {
|
|
9272
|
+
readonly code = "PLATFORM_TENANT_PROTECTED";
|
|
9273
|
+
constructor(message?: string);
|
|
9274
|
+
}
|
|
9275
|
+
/**
|
|
9276
|
+
* Rejects any attempt to create or mutate a link into the hidden platform
|
|
9277
|
+
* tenant.
|
|
9278
|
+
*/
|
|
9279
|
+
declare function assertNotPlatformTenant(tenantId: string): void;
|
|
9280
|
+
/** Fixed workspace used by Platform Ops threads inside the hidden tenant. */
|
|
9281
|
+
declare const PLATFORM_OPS_WORKSPACE_ID = "platform-ops";
|
|
9282
|
+
/** Fixed project used by Platform Ops threads inside the hidden tenant. */
|
|
9283
|
+
declare const PLATFORM_OPS_PROJECT_ID = "platform-ops";
|
|
9284
|
+
/** High-risk Ops playbook discriminator executed by the playbook executor. */
|
|
9285
|
+
type PlatformOpsPlaybookKind = "transfer_owner" | "offboard_member" | "delete_tenant" | "delete_oidc_provider" | "rotate_oidc_provider" | "reset_settings";
|
|
9286
|
+
|
|
9287
|
+
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentInterrupt, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrandingDomain, type BrowserMiddlewareConfig, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ChannelReplyJob, type ChannelReplyJobStatus, type ChannelReplyJobStore, type CheckpointMaintenance, type CheckpointStorage, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateChannelReplyJobInput, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateFileShareRequest, type CreateInviteLinkInput, type CreateMcpAppShareRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateOidcIdentityClaimInput, type CreateOidcProviderConfigInput, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRecord, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, DEFAULT_PLATFORM_BRANDING, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EffectivePlatformSettings, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, ExternalIdentityConflictError, ExternalIdentityPersistError, type FileMenuConfig, type FileShareRecord, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptAnswerKey, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type InviteLink, type InviteLinkScope, type InviteLinkStore, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, type LoginSurface, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConfigStoreWithPersonal, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpProtocolMode, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OidcIdentityClaim, type OidcIdentityClaimApproval, OidcIdentityClaimConflictError, type OidcIdentityClaimStatus, type OidcIdentityClaimStore, type OidcProviderConfig, OidcProviderConfigConflictError, type OidcProviderConfigStore, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogConnection, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OpenGrantSelector, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PLATFORM_MODEL_TENANT_ID, PLATFORM_OPS_AGENT_ID, PLATFORM_OPS_PROJECT_ID, PLATFORM_OPS_WORKSPACE_ID, PLATFORM_SETTINGS_DEFAULTS, PLATFORM_TENANT_ID, PLATFORM_TENANT_PROTECTED_ERROR, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PersonalMcpServerConfigEntry, type PersonalMcpServerConfigStore, type PinoFileOptions, type PlatformAuditAction, type PlatformAuditAppendInput, type PlatformAuditExecutor, type PlatformAuditInitiator, type PlatformAuditQuery, type PlatformAuditRecord, type PlatformAuditSource, type PlatformAuditStatus, type PlatformAuditStore, type PlatformBranding, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformOpsPlaybookKind, type PlatformRateLimitPolicyOverride, type PlatformRole, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, PlatformTenantProtectedError, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type Principal, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResolvedPlatformBranding, type ResourceAddress, type ResourceResolver, type Result, type RunCancelSignal, type RunScope, type RunStep, STORE_IDENTITY_SEPARATOR, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareCardData, type ShareKind, type ShareRecord, type ShareRecordPatch, type ShareResult, type ShareTarget, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type StoreItem, type StoreProtocol, type StorePutInput, type StoreSearchInput, StoreValidationError, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadCheckpointStorage, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateOidcIdentityClaimInput, type UpdateOidcProviderConfigInput, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserExternalIdentity, type UserExternalIdentityStore, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, a2aEventCursorSchema, affinityEchoHeaders, assertGenericProjectConfig, assertNotPlatformTenant, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isPersonalMcpServerConfigStore, isPlatformTenantId, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|