briefcase-wasm 2.1.18 → 2.1.20
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/briefcase_wasm.d.ts +446 -1
- package/briefcase_wasm.js +1798 -77
- package/briefcase_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/briefcase_wasm.d.ts
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Authenticated client for the Briefcase AI platform (WASM, pre-validated).
|
|
6
|
+
*
|
|
7
|
+
* Constructed from a server validation response since WASM cannot make
|
|
8
|
+
* HTTP calls directly.
|
|
9
|
+
*/
|
|
10
|
+
export class JsBriefcaseClient {
|
|
11
|
+
free(): void;
|
|
12
|
+
[Symbol.dispose](): void;
|
|
13
|
+
/**
|
|
14
|
+
* The authenticated client ID.
|
|
15
|
+
*/
|
|
16
|
+
clientId(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Create a client from a full validation response JSON.
|
|
19
|
+
*
|
|
20
|
+
* Expected shape:
|
|
21
|
+
* ```json
|
|
22
|
+
* {
|
|
23
|
+
* "valid": true,
|
|
24
|
+
* "client": {
|
|
25
|
+
* "client_id": "acme",
|
|
26
|
+
* "permissions": ["read", "write"],
|
|
27
|
+
* "rate_limit_rps": 100
|
|
28
|
+
* },
|
|
29
|
+
* "expires_at": "..."
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
static fromValidationResponse(json: string): JsBriefcaseClient;
|
|
34
|
+
/**
|
|
35
|
+
* Get the list of granted permissions.
|
|
36
|
+
*/
|
|
37
|
+
getPermissions(): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Check whether this client has a specific permission.
|
|
40
|
+
*/
|
|
41
|
+
hasPermission(permission: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Create a client from explicit parameters.
|
|
44
|
+
*/
|
|
45
|
+
constructor(client_id: string, permissions_json: string);
|
|
46
|
+
/**
|
|
47
|
+
* Get the rate limit (requests per second), if set.
|
|
48
|
+
*/
|
|
49
|
+
rateLimitRps(): number | undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
4
52
|
/**
|
|
5
53
|
* JavaScript-friendly wrapper for DecisionSnapshot
|
|
6
54
|
*
|
|
@@ -44,6 +92,264 @@ export class JsMemoryStorage {
|
|
|
44
92
|
save_decision(decision: JsDecisionSnapshot): string;
|
|
45
93
|
}
|
|
46
94
|
|
|
95
|
+
/**
|
|
96
|
+
* WASM wrapper for BudgetStatus
|
|
97
|
+
*/
|
|
98
|
+
export class WasmBudgetStatus {
|
|
99
|
+
private constructor();
|
|
100
|
+
free(): void;
|
|
101
|
+
[Symbol.dispose](): void;
|
|
102
|
+
toObject(): any;
|
|
103
|
+
readonly budget_usd: number;
|
|
104
|
+
readonly percent_used: number;
|
|
105
|
+
readonly remaining_usd: number;
|
|
106
|
+
readonly spent_usd: number;
|
|
107
|
+
readonly status: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* WASM wrapper for CostCalculator
|
|
112
|
+
*/
|
|
113
|
+
export class WasmCostCalculator {
|
|
114
|
+
free(): void;
|
|
115
|
+
[Symbol.dispose](): void;
|
|
116
|
+
addModel(model_pricing: WasmModelPricing): void;
|
|
117
|
+
checkBudget(spent: number, budget: number): WasmBudgetStatus;
|
|
118
|
+
compareModels(model_a: string, model_b: string, input_tokens: number, output_tokens: number): WasmModelComparison;
|
|
119
|
+
estimateCost(model_name: string, input_tokens: number, output_tokens: number): WasmCostEstimate;
|
|
120
|
+
estimateCostFromText(model_name: string, input_text: string, estimated_output_tokens: number): WasmCostEstimate;
|
|
121
|
+
getAllModels(): any;
|
|
122
|
+
getCheapestModel(min_context_window: number): WasmModelPricing | undefined;
|
|
123
|
+
getModelsByProvider(provider: string): any;
|
|
124
|
+
getModelsUnderCost(max_cost_per_1k: number): any;
|
|
125
|
+
constructor();
|
|
126
|
+
projectMonthlyCost(model_name: string, daily_input_tokens: number, daily_output_tokens: number, days_per_month: number): WasmCostProjection;
|
|
127
|
+
removeModel(model_name: string): WasmModelPricing | undefined;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* WASM wrapper for CostEstimate
|
|
132
|
+
*/
|
|
133
|
+
export class WasmCostEstimate {
|
|
134
|
+
private constructor();
|
|
135
|
+
free(): void;
|
|
136
|
+
[Symbol.dispose](): void;
|
|
137
|
+
toObject(): any;
|
|
138
|
+
readonly currency: string;
|
|
139
|
+
readonly input_cost: number;
|
|
140
|
+
readonly input_tokens: number;
|
|
141
|
+
readonly model_name: string;
|
|
142
|
+
readonly output_cost: number;
|
|
143
|
+
readonly output_tokens: number;
|
|
144
|
+
readonly total_cost: number;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* WASM wrapper for CostProjection
|
|
149
|
+
*/
|
|
150
|
+
export class WasmCostProjection {
|
|
151
|
+
private constructor();
|
|
152
|
+
free(): void;
|
|
153
|
+
[Symbol.dispose](): void;
|
|
154
|
+
toObject(): any;
|
|
155
|
+
readonly annual_cost: number;
|
|
156
|
+
readonly currency: string;
|
|
157
|
+
readonly daily_cost: number;
|
|
158
|
+
readonly model_name: string;
|
|
159
|
+
readonly monthly_cost: number;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* WASM wrapper for DecisionSnapshot
|
|
164
|
+
*/
|
|
165
|
+
export class WasmDecisionSnapshot {
|
|
166
|
+
free(): void;
|
|
167
|
+
[Symbol.dispose](): void;
|
|
168
|
+
addInput(input: WasmInput): void;
|
|
169
|
+
addOutput(output: WasmOutput): void;
|
|
170
|
+
addTag(key: string, value: string): void;
|
|
171
|
+
constructor(function_name: string);
|
|
172
|
+
toObject(): any;
|
|
173
|
+
withExecutionTime(time_ms: number): void;
|
|
174
|
+
withModelParameters(params: WasmModelParameters): void;
|
|
175
|
+
withModule(module_name: string): void;
|
|
176
|
+
readonly execution_time_ms: number | undefined;
|
|
177
|
+
readonly function_name: string;
|
|
178
|
+
readonly module_name: string | undefined;
|
|
179
|
+
readonly tags: any;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* WASM wrapper for DriftCalculator
|
|
184
|
+
*/
|
|
185
|
+
export class WasmDriftCalculator {
|
|
186
|
+
free(): void;
|
|
187
|
+
[Symbol.dispose](): void;
|
|
188
|
+
calculateDrift(outputs: any): WasmDriftMetrics;
|
|
189
|
+
calculateDriftFromOutputs(outputs: any): WasmDriftMetrics;
|
|
190
|
+
getStatus(metrics: WasmDriftMetrics): string;
|
|
191
|
+
constructor();
|
|
192
|
+
static withThreshold(threshold: number): WasmDriftCalculator;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* WASM wrapper for DriftMetrics
|
|
197
|
+
*/
|
|
198
|
+
export class WasmDriftMetrics {
|
|
199
|
+
private constructor();
|
|
200
|
+
free(): void;
|
|
201
|
+
[Symbol.dispose](): void;
|
|
202
|
+
toObject(): any;
|
|
203
|
+
readonly agreement_rate: number;
|
|
204
|
+
readonly consensus_confidence: string;
|
|
205
|
+
readonly consensus_output: string | undefined;
|
|
206
|
+
readonly consistency_score: number;
|
|
207
|
+
readonly drift_score: number;
|
|
208
|
+
readonly outliers: any;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* WASM wrapper for Input
|
|
213
|
+
*/
|
|
214
|
+
export class WasmInput {
|
|
215
|
+
free(): void;
|
|
216
|
+
[Symbol.dispose](): void;
|
|
217
|
+
constructor(name: string, value: any, data_type: string);
|
|
218
|
+
toObject(): any;
|
|
219
|
+
readonly data_type: string;
|
|
220
|
+
readonly name: string;
|
|
221
|
+
readonly value: any;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* WASM wrapper for ModelComparison
|
|
226
|
+
*/
|
|
227
|
+
export class WasmModelComparison {
|
|
228
|
+
private constructor();
|
|
229
|
+
free(): void;
|
|
230
|
+
[Symbol.dispose](): void;
|
|
231
|
+
toObject(): any;
|
|
232
|
+
readonly cheaper_model: string;
|
|
233
|
+
readonly model_a: WasmCostEstimate;
|
|
234
|
+
readonly model_b: WasmCostEstimate;
|
|
235
|
+
readonly percent_difference: number;
|
|
236
|
+
readonly savings: number;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* WASM wrapper for ModelParameters
|
|
241
|
+
*/
|
|
242
|
+
export class WasmModelParameters {
|
|
243
|
+
free(): void;
|
|
244
|
+
[Symbol.dispose](): void;
|
|
245
|
+
constructor(model_name: string);
|
|
246
|
+
withParameter(key: string, value: any): void;
|
|
247
|
+
withProvider(provider: string): void;
|
|
248
|
+
readonly model_name: string;
|
|
249
|
+
readonly parameters: any;
|
|
250
|
+
readonly provider: string | undefined;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* WASM wrapper for ModelPricing
|
|
255
|
+
*/
|
|
256
|
+
export class WasmModelPricing {
|
|
257
|
+
free(): void;
|
|
258
|
+
[Symbol.dispose](): void;
|
|
259
|
+
constructor(model_name: string, provider: string, input_cost: number, output_cost: number, context_window: number, max_output_tokens?: number | null);
|
|
260
|
+
toObject(): any;
|
|
261
|
+
readonly context_window: number;
|
|
262
|
+
readonly input_cost_per_1k_tokens: number;
|
|
263
|
+
readonly max_output_tokens: number | undefined;
|
|
264
|
+
readonly model_name: string;
|
|
265
|
+
readonly output_cost_per_1k_tokens: number;
|
|
266
|
+
readonly provider: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* WASM wrapper for Output
|
|
271
|
+
*/
|
|
272
|
+
export class WasmOutput {
|
|
273
|
+
free(): void;
|
|
274
|
+
[Symbol.dispose](): void;
|
|
275
|
+
constructor(name: string, value: any, data_type: string);
|
|
276
|
+
toObject(): any;
|
|
277
|
+
withConfidence(confidence: number): void;
|
|
278
|
+
readonly confidence: number | undefined;
|
|
279
|
+
readonly data_type: string;
|
|
280
|
+
readonly name: string;
|
|
281
|
+
readonly value: any;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* WASM wrapper for PiiAnalysis
|
|
286
|
+
*/
|
|
287
|
+
export class WasmPiiAnalysis {
|
|
288
|
+
private constructor();
|
|
289
|
+
free(): void;
|
|
290
|
+
[Symbol.dispose](): void;
|
|
291
|
+
toObject(): any;
|
|
292
|
+
readonly has_pii: boolean;
|
|
293
|
+
readonly matches: any;
|
|
294
|
+
readonly total_matches: number;
|
|
295
|
+
readonly type_counts: any;
|
|
296
|
+
readonly unique_types: number;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* WASM wrapper for SanitizationJsonResult
|
|
301
|
+
*/
|
|
302
|
+
export class WasmSanitizationJsonResult {
|
|
303
|
+
private constructor();
|
|
304
|
+
free(): void;
|
|
305
|
+
[Symbol.dispose](): void;
|
|
306
|
+
toObject(): any;
|
|
307
|
+
readonly redactions: any;
|
|
308
|
+
readonly sanitized: any;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* WASM wrapper for SanitizationResult
|
|
313
|
+
*/
|
|
314
|
+
export class WasmSanitizationResult {
|
|
315
|
+
private constructor();
|
|
316
|
+
free(): void;
|
|
317
|
+
[Symbol.dispose](): void;
|
|
318
|
+
toObject(): any;
|
|
319
|
+
readonly redactions: any;
|
|
320
|
+
readonly sanitized: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* WASM wrapper for Sanitizer
|
|
325
|
+
*/
|
|
326
|
+
export class WasmSanitizer {
|
|
327
|
+
free(): void;
|
|
328
|
+
[Symbol.dispose](): void;
|
|
329
|
+
addPattern(name: string, pattern: string): void;
|
|
330
|
+
analyze(text: string): WasmPiiAnalysis;
|
|
331
|
+
containsPii(text: string): any;
|
|
332
|
+
static disabled(): WasmSanitizer;
|
|
333
|
+
constructor();
|
|
334
|
+
removePattern(pii_type: string): boolean;
|
|
335
|
+
sanitize(text: string): WasmSanitizationResult;
|
|
336
|
+
sanitizeJson(value: any): WasmSanitizationJsonResult;
|
|
337
|
+
setEnabled(enabled: boolean): void;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* WASM wrapper for Snapshot
|
|
342
|
+
*/
|
|
343
|
+
export class WasmSnapshot {
|
|
344
|
+
free(): void;
|
|
345
|
+
[Symbol.dispose](): void;
|
|
346
|
+
addDecision(decision: WasmDecisionSnapshot): void;
|
|
347
|
+
constructor(snapshot_type: string);
|
|
348
|
+
toObject(): any;
|
|
349
|
+
readonly decision_count: number;
|
|
350
|
+
readonly snapshot_type: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
47
353
|
/**
|
|
48
354
|
* Initialize the Briefcase AI WASM module
|
|
49
355
|
*
|
|
@@ -77,6 +383,130 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
77
383
|
|
|
78
384
|
export interface InitOutput {
|
|
79
385
|
readonly memory: WebAssembly.Memory;
|
|
386
|
+
readonly __wbg_wasmbudgetstatus_free: (a: number, b: number) => void;
|
|
387
|
+
readonly __wbg_wasmcostcalculator_free: (a: number, b: number) => void;
|
|
388
|
+
readonly __wbg_wasmcostestimate_free: (a: number, b: number) => void;
|
|
389
|
+
readonly __wbg_wasmcostprojection_free: (a: number, b: number) => void;
|
|
390
|
+
readonly __wbg_wasmmodelcomparison_free: (a: number, b: number) => void;
|
|
391
|
+
readonly __wbg_wasmmodelpricing_free: (a: number, b: number) => void;
|
|
392
|
+
readonly wasmbudgetstatus_budget_usd: (a: number) => number;
|
|
393
|
+
readonly wasmbudgetstatus_percent_used: (a: number) => number;
|
|
394
|
+
readonly wasmbudgetstatus_remaining_usd: (a: number) => number;
|
|
395
|
+
readonly wasmbudgetstatus_spent_usd: (a: number) => number;
|
|
396
|
+
readonly wasmbudgetstatus_status: (a: number) => [number, number];
|
|
397
|
+
readonly wasmbudgetstatus_toObject: (a: number) => [number, number, number];
|
|
398
|
+
readonly wasmcostcalculator_addModel: (a: number, b: number) => void;
|
|
399
|
+
readonly wasmcostcalculator_checkBudget: (a: number, b: number, c: number) => number;
|
|
400
|
+
readonly wasmcostcalculator_compareModels: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
401
|
+
readonly wasmcostcalculator_estimateCost: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
402
|
+
readonly wasmcostcalculator_estimateCostFromText: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
403
|
+
readonly wasmcostcalculator_getAllModels: (a: number) => [number, number, number];
|
|
404
|
+
readonly wasmcostcalculator_getCheapestModel: (a: number, b: number) => number;
|
|
405
|
+
readonly wasmcostcalculator_getModelsByProvider: (a: number, b: number, c: number) => [number, number, number];
|
|
406
|
+
readonly wasmcostcalculator_getModelsUnderCost: (a: number, b: number) => [number, number, number];
|
|
407
|
+
readonly wasmcostcalculator_new: () => number;
|
|
408
|
+
readonly wasmcostcalculator_projectMonthlyCost: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
409
|
+
readonly wasmcostcalculator_removeModel: (a: number, b: number, c: number) => number;
|
|
410
|
+
readonly wasmcostestimate_currency: (a: number) => [number, number];
|
|
411
|
+
readonly wasmcostestimate_input_tokens: (a: number) => number;
|
|
412
|
+
readonly wasmcostestimate_model_name: (a: number) => [number, number];
|
|
413
|
+
readonly wasmcostestimate_output_tokens: (a: number) => number;
|
|
414
|
+
readonly wasmcostestimate_toObject: (a: number) => [number, number, number];
|
|
415
|
+
readonly wasmcostprojection_currency: (a: number) => [number, number];
|
|
416
|
+
readonly wasmcostprojection_model_name: (a: number) => [number, number];
|
|
417
|
+
readonly wasmcostprojection_toObject: (a: number) => [number, number, number];
|
|
418
|
+
readonly wasmmodelcomparison_cheaper_model: (a: number) => [number, number];
|
|
419
|
+
readonly wasmmodelcomparison_model_a: (a: number) => number;
|
|
420
|
+
readonly wasmmodelcomparison_model_b: (a: number) => number;
|
|
421
|
+
readonly wasmmodelcomparison_toObject: (a: number) => [number, number, number];
|
|
422
|
+
readonly wasmmodelpricing_context_window: (a: number) => number;
|
|
423
|
+
readonly wasmmodelpricing_max_output_tokens: (a: number) => number;
|
|
424
|
+
readonly wasmmodelpricing_model_name: (a: number) => [number, number];
|
|
425
|
+
readonly wasmmodelpricing_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
426
|
+
readonly wasmmodelpricing_provider: (a: number) => [number, number];
|
|
427
|
+
readonly wasmmodelpricing_toObject: (a: number) => [number, number, number];
|
|
428
|
+
readonly wasmcostestimate_input_cost: (a: number) => number;
|
|
429
|
+
readonly wasmcostestimate_output_cost: (a: number) => number;
|
|
430
|
+
readonly wasmcostestimate_total_cost: (a: number) => number;
|
|
431
|
+
readonly wasmcostprojection_annual_cost: (a: number) => number;
|
|
432
|
+
readonly wasmcostprojection_daily_cost: (a: number) => number;
|
|
433
|
+
readonly wasmcostprojection_monthly_cost: (a: number) => number;
|
|
434
|
+
readonly wasmmodelcomparison_percent_difference: (a: number) => number;
|
|
435
|
+
readonly wasmmodelcomparison_savings: (a: number) => number;
|
|
436
|
+
readonly wasmmodelpricing_input_cost_per_1k_tokens: (a: number) => number;
|
|
437
|
+
readonly wasmmodelpricing_output_cost_per_1k_tokens: (a: number) => number;
|
|
438
|
+
readonly __wbg_wasmdecisionsnapshot_free: (a: number, b: number) => void;
|
|
439
|
+
readonly __wbg_wasminput_free: (a: number, b: number) => void;
|
|
440
|
+
readonly __wbg_wasmmodelparameters_free: (a: number, b: number) => void;
|
|
441
|
+
readonly __wbg_wasmoutput_free: (a: number, b: number) => void;
|
|
442
|
+
readonly __wbg_wasmsnapshot_free: (a: number, b: number) => void;
|
|
443
|
+
readonly wasmdecisionsnapshot_addInput: (a: number, b: number) => void;
|
|
444
|
+
readonly wasmdecisionsnapshot_addOutput: (a: number, b: number) => void;
|
|
445
|
+
readonly wasmdecisionsnapshot_addTag: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
446
|
+
readonly wasmdecisionsnapshot_execution_time_ms: (a: number) => [number, number];
|
|
447
|
+
readonly wasmdecisionsnapshot_function_name: (a: number) => [number, number];
|
|
448
|
+
readonly wasmdecisionsnapshot_module_name: (a: number) => [number, number];
|
|
449
|
+
readonly wasmdecisionsnapshot_new: (a: number, b: number) => number;
|
|
450
|
+
readonly wasmdecisionsnapshot_tags: (a: number) => [number, number, number];
|
|
451
|
+
readonly wasmdecisionsnapshot_toObject: (a: number) => [number, number, number];
|
|
452
|
+
readonly wasmdecisionsnapshot_withExecutionTime: (a: number, b: number) => void;
|
|
453
|
+
readonly wasmdecisionsnapshot_withModelParameters: (a: number, b: number) => void;
|
|
454
|
+
readonly wasmdecisionsnapshot_withModule: (a: number, b: number, c: number) => void;
|
|
455
|
+
readonly wasminput_data_type: (a: number) => [number, number];
|
|
456
|
+
readonly wasminput_name: (a: number) => [number, number];
|
|
457
|
+
readonly wasminput_new: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
|
|
458
|
+
readonly wasminput_toObject: (a: number) => [number, number, number];
|
|
459
|
+
readonly wasminput_value: (a: number) => [number, number, number];
|
|
460
|
+
readonly wasmmodelparameters_model_name: (a: number) => [number, number];
|
|
461
|
+
readonly wasmmodelparameters_new: (a: number, b: number) => number;
|
|
462
|
+
readonly wasmmodelparameters_parameters: (a: number) => [number, number, number];
|
|
463
|
+
readonly wasmmodelparameters_provider: (a: number) => [number, number];
|
|
464
|
+
readonly wasmmodelparameters_withParameter: (a: number, b: number, c: number, d: any) => [number, number];
|
|
465
|
+
readonly wasmmodelparameters_withProvider: (a: number, b: number, c: number) => void;
|
|
466
|
+
readonly wasmoutput_confidence: (a: number) => [number, number];
|
|
467
|
+
readonly wasmoutput_data_type: (a: number) => [number, number];
|
|
468
|
+
readonly wasmoutput_name: (a: number) => [number, number];
|
|
469
|
+
readonly wasmoutput_new: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
|
|
470
|
+
readonly wasmoutput_toObject: (a: number) => [number, number, number];
|
|
471
|
+
readonly wasmoutput_value: (a: number) => [number, number, number];
|
|
472
|
+
readonly wasmoutput_withConfidence: (a: number, b: number) => void;
|
|
473
|
+
readonly wasmsnapshot_addDecision: (a: number, b: number) => void;
|
|
474
|
+
readonly wasmsnapshot_decision_count: (a: number) => number;
|
|
475
|
+
readonly wasmsnapshot_new: (a: number, b: number) => [number, number, number];
|
|
476
|
+
readonly wasmsnapshot_snapshot_type: (a: number) => [number, number];
|
|
477
|
+
readonly wasmsnapshot_toObject: (a: number) => [number, number, number];
|
|
478
|
+
readonly __wbg_wasmpiianalysis_free: (a: number, b: number) => void;
|
|
479
|
+
readonly __wbg_wasmsanitizationjsonresult_free: (a: number, b: number) => void;
|
|
480
|
+
readonly __wbg_wasmsanitizationresult_free: (a: number, b: number) => void;
|
|
481
|
+
readonly __wbg_wasmsanitizer_free: (a: number, b: number) => void;
|
|
482
|
+
readonly wasmpiianalysis_has_pii: (a: number) => number;
|
|
483
|
+
readonly wasmpiianalysis_matches: (a: number) => [number, number, number];
|
|
484
|
+
readonly wasmpiianalysis_toObject: (a: number) => [number, number, number];
|
|
485
|
+
readonly wasmpiianalysis_total_matches: (a: number) => number;
|
|
486
|
+
readonly wasmpiianalysis_type_counts: (a: number) => [number, number, number];
|
|
487
|
+
readonly wasmpiianalysis_unique_types: (a: number) => number;
|
|
488
|
+
readonly wasmsanitizationjsonresult_redactions: (a: number) => [number, number, number];
|
|
489
|
+
readonly wasmsanitizationjsonresult_sanitized: (a: number) => [number, number, number];
|
|
490
|
+
readonly wasmsanitizationjsonresult_toObject: (a: number) => [number, number, number];
|
|
491
|
+
readonly wasmsanitizationresult_redactions: (a: number) => [number, number, number];
|
|
492
|
+
readonly wasmsanitizationresult_sanitized: (a: number) => [number, number];
|
|
493
|
+
readonly wasmsanitizationresult_toObject: (a: number) => [number, number, number];
|
|
494
|
+
readonly wasmsanitizer_addPattern: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
495
|
+
readonly wasmsanitizer_analyze: (a: number, b: number, c: number) => number;
|
|
496
|
+
readonly wasmsanitizer_containsPii: (a: number, b: number, c: number) => [number, number, number];
|
|
497
|
+
readonly wasmsanitizer_disabled: () => number;
|
|
498
|
+
readonly wasmsanitizer_new: () => number;
|
|
499
|
+
readonly wasmsanitizer_removePattern: (a: number, b: number, c: number) => number;
|
|
500
|
+
readonly wasmsanitizer_sanitize: (a: number, b: number, c: number) => number;
|
|
501
|
+
readonly wasmsanitizer_sanitizeJson: (a: number, b: any) => [number, number, number];
|
|
502
|
+
readonly wasmsanitizer_setEnabled: (a: number, b: number) => void;
|
|
503
|
+
readonly __wbg_jsbriefcaseclient_free: (a: number, b: number) => void;
|
|
504
|
+
readonly jsbriefcaseclient_clientId: (a: number) => [number, number];
|
|
505
|
+
readonly jsbriefcaseclient_fromValidationResponse: (a: number, b: number) => [number, number, number];
|
|
506
|
+
readonly jsbriefcaseclient_getPermissions: (a: number) => [number, number];
|
|
507
|
+
readonly jsbriefcaseclient_hasPermission: (a: number, b: number, c: number) => number;
|
|
508
|
+
readonly jsbriefcaseclient_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
509
|
+
readonly jsbriefcaseclient_rateLimitRps: (a: number) => number;
|
|
80
510
|
readonly __wbg_jsdecisionsnapshot_free: (a: number, b: number) => void;
|
|
81
511
|
readonly __wbg_jsmemorystorage_free: (a: number, b: number) => void;
|
|
82
512
|
readonly init: () => void;
|
|
@@ -90,9 +520,23 @@ export interface InitOutput {
|
|
|
90
520
|
readonly jsmemorystorage_load_decision: (a: number, b: number, c: number) => [number, number, number];
|
|
91
521
|
readonly jsmemorystorage_new: () => number;
|
|
92
522
|
readonly jsmemorystorage_save_decision: (a: number, b: number) => [number, number];
|
|
93
|
-
readonly main: () => void;
|
|
94
523
|
readonly test_functionality: () => [number, number, number];
|
|
95
524
|
readonly version: () => [number, number];
|
|
525
|
+
readonly main: () => void;
|
|
526
|
+
readonly __wbg_wasmdriftcalculator_free: (a: number, b: number) => void;
|
|
527
|
+
readonly __wbg_wasmdriftmetrics_free: (a: number, b: number) => void;
|
|
528
|
+
readonly wasmdriftcalculator_calculateDrift: (a: number, b: any) => [number, number, number];
|
|
529
|
+
readonly wasmdriftcalculator_calculateDriftFromOutputs: (a: number, b: any) => [number, number, number];
|
|
530
|
+
readonly wasmdriftcalculator_getStatus: (a: number, b: number) => [number, number];
|
|
531
|
+
readonly wasmdriftcalculator_new: () => number;
|
|
532
|
+
readonly wasmdriftcalculator_withThreshold: (a: number) => number;
|
|
533
|
+
readonly wasmdriftmetrics_agreement_rate: (a: number) => number;
|
|
534
|
+
readonly wasmdriftmetrics_consensus_confidence: (a: number) => [number, number];
|
|
535
|
+
readonly wasmdriftmetrics_consensus_output: (a: number) => [number, number];
|
|
536
|
+
readonly wasmdriftmetrics_consistency_score: (a: number) => number;
|
|
537
|
+
readonly wasmdriftmetrics_drift_score: (a: number) => number;
|
|
538
|
+
readonly wasmdriftmetrics_outliers: (a: number) => [number, number, number];
|
|
539
|
+
readonly wasmdriftmetrics_toObject: (a: number) => [number, number, number];
|
|
96
540
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
97
541
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
98
542
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -100,6 +544,7 @@ export interface InitOutput {
|
|
|
100
544
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
101
545
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
102
546
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
547
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
103
548
|
readonly __wbindgen_start: () => void;
|
|
104
549
|
}
|
|
105
550
|
|