@burdenoff/be-sdk 2026.1015.2 → 2026.1017.1
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/chunk-N2UT3ESH.js +1506 -0
- package/dist/chunk-N2UT3ESH.js.map +1 -0
- package/dist/index-DfYu1p9e.d.ts +530 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-Z5BURBFZ.js +0 -694
- package/dist/chunk-Z5BURBFZ.js.map +0 -1
- package/dist/index-PJZzGd8r.d.ts +0 -324
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
interface RetryConfig {
|
|
2
|
+
attempts?: number;
|
|
3
|
+
initialDelayMs?: number;
|
|
4
|
+
maxDelayMs?: number;
|
|
5
|
+
retryOn?: (status: number) => boolean;
|
|
6
|
+
}
|
|
7
|
+
interface BreakerConfig {
|
|
8
|
+
threshold?: number;
|
|
9
|
+
cooldownMs?: number;
|
|
10
|
+
}
|
|
11
|
+
interface HttpClientConfig {
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
defaultTimeoutMs?: number;
|
|
14
|
+
retry?: RetryConfig;
|
|
15
|
+
breaker?: BreakerConfig;
|
|
16
|
+
defaultHeaders?: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
declare class CircuitBreakerOpenError extends Error {
|
|
19
|
+
constructor(host: string);
|
|
20
|
+
}
|
|
21
|
+
interface HttpClientInit extends RequestInit {
|
|
22
|
+
timeoutMs?: number;
|
|
23
|
+
retry?: RetryConfig;
|
|
24
|
+
}
|
|
25
|
+
declare function __resetHttpClientBreakers(): void;
|
|
26
|
+
declare function httpClient(url: string, init?: HttpClientInit, config?: HttpClientConfig): Promise<Response>;
|
|
27
|
+
declare function createHttpClient(config?: HttpClientConfig): (url: string, init?: HttpClientInit) => Promise<Response>;
|
|
28
|
+
|
|
29
|
+
interface LeaderLockRedis {
|
|
30
|
+
set(key: string, value: string, ex: 'EX', seconds: number, nx: 'NX'): Promise<'OK' | null>;
|
|
31
|
+
eval(script: string, numKeys: number, ...args: string[]): Promise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
interface LeaderLockOptions {
|
|
34
|
+
ttlMs: number;
|
|
35
|
+
renewMs?: number;
|
|
36
|
+
}
|
|
37
|
+
interface LeaderLockResult<T> {
|
|
38
|
+
acquired: boolean;
|
|
39
|
+
result?: T;
|
|
40
|
+
}
|
|
41
|
+
declare function normalizeRedisUrl(url: string): string;
|
|
42
|
+
declare function withLeaderLock<T>(redis: LeaderLockRedis, name: string, fn: () => Promise<T>, options: LeaderLockOptions): Promise<LeaderLockResult<T>>;
|
|
43
|
+
interface CreateLeaderLeaseOptions {
|
|
44
|
+
name: string;
|
|
45
|
+
ttlMs: number;
|
|
46
|
+
redis: LeaderLockRedis;
|
|
47
|
+
renewMs?: number;
|
|
48
|
+
}
|
|
49
|
+
interface LeaderLease {
|
|
50
|
+
renew(): Promise<boolean>;
|
|
51
|
+
release(): Promise<void>;
|
|
52
|
+
isHeld(): boolean;
|
|
53
|
+
}
|
|
54
|
+
declare function createLeaderLease(options: CreateLeaderLeaseOptions): LeaderLease;
|
|
55
|
+
|
|
56
|
+
interface RateLimitRedis {
|
|
57
|
+
incr(key: string): Promise<number>;
|
|
58
|
+
pexpire(key: string, ms: number): Promise<number | 'OK'>;
|
|
59
|
+
pttl(key: string): Promise<number>;
|
|
60
|
+
}
|
|
61
|
+
interface RateLimitInput {
|
|
62
|
+
key: string;
|
|
63
|
+
limit: number;
|
|
64
|
+
windowMs: number;
|
|
65
|
+
}
|
|
66
|
+
interface RateLimitResult {
|
|
67
|
+
allowed: boolean;
|
|
68
|
+
count: number;
|
|
69
|
+
remaining: number;
|
|
70
|
+
resetAt: number;
|
|
71
|
+
}
|
|
72
|
+
declare function rateLimitIncr(redis: RateLimitRedis, input: RateLimitInput): Promise<RateLimitResult>;
|
|
73
|
+
|
|
74
|
+
interface ClampLimitOptions {
|
|
75
|
+
defaultLimit?: number;
|
|
76
|
+
maxLimit?: number;
|
|
77
|
+
minLimit?: number;
|
|
78
|
+
}
|
|
79
|
+
declare const DEFAULT_GRAPHQL_PAGE_LIMIT = 50;
|
|
80
|
+
declare const MAX_GRAPHQL_PAGE_LIMIT = 100;
|
|
81
|
+
declare function clampLimit(input: number | undefined | null, opts?: ClampLimitOptions): number;
|
|
82
|
+
declare function clampOffset(input: number | undefined | null): number;
|
|
83
|
+
declare function clampGraphqlLimit(input: number | undefined | null, opts?: ClampLimitOptions): number;
|
|
84
|
+
interface OffsetPaginationInput {
|
|
85
|
+
limit?: number | null;
|
|
86
|
+
offset?: number | null;
|
|
87
|
+
}
|
|
88
|
+
interface NormalizedOffsetPagination {
|
|
89
|
+
limit: number;
|
|
90
|
+
offset: number;
|
|
91
|
+
}
|
|
92
|
+
declare function normalizeOffsetPagination(input: OffsetPaginationInput | null | undefined, opts?: ClampLimitOptions): NormalizedOffsetPagination;
|
|
93
|
+
interface CursorPaginationInput {
|
|
94
|
+
first?: number | null;
|
|
95
|
+
after?: string | null;
|
|
96
|
+
}
|
|
97
|
+
interface NormalizedCursorPagination {
|
|
98
|
+
first: number;
|
|
99
|
+
after: string | null;
|
|
100
|
+
take: number;
|
|
101
|
+
}
|
|
102
|
+
declare function normalizeCursorPagination(input: CursorPaginationInput | null | undefined, opts?: ClampLimitOptions): NormalizedCursorPagination;
|
|
103
|
+
type CursorPayloadValue = string | number | boolean | null;
|
|
104
|
+
type CursorPayload = Record<string, CursorPayloadValue>;
|
|
105
|
+
declare function encodeCursor(payload: CursorPayload): string;
|
|
106
|
+
declare function decodeCursor(cursor: string | null | undefined): CursorPayload | null;
|
|
107
|
+
interface PageInfo {
|
|
108
|
+
hasNextPage: boolean;
|
|
109
|
+
hasPreviousPage: boolean;
|
|
110
|
+
startCursor: string | null;
|
|
111
|
+
endCursor: string | null;
|
|
112
|
+
}
|
|
113
|
+
interface ConnectionEdge<TItem> {
|
|
114
|
+
node: TItem;
|
|
115
|
+
cursor: string;
|
|
116
|
+
}
|
|
117
|
+
interface ConnectionResult<TItem> {
|
|
118
|
+
edges: ConnectionEdge<TItem>[];
|
|
119
|
+
nodes: TItem[];
|
|
120
|
+
pageInfo: PageInfo;
|
|
121
|
+
totalCount?: number | null;
|
|
122
|
+
}
|
|
123
|
+
interface BuildConnectionOptions<TItem> {
|
|
124
|
+
limit: number;
|
|
125
|
+
cursorForNode: (item: TItem) => string;
|
|
126
|
+
hasPreviousPage?: boolean;
|
|
127
|
+
totalCount?: number | null;
|
|
128
|
+
}
|
|
129
|
+
declare function buildConnection<TItem>(items: TItem[], opts: BuildConnectionOptions<TItem>): ConnectionResult<TItem>;
|
|
130
|
+
interface OffsetPageResult<TItem> {
|
|
131
|
+
items: TItem[];
|
|
132
|
+
total: number;
|
|
133
|
+
limit: number;
|
|
134
|
+
offset: number;
|
|
135
|
+
hasMore: boolean;
|
|
136
|
+
nextOffset: number | null;
|
|
137
|
+
}
|
|
138
|
+
declare function buildOffsetPage<TItem>(items: TItem[], total: number, pagination: NormalizedOffsetPagination): OffsetPageResult<TItem>;
|
|
139
|
+
declare function toPrismaPage(pagination: NormalizedOffsetPagination): {
|
|
140
|
+
take: number;
|
|
141
|
+
skip: number;
|
|
142
|
+
};
|
|
143
|
+
interface PaginateInput<TWhere, TOrderBy> {
|
|
144
|
+
take?: number | null;
|
|
145
|
+
cursor?: string | null;
|
|
146
|
+
where?: TWhere;
|
|
147
|
+
orderBy?: TOrderBy;
|
|
148
|
+
}
|
|
149
|
+
interface PaginateResult<TItem> {
|
|
150
|
+
items: TItem[];
|
|
151
|
+
hasMore: boolean;
|
|
152
|
+
nextCursor: string | null;
|
|
153
|
+
}
|
|
154
|
+
interface PrismaModelLike<TItem, TWhere, TOrderBy> {
|
|
155
|
+
findMany(args: {
|
|
156
|
+
take?: number;
|
|
157
|
+
skip?: number;
|
|
158
|
+
cursor?: {
|
|
159
|
+
id: string;
|
|
160
|
+
};
|
|
161
|
+
where?: TWhere;
|
|
162
|
+
orderBy?: TOrderBy;
|
|
163
|
+
}): Promise<TItem[]>;
|
|
164
|
+
}
|
|
165
|
+
declare function paginate<TItem extends {
|
|
166
|
+
id: string;
|
|
167
|
+
}, TWhere = unknown, TOrderBy = unknown>(model: PrismaModelLike<TItem, TWhere, TOrderBy>, input: PaginateInput<TWhere, TOrderBy>, opts?: ClampLimitOptions): Promise<PaginateResult<TItem>>;
|
|
168
|
+
|
|
169
|
+
interface DataLoaderLike<K, V> {
|
|
170
|
+
load(key: K): Promise<V>;
|
|
171
|
+
loadMany(keys: readonly K[]): Promise<(V | Error)[]>;
|
|
172
|
+
clear(key: K): this;
|
|
173
|
+
clearAll(): this;
|
|
174
|
+
prime(key: K, value: V): this;
|
|
175
|
+
}
|
|
176
|
+
type LoaderMap = Record<string, DataLoaderLike<unknown, unknown>>;
|
|
177
|
+
type LoaderBuilder<Ctx, M extends LoaderMap> = (ctx: Ctx) => M;
|
|
178
|
+
declare function buildLoaders<Ctx, M extends LoaderMap>(ctx: Ctx, builder: LoaderBuilder<Ctx, M>): M;
|
|
179
|
+
interface ReferenceObject {
|
|
180
|
+
id?: string;
|
|
181
|
+
[key: string]: unknown;
|
|
182
|
+
}
|
|
183
|
+
declare function resolveReferenceLoader<T, Ctx extends {
|
|
184
|
+
loaders: LoaderMap;
|
|
185
|
+
}>(loaderName: string, keyField?: string): (reference: ReferenceObject, ctx: Ctx) => Promise<T | null>;
|
|
186
|
+
|
|
187
|
+
interface CacheVersionRedis {
|
|
188
|
+
get(key: string): Promise<string | null>;
|
|
189
|
+
incr(key: string): Promise<number>;
|
|
190
|
+
}
|
|
191
|
+
declare function getNamespaceVersion(redis: CacheVersionRedis, namespace: string): Promise<number>;
|
|
192
|
+
declare function buildCacheKey(redis: CacheVersionRedis, namespace: string, ...parts: string[]): Promise<string>;
|
|
193
|
+
declare function invalidateNamespace(redis: CacheVersionRedis, namespace: string): Promise<number>;
|
|
194
|
+
|
|
195
|
+
interface PrismaRawClient {
|
|
196
|
+
$executeRawUnsafe(query: string, ...values: unknown[]): Promise<unknown>;
|
|
197
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: unknown[]): Promise<T>;
|
|
198
|
+
}
|
|
199
|
+
declare function monthlyPartitionName(table: string, year: number, month: number): string;
|
|
200
|
+
interface EnsureMonthlyOptions {
|
|
201
|
+
table: string;
|
|
202
|
+
from: Date;
|
|
203
|
+
to: Date;
|
|
204
|
+
}
|
|
205
|
+
declare function ensureMonthlyPartitions(prisma: PrismaRawClient, opts: EnsureMonthlyOptions): Promise<string[]>;
|
|
206
|
+
interface DropOldOptions {
|
|
207
|
+
table: string;
|
|
208
|
+
beforeDate: Date;
|
|
209
|
+
}
|
|
210
|
+
declare function dropOldPartitions(prisma: PrismaRawClient, opts: DropOldOptions): Promise<string[]>;
|
|
211
|
+
|
|
212
|
+
interface LLMRequest {
|
|
213
|
+
model?: string;
|
|
214
|
+
messages: Array<{
|
|
215
|
+
role: 'system' | 'user' | 'assistant';
|
|
216
|
+
content: string;
|
|
217
|
+
}>;
|
|
218
|
+
maxTokens?: number;
|
|
219
|
+
temperature?: number;
|
|
220
|
+
stream?: boolean;
|
|
221
|
+
timeoutMs?: number;
|
|
222
|
+
}
|
|
223
|
+
interface LLMResponse {
|
|
224
|
+
provider: string;
|
|
225
|
+
content: string;
|
|
226
|
+
inputTokens?: number;
|
|
227
|
+
outputTokens?: number;
|
|
228
|
+
raw?: unknown;
|
|
229
|
+
}
|
|
230
|
+
interface LLMProviderAdapter {
|
|
231
|
+
name: string;
|
|
232
|
+
complete(req: LLMRequest, signal: AbortSignal): Promise<LLMResponse>;
|
|
233
|
+
}
|
|
234
|
+
interface LLMRouterOptions {
|
|
235
|
+
timeoutMs?: number;
|
|
236
|
+
maxAttempts?: number;
|
|
237
|
+
initialDelayMs?: number;
|
|
238
|
+
maxOutputTokensCap?: number;
|
|
239
|
+
}
|
|
240
|
+
declare class LLMRouter {
|
|
241
|
+
private readonly adapters;
|
|
242
|
+
private readonly opts;
|
|
243
|
+
constructor(opts?: LLMRouterOptions);
|
|
244
|
+
register(adapter: LLMProviderAdapter): void;
|
|
245
|
+
private resolveChain;
|
|
246
|
+
complete(req: LLMRequest): Promise<LLMResponse>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
interface InvocationIdentity {
|
|
250
|
+
readonly workspaceId: string;
|
|
251
|
+
readonly actorId: string;
|
|
252
|
+
readonly actorType: 'user' | 'app' | 'service' | 'super_admin';
|
|
253
|
+
readonly onBehalfOf: string | null;
|
|
254
|
+
}
|
|
255
|
+
interface InvocationAttemptInput {
|
|
256
|
+
readonly attemptKey: string;
|
|
257
|
+
readonly operationKey: string;
|
|
258
|
+
readonly productKey: string;
|
|
259
|
+
readonly providerKey: string;
|
|
260
|
+
readonly modelKey: string;
|
|
261
|
+
readonly startedAt: string;
|
|
262
|
+
}
|
|
263
|
+
interface InvocationUsageInput {
|
|
264
|
+
readonly attemptKey: string;
|
|
265
|
+
readonly eventKey: string;
|
|
266
|
+
readonly revision: number;
|
|
267
|
+
readonly predecessorId: string | null;
|
|
268
|
+
readonly outcome: 'succeeded' | 'failed' | 'blocked' | 'timed_out';
|
|
269
|
+
readonly inputTokens: string | null;
|
|
270
|
+
readonly outputTokens: string | null;
|
|
271
|
+
readonly cachedInputTokens: string | null;
|
|
272
|
+
readonly costMicroUsd: null;
|
|
273
|
+
readonly finishedAt: string;
|
|
274
|
+
}
|
|
275
|
+
interface InvocationUsageReceipt extends Omit<InvocationUsageInput, 'attemptKey' | 'costMicroUsd'> {
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly attemptId: string;
|
|
278
|
+
readonly fingerprint: string;
|
|
279
|
+
readonly totalTokens: string | null;
|
|
280
|
+
readonly costMicroUsd: string | null;
|
|
281
|
+
readonly pricingReference: string | null;
|
|
282
|
+
readonly origin: 'CALLER_REPORTED';
|
|
283
|
+
readonly currency: 'USD';
|
|
284
|
+
readonly costKind: 'ESTIMATE';
|
|
285
|
+
readonly createdAt: string;
|
|
286
|
+
}
|
|
287
|
+
interface InvocationAttemptReceipt extends InvocationAttemptInput {
|
|
288
|
+
readonly id: string;
|
|
289
|
+
readonly workspaceId: string;
|
|
290
|
+
readonly createdBy: string;
|
|
291
|
+
readonly origin: 'CALLER_REPORTED';
|
|
292
|
+
readonly fingerprint: string;
|
|
293
|
+
readonly createdAt: string;
|
|
294
|
+
readonly revisions: readonly InvocationUsageReceipt[];
|
|
295
|
+
readonly hasMoreRevisions: boolean;
|
|
296
|
+
}
|
|
297
|
+
type InvocationReceipt = InvocationAttemptReceipt | InvocationUsageReceipt;
|
|
298
|
+
type InvocationIntent = {
|
|
299
|
+
readonly identity: InvocationIdentity;
|
|
300
|
+
readonly key: string;
|
|
301
|
+
} & ({
|
|
302
|
+
readonly kind: 'begin';
|
|
303
|
+
readonly input: InvocationAttemptInput;
|
|
304
|
+
} | {
|
|
305
|
+
readonly kind: 'record';
|
|
306
|
+
readonly input: InvocationUsageInput;
|
|
307
|
+
readonly attempt: InvocationAttemptInput;
|
|
308
|
+
readonly attemptId: string;
|
|
309
|
+
});
|
|
310
|
+
interface InvocationDelivery {
|
|
311
|
+
readonly intent: InvocationIntent;
|
|
312
|
+
readonly version: number;
|
|
313
|
+
readonly state: 'UNSENT' | 'DISPATCHED' | 'UNKNOWN' | 'ACKNOWLEDGED';
|
|
314
|
+
readonly receipt: InvocationReceipt | null;
|
|
315
|
+
readonly observedIds: readonly string[];
|
|
316
|
+
}
|
|
317
|
+
interface InvocationDeliveryStore {
|
|
318
|
+
load(identity: InvocationIdentity, key: string): Promise<InvocationDelivery | null>;
|
|
319
|
+
create(value: InvocationDelivery): Promise<boolean>;
|
|
320
|
+
compareAndSet(previous: InvocationDelivery, next: InvocationDelivery): Promise<boolean>;
|
|
321
|
+
}
|
|
322
|
+
interface InvocationCallerAdmission {
|
|
323
|
+
readonly identity: InvocationIdentity;
|
|
324
|
+
readonly expiresAt: number;
|
|
325
|
+
}
|
|
326
|
+
interface InvocationAccountingOptions {
|
|
327
|
+
readonly store: InvocationDeliveryStore;
|
|
328
|
+
readonly transport: (document: string, variables: Readonly<Record<string, unknown>>) => Promise<unknown>;
|
|
329
|
+
readonly admit: () => Promise<InvocationCallerAdmission | null>;
|
|
330
|
+
readonly now?: () => number;
|
|
331
|
+
}
|
|
332
|
+
type InvocationDeliveryResult = {
|
|
333
|
+
readonly status: 'ACKNOWLEDGED';
|
|
334
|
+
readonly receipt: InvocationReceipt;
|
|
335
|
+
readonly observedIds: readonly string[];
|
|
336
|
+
} | {
|
|
337
|
+
readonly status: 'HOLD';
|
|
338
|
+
readonly reason: 'CONTEXT' | 'STORE' | 'OCCUPIED' | 'UNKNOWN' | 'RECEIPT' | 'HISTORY';
|
|
339
|
+
readonly observedIds: readonly string[];
|
|
340
|
+
readonly knownReceipt?: InvocationReceipt;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
declare function validateInvocationDelivery(value: unknown): InvocationDelivery;
|
|
344
|
+
declare class InvocationAccountingCoordinator {
|
|
345
|
+
private readonly options;
|
|
346
|
+
private readonly now;
|
|
347
|
+
constructor(options: InvocationAccountingOptions);
|
|
348
|
+
private admitted;
|
|
349
|
+
private load;
|
|
350
|
+
private unknown;
|
|
351
|
+
private acknowledge;
|
|
352
|
+
private deliver;
|
|
353
|
+
begin(identity: InvocationIdentity, key: string, input: InvocationAttemptInput): Promise<InvocationDeliveryResult>;
|
|
354
|
+
record(identity: InvocationIdentity, key: string, beginKey: string, input: InvocationUsageInput, predecessorKey?: string | null): Promise<InvocationDeliveryResult>;
|
|
355
|
+
reconcile(identity: InvocationIdentity, key: string): Promise<InvocationDeliveryResult>;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare const PROMPTS_V2_DOCUMENTS: Readonly<{
|
|
359
|
+
begin: "mutation SdkBeginInvocationAttemptV2($input:PromptBeginInvocationAttemptV2Input!){promptBeginInvocationAttemptV2(input:$input){id workspaceId attemptKey operationKey productKey providerKey modelKey startedAt createdBy origin fingerprint createdAt revisions{id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt} hasMoreRevisions}}";
|
|
360
|
+
record: "mutation SdkRecordInvocationUsageV2($input:PromptRecordInvocationUsageV2Input!){promptRecordInvocationUsageV2(input:$input){id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt}}";
|
|
361
|
+
read: "query SdkInvocationAttemptV2($key:String!,$offset:Int){promptInvocationAttemptV2(attemptKey:$key,revisionOffset:$offset){id workspaceId attemptKey operationKey productKey providerKey modelKey startedAt createdBy origin fingerprint createdAt revisions{id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt} hasMoreRevisions}}";
|
|
362
|
+
summary: "query SdkUsageSummaryV2($from:DateTime!,$to:DateTime!,$product:String,$operation:String){promptUsageSummaryV2(from:$from,to:$to,productKey:$product,operationKey:$operation){workspaceId from to scope productKey operationKey origin currency costKind operations attempts pendingAttempts knownAttempts partialAttempts unknownAttempts inputTokens{knownSubtotal knownAttempts missingAttempts} outputTokens{knownSubtotal knownAttempts missingAttempts} totalTokens{knownSubtotal knownAttempts missingAttempts} costMicroUsd{knownSubtotal knownAttempts missingAttempts}}}";
|
|
363
|
+
}>;
|
|
364
|
+
|
|
365
|
+
type UsageIssue = 'INPUT' | 'OUTPUT' | 'CACHE_READ' | 'CACHE_WRITE' | 'CACHE_SUBSET' | 'INPUT_OVERFLOW' | 'CUMULATIVE_REGRESSION';
|
|
366
|
+
interface NormalizedInvocationUsage {
|
|
367
|
+
readonly inputTokens: string | null;
|
|
368
|
+
readonly outputTokens: string | null;
|
|
369
|
+
readonly cachedInputTokens: string | null;
|
|
370
|
+
readonly costMicroUsd: null;
|
|
371
|
+
readonly reportedModel: string | null;
|
|
372
|
+
readonly issues: readonly UsageIssue[];
|
|
373
|
+
}
|
|
374
|
+
interface NormalizedClaudeUsage extends NormalizedInvocationUsage {
|
|
375
|
+
readonly uncachedInputTokens: string | null;
|
|
376
|
+
readonly cacheCreationInputTokens: string | null;
|
|
377
|
+
readonly cacheReadInputTokens: string | null;
|
|
378
|
+
}
|
|
379
|
+
declare function normalizeOpenAIUsage(response: unknown): NormalizedInvocationUsage;
|
|
380
|
+
declare function normalizeClaudeUsage(response: unknown): NormalizedClaudeUsage;
|
|
381
|
+
declare function createClaudeUsageAccumulator(): (snapshot: unknown) => NormalizedClaudeUsage;
|
|
382
|
+
|
|
383
|
+
declare class InvocationAccountingValidationError extends Error {
|
|
384
|
+
constructor();
|
|
385
|
+
}
|
|
386
|
+
declare function validateInvocationIdentity(value: unknown): InvocationIdentity;
|
|
387
|
+
declare function validateInvocationAttemptInput(value: unknown): InvocationAttemptInput;
|
|
388
|
+
declare function validateInvocationUsageInput(value: unknown): InvocationUsageInput;
|
|
389
|
+
declare function validateInvocationUsageReceipt(value: unknown, expected: InvocationUsageInput, attemptId: string): InvocationUsageReceipt;
|
|
390
|
+
declare function validateInvocationAttemptReceipt(value: unknown, expected: InvocationAttemptInput, identity: InvocationIdentity): InvocationAttemptReceipt;
|
|
391
|
+
|
|
392
|
+
interface InvocationSummarySelection {
|
|
393
|
+
readonly workspaceId: string;
|
|
394
|
+
readonly from: string;
|
|
395
|
+
readonly to: string;
|
|
396
|
+
readonly productKey: string | null;
|
|
397
|
+
readonly operationKey: string | null;
|
|
398
|
+
}
|
|
399
|
+
interface InvocationSummaryComponent {
|
|
400
|
+
readonly knownSubtotal: string | null;
|
|
401
|
+
readonly knownAttempts: string;
|
|
402
|
+
readonly missingAttempts: string;
|
|
403
|
+
}
|
|
404
|
+
interface InvocationUsageSummary extends InvocationSummarySelection {
|
|
405
|
+
readonly scope: 'RECORDED_V2_ATTEMPTS';
|
|
406
|
+
readonly origin: 'CALLER_REPORTED';
|
|
407
|
+
readonly currency: 'USD';
|
|
408
|
+
readonly costKind: 'ESTIMATE';
|
|
409
|
+
readonly attempts: string;
|
|
410
|
+
readonly operations: string;
|
|
411
|
+
readonly pendingAttempts: string;
|
|
412
|
+
readonly knownAttempts: string;
|
|
413
|
+
readonly partialAttempts: string;
|
|
414
|
+
readonly unknownAttempts: string;
|
|
415
|
+
readonly inputTokens: InvocationSummaryComponent;
|
|
416
|
+
readonly outputTokens: InvocationSummaryComponent;
|
|
417
|
+
readonly totalTokens: InvocationSummaryComponent;
|
|
418
|
+
readonly costMicroUsd: InvocationSummaryComponent;
|
|
419
|
+
}
|
|
420
|
+
declare function validateInvocationUsageSummary(value: unknown, selection: InvocationSummarySelection): InvocationUsageSummary;
|
|
421
|
+
|
|
422
|
+
type index_BreakerConfig = BreakerConfig;
|
|
423
|
+
type index_BuildConnectionOptions<TItem> = BuildConnectionOptions<TItem>;
|
|
424
|
+
type index_CacheVersionRedis = CacheVersionRedis;
|
|
425
|
+
type index_CircuitBreakerOpenError = CircuitBreakerOpenError;
|
|
426
|
+
declare const index_CircuitBreakerOpenError: typeof CircuitBreakerOpenError;
|
|
427
|
+
type index_ClampLimitOptions = ClampLimitOptions;
|
|
428
|
+
type index_ConnectionEdge<TItem> = ConnectionEdge<TItem>;
|
|
429
|
+
type index_ConnectionResult<TItem> = ConnectionResult<TItem>;
|
|
430
|
+
type index_CreateLeaderLeaseOptions = CreateLeaderLeaseOptions;
|
|
431
|
+
type index_CursorPaginationInput = CursorPaginationInput;
|
|
432
|
+
type index_CursorPayload = CursorPayload;
|
|
433
|
+
type index_CursorPayloadValue = CursorPayloadValue;
|
|
434
|
+
declare const index_DEFAULT_GRAPHQL_PAGE_LIMIT: typeof DEFAULT_GRAPHQL_PAGE_LIMIT;
|
|
435
|
+
type index_DataLoaderLike<K, V> = DataLoaderLike<K, V>;
|
|
436
|
+
type index_DropOldOptions = DropOldOptions;
|
|
437
|
+
type index_EnsureMonthlyOptions = EnsureMonthlyOptions;
|
|
438
|
+
type index_HttpClientConfig = HttpClientConfig;
|
|
439
|
+
type index_HttpClientInit = HttpClientInit;
|
|
440
|
+
type index_InvocationAccountingCoordinator = InvocationAccountingCoordinator;
|
|
441
|
+
declare const index_InvocationAccountingCoordinator: typeof InvocationAccountingCoordinator;
|
|
442
|
+
type index_InvocationAccountingOptions = InvocationAccountingOptions;
|
|
443
|
+
type index_InvocationAccountingValidationError = InvocationAccountingValidationError;
|
|
444
|
+
declare const index_InvocationAccountingValidationError: typeof InvocationAccountingValidationError;
|
|
445
|
+
type index_InvocationAttemptInput = InvocationAttemptInput;
|
|
446
|
+
type index_InvocationAttemptReceipt = InvocationAttemptReceipt;
|
|
447
|
+
type index_InvocationCallerAdmission = InvocationCallerAdmission;
|
|
448
|
+
type index_InvocationDelivery = InvocationDelivery;
|
|
449
|
+
type index_InvocationDeliveryResult = InvocationDeliveryResult;
|
|
450
|
+
type index_InvocationDeliveryStore = InvocationDeliveryStore;
|
|
451
|
+
type index_InvocationIdentity = InvocationIdentity;
|
|
452
|
+
type index_InvocationIntent = InvocationIntent;
|
|
453
|
+
type index_InvocationReceipt = InvocationReceipt;
|
|
454
|
+
type index_InvocationSummaryComponent = InvocationSummaryComponent;
|
|
455
|
+
type index_InvocationSummarySelection = InvocationSummarySelection;
|
|
456
|
+
type index_InvocationUsageInput = InvocationUsageInput;
|
|
457
|
+
type index_InvocationUsageReceipt = InvocationUsageReceipt;
|
|
458
|
+
type index_InvocationUsageSummary = InvocationUsageSummary;
|
|
459
|
+
type index_LLMProviderAdapter = LLMProviderAdapter;
|
|
460
|
+
type index_LLMRequest = LLMRequest;
|
|
461
|
+
type index_LLMResponse = LLMResponse;
|
|
462
|
+
type index_LLMRouter = LLMRouter;
|
|
463
|
+
declare const index_LLMRouter: typeof LLMRouter;
|
|
464
|
+
type index_LLMRouterOptions = LLMRouterOptions;
|
|
465
|
+
type index_LeaderLease = LeaderLease;
|
|
466
|
+
type index_LeaderLockOptions = LeaderLockOptions;
|
|
467
|
+
type index_LeaderLockRedis = LeaderLockRedis;
|
|
468
|
+
type index_LeaderLockResult<T> = LeaderLockResult<T>;
|
|
469
|
+
type index_LoaderBuilder<Ctx, M extends LoaderMap> = LoaderBuilder<Ctx, M>;
|
|
470
|
+
type index_LoaderMap = LoaderMap;
|
|
471
|
+
declare const index_MAX_GRAPHQL_PAGE_LIMIT: typeof MAX_GRAPHQL_PAGE_LIMIT;
|
|
472
|
+
type index_NormalizedClaudeUsage = NormalizedClaudeUsage;
|
|
473
|
+
type index_NormalizedCursorPagination = NormalizedCursorPagination;
|
|
474
|
+
type index_NormalizedInvocationUsage = NormalizedInvocationUsage;
|
|
475
|
+
type index_NormalizedOffsetPagination = NormalizedOffsetPagination;
|
|
476
|
+
type index_OffsetPageResult<TItem> = OffsetPageResult<TItem>;
|
|
477
|
+
type index_OffsetPaginationInput = OffsetPaginationInput;
|
|
478
|
+
declare const index_PROMPTS_V2_DOCUMENTS: typeof PROMPTS_V2_DOCUMENTS;
|
|
479
|
+
type index_PageInfo = PageInfo;
|
|
480
|
+
type index_PaginateInput<TWhere, TOrderBy> = PaginateInput<TWhere, TOrderBy>;
|
|
481
|
+
type index_PaginateResult<TItem> = PaginateResult<TItem>;
|
|
482
|
+
type index_PrismaModelLike<TItem, TWhere, TOrderBy> = PrismaModelLike<TItem, TWhere, TOrderBy>;
|
|
483
|
+
type index_PrismaRawClient = PrismaRawClient;
|
|
484
|
+
type index_RateLimitInput = RateLimitInput;
|
|
485
|
+
type index_RateLimitRedis = RateLimitRedis;
|
|
486
|
+
type index_RateLimitResult = RateLimitResult;
|
|
487
|
+
type index_ReferenceObject = ReferenceObject;
|
|
488
|
+
type index_RetryConfig = RetryConfig;
|
|
489
|
+
type index_UsageIssue = UsageIssue;
|
|
490
|
+
declare const index___resetHttpClientBreakers: typeof __resetHttpClientBreakers;
|
|
491
|
+
declare const index_buildCacheKey: typeof buildCacheKey;
|
|
492
|
+
declare const index_buildConnection: typeof buildConnection;
|
|
493
|
+
declare const index_buildLoaders: typeof buildLoaders;
|
|
494
|
+
declare const index_buildOffsetPage: typeof buildOffsetPage;
|
|
495
|
+
declare const index_clampGraphqlLimit: typeof clampGraphqlLimit;
|
|
496
|
+
declare const index_clampLimit: typeof clampLimit;
|
|
497
|
+
declare const index_clampOffset: typeof clampOffset;
|
|
498
|
+
declare const index_createClaudeUsageAccumulator: typeof createClaudeUsageAccumulator;
|
|
499
|
+
declare const index_createHttpClient: typeof createHttpClient;
|
|
500
|
+
declare const index_createLeaderLease: typeof createLeaderLease;
|
|
501
|
+
declare const index_decodeCursor: typeof decodeCursor;
|
|
502
|
+
declare const index_dropOldPartitions: typeof dropOldPartitions;
|
|
503
|
+
declare const index_encodeCursor: typeof encodeCursor;
|
|
504
|
+
declare const index_ensureMonthlyPartitions: typeof ensureMonthlyPartitions;
|
|
505
|
+
declare const index_getNamespaceVersion: typeof getNamespaceVersion;
|
|
506
|
+
declare const index_httpClient: typeof httpClient;
|
|
507
|
+
declare const index_invalidateNamespace: typeof invalidateNamespace;
|
|
508
|
+
declare const index_monthlyPartitionName: typeof monthlyPartitionName;
|
|
509
|
+
declare const index_normalizeClaudeUsage: typeof normalizeClaudeUsage;
|
|
510
|
+
declare const index_normalizeCursorPagination: typeof normalizeCursorPagination;
|
|
511
|
+
declare const index_normalizeOffsetPagination: typeof normalizeOffsetPagination;
|
|
512
|
+
declare const index_normalizeOpenAIUsage: typeof normalizeOpenAIUsage;
|
|
513
|
+
declare const index_normalizeRedisUrl: typeof normalizeRedisUrl;
|
|
514
|
+
declare const index_paginate: typeof paginate;
|
|
515
|
+
declare const index_rateLimitIncr: typeof rateLimitIncr;
|
|
516
|
+
declare const index_resolveReferenceLoader: typeof resolveReferenceLoader;
|
|
517
|
+
declare const index_toPrismaPage: typeof toPrismaPage;
|
|
518
|
+
declare const index_validateInvocationAttemptInput: typeof validateInvocationAttemptInput;
|
|
519
|
+
declare const index_validateInvocationAttemptReceipt: typeof validateInvocationAttemptReceipt;
|
|
520
|
+
declare const index_validateInvocationDelivery: typeof validateInvocationDelivery;
|
|
521
|
+
declare const index_validateInvocationIdentity: typeof validateInvocationIdentity;
|
|
522
|
+
declare const index_validateInvocationUsageInput: typeof validateInvocationUsageInput;
|
|
523
|
+
declare const index_validateInvocationUsageReceipt: typeof validateInvocationUsageReceipt;
|
|
524
|
+
declare const index_validateInvocationUsageSummary: typeof validateInvocationUsageSummary;
|
|
525
|
+
declare const index_withLeaderLock: typeof withLeaderLock;
|
|
526
|
+
declare namespace index {
|
|
527
|
+
export { type index_BreakerConfig as BreakerConfig, type index_BuildConnectionOptions as BuildConnectionOptions, type index_CacheVersionRedis as CacheVersionRedis, index_CircuitBreakerOpenError as CircuitBreakerOpenError, type index_ClampLimitOptions as ClampLimitOptions, type index_ConnectionEdge as ConnectionEdge, type index_ConnectionResult as ConnectionResult, type index_CreateLeaderLeaseOptions as CreateLeaderLeaseOptions, type index_CursorPaginationInput as CursorPaginationInput, type index_CursorPayload as CursorPayload, type index_CursorPayloadValue as CursorPayloadValue, index_DEFAULT_GRAPHQL_PAGE_LIMIT as DEFAULT_GRAPHQL_PAGE_LIMIT, type index_DataLoaderLike as DataLoaderLike, type index_DropOldOptions as DropOldOptions, type index_EnsureMonthlyOptions as EnsureMonthlyOptions, type index_HttpClientConfig as HttpClientConfig, type index_HttpClientInit as HttpClientInit, index_InvocationAccountingCoordinator as InvocationAccountingCoordinator, type index_InvocationAccountingOptions as InvocationAccountingOptions, index_InvocationAccountingValidationError as InvocationAccountingValidationError, type index_InvocationAttemptInput as InvocationAttemptInput, type index_InvocationAttemptReceipt as InvocationAttemptReceipt, type index_InvocationCallerAdmission as InvocationCallerAdmission, type index_InvocationDelivery as InvocationDelivery, type index_InvocationDeliveryResult as InvocationDeliveryResult, type index_InvocationDeliveryStore as InvocationDeliveryStore, type index_InvocationIdentity as InvocationIdentity, type index_InvocationIntent as InvocationIntent, type index_InvocationReceipt as InvocationReceipt, type index_InvocationSummaryComponent as InvocationSummaryComponent, type index_InvocationSummarySelection as InvocationSummarySelection, type index_InvocationUsageInput as InvocationUsageInput, type index_InvocationUsageReceipt as InvocationUsageReceipt, type index_InvocationUsageSummary as InvocationUsageSummary, type index_LLMProviderAdapter as LLMProviderAdapter, type index_LLMRequest as LLMRequest, type index_LLMResponse as LLMResponse, index_LLMRouter as LLMRouter, type index_LLMRouterOptions as LLMRouterOptions, type index_LeaderLease as LeaderLease, type index_LeaderLockOptions as LeaderLockOptions, type index_LeaderLockRedis as LeaderLockRedis, type index_LeaderLockResult as LeaderLockResult, type index_LoaderBuilder as LoaderBuilder, type index_LoaderMap as LoaderMap, index_MAX_GRAPHQL_PAGE_LIMIT as MAX_GRAPHQL_PAGE_LIMIT, type index_NormalizedClaudeUsage as NormalizedClaudeUsage, type index_NormalizedCursorPagination as NormalizedCursorPagination, type index_NormalizedInvocationUsage as NormalizedInvocationUsage, type index_NormalizedOffsetPagination as NormalizedOffsetPagination, type index_OffsetPageResult as OffsetPageResult, type index_OffsetPaginationInput as OffsetPaginationInput, index_PROMPTS_V2_DOCUMENTS as PROMPTS_V2_DOCUMENTS, type index_PageInfo as PageInfo, type index_PaginateInput as PaginateInput, type index_PaginateResult as PaginateResult, type index_PrismaModelLike as PrismaModelLike, type index_PrismaRawClient as PrismaRawClient, type index_RateLimitInput as RateLimitInput, type index_RateLimitRedis as RateLimitRedis, type index_RateLimitResult as RateLimitResult, type index_ReferenceObject as ReferenceObject, type index_RetryConfig as RetryConfig, type index_UsageIssue as UsageIssue, index___resetHttpClientBreakers as __resetHttpClientBreakers, index_buildCacheKey as buildCacheKey, index_buildConnection as buildConnection, index_buildLoaders as buildLoaders, index_buildOffsetPage as buildOffsetPage, index_clampGraphqlLimit as clampGraphqlLimit, index_clampLimit as clampLimit, index_clampOffset as clampOffset, index_createClaudeUsageAccumulator as createClaudeUsageAccumulator, index_createHttpClient as createHttpClient, index_createLeaderLease as createLeaderLease, index_decodeCursor as decodeCursor, index_dropOldPartitions as dropOldPartitions, index_encodeCursor as encodeCursor, index_ensureMonthlyPartitions as ensureMonthlyPartitions, index_getNamespaceVersion as getNamespaceVersion, index_httpClient as httpClient, index_invalidateNamespace as invalidateNamespace, index_monthlyPartitionName as monthlyPartitionName, index_normalizeClaudeUsage as normalizeClaudeUsage, index_normalizeCursorPagination as normalizeCursorPagination, index_normalizeOffsetPagination as normalizeOffsetPagination, index_normalizeOpenAIUsage as normalizeOpenAIUsage, index_normalizeRedisUrl as normalizeRedisUrl, index_paginate as paginate, index_rateLimitIncr as rateLimitIncr, index_resolveReferenceLoader as resolveReferenceLoader, index_toPrismaPage as toPrismaPage, index_validateInvocationAttemptInput as validateInvocationAttemptInput, index_validateInvocationAttemptReceipt as validateInvocationAttemptReceipt, index_validateInvocationDelivery as validateInvocationDelivery, index_validateInvocationIdentity as validateInvocationIdentity, index_validateInvocationUsageInput as validateInvocationUsageInput, index_validateInvocationUsageReceipt as validateInvocationUsageReceipt, index_validateInvocationUsageSummary as validateInvocationUsageSummary, index_withLeaderLock as withLeaderLock };
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export { PROMPTS_V2_DOCUMENTS as $, type InvocationUsageInput as A, type BreakerConfig as B, type CacheVersionRedis as C, DEFAULT_GRAPHQL_PAGE_LIMIT as D, type EnsureMonthlyOptions as E, type InvocationUsageReceipt as F, type InvocationUsageSummary as G, type HttpClientConfig as H, InvocationAccountingCoordinator as I, type LLMRequest as J, type LLMResponse as K, type LLMProviderAdapter as L, LLMRouter as M, type LLMRouterOptions as N, type LeaderLease as O, type LeaderLockOptions as P, type LeaderLockRedis as Q, type LeaderLockResult as R, type LoaderBuilder as S, type LoaderMap as T, MAX_GRAPHQL_PAGE_LIMIT as U, type NormalizedClaudeUsage as V, type NormalizedCursorPagination as W, type NormalizedInvocationUsage as X, type NormalizedOffsetPagination as Y, type OffsetPageResult as Z, type OffsetPaginationInput as _, type BuildConnectionOptions as a, type PageInfo as a0, type PaginateInput as a1, type PaginateResult as a2, type PrismaModelLike as a3, type PrismaRawClient as a4, type RateLimitInput as a5, type RateLimitRedis as a6, type RateLimitResult as a7, type ReferenceObject as a8, type RetryConfig as a9, rateLimitIncr as aA, resolveReferenceLoader as aB, toPrismaPage as aC, validateInvocationAttemptInput as aD, validateInvocationAttemptReceipt as aE, validateInvocationDelivery as aF, validateInvocationIdentity as aG, validateInvocationUsageInput as aH, validateInvocationUsageReceipt as aI, validateInvocationUsageSummary as aJ, withLeaderLock as aK, type UsageIssue as aa, __resetHttpClientBreakers as ab, buildCacheKey as ac, buildConnection as ad, buildLoaders as ae, buildOffsetPage as af, clampGraphqlLimit as ag, clampLimit as ah, clampOffset as ai, createClaudeUsageAccumulator as aj, createHttpClient as ak, createLeaderLease as al, decodeCursor as am, dropOldPartitions as an, encodeCursor as ao, ensureMonthlyPartitions as ap, getNamespaceVersion as aq, httpClient as ar, invalidateNamespace as as, monthlyPartitionName as at, normalizeClaudeUsage as au, normalizeCursorPagination as av, normalizeOffsetPagination as aw, normalizeOpenAIUsage as ax, normalizeRedisUrl as ay, paginate as az, CircuitBreakerOpenError as b, type ClampLimitOptions as c, type ConnectionEdge as d, type ConnectionResult as e, type CreateLeaderLeaseOptions as f, type CursorPaginationInput as g, type CursorPayload as h, index as i, type CursorPayloadValue as j, type DataLoaderLike as k, type DropOldOptions as l, type HttpClientInit as m, type InvocationAccountingOptions as n, InvocationAccountingValidationError as o, type InvocationAttemptInput as p, type InvocationAttemptReceipt as q, type InvocationCallerAdmission as r, type InvocationDelivery as s, type InvocationDeliveryResult as t, type InvocationDeliveryStore as u, type InvocationIdentity as v, type InvocationIntent as w, type InvocationReceipt as x, type InvocationSummaryComponent as y, type InvocationSummarySelection as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export { i as Crypto } from './index-e_18DzAg.js';
|
|
|
36
36
|
export { i as Gateway } from './index-Dy6neH2G.js';
|
|
37
37
|
export { i as FeatureFlags } from './index-Rc5EphmY.js';
|
|
38
38
|
export { i as Captcha, R as RecaptchaVerifyOptions, a as RecaptchaVerifyResult, b as isCaptchaEnabled, v as verifyCaptcha, c as verifyCaptchaIfEnabled } from './index-B70b5mYS.js';
|
|
39
|
-
export { i as Platform } from './index-
|
|
39
|
+
export { i as Platform } from './index-DfYu1p9e.js';
|
|
40
40
|
export { N as NAME_MAX_LENGTH, a as NAME_MIN_LENGTH, b as NameErrorCode, c as NameValidationResult, U as USERNAME_MAX_LENGTH, d as USERNAME_MIN_LENGTH, e as UserFieldError, f as UserFieldKey, g as UserFieldsValidationResult, h as UsernameErrorCode, i as UsernameValidationResult, V as ValidatedUserFields, j as Validation, l as lengthInCodePoints, v as validateName, k as validateUserFields, m as validateUsername } from './index-B2jIInhp.js';
|
|
41
41
|
export { E as EmitGeneration, P as PRODUCT_RENAMES, a as PRODUCT_RENAME_EMIT, b as PRODUCT_SLUG_ALIASES, i as ProductAlias, c as ProductRename, R as RENAME_CONCERNS, d as RenameConcern, e as billingIdVariants, f as emitBillingId, g as emitName, h as emitProductSlug, j as emitQuotaKey, k as emitRbacResource, l as emitTemplateKey, m as isLegacyName, n as isSameBillingId, o as isSameGraphQLName, p as isSameName, q as isSameProductSlug, r as isSameQuotaKey, s as isSameRbacResource, t as isSameTemplateKey, u as nameVariants, v as normalizeBillingId, w as normalizeGraphQLName, x as normalizeProductSlug, y as normalizeQuotaKey, z as normalizeRbacResource, A as normalizeTemplateKey, B as productSlugVariants, C as quotaKeyVariants, D as rbacResourceVariants, F as readRenamedEnv, G as templateKeyVariants, H as toCurrentName, I as toLegacyName } from './index-BuAj5nXg.js';
|
|
42
42
|
export { C as CircuitBreakerConfig, h as DEFAULT_CIRCUIT_BREAKER_CONFIG, i as DEFAULT_GATEWAY_RETRY_CONFIG, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, f as GatewayRequestHeaders, g as GatewayRetryConfig, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from './layer-GNAVXBMf.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ActivityModule, UsageModule, TrackerModule } from './chunk-NCC5UN3L.js'
|
|
|
4
4
|
export { ActivityModule, TrackerModule, UsageModule } from './chunk-NCC5UN3L.js';
|
|
5
5
|
export { NAME_MAX_LENGTH, NAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, validation_exports as Validation, lengthInCodePoints, validateName, validateUserFields, validateUsername } from './chunk-AHEXIONU.js';
|
|
6
6
|
export { observability_exports as Observability } from './chunk-VAT66FJA.js';
|
|
7
|
-
export { platform_exports as Platform } from './chunk-
|
|
7
|
+
export { platform_exports as Platform } from './chunk-N2UT3ESH.js';
|
|
8
8
|
export { prisma_exports as Prisma } from './chunk-E5HKS7KD.js';
|
|
9
9
|
export { PRODUCT_RENAMES, PRODUCT_RENAME_EMIT, PRODUCT_SLUG_ALIASES, product_alias_exports as ProductAlias, RENAME_CONCERNS, billingIdVariants, emitBillingId, emitName, emitProductSlug, emitQuotaKey, emitRbacResource, emitTemplateKey, isLegacyName, isSameBillingId, isSameGraphQLName, isSameName, isSameProductSlug, isSameQuotaKey, isSameRbacResource, isSameTemplateKey, nameVariants, normalizeBillingId, normalizeGraphQLName, normalizeProductSlug, normalizeQuotaKey, normalizeRbacResource, normalizeTemplateKey, productSlugVariants, quotaKeyVariants, rbacResourceVariants, readRenamedEnv, templateKeyVariants, toCurrentName, toLegacyName } from './chunk-OBBCR6WY.js';
|
|
10
10
|
import { RBACModule } from './chunk-5JNHVKHG.js';
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BreakerConfig, a as BuildConnectionOptions, C as CacheVersionRedis, b as CircuitBreakerOpenError, c as ClampLimitOptions, d as ConnectionEdge, e as ConnectionResult, f as CreateLeaderLeaseOptions, g as CursorPaginationInput, h as CursorPayload, j as CursorPayloadValue, D as DEFAULT_GRAPHQL_PAGE_LIMIT, k as DataLoaderLike, l as DropOldOptions, E as EnsureMonthlyOptions, H as HttpClientConfig, m as HttpClientInit, L as LLMProviderAdapter,
|
|
1
|
+
export { B as BreakerConfig, a as BuildConnectionOptions, C as CacheVersionRedis, b as CircuitBreakerOpenError, c as ClampLimitOptions, d as ConnectionEdge, e as ConnectionResult, f as CreateLeaderLeaseOptions, g as CursorPaginationInput, h as CursorPayload, j as CursorPayloadValue, D as DEFAULT_GRAPHQL_PAGE_LIMIT, k as DataLoaderLike, l as DropOldOptions, E as EnsureMonthlyOptions, H as HttpClientConfig, m as HttpClientInit, I as InvocationAccountingCoordinator, n as InvocationAccountingOptions, o as InvocationAccountingValidationError, p as InvocationAttemptInput, q as InvocationAttemptReceipt, r as InvocationCallerAdmission, s as InvocationDelivery, t as InvocationDeliveryResult, u as InvocationDeliveryStore, v as InvocationIdentity, w as InvocationIntent, x as InvocationReceipt, y as InvocationSummaryComponent, z as InvocationSummarySelection, A as InvocationUsageInput, F as InvocationUsageReceipt, G as InvocationUsageSummary, L as LLMProviderAdapter, J as LLMRequest, K as LLMResponse, M as LLMRouter, N as LLMRouterOptions, O as LeaderLease, P as LeaderLockOptions, Q as LeaderLockRedis, R as LeaderLockResult, S as LoaderBuilder, T as LoaderMap, U as MAX_GRAPHQL_PAGE_LIMIT, V as NormalizedClaudeUsage, W as NormalizedCursorPagination, X as NormalizedInvocationUsage, Y as NormalizedOffsetPagination, Z as OffsetPageResult, _ as OffsetPaginationInput, $ as PROMPTS_V2_DOCUMENTS, a0 as PageInfo, a1 as PaginateInput, a2 as PaginateResult, a3 as PrismaModelLike, a4 as PrismaRawClient, a5 as RateLimitInput, a6 as RateLimitRedis, a7 as RateLimitResult, a8 as ReferenceObject, a9 as RetryConfig, aa as UsageIssue, ab as __resetHttpClientBreakers, ac as buildCacheKey, ad as buildConnection, ae as buildLoaders, af as buildOffsetPage, ag as clampGraphqlLimit, ah as clampLimit, ai as clampOffset, aj as createClaudeUsageAccumulator, ak as createHttpClient, al as createLeaderLease, am as decodeCursor, an as dropOldPartitions, ao as encodeCursor, ap as ensureMonthlyPartitions, aq as getNamespaceVersion, ar as httpClient, as as invalidateNamespace, at as monthlyPartitionName, au as normalizeClaudeUsage, av as normalizeCursorPagination, aw as normalizeOffsetPagination, ax as normalizeOpenAIUsage, ay as normalizeRedisUrl, az as paginate, aA as rateLimitIncr, aB as resolveReferenceLoader, aC as toPrismaPage, aD as validateInvocationAttemptInput, aE as validateInvocationAttemptReceipt, aF as validateInvocationDelivery, aG as validateInvocationIdentity, aH as validateInvocationUsageInput, aI as validateInvocationUsageReceipt, aJ as validateInvocationUsageSummary, aK as withLeaderLock } from '../index-DfYu1p9e.js';
|
package/dist/platform/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { CircuitBreakerOpenError, DEFAULT_GRAPHQL_PAGE_LIMIT, LLMRouter, MAX_GRAPHQL_PAGE_LIMIT, __resetHttpClientBreakers, buildCacheKey, buildConnection, buildLoaders, buildOffsetPage, clampGraphqlLimit, clampLimit, clampOffset, createHttpClient, createLeaderLease, decodeCursor, dropOldPartitions, encodeCursor, ensureMonthlyPartitions, getNamespaceVersion, httpClient, invalidateNamespace, monthlyPartitionName, normalizeCursorPagination, normalizeOffsetPagination, normalizeRedisUrl, paginate, rateLimitIncr, resolveReferenceLoader, toPrismaPage, withLeaderLock } from '../chunk-
|
|
1
|
+
export { CircuitBreakerOpenError, DEFAULT_GRAPHQL_PAGE_LIMIT, InvocationAccountingCoordinator, InvocationAccountingValidationError, LLMRouter, MAX_GRAPHQL_PAGE_LIMIT, PROMPTS_V2_DOCUMENTS, __resetHttpClientBreakers, buildCacheKey, buildConnection, buildLoaders, buildOffsetPage, clampGraphqlLimit, clampLimit, clampOffset, createClaudeUsageAccumulator, createHttpClient, createLeaderLease, decodeCursor, dropOldPartitions, encodeCursor, ensureMonthlyPartitions, getNamespaceVersion, httpClient, invalidateNamespace, monthlyPartitionName, normalizeClaudeUsage, normalizeCursorPagination, normalizeOffsetPagination, normalizeOpenAIUsage, normalizeRedisUrl, paginate, rateLimitIncr, resolveReferenceLoader, toPrismaPage, validateInvocationAttemptInput, validateInvocationAttemptReceipt, validateInvocationDelivery, validateInvocationIdentity, validateInvocationUsageInput, validateInvocationUsageReceipt, validateInvocationUsageSummary, withLeaderLock } from '../chunk-N2UT3ESH.js';
|
|
2
|
+
import '../chunk-OBBCR6WY.js';
|
|
2
3
|
import '../chunk-RU266375.js';
|
|
3
4
|
import '../chunk-XE4OXN2W.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/be-sdk",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1017.1",
|
|
4
4
|
"description": "Backend SDK for Burdenoff products providing unified access to notifications, RBAC, activity tracking, usage monitoring, and more",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|