@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.
@@ -0,0 +1,449 @@
1
+ /** Platform administration client (platform roles and tenant assignments). */
2
+ import type { CreateModelProviderRequest, EffectivePlatformSettings, ModelDiscoveryResult, ModelProviderProbeRequest, ModelProviderProbeResult, ModelProviderPublicEntry, ModelSelection, OidcIdentityClaimStatus, PlatformBrandingSettings, PlatformRole, PlatformSettingSource, PlatformSettingsDocument, ResolvedPlatformBranding, TenantModelCatalog, TenantStatus, UpdateModelProviderRequest, UserStatus, UserTenantRole } from "@axiom-lattice/protocols";
3
+ import type { GatewayInfo, SystemMetrics } from "./types";
4
+ export type { OidcIdentityClaimStatus, PlatformRole, TenantStatus, UserTenantRole, };
5
+ /** Effective platform settings snapshot with ISO-string timestamps. */
6
+ export interface PlatformSettingsSnapshot {
7
+ version: number;
8
+ effective: EffectivePlatformSettings;
9
+ sources: Record<string, PlatformSettingSource>;
10
+ fallbacks: EffectivePlatformSettings;
11
+ updatedBy?: string;
12
+ updatedAt?: string;
13
+ refreshedAt?: string;
14
+ }
15
+ /** Body accepted by `PATCH /api/platform/settings`. */
16
+ export interface UpdatePlatformSettingsInput {
17
+ expectedVersion: number;
18
+ patch?: PlatformSettingsDocument;
19
+ reset?: string[];
20
+ }
21
+ /** Sanitized platform branding settings with ISO-string timestamps. */
22
+ export interface BrandingSettingsView {
23
+ version: number;
24
+ branding: PlatformBrandingSettings;
25
+ updatedBy?: string;
26
+ updatedAt?: string;
27
+ }
28
+ /** Body accepted by `PATCH /api/platform/branding`. */
29
+ export interface UpdateBrandingSettingsInput {
30
+ expectedVersion: number;
31
+ branding: PlatformBrandingSettings;
32
+ }
33
+ /** Runtime identity embedded in the platform environment view. */
34
+ export interface PlatformEnvironmentRuntime {
35
+ service: string;
36
+ version: string;
37
+ commit?: string;
38
+ environment?: string;
39
+ replicaId?: string;
40
+ uptimeSeconds: number;
41
+ startedAt: string;
42
+ readiness: unknown;
43
+ }
44
+ /** Public endpoint URLs embedded in the platform environment view. */
45
+ export interface PlatformEnvironmentEndpoints {
46
+ gatewayUrl?: string;
47
+ consoleUrl?: string;
48
+ oidcRedirectUri?: string;
49
+ inviteBaseUrl?: string;
50
+ }
51
+ /** Effective settings embedded in the platform environment view. */
52
+ export interface PlatformEnvironmentSettings {
53
+ version: number;
54
+ refreshedAt: string;
55
+ effective: EffectivePlatformSettings;
56
+ sources: Record<string, PlatformSettingSource>;
57
+ fallbacks: EffectivePlatformSettings;
58
+ }
59
+ /** Non-sensitive diagnostics embedded in the platform environment view. */
60
+ export interface PlatformEnvironmentDiagnostics {
61
+ migrationVersion?: number;
62
+ providerCount?: number;
63
+ warnings: string[];
64
+ }
65
+ /** Safe runtime environment projection returned by the gateway. */
66
+ export interface PlatformEnvironmentView {
67
+ runtime: PlatformEnvironmentRuntime;
68
+ publicEndpoints: PlatformEnvironmentEndpoints;
69
+ dependencies: Record<string, "configured" | "not_configured" | "connected">;
70
+ settings: PlatformEnvironmentSettings;
71
+ diagnostics: PlatformEnvironmentDiagnostics;
72
+ }
73
+ /** Tenant row as returned by `GET /api/tenants`. */
74
+ export interface PlatformTenant {
75
+ id: string;
76
+ name: string;
77
+ description?: string | null;
78
+ status: TenantStatus;
79
+ metadata?: Record<string, unknown>;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ }
83
+ /** Public user row used by platform assignment pickers. */
84
+ export interface PlatformUserSummary {
85
+ id: string;
86
+ email: string;
87
+ name: string;
88
+ status: UserStatus;
89
+ metadata?: Record<string, unknown>;
90
+ createdAt?: string;
91
+ updatedAt?: string;
92
+ }
93
+ export interface CreatePlatformUserInput {
94
+ email: string;
95
+ name: string;
96
+ status?: UserStatus;
97
+ password?: string;
98
+ }
99
+ export interface UpdatePlatformUserInput {
100
+ name?: string;
101
+ status?: UserStatus;
102
+ }
103
+ export interface CreatePlatformTenantInput {
104
+ name: string;
105
+ description?: string;
106
+ status?: TenantStatus;
107
+ metadata?: Record<string, unknown>;
108
+ }
109
+ export interface UpdatePlatformTenantInput {
110
+ name?: string;
111
+ description?: string;
112
+ status?: TenantStatus;
113
+ metadata?: Record<string, unknown>;
114
+ }
115
+ /** Platform member joined with the public fields of its user. */
116
+ export interface PlatformMemberSummary {
117
+ id: string;
118
+ email: string | null;
119
+ name: string | null;
120
+ status: UserStatus | null;
121
+ role: PlatformRole;
122
+ grantedAt: string;
123
+ grantedBy?: string;
124
+ }
125
+ /** Tenant assignment joined with the public fields of its user. */
126
+ export interface PlatformTenantMember {
127
+ userId: string;
128
+ tenantId: string;
129
+ role: UserTenantRole;
130
+ joinedAt: string;
131
+ email: string | null;
132
+ name: string | null;
133
+ status: UserStatus | null;
134
+ }
135
+ /** Pending platform invitation keyed by normalized email. */
136
+ export interface PlatformInvitationSummary {
137
+ email: string;
138
+ role: PlatformRole;
139
+ invitedBy?: string;
140
+ createdAt: string;
141
+ expiresAt?: string;
142
+ consumedAt?: string;
143
+ }
144
+ /** Existing local user matched to a pending SSO claim email. */
145
+ export interface OidcIdentityClaimExistingUser {
146
+ id: string;
147
+ email: string;
148
+ name: string;
149
+ status: UserStatus;
150
+ platformRole?: PlatformRole;
151
+ }
152
+ /** Pending enterprise-SSO identity claim shown to platform admins. */
153
+ export interface OidcIdentityClaimSummary {
154
+ id: string;
155
+ providerId: string;
156
+ issuer: string;
157
+ email: string;
158
+ name?: string;
159
+ picture?: string;
160
+ status: OidcIdentityClaimStatus;
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ expiresAt: string;
164
+ reviewedBy?: string;
165
+ reviewedAt?: string;
166
+ linkedUserId?: string;
167
+ source?: "email_completion" | "invite_link";
168
+ inviteLinkId?: string;
169
+ requestedUserId?: string;
170
+ requestedPlatformRole?: PlatformRole;
171
+ requestedTenantId?: string;
172
+ requestedTenantRole?: UserTenantRole;
173
+ expired: boolean;
174
+ existingUser?: OidcIdentityClaimExistingUser;
175
+ }
176
+ export interface ApproveOidcIdentityClaimInput {
177
+ email?: string;
178
+ userId?: string;
179
+ tenantId?: string;
180
+ role?: UserTenantRole;
181
+ }
182
+ /** Opaque link invitation for a platform role or tenant membership. */
183
+ export interface InviteLinkSummary {
184
+ id: string;
185
+ scope: "platform" | "tenant";
186
+ email?: string;
187
+ platformRole?: PlatformRole;
188
+ tenantId?: string;
189
+ tenantRole?: UserTenantRole;
190
+ createdBy?: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
+ expiresAt: string;
194
+ maxUses: number;
195
+ usedCount: number;
196
+ revokedAt?: string;
197
+ active: boolean;
198
+ url: string;
199
+ }
200
+ export interface CreateInviteLinkInput {
201
+ scope: "platform" | "tenant";
202
+ email?: string;
203
+ platformRole?: PlatformRole;
204
+ tenantId?: string;
205
+ tenantRole?: UserTenantRole;
206
+ expiresInHours?: number;
207
+ maxUses?: number;
208
+ }
209
+ export interface InviteLinkClaimResult {
210
+ status: "joined" | "pending_approval";
211
+ scope: "platform" | "tenant";
212
+ tenantId?: string;
213
+ tenantRole?: UserTenantRole;
214
+ platformRole?: PlatformRole;
215
+ }
216
+ /** Result of a platform member grant: a member or a pending invitation. */
217
+ export interface GrantPlatformMemberResult {
218
+ member?: PlatformMemberSummary;
219
+ invitation?: PlatformInvitationSummary;
220
+ }
221
+ export interface GrantPlatformMemberInput {
222
+ userId?: string;
223
+ email?: string;
224
+ role: PlatformRole;
225
+ }
226
+ export interface AddPlatformTenantMemberInput {
227
+ userId: string;
228
+ tenantId: string;
229
+ role: UserTenantRole;
230
+ }
231
+ /** Persisted platform audit record with a hydrated `createdAt`. */
232
+ export interface PlatformAuditRecord {
233
+ id: string;
234
+ initiator: {
235
+ type: "human";
236
+ userId: string;
237
+ role: "owner" | "admin" | "auditor";
238
+ } | {
239
+ type: "bootstrap";
240
+ } | {
241
+ type: "system";
242
+ component: string;
243
+ };
244
+ source: "admin_center" | "ops_agent" | "bootstrap" | "system";
245
+ executor: {
246
+ type: "admin_center";
247
+ route: string;
248
+ } | {
249
+ type: "ops_agent";
250
+ agentId: "platform-ops";
251
+ threadId: string;
252
+ runId: string;
253
+ toolName: string;
254
+ } | {
255
+ type: "bootstrap";
256
+ } | {
257
+ type: "system";
258
+ component: string;
259
+ };
260
+ tenantId?: string;
261
+ action: "write" | "playbook";
262
+ status: "ok" | "error" | "cancelled";
263
+ summary: Record<string, unknown>;
264
+ before?: Record<string, unknown>;
265
+ after?: Record<string, unknown>;
266
+ errorCode?: string;
267
+ durationMs: number;
268
+ createdAt: Date;
269
+ }
270
+ /** Filter and pagination options accepted by `listAudit`. */
271
+ export interface PlatformAuditQuery {
272
+ initiatorUserId?: string;
273
+ source?: PlatformAuditRecord["source"];
274
+ tenantId?: string;
275
+ action?: PlatformAuditRecord["action"];
276
+ status?: PlatformAuditRecord["status"];
277
+ from?: string;
278
+ to?: string;
279
+ limit?: number;
280
+ offset?: number;
281
+ }
282
+ /** One effective platform rate-limit policy for the Admin Center view. */
283
+ export interface PlatformRateLimitPolicyView {
284
+ policy: string;
285
+ group: "authentication" | "invite" | "platform-api" | "mcp-app" | "internal";
286
+ defaultLimit: number;
287
+ effectiveLimit: number;
288
+ windowMs: number;
289
+ dimensions: string[];
290
+ dimensionLimits?: Record<string, number>;
291
+ enabled: boolean;
292
+ editable: boolean;
293
+ platformOverride: {
294
+ limit?: number;
295
+ enabled?: boolean;
296
+ } | null;
297
+ source: "platform" | "deployment";
298
+ }
299
+ /** Rate-limit policy matrix plus the per-tenant run quota. */
300
+ export interface PlatformRateLimitsView {
301
+ policies: PlatformRateLimitPolicyView[];
302
+ maxActiveRunTasksPerTenant: number | null;
303
+ }
304
+ /** Platform Ops Agent runtime configuration. */
305
+ export interface PlatformOpsConfig {
306
+ enabled: boolean;
307
+ modelKey: string;
308
+ modelConfigured: boolean;
309
+ }
310
+ /** Platform Ops Agent runtime configuration client. */
311
+ export interface PlatformOpsClient {
312
+ getConfig(): Promise<PlatformOpsConfig>;
313
+ }
314
+ /**
315
+ * Platform-owned model provider catalog.
316
+ *
317
+ * Mirrors the tenant `client.modelProviders` namespace, but every call is
318
+ * scoped to the reserved platform catalog rather than a tenant. Reads are
319
+ * available to any platform role; mutations require platform admin.
320
+ */
321
+ export interface PlatformModelProvidersClient {
322
+ list(): Promise<ModelProviderPublicEntry[]>;
323
+ get(providerId: string): Promise<ModelProviderPublicEntry>;
324
+ create(input: CreateModelProviderRequest): Promise<ModelProviderPublicEntry>;
325
+ update(providerId: string, input: UpdateModelProviderRequest): Promise<ModelProviderPublicEntry>;
326
+ delete(providerId: string): Promise<void>;
327
+ probe(input: ModelProviderProbeRequest): Promise<ModelProviderProbeResult>;
328
+ setModels(providerId: string, models: ModelSelection[]): Promise<ModelProviderPublicEntry>;
329
+ discover(providerId: string): Promise<ModelDiscoveryResult>;
330
+ setModelEnabled(providerId: string, modelId: string, enabled: boolean): Promise<ModelProviderPublicEntry>;
331
+ }
332
+ /** Typed error thrown for non-success platform-management responses. */
333
+ export declare class PlatformClientError extends Error {
334
+ readonly status: number;
335
+ readonly code: string;
336
+ readonly retryable: boolean;
337
+ readonly details?: unknown | undefined;
338
+ constructor(message: string, status: number, code: string, retryable?: boolean, details?: unknown | undefined);
339
+ }
340
+ /** Client for `/api/platform/*`. */
341
+ export declare class PlatformClient {
342
+ private readonly baseURL;
343
+ private readonly getHeaders;
344
+ /** Platform-owned model provider catalog (reserved `__platform__` scope). */
345
+ readonly modelProviders: PlatformModelProvidersClient;
346
+ /** Platform Ops Agent threads and streaming messages. */
347
+ readonly ops: PlatformOpsClient;
348
+ constructor(baseURL: string, getHeaders: () => Record<string, string>);
349
+ /**
350
+ * Reads the platform-owned model catalog (providers plus visible models).
351
+ *
352
+ * This is the platform-scoped counterpart of `client.tenantModels.list()`.
353
+ */
354
+ modelCatalog(): Promise<TenantModelCatalog>;
355
+ rateLimits(): Promise<PlatformRateLimitsView>;
356
+ me(): Promise<PlatformRole | null>;
357
+ /**
358
+ * Reads the platform-guarded gateway identity and capability surface.
359
+ *
360
+ * @returns The same `GatewayInfo` payload as the legacy public `/info`.
361
+ */
362
+ getInfo(): Promise<GatewayInfo>;
363
+ /**
364
+ * Reads the platform-guarded JSON runtime metrics for this replica.
365
+ *
366
+ * @returns The same `SystemMetrics` payload as legacy `/metrics?format=json`.
367
+ */
368
+ getSystemMetrics(): Promise<SystemMetrics>;
369
+ /**
370
+ * Reads the effective platform settings, provenance, and version.
371
+ *
372
+ * @returns The current snapshot with ISO-string `updatedAt`.
373
+ */
374
+ getSettings(): Promise<PlatformSettingsSnapshot>;
375
+ /**
376
+ * Applies a partial settings patch and/or resets existing overrides.
377
+ *
378
+ * @param input Version guard plus the patch and reset paths.
379
+ * @returns The committed snapshot after the update.
380
+ */
381
+ updateSettings(input: UpdatePlatformSettingsInput): Promise<PlatformSettingsSnapshot>;
382
+ /**
383
+ * Reads the safe runtime environment projection.
384
+ *
385
+ * @returns Runtime identity, public endpoints, dependency presence, and
386
+ * diagnostics. Secret values are never included.
387
+ */
388
+ getEnvironment(): Promise<PlatformEnvironmentView>;
389
+ /**
390
+ * Reads platform audit records, newest first.
391
+ *
392
+ * @param query Optional filters and pagination. Undefined values are omitted
393
+ * from the request.
394
+ * @returns Hydrated records with `createdAt` as a `Date`.
395
+ */
396
+ listAudit(query?: PlatformAuditQuery): Promise<PlatformAuditRecord[]>;
397
+ /**
398
+ * Reads a single platform audit record by id.
399
+ *
400
+ * @param auditId Audit record id.
401
+ * @returns The hydrated record with `createdAt` as a `Date`.
402
+ */
403
+ getAudit(auditId: string): Promise<PlatformAuditRecord>;
404
+ /**
405
+ * Resolves the public branding for the current gateway host.
406
+ *
407
+ * The public `/api/branding` route does not require a session, but this
408
+ * method reuses the normal request helper and headers.
409
+ */
410
+ getBranding(): Promise<ResolvedPlatformBranding>;
411
+ /** Reads the platform default and host-scoped branding settings. */
412
+ getBrandingSettings(): Promise<BrandingSettingsView>;
413
+ /**
414
+ * Replaces the full branding configuration with versioning.
415
+ *
416
+ * @param input Version guard plus the complete branding settings document.
417
+ * @returns The committed branding settings after the update.
418
+ */
419
+ updateBrandingSettings(input: UpdateBrandingSettingsInput): Promise<BrandingSettingsView>;
420
+ listTenants(): Promise<PlatformTenant[]>;
421
+ createTenant(input: CreatePlatformTenantInput): Promise<PlatformTenant>;
422
+ updateTenant(tenantId: string, input: UpdatePlatformTenantInput): Promise<PlatformTenant>;
423
+ deleteTenant(tenantId: string): Promise<void>;
424
+ listUsers(): Promise<PlatformUserSummary[]>;
425
+ createUser(input: CreatePlatformUserInput): Promise<PlatformUserSummary>;
426
+ updateUser(userId: string, input: UpdatePlatformUserInput): Promise<PlatformUserSummary>;
427
+ deleteUser(userId: string): Promise<void>;
428
+ listMembers(): Promise<PlatformMemberSummary[]>;
429
+ grantMember(input: GrantPlatformMemberInput): Promise<GrantPlatformMemberResult>;
430
+ listInvitations(): Promise<PlatformInvitationSummary[]>;
431
+ revokeInvitation(email: string): Promise<void>;
432
+ updateMember(userId: string, role: PlatformRole): Promise<PlatformMemberSummary>;
433
+ revokeMember(userId: string): Promise<void>;
434
+ listTenantMembers(tenantId: string): Promise<PlatformTenantMember[]>;
435
+ addTenantMember(input: AddPlatformTenantMemberInput): Promise<PlatformTenantMember>;
436
+ listInviteLinks(): Promise<InviteLinkSummary[]>;
437
+ createInviteLink(input: CreateInviteLinkInput): Promise<InviteLinkSummary>;
438
+ revokeInviteLink(id: string): Promise<InviteLinkSummary>;
439
+ getInviteLink(token: string): Promise<InviteLinkSummary>;
440
+ claimInviteLink(token: string): Promise<InviteLinkClaimResult>;
441
+ updateTenantMemberRole(tenantId: string, userId: string, role: UserTenantRole): Promise<PlatformTenantMember>;
442
+ removeTenantMember(tenantId: string, userId: string): Promise<void>;
443
+ listOidcClaims(status?: OidcIdentityClaimStatus | "all"): Promise<OidcIdentityClaimSummary[]>;
444
+ updateOidcClaimEmail(id: string, email: string): Promise<OidcIdentityClaimSummary>;
445
+ approveOidcClaim(id: string, input?: ApproveOidcIdentityClaimInput): Promise<OidcIdentityClaimSummary>;
446
+ rejectOidcClaim(id: string): Promise<OidcIdentityClaimSummary>;
447
+ private request;
448
+ }
449
+ //# sourceMappingURL=platform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,KAAK,EAEV,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EAEvB,wBAAwB,EACxB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,UAAU,EACV,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,YAAY,EACV,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,CAAC;AAEF,uEAAuE;AACvE,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,yBAAyB,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/C,SAAS,EAAE,yBAAyB,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uDAAuD;AACvD,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,uEAAuE;AACvE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAA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