@axiom-lattice/client-sdk 8.0.2 → 8.2.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
2
- import { McpUiResourcePayload, CapabilityBundle, CapabilityPreview, AgentWebApp, AgentInterrupt, Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, OpenGrant, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ModelProviderPublicEntry, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderProbeRequest, ModelProviderProbeResult, ModelSelection, ModelDiscoveryResult, TenantModelCatalog, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, ThreadCheckpointStorage, LocalA2AProviderState, OpenCatalog, McpUiRef, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CreateAgentWebAppInput, UpdateAgentWebAppInput, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecordPatch, ShareRecord, ProjectRoom, ProjectRoomPublicMessage, ProjectMembership, ProjectBotMembership, ProjectRoomPublicMembership, ProjectRoomPublicBotMembership, ProjectRoomMention, ProjectHumanRole, ProjectBotRole, Project as Project$1, ProjectRoomEventScope, ToolCallUi, McpAppShareBootstrap } from '@axiom-lattice/protocols';
3
- export { AgentInterrupt, AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppQuickPrompt, AgentWebAppScope, AgentWebAppStatus, CapabilityBundle, CapabilityPreview, CreateAgentWebAppInput, CreateCapabilityBundleInput, LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig, ThreadCheckpointStorage, UpdateAgentWebAppInput, UpdateCapabilityBundleInput } from '@axiom-lattice/protocols';
2
+ import { McpUiResourcePayload, CapabilityBundle, CapabilityPreview, AgentWebApp, AgentInterrupt, Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, OpenGrant, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ModelProviderPublicEntry, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderProbeRequest, ModelProviderProbeResult, ModelSelection, ModelDiscoveryResult, TenantModelCatalog, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, ThreadCheckpointStorage, LocalA2AProviderState, OpenCatalog, McpUiRef, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CreateAgentWebAppInput, UpdateAgentWebAppInput, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecordPatch, ShareRecord, ProjectRoom, ProjectRoomPublicMessage, ProjectMembership, ProjectBotMembership, ProjectRoomPublicMembership, ProjectRoomPublicBotMembership, ProjectRoomMention, ProjectHumanRole, ProjectBotRole, Project as Project$1, ProjectRoomEventScope, EffectivePlatformSettings, PlatformSettingSource, PlatformSettingsDocument, PlatformBrandingSettings, TenantStatus, UserStatus, PlatformRole, UserTenantRole, OidcIdentityClaimStatus, ResolvedPlatformBranding, ToolCallUi, McpAppShareBootstrap } from '@axiom-lattice/protocols';
3
+ export { AgentInterrupt, AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppQuickPrompt, AgentWebAppScope, AgentWebAppStatus, CapabilityBundle, CapabilityPreview, CreateAgentWebAppInput, CreateCapabilityBundleInput, LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig, OidcIdentityClaimStatus, PlatformRole, TenantStatus, ThreadCheckpointStorage, UpdateAgentWebAppInput, UpdateCapabilityBundleInput, UserTenantRole } from '@axiom-lattice/protocols';
4
4
 
5
5
  /** Resolved MCP App UI resource plus its ready-to-use CSP policy string. */
6
6
  interface McpUiResourceResponse extends McpUiResourcePayload {
@@ -879,8 +879,14 @@ interface GatewayInfo {
879
879
  };
880
880
  endpoints: {
881
881
  health: string;
882
+ /** Legacy public Prometheus endpoint; retained for monitoring. */
882
883
  metrics: string;
884
+ /** Legacy public identity endpoint; retained for monitoring. */
883
885
  info: string;
886
+ /** Platform-viewer-guarded equivalent of `info`. */
887
+ platformInfo?: string;
888
+ /** Platform-viewer-guarded JSON equivalent of `metrics`. */
889
+ platformMetrics?: string;
884
890
  mcp: string;
885
891
  store: string;
886
892
  threadEvents: string;
@@ -1498,6 +1504,24 @@ declare abstract class AbstractClient {
1498
1504
  connect: (id: string) => Promise<McpServerConfigEntry>;
1499
1505
  disconnect: (id: string) => Promise<McpServerConfigEntry>;
1500
1506
  };
1507
+ /**
1508
+ * Personal-assistant MCP namespace. Same shape as {@link mcpServers} but
1509
+ * scoped to the caller's own personal assistant; the server resolves the
1510
+ * assistant from the authenticated user, so no assistant id is accepted.
1511
+ *
1512
+ * Every single-entry method accepts either the business `key` or the
1513
+ * config `id`.
1514
+ */
1515
+ personalMcpServers: {
1516
+ list: () => Promise<McpServerConfigEntry[]>;
1517
+ get: (keyOrId: string) => Promise<McpServerConfigEntry>;
1518
+ create: (data: CreateMcpServerConfigRequest) => Promise<McpServerConfigEntry>;
1519
+ update: (keyOrId: string, data: UpdateMcpServerConfigRequest) => Promise<McpServerConfigEntry>;
1520
+ delete: (keyOrId: string) => Promise<void>;
1521
+ test: (keyOrId: string) => Promise<TestMcpServerResponse>;
1522
+ connect: (keyOrId: string) => Promise<McpServerConfigEntry>;
1523
+ disconnect: (keyOrId: string) => Promise<McpServerConfigEntry>;
1524
+ };
1501
1525
  /**
1502
1526
  * Connections namespace for managing plugin connections
1503
1527
  */
@@ -2897,6 +2921,537 @@ declare class RoomEventsClient {
2897
2921
  }): WorkspaceRoomEventConnection;
2898
2922
  }
2899
2923
 
2924
+ /** Platform-level OIDC provider management client. */
2925
+ interface OidcProviderSummary {
2926
+ id: string;
2927
+ displayName: string;
2928
+ issuer: string;
2929
+ clientId: string;
2930
+ hasClientSecret: boolean;
2931
+ scopes: string;
2932
+ enabled: boolean;
2933
+ jitProvisioning: boolean;
2934
+ autoLinkEmail: boolean;
2935
+ defaultTenantId?: string;
2936
+ allowedPrivateHosts?: string[];
2937
+ redirectUri: string;
2938
+ source: "env" | "store";
2939
+ updatedAt: string | null;
2940
+ }
2941
+ interface CreateOidcProviderInput {
2942
+ id: string;
2943
+ displayName: string;
2944
+ issuer: string;
2945
+ clientId: string;
2946
+ clientSecret: string;
2947
+ scopes?: string;
2948
+ enabled?: boolean;
2949
+ jitProvisioning?: boolean;
2950
+ autoLinkEmail?: boolean;
2951
+ defaultTenantId?: string | null;
2952
+ allowedPrivateHosts?: string[];
2953
+ }
2954
+ interface UpdateOidcProviderInput {
2955
+ displayName?: string;
2956
+ issuer?: string;
2957
+ clientId?: string;
2958
+ clientSecret?: string;
2959
+ scopes?: string;
2960
+ enabled?: boolean;
2961
+ jitProvisioning?: boolean;
2962
+ autoLinkEmail?: boolean;
2963
+ defaultTenantId?: string | null;
2964
+ allowedPrivateHosts?: string[];
2965
+ }
2966
+ interface TestOidcProviderInput {
2967
+ issuer: string;
2968
+ clientId: string;
2969
+ clientSecret: string;
2970
+ allowedPrivateHosts?: string[];
2971
+ }
2972
+ interface TestStoredOidcProviderOverrides {
2973
+ issuer?: string;
2974
+ clientId?: string;
2975
+ clientSecret?: string;
2976
+ allowedPrivateHosts?: string[];
2977
+ }
2978
+ interface OidcProviderTestResult {
2979
+ issuer: string;
2980
+ authorizationEndpoint: string;
2981
+ tokenEndpoint: string;
2982
+ jwksUri: string;
2983
+ userinfoEndpoint?: string;
2984
+ scopesSupported?: string[];
2985
+ }
2986
+ /** Typed error thrown for non-success provider-management responses. */
2987
+ declare class OidcProviderClientError extends Error {
2988
+ readonly status: number;
2989
+ readonly code: string;
2990
+ readonly retryable: boolean;
2991
+ readonly details?: unknown | undefined;
2992
+ constructor(message: string, status: number, code: string, retryable?: boolean, details?: unknown | undefined);
2993
+ }
2994
+ /** Client for `/api/oidc-providers` (platform admin only). */
2995
+ declare class OidcProvidersClient {
2996
+ private readonly baseURL;
2997
+ private readonly getHeaders;
2998
+ constructor(baseURL: string, getHeaders: () => Record<string, string>);
2999
+ list(): Promise<OidcProviderSummary[]>;
3000
+ create(input: CreateOidcProviderInput): Promise<OidcProviderSummary>;
3001
+ update(id: string, input: UpdateOidcProviderInput): Promise<OidcProviderSummary>;
3002
+ delete(id: string): Promise<void>;
3003
+ test(input: TestOidcProviderInput): Promise<OidcProviderTestResult>;
3004
+ testStored(id: string, overrides?: TestStoredOidcProviderOverrides): Promise<OidcProviderTestResult>;
3005
+ private request;
3006
+ }
3007
+
3008
+ /** Platform administration client (platform roles and tenant assignments). */
3009
+
3010
+ /** Effective platform settings snapshot with ISO-string timestamps. */
3011
+ interface PlatformSettingsSnapshot {
3012
+ version: number;
3013
+ effective: EffectivePlatformSettings;
3014
+ sources: Record<string, PlatformSettingSource>;
3015
+ fallbacks: EffectivePlatformSettings;
3016
+ updatedBy?: string;
3017
+ updatedAt?: string;
3018
+ refreshedAt?: string;
3019
+ }
3020
+ /** Body accepted by `PATCH /api/platform/settings`. */
3021
+ interface UpdatePlatformSettingsInput {
3022
+ expectedVersion: number;
3023
+ patch?: PlatformSettingsDocument;
3024
+ reset?: string[];
3025
+ }
3026
+ /** Sanitized platform branding settings with ISO-string timestamps. */
3027
+ interface BrandingSettingsView {
3028
+ version: number;
3029
+ branding: PlatformBrandingSettings;
3030
+ updatedBy?: string;
3031
+ updatedAt?: string;
3032
+ }
3033
+ /** Body accepted by `PATCH /api/platform/branding`. */
3034
+ interface UpdateBrandingSettingsInput {
3035
+ expectedVersion: number;
3036
+ branding: PlatformBrandingSettings;
3037
+ }
3038
+ /** Runtime identity embedded in the platform environment view. */
3039
+ interface PlatformEnvironmentRuntime {
3040
+ service: string;
3041
+ version: string;
3042
+ commit?: string;
3043
+ environment?: string;
3044
+ replicaId?: string;
3045
+ uptimeSeconds: number;
3046
+ startedAt: string;
3047
+ readiness: unknown;
3048
+ }
3049
+ /** Public endpoint URLs embedded in the platform environment view. */
3050
+ interface PlatformEnvironmentEndpoints {
3051
+ gatewayUrl?: string;
3052
+ consoleUrl?: string;
3053
+ oidcRedirectUri?: string;
3054
+ inviteBaseUrl?: string;
3055
+ }
3056
+ /** Effective settings embedded in the platform environment view. */
3057
+ interface PlatformEnvironmentSettings {
3058
+ version: number;
3059
+ refreshedAt: string;
3060
+ effective: EffectivePlatformSettings;
3061
+ sources: Record<string, PlatformSettingSource>;
3062
+ fallbacks: EffectivePlatformSettings;
3063
+ }
3064
+ /** Non-sensitive diagnostics embedded in the platform environment view. */
3065
+ interface PlatformEnvironmentDiagnostics {
3066
+ migrationVersion?: number;
3067
+ providerCount?: number;
3068
+ warnings: string[];
3069
+ }
3070
+ /** Safe runtime environment projection returned by the gateway. */
3071
+ interface PlatformEnvironmentView {
3072
+ runtime: PlatformEnvironmentRuntime;
3073
+ publicEndpoints: PlatformEnvironmentEndpoints;
3074
+ dependencies: Record<string, "configured" | "not_configured" | "connected">;
3075
+ settings: PlatformEnvironmentSettings;
3076
+ diagnostics: PlatformEnvironmentDiagnostics;
3077
+ }
3078
+ /** Tenant row as returned by `GET /api/tenants`. */
3079
+ interface PlatformTenant {
3080
+ id: string;
3081
+ name: string;
3082
+ description?: string | null;
3083
+ status: TenantStatus;
3084
+ metadata?: Record<string, unknown>;
3085
+ createdAt: string;
3086
+ updatedAt: string;
3087
+ }
3088
+ /** Public user row used by platform assignment pickers. */
3089
+ interface PlatformUserSummary {
3090
+ id: string;
3091
+ email: string;
3092
+ name: string;
3093
+ status: UserStatus;
3094
+ metadata?: Record<string, unknown>;
3095
+ createdAt?: string;
3096
+ updatedAt?: string;
3097
+ }
3098
+ interface CreatePlatformUserInput {
3099
+ email: string;
3100
+ name: string;
3101
+ status?: UserStatus;
3102
+ password?: string;
3103
+ }
3104
+ interface UpdatePlatformUserInput {
3105
+ name?: string;
3106
+ status?: UserStatus;
3107
+ }
3108
+ interface CreatePlatformTenantInput {
3109
+ name: string;
3110
+ description?: string;
3111
+ status?: TenantStatus;
3112
+ metadata?: Record<string, unknown>;
3113
+ }
3114
+ interface UpdatePlatformTenantInput {
3115
+ name?: string;
3116
+ description?: string;
3117
+ status?: TenantStatus;
3118
+ metadata?: Record<string, unknown>;
3119
+ }
3120
+ /** Platform member joined with the public fields of its user. */
3121
+ interface PlatformMemberSummary {
3122
+ id: string;
3123
+ email: string | null;
3124
+ name: string | null;
3125
+ status: UserStatus | null;
3126
+ role: PlatformRole;
3127
+ grantedAt: string;
3128
+ grantedBy?: string;
3129
+ }
3130
+ /** Tenant assignment joined with the public fields of its user. */
3131
+ interface PlatformTenantMember {
3132
+ userId: string;
3133
+ tenantId: string;
3134
+ role: UserTenantRole;
3135
+ joinedAt: string;
3136
+ email: string | null;
3137
+ name: string | null;
3138
+ status: UserStatus | null;
3139
+ }
3140
+ /** Pending platform invitation keyed by normalized email. */
3141
+ interface PlatformInvitationSummary {
3142
+ email: string;
3143
+ role: PlatformRole;
3144
+ invitedBy?: string;
3145
+ createdAt: string;
3146
+ expiresAt?: string;
3147
+ consumedAt?: string;
3148
+ }
3149
+ /** Existing local user matched to a pending SSO claim email. */
3150
+ interface OidcIdentityClaimExistingUser {
3151
+ id: string;
3152
+ email: string;
3153
+ name: string;
3154
+ status: UserStatus;
3155
+ platformRole?: PlatformRole;
3156
+ }
3157
+ /** Pending enterprise-SSO identity claim shown to platform admins. */
3158
+ interface OidcIdentityClaimSummary {
3159
+ id: string;
3160
+ providerId: string;
3161
+ issuer: string;
3162
+ email: string;
3163
+ name?: string;
3164
+ picture?: string;
3165
+ status: OidcIdentityClaimStatus;
3166
+ createdAt: string;
3167
+ updatedAt: string;
3168
+ expiresAt: string;
3169
+ reviewedBy?: string;
3170
+ reviewedAt?: string;
3171
+ linkedUserId?: string;
3172
+ source?: "email_completion" | "invite_link";
3173
+ inviteLinkId?: string;
3174
+ requestedUserId?: string;
3175
+ requestedPlatformRole?: PlatformRole;
3176
+ requestedTenantId?: string;
3177
+ requestedTenantRole?: UserTenantRole;
3178
+ expired: boolean;
3179
+ existingUser?: OidcIdentityClaimExistingUser;
3180
+ }
3181
+ interface ApproveOidcIdentityClaimInput {
3182
+ email?: string;
3183
+ userId?: string;
3184
+ tenantId?: string;
3185
+ role?: UserTenantRole;
3186
+ }
3187
+ /** Opaque link invitation for a platform role or tenant membership. */
3188
+ interface InviteLinkSummary {
3189
+ id: string;
3190
+ scope: "platform" | "tenant";
3191
+ email?: string;
3192
+ platformRole?: PlatformRole;
3193
+ tenantId?: string;
3194
+ tenantRole?: UserTenantRole;
3195
+ createdBy?: string;
3196
+ createdAt: string;
3197
+ updatedAt: string;
3198
+ expiresAt: string;
3199
+ maxUses: number;
3200
+ usedCount: number;
3201
+ revokedAt?: string;
3202
+ active: boolean;
3203
+ url: string;
3204
+ }
3205
+ interface CreateInviteLinkInput {
3206
+ scope: "platform" | "tenant";
3207
+ email?: string;
3208
+ platformRole?: PlatformRole;
3209
+ tenantId?: string;
3210
+ tenantRole?: UserTenantRole;
3211
+ expiresInHours?: number;
3212
+ maxUses?: number;
3213
+ }
3214
+ interface InviteLinkClaimResult {
3215
+ status: "joined" | "pending_approval";
3216
+ scope: "platform" | "tenant";
3217
+ tenantId?: string;
3218
+ tenantRole?: UserTenantRole;
3219
+ platformRole?: PlatformRole;
3220
+ }
3221
+ /** Result of a platform member grant: a member or a pending invitation. */
3222
+ interface GrantPlatformMemberResult {
3223
+ member?: PlatformMemberSummary;
3224
+ invitation?: PlatformInvitationSummary;
3225
+ }
3226
+ interface GrantPlatformMemberInput {
3227
+ userId?: string;
3228
+ email?: string;
3229
+ role: PlatformRole;
3230
+ }
3231
+ interface AddPlatformTenantMemberInput {
3232
+ userId: string;
3233
+ tenantId: string;
3234
+ role: UserTenantRole;
3235
+ }
3236
+ /** Persisted platform audit record with a hydrated `createdAt`. */
3237
+ interface PlatformAuditRecord {
3238
+ id: string;
3239
+ initiator: {
3240
+ type: "human";
3241
+ userId: string;
3242
+ role: "owner" | "admin" | "auditor";
3243
+ } | {
3244
+ type: "bootstrap";
3245
+ } | {
3246
+ type: "system";
3247
+ component: string;
3248
+ };
3249
+ source: "admin_center" | "ops_agent" | "bootstrap" | "system";
3250
+ executor: {
3251
+ type: "admin_center";
3252
+ route: string;
3253
+ } | {
3254
+ type: "ops_agent";
3255
+ agentId: "platform-ops";
3256
+ threadId: string;
3257
+ runId: string;
3258
+ toolName: string;
3259
+ } | {
3260
+ type: "bootstrap";
3261
+ } | {
3262
+ type: "system";
3263
+ component: string;
3264
+ };
3265
+ tenantId?: string;
3266
+ action: "write" | "playbook";
3267
+ status: "ok" | "error" | "cancelled";
3268
+ summary: Record<string, unknown>;
3269
+ before?: Record<string, unknown>;
3270
+ after?: Record<string, unknown>;
3271
+ errorCode?: string;
3272
+ durationMs: number;
3273
+ createdAt: Date;
3274
+ }
3275
+ /** Filter and pagination options accepted by `listAudit`. */
3276
+ interface PlatformAuditQuery {
3277
+ initiatorUserId?: string;
3278
+ source?: PlatformAuditRecord["source"];
3279
+ tenantId?: string;
3280
+ action?: PlatformAuditRecord["action"];
3281
+ status?: PlatformAuditRecord["status"];
3282
+ from?: string;
3283
+ to?: string;
3284
+ limit?: number;
3285
+ offset?: number;
3286
+ }
3287
+ /** One effective platform rate-limit policy for the Admin Center view. */
3288
+ interface PlatformRateLimitPolicyView {
3289
+ policy: string;
3290
+ group: "authentication" | "invite" | "platform-api" | "mcp-app" | "internal";
3291
+ defaultLimit: number;
3292
+ effectiveLimit: number;
3293
+ windowMs: number;
3294
+ dimensions: string[];
3295
+ dimensionLimits?: Record<string, number>;
3296
+ enabled: boolean;
3297
+ editable: boolean;
3298
+ platformOverride: {
3299
+ limit?: number;
3300
+ enabled?: boolean;
3301
+ } | null;
3302
+ source: "platform" | "deployment";
3303
+ }
3304
+ /** Rate-limit policy matrix plus the per-tenant run quota. */
3305
+ interface PlatformRateLimitsView {
3306
+ policies: PlatformRateLimitPolicyView[];
3307
+ maxActiveRunTasksPerTenant: number | null;
3308
+ }
3309
+ /** Platform Ops Agent runtime configuration. */
3310
+ interface PlatformOpsConfig {
3311
+ enabled: boolean;
3312
+ modelKey: string;
3313
+ modelConfigured: boolean;
3314
+ }
3315
+ /** Platform Ops Agent runtime configuration client. */
3316
+ interface PlatformOpsClient {
3317
+ getConfig(): Promise<PlatformOpsConfig>;
3318
+ }
3319
+ /**
3320
+ * Platform-owned model provider catalog.
3321
+ *
3322
+ * Mirrors the tenant `client.modelProviders` namespace, but every call is
3323
+ * scoped to the reserved platform catalog rather than a tenant. Reads are
3324
+ * available to any platform role; mutations require platform admin.
3325
+ */
3326
+ interface PlatformModelProvidersClient {
3327
+ list(): Promise<ModelProviderPublicEntry[]>;
3328
+ get(providerId: string): Promise<ModelProviderPublicEntry>;
3329
+ create(input: CreateModelProviderRequest): Promise<ModelProviderPublicEntry>;
3330
+ update(providerId: string, input: UpdateModelProviderRequest): Promise<ModelProviderPublicEntry>;
3331
+ delete(providerId: string): Promise<void>;
3332
+ probe(input: ModelProviderProbeRequest): Promise<ModelProviderProbeResult>;
3333
+ setModels(providerId: string, models: ModelSelection[]): Promise<ModelProviderPublicEntry>;
3334
+ discover(providerId: string): Promise<ModelDiscoveryResult>;
3335
+ setModelEnabled(providerId: string, modelId: string, enabled: boolean): Promise<ModelProviderPublicEntry>;
3336
+ }
3337
+ /** Typed error thrown for non-success platform-management responses. */
3338
+ declare class PlatformClientError extends Error {
3339
+ readonly status: number;
3340
+ readonly code: string;
3341
+ readonly retryable: boolean;
3342
+ readonly details?: unknown | undefined;
3343
+ constructor(message: string, status: number, code: string, retryable?: boolean, details?: unknown | undefined);
3344
+ }
3345
+ /** Client for `/api/platform/*`. */
3346
+ declare class PlatformClient {
3347
+ private readonly baseURL;
3348
+ private readonly getHeaders;
3349
+ /** Platform-owned model provider catalog (reserved `__platform__` scope). */
3350
+ readonly modelProviders: PlatformModelProvidersClient;
3351
+ /** Platform Ops Agent threads and streaming messages. */
3352
+ readonly ops: PlatformOpsClient;
3353
+ constructor(baseURL: string, getHeaders: () => Record<string, string>);
3354
+ /**
3355
+ * Reads the platform-owned model catalog (providers plus visible models).
3356
+ *
3357
+ * This is the platform-scoped counterpart of `client.tenantModels.list()`.
3358
+ */
3359
+ modelCatalog(): Promise<TenantModelCatalog>;
3360
+ rateLimits(): Promise<PlatformRateLimitsView>;
3361
+ me(): Promise<PlatformRole | null>;
3362
+ /**
3363
+ * Reads the platform-guarded gateway identity and capability surface.
3364
+ *
3365
+ * @returns The same `GatewayInfo` payload as the legacy public `/info`.
3366
+ */
3367
+ getInfo(): Promise<GatewayInfo>;
3368
+ /**
3369
+ * Reads the platform-guarded JSON runtime metrics for this replica.
3370
+ *
3371
+ * @returns The same `SystemMetrics` payload as legacy `/metrics?format=json`.
3372
+ */
3373
+ getSystemMetrics(): Promise<SystemMetrics>;
3374
+ /**
3375
+ * Reads the effective platform settings, provenance, and version.
3376
+ *
3377
+ * @returns The current snapshot with ISO-string `updatedAt`.
3378
+ */
3379
+ getSettings(): Promise<PlatformSettingsSnapshot>;
3380
+ /**
3381
+ * Applies a partial settings patch and/or resets existing overrides.
3382
+ *
3383
+ * @param input Version guard plus the patch and reset paths.
3384
+ * @returns The committed snapshot after the update.
3385
+ */
3386
+ updateSettings(input: UpdatePlatformSettingsInput): Promise<PlatformSettingsSnapshot>;
3387
+ /**
3388
+ * Reads the safe runtime environment projection.
3389
+ *
3390
+ * @returns Runtime identity, public endpoints, dependency presence, and
3391
+ * diagnostics. Secret values are never included.
3392
+ */
3393
+ getEnvironment(): Promise<PlatformEnvironmentView>;
3394
+ /**
3395
+ * Reads platform audit records, newest first.
3396
+ *
3397
+ * @param query Optional filters and pagination. Undefined values are omitted
3398
+ * from the request.
3399
+ * @returns Hydrated records with `createdAt` as a `Date`.
3400
+ */
3401
+ listAudit(query?: PlatformAuditQuery): Promise<PlatformAuditRecord[]>;
3402
+ /**
3403
+ * Reads a single platform audit record by id.
3404
+ *
3405
+ * @param auditId Audit record id.
3406
+ * @returns The hydrated record with `createdAt` as a `Date`.
3407
+ */
3408
+ getAudit(auditId: string): Promise<PlatformAuditRecord>;
3409
+ /**
3410
+ * Resolves the public branding for the current gateway host.
3411
+ *
3412
+ * The public `/api/branding` route does not require a session, but this
3413
+ * method reuses the normal request helper and headers.
3414
+ */
3415
+ getBranding(): Promise<ResolvedPlatformBranding>;
3416
+ /** Reads the platform default and host-scoped branding settings. */
3417
+ getBrandingSettings(): Promise<BrandingSettingsView>;
3418
+ /**
3419
+ * Replaces the full branding configuration with versioning.
3420
+ *
3421
+ * @param input Version guard plus the complete branding settings document.
3422
+ * @returns The committed branding settings after the update.
3423
+ */
3424
+ updateBrandingSettings(input: UpdateBrandingSettingsInput): Promise<BrandingSettingsView>;
3425
+ listTenants(): Promise<PlatformTenant[]>;
3426
+ createTenant(input: CreatePlatformTenantInput): Promise<PlatformTenant>;
3427
+ updateTenant(tenantId: string, input: UpdatePlatformTenantInput): Promise<PlatformTenant>;
3428
+ deleteTenant(tenantId: string): Promise<void>;
3429
+ listUsers(): Promise<PlatformUserSummary[]>;
3430
+ createUser(input: CreatePlatformUserInput): Promise<PlatformUserSummary>;
3431
+ updateUser(userId: string, input: UpdatePlatformUserInput): Promise<PlatformUserSummary>;
3432
+ deleteUser(userId: string): Promise<void>;
3433
+ listMembers(): Promise<PlatformMemberSummary[]>;
3434
+ grantMember(input: GrantPlatformMemberInput): Promise<GrantPlatformMemberResult>;
3435
+ listInvitations(): Promise<PlatformInvitationSummary[]>;
3436
+ revokeInvitation(email: string): Promise<void>;
3437
+ updateMember(userId: string, role: PlatformRole): Promise<PlatformMemberSummary>;
3438
+ revokeMember(userId: string): Promise<void>;
3439
+ listTenantMembers(tenantId: string): Promise<PlatformTenantMember[]>;
3440
+ addTenantMember(input: AddPlatformTenantMemberInput): Promise<PlatformTenantMember>;
3441
+ listInviteLinks(): Promise<InviteLinkSummary[]>;
3442
+ createInviteLink(input: CreateInviteLinkInput): Promise<InviteLinkSummary>;
3443
+ revokeInviteLink(id: string): Promise<InviteLinkSummary>;
3444
+ getInviteLink(token: string): Promise<InviteLinkSummary>;
3445
+ claimInviteLink(token: string): Promise<InviteLinkClaimResult>;
3446
+ updateTenantMemberRole(tenantId: string, userId: string, role: UserTenantRole): Promise<PlatformTenantMember>;
3447
+ removeTenantMember(tenantId: string, userId: string): Promise<void>;
3448
+ listOidcClaims(status?: OidcIdentityClaimStatus | "all"): Promise<OidcIdentityClaimSummary[]>;
3449
+ updateOidcClaimEmail(id: string, email: string): Promise<OidcIdentityClaimSummary>;
3450
+ approveOidcClaim(id: string, input?: ApproveOidcIdentityClaimInput): Promise<OidcIdentityClaimSummary>;
3451
+ rejectOidcClaim(id: string): Promise<OidcIdentityClaimSummary>;
3452
+ private request;
3453
+ }
3454
+
2900
3455
  /**
2901
3456
  * Web client class for interacting with the Axiom Lattice Agent Service API
2902
3457
  */
@@ -2910,6 +3465,8 @@ declare class Client extends AbstractClient {
2910
3465
  readonly workspaceRooms: WorkspaceRoomsClient;
2911
3466
  readonly workspaceMembers: WorkspaceMembersClient;
2912
3467
  readonly roomEvents: RoomEventsClient;
3468
+ readonly oidcProviders: OidcProvidersClient;
3469
+ readonly platform: PlatformClient;
2913
3470
  /**
2914
3471
  * Creates a new Client instance
2915
3472
  * @param config - Configuration options for the client
@@ -3360,4 +3917,4 @@ declare class McpAppShareRuntimeClient implements McpAppShareRuntimeClientApi {
3360
3917
  private parse;
3361
3918
  }
3362
3919
 
3363
- export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AddProjectBotMembershipInput, AddProjectMembershipInput, AgentCron, AgentGraphTree, AgentRunStatus, AgentState, AgentWebAppsListResponse, ApiError, ArchiveInput, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, CapabilityBundleListResponse, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CommandInputRespondArgs, CommandInputRespondResult, CommandRunStartArgs, CommandRunStartInput, CommandRunStartResult, CompleteTaskInput, CompleteTaskResponse, CopiedThread, CreateA2AKeyInput, CreateAssistantOptions, CreateCronInput, CreateProjectRequest, CreateStatelessCronInput, CreateThreadCronInput, CreateThreadOptions, CreateWorkspaceRequest, CronCountFilters, CronMultitaskStrategy, CronOnRunCompleted, CronSearchFilters, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportBundle, ExportConfigResult, ExportConfirmationRequired, ExportDownload, ExportEntityIds, ExportEntityPreview, ExportEntityPreviewMap, ExportImportClient, ExportableEntity, ExportableTypeInfo, FileItem, GatewayInfo, GetMessagesOptions, GetScheduledTasksOptions, ImportApplyResult, ImportConflict, ImportEntityResult, ImportInsertion, ImportPreviewError, ImportPreviewResult, ImportResolution, ImportResolutions, ImportSource, InvalidCapabilityBundleSummary, KeyExposure, ListAgentWebAppsParams, ListProjectRoomMessagesOptions, ListThreadsOptions, LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, McpAppShareRuntimeClientApi, McpAppShareRuntimeClientOptions, McpServerResponse, McpServersListResponse, McpUiResourceResponse, MetricsConfigResponse, MetricsConfigsListResponse, MutationExpectedUpdatedAt, NetworkError, NormalizedToolResult, OpenAuditLogRecord, PendingMessage, Project, ProjectCapabilitiesResponse, ProjectKind, ProjectRecord, ProjectRoomBotRecord, ProjectRoomClientError, ProjectRoomDispatchErrorCode, ProjectRoomDispatchResult, ProjectRoomInterruptAnswerInput, ProjectRoomMembershipRecord, ProjectRoomMessageRecord, ProjectRoomPublicBotRecord, ProjectRoomPublicMembershipRecord, ProjectRoomRecord, ProjectRoomSendResult, ProjectRoomsClient, PruneThreadInput, PruneThreadResult, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeProjectRoomInterruptInput, ResumeStreamOptions, RetryConfig, RoomEventScopeRecord, RoomEventsClient, RunCancelActiveResult, RunCancelOptions, RunCancelResult, RunCreateInput, RunCreateOptions, RunCreateResult, RunOptions, RunRecord, RuntimeAxiomClient, RuntimeAxiomIdentity, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, SendProjectRoomMessageInput, StorageType, StoreItem, StorePutInput, StoreSearchInput, StreamCallbacks, StreamEvent, SystemMetrics, SystemMetricsChunk, SystemMetricsWorker, TaskCommandInput, TaskCommandResponse, TaskLifecycleWarning, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, Thread, ThreadEvent, ThreadEventStreamError, ThreadEventStreamOptions, ThreadHistoryPage, ThreadListResponse, ThreadResponse, ThreadStatusInfo, ThreadSuperstepInput, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAgentCronInput, UpdateAssistantOptions, UpdateProjectBotMembershipInput, UpdateProjectMembershipInput, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, WorkspaceMemberRecord, WorkspaceMembersClient, WorkspaceRoomBusinessEvent, WorkspaceRoomControlEvent, WorkspaceRoomEntryRecord, WorkspaceRoomEventConnection, WorkspaceRoomEventFrame, WorkspaceRoomKnownBusinessEvent, WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
3920
+ export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AddPlatformTenantMemberInput, AddProjectBotMembershipInput, AddProjectMembershipInput, AgentCron, AgentGraphTree, AgentRunStatus, AgentState, AgentWebAppsListResponse, ApiError, ApproveOidcIdentityClaimInput, ArchiveInput, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, BrandingSettingsView, CapabilityBundleListResponse, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CommandInputRespondArgs, CommandInputRespondResult, CommandRunStartArgs, CommandRunStartInput, CommandRunStartResult, CompleteTaskInput, CompleteTaskResponse, CopiedThread, CreateA2AKeyInput, CreateAssistantOptions, CreateCronInput, CreateInviteLinkInput, CreateOidcProviderInput, CreatePlatformTenantInput, CreatePlatformUserInput, CreateProjectRequest, CreateStatelessCronInput, CreateThreadCronInput, CreateThreadOptions, CreateWorkspaceRequest, CronCountFilters, CronMultitaskStrategy, CronOnRunCompleted, CronSearchFilters, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportBundle, ExportConfigResult, ExportConfirmationRequired, ExportDownload, ExportEntityIds, ExportEntityPreview, ExportEntityPreviewMap, ExportImportClient, ExportableEntity, ExportableTypeInfo, FileItem, GatewayInfo, GetMessagesOptions, GetScheduledTasksOptions, GrantPlatformMemberInput, GrantPlatformMemberResult, ImportApplyResult, ImportConflict, ImportEntityResult, ImportInsertion, ImportPreviewError, ImportPreviewResult, ImportResolution, ImportResolutions, ImportSource, InvalidCapabilityBundleSummary, InviteLinkClaimResult, InviteLinkSummary, KeyExposure, ListAgentWebAppsParams, ListProjectRoomMessagesOptions, ListThreadsOptions, LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, McpAppShareRuntimeClientApi, McpAppShareRuntimeClientOptions, McpServerResponse, McpServersListResponse, McpUiResourceResponse, MetricsConfigResponse, MetricsConfigsListResponse, MutationExpectedUpdatedAt, NetworkError, NormalizedToolResult, OidcIdentityClaimExistingUser, OidcIdentityClaimSummary, OidcProviderClientError, OidcProviderSummary, OidcProviderTestResult, OidcProvidersClient, OpenAuditLogRecord, PendingMessage, PlatformAuditQuery, PlatformAuditRecord, PlatformClient, PlatformClientError, PlatformEnvironmentDiagnostics, PlatformEnvironmentEndpoints, PlatformEnvironmentRuntime, PlatformEnvironmentSettings, PlatformEnvironmentView, PlatformInvitationSummary, PlatformMemberSummary, PlatformModelProvidersClient, PlatformOpsClient, PlatformOpsConfig, PlatformRateLimitPolicyView, PlatformRateLimitsView, PlatformSettingsSnapshot, PlatformTenant, PlatformTenantMember, PlatformUserSummary, Project, ProjectCapabilitiesResponse, ProjectKind, ProjectRecord, ProjectRoomBotRecord, ProjectRoomClientError, ProjectRoomDispatchErrorCode, ProjectRoomDispatchResult, ProjectRoomInterruptAnswerInput, ProjectRoomMembershipRecord, ProjectRoomMessageRecord, ProjectRoomPublicBotRecord, ProjectRoomPublicMembershipRecord, ProjectRoomRecord, ProjectRoomSendResult, ProjectRoomsClient, PruneThreadInput, PruneThreadResult, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeProjectRoomInterruptInput, ResumeStreamOptions, RetryConfig, RoomEventScopeRecord, RoomEventsClient, RunCancelActiveResult, RunCancelOptions, RunCancelResult, RunCreateInput, RunCreateOptions, RunCreateResult, RunOptions, RunRecord, RuntimeAxiomClient, RuntimeAxiomIdentity, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, SendProjectRoomMessageInput, StorageType, StoreItem, StorePutInput, StoreSearchInput, StreamCallbacks, StreamEvent, SystemMetrics, SystemMetricsChunk, SystemMetricsWorker, TaskCommandInput, TaskCommandResponse, TaskLifecycleWarning, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, TestOidcProviderInput, TestStoredOidcProviderOverrides, Thread, ThreadEvent, ThreadEventStreamError, ThreadEventStreamOptions, ThreadHistoryPage, ThreadListResponse, ThreadResponse, ThreadStatusInfo, ThreadSuperstepInput, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAgentCronInput, UpdateAssistantOptions, UpdateBrandingSettingsInput, UpdateOidcProviderInput, UpdatePlatformSettingsInput, UpdatePlatformTenantInput, UpdatePlatformUserInput, UpdateProjectBotMembershipInput, UpdateProjectMembershipInput, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, WorkspaceMemberRecord, WorkspaceMembersClient, WorkspaceRoomBusinessEvent, WorkspaceRoomControlEvent, WorkspaceRoomEntryRecord, WorkspaceRoomEventConnection, WorkspaceRoomEventFrame, WorkspaceRoomKnownBusinessEvent, WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,cAAc,wBAAwB,CAAC;AAEvC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,cAAc,wBAAwB,CAAC;AAEvC,cAAc,4BAA4B,CAAC"}