@auctra/sdk 0.2.0 → 0.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/src/index.ts ADDED
@@ -0,0 +1,569 @@
1
+ export const AUCTRA_SDK_VERSION = "0.3.0";
2
+
3
+ export type AgentEnvironment = "dev" | "staging" | "production";
4
+ export type AuthorityLevel = "low" | "medium" | "high" | "critical";
5
+ export type Decision = "allowed" | "blocked" | "require_approval";
6
+ export type PolicyType = "spending" | "data_access" | "communication" | "approval";
7
+ export type ActorType = "human" | "agent" | "service" | "tool";
8
+ export type RiskLevel = "low" | "medium" | "high" | "critical";
9
+
10
+ export type EvaluateActionInput = {
11
+ agentId: string;
12
+ actionType: string;
13
+ payload?: Record<string, unknown>;
14
+ claimedIntentId?: string;
15
+ parentActionId?: string;
16
+ actor?: {
17
+ id?: string;
18
+ type?: ActorType;
19
+ name?: string;
20
+ };
21
+ action?: {
22
+ target?: string;
23
+ description?: string;
24
+ riskLevel?: RiskLevel;
25
+ metadata?: Record<string, unknown>;
26
+ };
27
+ };
28
+
29
+ export type EvaluateActionResponse = {
30
+ decision: Decision;
31
+ risk_score: number;
32
+ reason: string;
33
+ delegation_id: string | null;
34
+ delegator: string | null;
35
+ sponsor: string;
36
+ matched_policies: string[];
37
+ action_request_id: string;
38
+ intelligence?: {
39
+ authority_valid: boolean;
40
+ root_intent_valid: boolean;
41
+ intent_status: string;
42
+ trust_summary?: string;
43
+ };
44
+ };
45
+
46
+ export type RequestOptions = {
47
+ idempotencyKey?: string;
48
+ signal?: AbortSignal;
49
+ };
50
+
51
+ export type AuctraClientOptions = {
52
+ apiKey: string;
53
+ baseUrl?: string;
54
+ timeoutMs?: number;
55
+ maxRetries?: number;
56
+ fetch?: typeof fetch;
57
+ };
58
+
59
+ export type Agent = {
60
+ id: string;
61
+ identity_id: string;
62
+ name: string;
63
+ description: string | null;
64
+ model_provider: "openai" | "anthropic" | "gemini" | "local";
65
+ model_name: string;
66
+ environment: AgentEnvironment;
67
+ authority_level: AuthorityLevel;
68
+ status: "active" | "suspended" | "restricted" | "compromised";
69
+ trust_rating: number;
70
+ sponsor: { id: string; full_name: string; email: string };
71
+ created_at: string;
72
+ };
73
+
74
+ export type CreateAgentInput = {
75
+ name: string;
76
+ modelProvider: Agent["model_provider"];
77
+ modelName: string;
78
+ description?: string;
79
+ environment?: AgentEnvironment;
80
+ authorityLevel?: AuthorityLevel;
81
+ sponsorUserId?: string;
82
+ };
83
+
84
+ export type Delegation = {
85
+ id: string;
86
+ agent: { id: string; name: string };
87
+ delegator: { id: string; full_name: string; email: string };
88
+ scope: { action_types: string[] };
89
+ limits: {
90
+ max_amount?: number;
91
+ max_count?: number;
92
+ currency?: string;
93
+ environment?: AgentEnvironment;
94
+ };
95
+ valid_from: string;
96
+ valid_until: string;
97
+ status: "active" | "revoked" | "expired";
98
+ is_active: boolean;
99
+ created_at: string;
100
+ };
101
+
102
+ export type CreateDelegationInput = {
103
+ agentId: string;
104
+ actionTypes: string[];
105
+ validUntil: string;
106
+ maxAmount?: number;
107
+ maxCount?: number;
108
+ environment?: AgentEnvironment;
109
+ currency?: string;
110
+ delegatorUserId?: string;
111
+ };
112
+
113
+ export type ActionRequest = {
114
+ id: string;
115
+ agent_name: string;
116
+ action_type: string;
117
+ action_summary: string;
118
+ payload: Record<string, unknown>;
119
+ decision: string;
120
+ decision_reason: string | null;
121
+ risk_score: number;
122
+ delegation_id: string | null;
123
+ policy_ids: string[];
124
+ pending_approval_id: string | null;
125
+ created_at: string;
126
+ decided_at: string | null;
127
+ };
128
+
129
+ export type Intent = {
130
+ id: string;
131
+ title: string;
132
+ description: string | null;
133
+ intent_type: string | null;
134
+ status: string;
135
+ risk_level: RiskLevel;
136
+ max_risk_level: RiskLevel;
137
+ expires_at: string | null;
138
+ created_at: string;
139
+ owner: { id: string; full_name: string; email: string } | null;
140
+ linked_actions: number;
141
+ };
142
+
143
+ export type IntentDetail = Omit<Intent, "linked_actions"> & {
144
+ linked_action_records: Array<{
145
+ action_request_id: string;
146
+ action_type: string;
147
+ summary: string;
148
+ decision: string;
149
+ alignment_status: string;
150
+ alignment_score: number | null;
151
+ }>;
152
+ };
153
+
154
+ export type CreateIntentInput = {
155
+ title: string;
156
+ description?: string;
157
+ intentType?: string;
158
+ riskLevel?: RiskLevel;
159
+ maxRiskLevel?: RiskLevel;
160
+ expiresAt?: string;
161
+ };
162
+
163
+ export type AuthorityGraph = {
164
+ nodes: Array<{ id: string; type: ActorType; label: string }>;
165
+ edges: Array<{
166
+ id: string;
167
+ from: string;
168
+ to: string;
169
+ fromType: ActorType;
170
+ toType: ActorType;
171
+ scope: string;
172
+ status: string;
173
+ edgeType: string;
174
+ }>;
175
+ };
176
+
177
+ export type ActionEvaluation = {
178
+ id: string;
179
+ action_request_id: string;
180
+ intent_id: string | null;
181
+ decision: "allowed" | "requires_approval" | "blocked";
182
+ risk_score: number;
183
+ authority_valid: boolean;
184
+ intent_valid: boolean;
185
+ root_intent_valid: boolean;
186
+ reasons: string[];
187
+ created_at: string;
188
+ };
189
+
190
+ export type RootIntentChain = {
191
+ valid: boolean;
192
+ root_human_id: string | null;
193
+ root_intent_id: string | null;
194
+ reason: string | null;
195
+ chain: Array<{
196
+ actionId?: string;
197
+ actorId: string;
198
+ actorType: ActorType;
199
+ intentId?: string;
200
+ parentActionId?: string;
201
+ label?: string;
202
+ }>;
203
+ };
204
+
205
+ export type Policy = {
206
+ id: string;
207
+ name: string;
208
+ description: string | null;
209
+ policy_type: PolicyType;
210
+ status: "active" | "draft" | "archived";
211
+ priority: number;
212
+ conditions: Record<string, unknown>;
213
+ actions: Record<string, unknown>;
214
+ created_at: string;
215
+ };
216
+
217
+ export type CreatePolicyInput = {
218
+ name: string;
219
+ description?: string;
220
+ policyType: PolicyType;
221
+ status?: "active" | "draft";
222
+ priority?: number;
223
+ actionType?: string;
224
+ amountGreaterThan?: number;
225
+ resourceSensitivity?: "public" | "internal" | "confidential" | "pii";
226
+ externalRecipient?: boolean;
227
+ environment?: AgentEnvironment;
228
+ decision: "block" | "require_approval";
229
+ approverRole?: "owner" | "admin" | "reviewer";
230
+ };
231
+
232
+ export type AuditEvent = {
233
+ id: string;
234
+ event_type: string;
235
+ event_summary: string;
236
+ decision: string | null;
237
+ decision_reason: string | null;
238
+ authority_valid_at_action: boolean | null;
239
+ actor_name: string;
240
+ approver_name: string | null;
241
+ policy_applied: string | null;
242
+ delegation_id: string | null;
243
+ hash: string | null;
244
+ previous_hash: string | null;
245
+ created_at: string;
246
+ };
247
+
248
+ export type ApiKeySummary = {
249
+ id: string;
250
+ name: string;
251
+ key_prefix: string;
252
+ environment: "development" | "production";
253
+ permissions: string[];
254
+ status: "active" | "revoked";
255
+ last_used_at: string | null;
256
+ created_at: string;
257
+ };
258
+
259
+ export class AuctraApiError extends Error {
260
+ readonly status: number;
261
+ readonly code?: string;
262
+ readonly details?: unknown;
263
+ readonly requestId?: string;
264
+
265
+ constructor(
266
+ message: string,
267
+ options: { status: number; code?: string; details?: unknown; requestId?: string },
268
+ ) {
269
+ super(message);
270
+ this.name = "AuctraApiError";
271
+ this.status = options.status;
272
+ this.code = options.code;
273
+ this.details = options.details;
274
+ this.requestId = options.requestId;
275
+ }
276
+ }
277
+
278
+ function retryDelay(response: Response | undefined, attempt: number) {
279
+ const retryAfter = response?.headers.get("retry-after");
280
+ if (retryAfter) {
281
+ const seconds = Number(retryAfter);
282
+ if (Number.isFinite(seconds)) return Math.min(30_000, Math.max(0, seconds * 1_000));
283
+ const dateDelay = Date.parse(retryAfter) - Date.now();
284
+ if (Number.isFinite(dateDelay)) return Math.min(30_000, Math.max(0, dateDelay));
285
+ }
286
+ return Math.min(5_000, 150 * 2 ** attempt);
287
+ }
288
+
289
+ function wait(ms: number, signal?: AbortSignal) {
290
+ if (signal?.aborted) return Promise.reject(signal.reason);
291
+ return new Promise<void>((resolve, reject) => {
292
+ const timeout = setTimeout(resolve, ms);
293
+ signal?.addEventListener(
294
+ "abort",
295
+ () => {
296
+ clearTimeout(timeout);
297
+ reject(signal.reason);
298
+ },
299
+ { once: true },
300
+ );
301
+ });
302
+ }
303
+
304
+ export class Auctra {
305
+ private readonly apiKey: string;
306
+ private readonly baseUrl: string;
307
+ private readonly timeoutMs: number;
308
+ private readonly maxRetries: number;
309
+ private readonly fetchImpl: typeof fetch;
310
+
311
+ constructor(options: AuctraClientOptions) {
312
+ if (!options.apiKey.trim()) throw new Error("apiKey is required");
313
+ if (options.timeoutMs !== undefined && options.timeoutMs <= 0) {
314
+ throw new Error("timeoutMs must be greater than zero");
315
+ }
316
+ if (
317
+ options.maxRetries !== undefined &&
318
+ (!Number.isInteger(options.maxRetries) || options.maxRetries < 0)
319
+ ) {
320
+ throw new Error("maxRetries must be a non-negative integer");
321
+ }
322
+ this.apiKey = options.apiKey;
323
+ this.baseUrl = (options.baseUrl ?? "https://console.auctra.tech").replace(/\/$/, "");
324
+ this.timeoutMs = options.timeoutMs ?? 10_000;
325
+ this.maxRetries = options.maxRetries ?? 2;
326
+ this.fetchImpl = options.fetch ?? globalThis.fetch;
327
+ if (!this.fetchImpl) throw new Error("A fetch implementation is required");
328
+ }
329
+
330
+ private async request<T>(
331
+ method: string,
332
+ path: string,
333
+ body?: unknown,
334
+ options: RequestOptions = {},
335
+ ): Promise<T> {
336
+ const retryableRequest = method === "GET" || Boolean(options.idempotencyKey);
337
+ let lastError: unknown;
338
+
339
+ for (let attempt = 0; attempt <= this.maxRetries; attempt += 1) {
340
+ if (options.signal?.aborted) throw options.signal.reason;
341
+ const timeoutSignal = AbortSignal.timeout(this.timeoutMs);
342
+ const signal = options.signal
343
+ ? AbortSignal.any([options.signal, timeoutSignal])
344
+ : timeoutSignal;
345
+ let response: Response | undefined;
346
+
347
+ try {
348
+ response = await this.fetchImpl(`${this.baseUrl}${path}`, {
349
+ method,
350
+ signal,
351
+ headers: {
352
+ ...(body !== undefined ? { "content-type": "application/json" } : {}),
353
+ ...(options.idempotencyKey ? { "idempotency-key": options.idempotencyKey } : {}),
354
+ authorization: `Bearer ${this.apiKey}`,
355
+ "x-auctra-sdk-version": AUCTRA_SDK_VERSION,
356
+ },
357
+ ...(body !== undefined ? { body: JSON.stringify(body) } : {}),
358
+ });
359
+
360
+ const data = (await response.json().catch(() => ({}))) as Record<string, unknown>;
361
+ if (response.ok) return data as T;
362
+
363
+ if (
364
+ retryableRequest &&
365
+ (response.status === 429 || response.status >= 500) &&
366
+ attempt < this.maxRetries
367
+ ) {
368
+ await wait(retryDelay(response, attempt), options.signal);
369
+ continue;
370
+ }
371
+
372
+ throw new AuctraApiError(
373
+ typeof data.error === "string" ? data.error : `Auctra API error (${response.status})`,
374
+ {
375
+ status: response.status,
376
+ code: typeof data.code === "string" ? data.code : undefined,
377
+ details: data.details,
378
+ requestId: response.headers.get("x-request-id") ?? undefined,
379
+ },
380
+ );
381
+ } catch (error) {
382
+ lastError = error;
383
+ if (options.signal?.aborted) throw options.signal.reason;
384
+ if (error instanceof AuctraApiError || !retryableRequest || attempt >= this.maxRetries) {
385
+ throw error;
386
+ }
387
+ await wait(retryDelay(response, attempt), options.signal);
388
+ }
389
+ }
390
+
391
+ throw lastError;
392
+ }
393
+
394
+ async evaluateAction(
395
+ input: EvaluateActionInput,
396
+ options: RequestOptions = {},
397
+ ): Promise<EvaluateActionResponse> {
398
+ const idempotencyKey = options.idempotencyKey ?? crypto.randomUUID();
399
+ return this.request(
400
+ "POST",
401
+ "/v1/action-requests/evaluate",
402
+ {
403
+ agent_id: input.agentId,
404
+ action_type: input.actionType,
405
+ payload: input.payload ?? {},
406
+ claimed_intent_id: input.claimedIntentId,
407
+ parent_action_id: input.parentActionId,
408
+ actor: input.actor
409
+ ? {
410
+ id: input.actor.id,
411
+ type: input.actor.type,
412
+ name: input.actor.name,
413
+ }
414
+ : undefined,
415
+ action: input.action
416
+ ? {
417
+ target: input.action.target,
418
+ description: input.action.description,
419
+ risk_level: input.action.riskLevel,
420
+ metadata: input.action.metadata,
421
+ }
422
+ : undefined,
423
+ },
424
+ { ...options, idempotencyKey },
425
+ );
426
+ }
427
+
428
+ async listIntents(): Promise<{ intents: Intent[] }> {
429
+ return this.request("GET", "/v1/intents");
430
+ }
431
+
432
+ async createIntent(input: CreateIntentInput): Promise<{ intent: { id: string; title: string; status: string } }> {
433
+ return this.request("POST", "/v1/intents", {
434
+ title: input.title,
435
+ description: input.description,
436
+ intent_type: input.intentType,
437
+ risk_level: input.riskLevel,
438
+ max_risk_level: input.maxRiskLevel,
439
+ expires_at: input.expiresAt,
440
+ });
441
+ }
442
+
443
+ async getIntent(intentId: string): Promise<{ intent: IntentDetail }> {
444
+ return this.request("GET", `/v1/intents/${encodeURIComponent(intentId)}`);
445
+ }
446
+
447
+ async getAuthorityGraph(): Promise<{ authority_graph: AuthorityGraph }> {
448
+ return this.request("GET", "/v1/authority/graph");
449
+ }
450
+
451
+ async getActionEvaluation(actionRequestId: string): Promise<{ evaluation: ActionEvaluation }> {
452
+ return this.request(
453
+ "GET",
454
+ `/v1/action-requests/${encodeURIComponent(actionRequestId)}/evaluation`,
455
+ );
456
+ }
457
+
458
+ async getRootIntentChain(actionRequestId: string): Promise<{ root_intent_chain: RootIntentChain }> {
459
+ return this.request(
460
+ "GET",
461
+ `/v1/action-requests/${encodeURIComponent(actionRequestId)}/root-intent`,
462
+ );
463
+ }
464
+
465
+ async listAgents(): Promise<{ agents: Agent[] }> {
466
+ return this.request("GET", "/v1/agents");
467
+ }
468
+
469
+ async getAgent(agentId: string): Promise<{ agent: Agent }> {
470
+ return this.request("GET", `/v1/agents/${encodeURIComponent(agentId)}`);
471
+ }
472
+
473
+ async createAgent(input: CreateAgentInput): Promise<{ agent: Agent }> {
474
+ return this.request("POST", "/v1/agents", {
475
+ name: input.name,
476
+ model_provider: input.modelProvider,
477
+ model_name: input.modelName,
478
+ description: input.description,
479
+ environment: input.environment,
480
+ authority_level: input.authorityLevel,
481
+ sponsor_user_id: input.sponsorUserId,
482
+ });
483
+ }
484
+
485
+ async listDelegations(): Promise<{ delegations: Delegation[] }> {
486
+ return this.request("GET", "/v1/delegations");
487
+ }
488
+
489
+ async getDelegation(delegationId: string): Promise<{ delegation: Delegation }> {
490
+ return this.request("GET", `/v1/delegations/${encodeURIComponent(delegationId)}`);
491
+ }
492
+
493
+ async createDelegation(input: CreateDelegationInput): Promise<{ delegation: Delegation }> {
494
+ return this.request("POST", "/v1/delegations", {
495
+ agent_id: input.agentId,
496
+ action_types: input.actionTypes,
497
+ valid_until: input.validUntil,
498
+ max_amount: input.maxAmount,
499
+ max_count: input.maxCount,
500
+ environment: input.environment,
501
+ currency: input.currency,
502
+ delegator_user_id: input.delegatorUserId,
503
+ });
504
+ }
505
+
506
+ async revokeDelegation(delegationId: string): Promise<{ ok: true }> {
507
+ return this.request("POST", `/v1/delegations/${encodeURIComponent(delegationId)}/revoke`, {});
508
+ }
509
+
510
+ async listActionRequests(): Promise<{ action_requests: ActionRequest[] }> {
511
+ return this.request("GET", "/v1/action-requests");
512
+ }
513
+
514
+ async approveActionRequest(actionRequestId: string, approverUserId: string, reason?: string) {
515
+ return this.resolveActionRequest(actionRequestId, "approve", approverUserId, reason);
516
+ }
517
+
518
+ async rejectActionRequest(actionRequestId: string, approverUserId: string, reason?: string) {
519
+ return this.resolveActionRequest(actionRequestId, "reject", approverUserId, reason);
520
+ }
521
+
522
+ async escalateActionRequest(actionRequestId: string, approverUserId: string, reason?: string) {
523
+ return this.resolveActionRequest(actionRequestId, "escalate", approverUserId, reason);
524
+ }
525
+
526
+ private async resolveActionRequest(
527
+ actionRequestId: string,
528
+ action: "approve" | "reject" | "escalate",
529
+ approverUserId: string,
530
+ reason?: string,
531
+ ): Promise<{ ok: true; decision: string; reason: string }> {
532
+ return this.request(
533
+ "POST",
534
+ `/v1/action-requests/${encodeURIComponent(actionRequestId)}/${action}`,
535
+ { reason, approver_user_id: approverUserId },
536
+ );
537
+ }
538
+
539
+ async listPolicies(): Promise<{ policies: Policy[] }> {
540
+ return this.request("GET", "/v1/policies");
541
+ }
542
+
543
+ async createPolicy(
544
+ input: CreatePolicyInput,
545
+ ): Promise<{ policy: Pick<Policy, "id" | "name" | "status" | "created_at"> }> {
546
+ return this.request("POST", "/v1/policies", {
547
+ name: input.name,
548
+ description: input.description,
549
+ policy_type: input.policyType,
550
+ status: input.status,
551
+ priority: input.priority,
552
+ action_type: input.actionType,
553
+ amount_greater_than: input.amountGreaterThan,
554
+ resource_sensitivity: input.resourceSensitivity,
555
+ external_recipient: input.externalRecipient,
556
+ environment: input.environment,
557
+ decision: input.decision,
558
+ approver_role: input.approverRole,
559
+ });
560
+ }
561
+
562
+ async listAuditEvents(): Promise<{ audit_events: AuditEvent[] }> {
563
+ return this.request("GET", "/v1/audit-events");
564
+ }
565
+
566
+ async listApiKeys(): Promise<{ api_keys: ApiKeySummary[] }> {
567
+ return this.request("GET", "/v1/api-keys");
568
+ }
569
+ }
package/dist/index.d.ts DELETED
@@ -1,129 +0,0 @@
1
- export type EvaluateActionInput = {
2
- agentId: string;
3
- actionType: string;
4
- payload?: Record<string, unknown>;
5
- };
6
- export type EvaluateActionResponse = {
7
- decision: "allowed" | "blocked" | "require_approval";
8
- risk_score: number;
9
- reason: string;
10
- delegation_id: string | null;
11
- delegator: string | null;
12
- sponsor: string;
13
- matched_policies: string[];
14
- action_request_id: string;
15
- };
16
- export type AuctraClientOptions = {
17
- apiKey: string;
18
- baseUrl?: string;
19
- timeoutMs?: number;
20
- maxRetries?: number;
21
- fetch?: typeof fetch;
22
- };
23
- export type Agent = {
24
- id: string;
25
- identity_id: string;
26
- name: string;
27
- description: string | null;
28
- model_provider: string;
29
- model_name: string;
30
- environment: "dev" | "staging" | "production";
31
- authority_level: "low" | "medium" | "high" | "critical";
32
- status: "active" | "suspended" | "restricted" | "compromised";
33
- trust_rating: number;
34
- sponsor: {
35
- id: string;
36
- full_name: string;
37
- email: string;
38
- };
39
- created_at: string;
40
- };
41
- export type Delegation = {
42
- id: string;
43
- agent: {
44
- id: string;
45
- name: string;
46
- };
47
- delegator: {
48
- id: string;
49
- full_name: string;
50
- email: string;
51
- };
52
- scope: {
53
- action_types: string[];
54
- };
55
- limits: {
56
- max_amount?: number;
57
- currency?: string;
58
- };
59
- valid_from: string;
60
- valid_until: string;
61
- status: "active" | "revoked" | "expired";
62
- is_active: boolean;
63
- created_at: string;
64
- };
65
- export declare class AuctraApiError extends Error {
66
- readonly status: number;
67
- readonly code?: string;
68
- readonly details?: unknown;
69
- readonly requestId?: string;
70
- constructor(message: string, options: {
71
- status: number;
72
- code?: string;
73
- details?: unknown;
74
- requestId?: string;
75
- });
76
- }
77
- export declare class Auctra {
78
- private apiKey;
79
- private baseUrl;
80
- private timeoutMs;
81
- private maxRetries;
82
- private fetchImpl;
83
- constructor(options: AuctraClientOptions);
84
- private request;
85
- evaluateAction(input: EvaluateActionInput, options?: {
86
- idempotencyKey?: string;
87
- signal?: AbortSignal;
88
- }): Promise<EvaluateActionResponse>;
89
- listAgents(): Promise<{
90
- agents: Agent[];
91
- }>;
92
- getAgent(agentId: string): Promise<{
93
- agent: Agent;
94
- }>;
95
- createAgent(input: {
96
- name: string;
97
- modelProvider: string;
98
- modelName: string;
99
- description?: string;
100
- environment?: string;
101
- authorityLevel?: string;
102
- sponsorUserId?: string;
103
- }): Promise<unknown>;
104
- listDelegations(): Promise<{
105
- delegations: Delegation[];
106
- }>;
107
- createDelegation(input: {
108
- agentId: string;
109
- actionTypes: string[];
110
- validUntil: string;
111
- maxAmount?: number;
112
- currency?: string;
113
- delegatorUserId?: string;
114
- }): Promise<unknown>;
115
- revokeDelegation(delegationId: string): Promise<unknown>;
116
- listActionRequests(): Promise<{
117
- action_requests: unknown[];
118
- }>;
119
- approveActionRequest(actionRequestId: string, approverUserId: string, reason?: string): Promise<unknown>;
120
- rejectActionRequest(actionRequestId: string, approverUserId: string, reason?: string): Promise<unknown>;
121
- escalateActionRequest(actionRequestId: string, approverUserId: string, reason?: string): Promise<unknown>;
122
- listPolicies(): Promise<{
123
- policies: unknown[];
124
- }>;
125
- listAuditEvents(): Promise<{
126
- audit_events: unknown[];
127
- }>;
128
- }
129
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,kBAAkB,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,KAAK,GAAG,SAAS,GAAG,YAAY,CAAC;IAC9C,eAAe,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAA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