@mycadet/plugin-api 0.12.7 → 0.12.9-dev.202610131757.9cfb396
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/index.d.ts +68 -89
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1344,15 +1344,15 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1344
1344
|
}>>;
|
|
1345
1345
|
providers: z.ZodDefault<z.ZodObject<{
|
|
1346
1346
|
elevenlabs: z.ZodDefault<z.ZodObject<{
|
|
1347
|
-
voiceId: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
1347
|
+
voiceId: z.ZodPipe<z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, z.ZodString>;
|
|
1348
1348
|
voiceModelId: z.ZodDefault<z.ZodString>;
|
|
1349
1349
|
speed: z.ZodDefault<z.ZodNumber>;
|
|
1350
1350
|
stability: z.ZodDefault<z.ZodNumber>;
|
|
1351
1351
|
similarityBoost: z.ZodDefault<z.ZodNumber>;
|
|
1352
1352
|
conversationTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1353
|
-
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1353
|
+
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1354
1354
|
[k: string]: string;
|
|
1355
|
-
}, Record<string, string
|
|
1355
|
+
}, Record<string, string>>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1356
1356
|
}, z.core.$strip>>;
|
|
1357
1357
|
"fish-audio": z.ZodDefault<z.ZodObject<{
|
|
1358
1358
|
referenceId: z.ZodDefault<z.ZodString>;
|
|
@@ -1369,19 +1369,19 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1369
1369
|
speed: z.ZodDefault<z.ZodNumber>;
|
|
1370
1370
|
}, z.core.$strip>>;
|
|
1371
1371
|
deepgram: z.ZodDefault<z.ZodObject<{
|
|
1372
|
-
model: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
1372
|
+
model: z.ZodPipe<z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, z.ZodString>;
|
|
1373
1373
|
format: z.ZodDefault<z.ZodEnum<{
|
|
1374
1374
|
opus: "opus";
|
|
1375
1375
|
mp3: "mp3";
|
|
1376
1376
|
wav: "wav";
|
|
1377
1377
|
}>>;
|
|
1378
|
-
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1378
|
+
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1379
1379
|
[k: string]: string;
|
|
1380
|
-
}, Record<string, string
|
|
1380
|
+
}, Record<string, string>>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1381
1381
|
}, z.core.$strip>>;
|
|
1382
1382
|
xai: z.ZodDefault<z.ZodObject<{
|
|
1383
|
-
voiceId: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
1384
|
-
language: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
1383
|
+
voiceId: z.ZodPipe<z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, z.ZodString>;
|
|
1384
|
+
language: z.ZodPipe<z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, z.ZodString>;
|
|
1385
1385
|
format: z.ZodDefault<z.ZodEnum<{
|
|
1386
1386
|
mp3: "mp3";
|
|
1387
1387
|
wav: "wav";
|
|
@@ -1391,9 +1391,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1391
1391
|
}, z.core.$strip>>;
|
|
1392
1392
|
cadet: z.ZodDefault<z.ZodObject<{
|
|
1393
1393
|
model: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1394
|
+
languageVoices: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1395
1395
|
[k: string]: string;
|
|
1396
|
-
}, Record<string, string
|
|
1396
|
+
}, Record<string, string>>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1397
1397
|
}, z.core.$strip>>;
|
|
1398
1398
|
}, z.core.$strip>>;
|
|
1399
1399
|
}, z.core.$strip>>;
|
|
@@ -1586,7 +1586,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1586
1586
|
targetTokens: z.ZodDefault<z.ZodNumber>;
|
|
1587
1587
|
overlapTokens: z.ZodDefault<z.ZodNumber>;
|
|
1588
1588
|
}, z.core.$strip>>;
|
|
1589
|
-
jobs: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
1589
|
+
jobs: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
1590
1590
|
workerConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1591
1591
|
stalledJobTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1592
1592
|
slowLlmConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1604,7 +1604,13 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1604
1604
|
slowLlmConcurrency?: number | undefined;
|
|
1605
1605
|
fastConcurrency?: number | undefined;
|
|
1606
1606
|
embedConcurrency?: number | undefined;
|
|
1607
|
-
}
|
|
1607
|
+
}>>, z.ZodObject<{
|
|
1608
|
+
workerConcurrency: z.ZodNumber;
|
|
1609
|
+
stalledJobTimeoutMs: z.ZodNumber;
|
|
1610
|
+
slowLlmConcurrency: z.ZodNumber;
|
|
1611
|
+
fastConcurrency: z.ZodNumber;
|
|
1612
|
+
embedConcurrency: z.ZodNumber;
|
|
1613
|
+
}, z.core.$strip>>>;
|
|
1608
1614
|
retention: z.ZodDefault<z.ZodObject<{
|
|
1609
1615
|
keepRawForever: z.ZodDefault<z.ZodBoolean>;
|
|
1610
1616
|
}, z.core.$strip>>;
|
|
@@ -1886,10 +1892,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1886
1892
|
"suppress-cjk": "suppress-cjk";
|
|
1887
1893
|
}>>;
|
|
1888
1894
|
disableCache: z.ZodOptional<z.ZodBoolean>;
|
|
1889
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
1890
|
-
managed: "managed";
|
|
1891
|
-
user: "user";
|
|
1892
|
-
}>>;
|
|
1893
1895
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1894
1896
|
description: z.ZodOptional<z.ZodString>;
|
|
1895
1897
|
provider_connection: z.ZodOptional<z.ZodString>;
|
|
@@ -1924,7 +1926,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1924
1926
|
}, z.core.$strip>>>;
|
|
1925
1927
|
profileOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1926
1928
|
callSites: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
1927
|
-
autoProfileRouter: "autoProfileRouter";
|
|
1928
1929
|
voiceEscalationJudge: "voiceEscalationJudge";
|
|
1929
1930
|
voiceContinuationJudge: "voiceContinuationJudge";
|
|
1930
1931
|
memoryV3SelectL2: "memoryV3SelectL2";
|
|
@@ -2147,7 +2148,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2147
2148
|
hostBrowser: z.ZodDefault<z.ZodObject<{
|
|
2148
2149
|
cdpInspect: z.ZodDefault<z.ZodObject<{
|
|
2149
2150
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2150
|
-
host: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
2151
|
+
host: z.ZodPipe<z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, z.ZodString>;
|
|
2151
2152
|
port: z.ZodDefault<z.ZodNumber>;
|
|
2152
2153
|
probeTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2153
2154
|
desktopAuto: z.ZodDefault<z.ZodObject<{
|
|
@@ -2263,6 +2264,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2263
2264
|
accountSid: z.ZodDefault<z.ZodString>;
|
|
2264
2265
|
phoneNumber: z.ZodDefault<z.ZodString>;
|
|
2265
2266
|
setupStarted: z.ZodDefault<z.ZodBoolean>;
|
|
2267
|
+
assistantPhoneNumbers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2266
2268
|
}, z.core.$strip>>;
|
|
2267
2269
|
calls: z.ZodDefault<z.ZodObject<{
|
|
2268
2270
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2371,7 +2373,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2371
2373
|
a2a: z.ZodDefault<z.ZodObject<{
|
|
2372
2374
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2373
2375
|
}, z.core.$strip>>;
|
|
2374
|
-
ingress: z.
|
|
2376
|
+
ingress: z.ZodDefault<z.ZodObject<{
|
|
2375
2377
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2376
2378
|
publicBaseUrl: z.ZodDefault<z.ZodString>;
|
|
2377
2379
|
webhook: z.ZodDefault<z.ZodObject<{
|
|
@@ -2385,39 +2387,28 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2385
2387
|
maxRequestsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
2386
2388
|
maxRequestsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
2387
2389
|
}, z.core.$strip>>;
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
initialBackoffMs: number;
|
|
2411
|
-
maxPayloadBytes: number;
|
|
2412
|
-
};
|
|
2413
|
-
rateLimit: {
|
|
2414
|
-
maxRequestsPerMinute: number;
|
|
2415
|
-
maxRequestsPerHour: number;
|
|
2416
|
-
};
|
|
2417
|
-
shutdownDrainMs: number;
|
|
2418
|
-
enabled?: boolean | undefined;
|
|
2419
|
-
}>>;
|
|
2420
|
-
platform: z.ZodDefault<z.ZodObject<{
|
|
2390
|
+
assistantId: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
lastTunnel: z.ZodOptional<z.ZodObject<{
|
|
2392
|
+
provider: z.ZodEnum<{
|
|
2393
|
+
cadet: "cadet";
|
|
2394
|
+
ngrok: "ngrok";
|
|
2395
|
+
cloudflare: "cloudflare";
|
|
2396
|
+
tailscale: "tailscale";
|
|
2397
|
+
}>;
|
|
2398
|
+
publicBaseUrl: z.ZodString;
|
|
2399
|
+
}, z.core.$strip>>;
|
|
2400
|
+
pairingTunnel: z.ZodOptional<z.ZodObject<{
|
|
2401
|
+
provider: z.ZodEnum<{
|
|
2402
|
+
cadet: "cadet";
|
|
2403
|
+
ngrok: "ngrok";
|
|
2404
|
+
cloudflare: "cloudflare";
|
|
2405
|
+
tailscale: "tailscale";
|
|
2406
|
+
}>;
|
|
2407
|
+
publicBaseUrl: z.ZodString;
|
|
2408
|
+
}, z.core.$strip>>;
|
|
2409
|
+
publicBaseUrlManagedBy: z.ZodOptional<z.ZodString>;
|
|
2410
|
+
}, z.core.$strip>>;
|
|
2411
|
+
cloud: z.ZodDefault<z.ZodObject<{
|
|
2421
2412
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
2422
2413
|
subdomain: z.ZodDefault<z.ZodString>;
|
|
2423
2414
|
}, z.core.$strip>>;
|
|
@@ -2431,8 +2422,8 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2431
2422
|
newMessageEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
2432
2423
|
}, z.core.$strip>>;
|
|
2433
2424
|
ui: z.ZodDefault<z.ZodObject<{
|
|
2434
|
-
userTimezone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
2435
|
-
detectedTimezone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
2425
|
+
userTimezone: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
2426
|
+
detectedTimezone: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
2436
2427
|
emptyStateGreetingCacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
2437
2428
|
}, z.core.$strip>>;
|
|
2438
2429
|
tools: z.ZodDefault<z.ZodObject<{
|
|
@@ -2458,7 +2449,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2458
2449
|
}>>;
|
|
2459
2450
|
checkIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
2460
2451
|
}, z.core.$strip>>;
|
|
2461
|
-
legacyTelemetryOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
2462
2452
|
legacyDiagnosticsOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
2463
2453
|
maxStepsPerSession: z.ZodDefault<z.ZodNumber>;
|
|
2464
2454
|
}, z.core.$strip>;
|
|
@@ -3461,7 +3451,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
3461
3451
|
title: z.ZodOptional<z.ZodString>;
|
|
3462
3452
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
3463
3453
|
}, z.core.$strip>, z.ZodObject<{
|
|
3464
|
-
type: z.ZodLiteral<"
|
|
3454
|
+
type: z.ZodLiteral<"cloud_disconnected">;
|
|
3465
3455
|
}, z.core.$strip>, z.ZodObject<{
|
|
3466
3456
|
type: z.ZodLiteral<"question_request">;
|
|
3467
3457
|
requestId: z.ZodString;
|
|
@@ -3565,7 +3555,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
3565
3555
|
targetVersion: z.ZodString;
|
|
3566
3556
|
expectedDowntimeSeconds: z.ZodNumber;
|
|
3567
3557
|
}, z.core.$strip>, z.ZodObject<{
|
|
3568
|
-
type: z.ZodLiteral<"
|
|
3558
|
+
type: z.ZodLiteral<"show_cloud_login">;
|
|
3569
3559
|
}, z.core.$strip>, z.ZodObject<{
|
|
3570
3560
|
type: z.ZodLiteral<"skills_state_changed">;
|
|
3571
3561
|
name: z.ZodString;
|
|
@@ -5110,7 +5100,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5110
5100
|
title: z.ZodOptional<z.ZodString>;
|
|
5111
5101
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
5112
5102
|
}, z.core.$strip>, z.ZodObject<{
|
|
5113
|
-
type: z.ZodLiteral<"
|
|
5103
|
+
type: z.ZodLiteral<"cloud_disconnected">;
|
|
5114
5104
|
}, z.core.$strip>, z.ZodObject<{
|
|
5115
5105
|
type: z.ZodLiteral<"question_request">;
|
|
5116
5106
|
requestId: z.ZodString;
|
|
@@ -5214,7 +5204,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5214
5204
|
targetVersion: z.ZodString;
|
|
5215
5205
|
expectedDowntimeSeconds: z.ZodNumber;
|
|
5216
5206
|
}, z.core.$strip>, z.ZodObject<{
|
|
5217
|
-
type: z.ZodLiteral<"
|
|
5207
|
+
type: z.ZodLiteral<"show_cloud_login">;
|
|
5218
5208
|
}, z.core.$strip>, z.ZodObject<{
|
|
5219
5209
|
type: z.ZodLiteral<"skills_state_changed">;
|
|
5220
5210
|
name: z.ZodString;
|
|
@@ -5873,9 +5863,6 @@ export declare interface AudioEmbeddingInput {
|
|
|
5873
5863
|
mimeType: string;
|
|
5874
5864
|
}
|
|
5875
5865
|
|
|
5876
|
-
/** `profileSource` reported for a turn whose profile the Auto router chose. */
|
|
5877
|
-
declare const AUTO_PROFILE_SOURCE = "auto";
|
|
5878
|
-
|
|
5879
5866
|
/**
|
|
5880
5867
|
* Media payload for an image or file content block. One unified type covers
|
|
5881
5868
|
* both blocks and both storage forms:
|
|
@@ -12199,7 +12186,7 @@ export declare function getMessages(conversationId: string): Promise<MessageRow[
|
|
|
12199
12186
|
/**
|
|
12200
12187
|
* List the workspace inference profiles a plugin can route to, in the order a
|
|
12201
12188
|
* user-facing model picker presents them (`llm.profileOrder` first, then the
|
|
12202
|
-
* rest alphabetically). Managed backup routes and the
|
|
12189
|
+
* rest alphabetically). Managed backup routes and the cloud Jev profile
|
|
12203
12190
|
* are omitted with the rest of the conversation view: a plugin routes
|
|
12204
12191
|
* conversation turns, and a decision model cannot answer them.
|
|
12205
12192
|
* Metadata-only entries without a provider, model, or mix are not routing
|
|
@@ -13168,7 +13155,6 @@ export declare type LLMCallSite = z.infer<typeof LLMCallSiteEnum>;
|
|
|
13168
13155
|
* this list in sync with the resolver and registry (introduced in PR 2).
|
|
13169
13156
|
*/
|
|
13170
13157
|
declare const LLMCallSiteEnum: z.ZodEnum<{
|
|
13171
|
-
autoProfileRouter: "autoProfileRouter";
|
|
13172
13158
|
voiceEscalationJudge: "voiceEscalationJudge";
|
|
13173
13159
|
voiceContinuationJudge: "voiceContinuationJudge";
|
|
13174
13160
|
memoryV3SelectL2: "memoryV3SelectL2";
|
|
@@ -19170,7 +19156,7 @@ generated: undefined;
|
|
|
19170
19156
|
}, {}, {
|
|
19171
19157
|
length: number | undefined;
|
|
19172
19158
|
}>;
|
|
19173
|
-
|
|
19159
|
+
cloudServiceConfigKey: SQLiteColumn< {
|
|
19174
19160
|
name: "managed_service_config_key";
|
|
19175
19161
|
tableName: "oauth_providers";
|
|
19176
19162
|
dataType: "string";
|
|
@@ -20529,7 +20515,7 @@ generated: undefined;
|
|
|
20529
20515
|
dialect: "sqlite";
|
|
20530
20516
|
}>;
|
|
20531
20517
|
|
|
20532
|
-
declare type ProviderCredentialSource = "byok" | "no-auth" | "oauth-subscription" | "cadet-
|
|
20518
|
+
declare type ProviderCredentialSource = "byok" | "no-auth" | "oauth-subscription" | "cadet-cloud";
|
|
20533
20519
|
|
|
20534
20520
|
export declare type ProviderEvent = {
|
|
20535
20521
|
type: "text_delta";
|
|
@@ -20613,9 +20599,9 @@ export declare interface ProviderResponse {
|
|
|
20613
20599
|
declare interface ProviderRouteAttribution {
|
|
20614
20600
|
connectionName?: string;
|
|
20615
20601
|
profileName?: string;
|
|
20616
|
-
|
|
20602
|
+
isCloudRoute?: boolean;
|
|
20617
20603
|
/**
|
|
20618
|
-
* Credential surface used for this request. Finer than `
|
|
20604
|
+
* Credential surface used for this request. Finer than `isCloudRoute`:
|
|
20619
20605
|
* it separates personal provider keys, keyless endpoints, and subscription
|
|
20620
20606
|
* logins from each other so error copy can name what the user must fix.
|
|
20621
20607
|
*/
|
|
@@ -21070,7 +21056,7 @@ export declare function resolveMediaSourceData(source: MediaSource_2): {
|
|
|
21070
21056
|
* across attempts, which is what an exact-match `redirect_uri` check needs.
|
|
21071
21057
|
*
|
|
21072
21058
|
* @throws when no public ingress is configured and the assistant is not
|
|
21073
|
-
* connected to the
|
|
21059
|
+
* connected to the cloud. There is no URL that would work in that
|
|
21074
21060
|
* case, and returning a plausible one produces an authorization request
|
|
21075
21061
|
* whose callback silently never arrives.
|
|
21076
21062
|
*/
|
|
@@ -21091,12 +21077,12 @@ export declare function resolveUserName(workspaceDir: string): string | null;
|
|
|
21091
21077
|
/**
|
|
21092
21078
|
* Resolve the public URL a third party should deliver to for `path`.
|
|
21093
21079
|
*
|
|
21094
|
-
* On the
|
|
21080
|
+
* On the cloud branches this registers a callback route with the cloud,
|
|
21095
21081
|
* which is idempotent and matches what `assistant webhooks register` does.
|
|
21096
21082
|
*
|
|
21097
21083
|
* @throws when the plugin cannot be determined, when `path` is not one the
|
|
21098
21084
|
* gateway would serve, or when no ingress is configured and the assistant is
|
|
21099
|
-
* not connected to the
|
|
21085
|
+
* not connected to the cloud. That last case has no URL that would work,
|
|
21100
21086
|
* and a plausible one would produce a vendor registration that silently
|
|
21101
21087
|
* receives nothing.
|
|
21102
21088
|
*/
|
|
@@ -22582,13 +22568,6 @@ export declare interface SendMessageConfig {
|
|
|
22582
22568
|
* silently fall through.
|
|
22583
22569
|
*/
|
|
22584
22570
|
overrideProfile?: string;
|
|
22585
|
-
/**
|
|
22586
|
-
* Who chose `overrideProfile`: `"auto"` when the Auto profile's router
|
|
22587
|
-
* picked it for the turn. Usage attribution reports it as the profile
|
|
22588
|
-
* source so a routed turn is not counted as a user pin. A routing-time
|
|
22589
|
-
* concern only; stripped before any provider wire request.
|
|
22590
|
-
*/
|
|
22591
|
-
overrideProfileOrigin?: "auto";
|
|
22592
22571
|
/**
|
|
22593
22572
|
* When true, the resolver floats `overrideProfile` above the call-site
|
|
22594
22573
|
* layers (named site profile + call-site override) for non-main-agent call
|
|
@@ -22603,7 +22582,7 @@ export declare interface SendMessageConfig {
|
|
|
22603
22582
|
* True when the caller appended {@link NATIVE_WEB_SEARCH_TOOL_NAME} purely
|
|
22604
22583
|
* to activate the route's provider-native web search, rather than passing an
|
|
22605
22584
|
* app-executed search tool of the same name (which is what runs when a
|
|
22606
|
-
* search backend like Brave or the
|
|
22585
|
+
* search backend like Brave or the cloud search proxy is configured).
|
|
22607
22586
|
* Only the caller can tell those apart, and a route change after that
|
|
22608
22587
|
* decision has to: `RetryProvider` drops the tool on a backup that runs no
|
|
22609
22588
|
* native search, and must not touch it when the daemon executes it itself.
|
|
@@ -22642,9 +22621,9 @@ export declare interface SendMessageConfig {
|
|
|
22642
22621
|
*/
|
|
22643
22622
|
promptCacheKey?: string;
|
|
22644
22623
|
/**
|
|
22645
|
-
* Internal per-request HTTP headers for
|
|
22624
|
+
* Internal per-request HTTP headers for cloud-proxy usage attribution.
|
|
22646
22625
|
* Provider clients may pass these through SDK request options only when the
|
|
22647
|
-
* transport is Cadet
|
|
22626
|
+
* transport is Cadet Cloud, and must never include this object in provider
|
|
22648
22627
|
* JSON request bodies.
|
|
22649
22628
|
*/
|
|
22650
22629
|
usageAttributionHeaders?: Record<string, string>;
|
|
@@ -23548,8 +23527,8 @@ export declare type SttProviderId = "openai-whisper" | "deepgram"
|
|
|
23548
23527
|
*/
|
|
23549
23528
|
| "deepgram-flux" | "google-gemini" | "xai" | "cadet"
|
|
23550
23529
|
/**
|
|
23551
|
-
*
|
|
23552
|
-
* through the
|
|
23530
|
+
* Cloud Flux: the same conversational model as `deepgram-flux`, reached
|
|
23531
|
+
* through the cloud's speech relay instead of a Deepgram key. Dials the
|
|
23553
23532
|
* relay's STT v2 endpoint asking for native Flux frames, so it keeps the
|
|
23554
23533
|
* turn events the relay's default v1-shaped translation drops.
|
|
23555
23534
|
*/
|
|
@@ -24254,10 +24233,10 @@ export declare interface ToolContext {
|
|
|
24254
24233
|
*/
|
|
24255
24234
|
toolUseId?: string;
|
|
24256
24235
|
/**
|
|
24257
|
-
* True when the assistant is running as a
|
|
24236
|
+
* True when the assistant is running as a cloud-managed remote instance. Used to auto-approve sandboxed bash tools.
|
|
24258
24237
|
* @legacy
|
|
24259
24238
|
*/
|
|
24260
|
-
|
|
24239
|
+
isCloudHosted?: boolean;
|
|
24261
24240
|
/**
|
|
24262
24241
|
* The interface ID of the connected client driving the current turn (e.g.
|
|
24263
24242
|
* "macos", "chrome-extension"). Browser backend policy uses this to decide
|
|
@@ -24899,7 +24878,7 @@ declare interface UiSurfaceContent {
|
|
|
24899
24878
|
/** Merge the given keys into a message's metadata JSON. */
|
|
24900
24879
|
export declare function updateMessageMetadata(messageId: string, updates: Record<string, unknown>): Promise<void>;
|
|
24901
24880
|
|
|
24902
|
-
declare type UsageAttributionProfileSource = "call_site" | "conversation" | "active" | "default" |
|
|
24881
|
+
declare type UsageAttributionProfileSource = "call_site" | "conversation" | "active" | "default" | "unknown";
|
|
24903
24882
|
|
|
24904
24883
|
declare interface UsageAttributionSnapshot {
|
|
24905
24884
|
callSite: LLMCallSite | null;
|
|
@@ -25764,10 +25743,10 @@ dialect: "sqlite";
|
|
|
25764
25743
|
*
|
|
25765
25744
|
* A plugin that receives third-party webhooks has to tell the vendor where to
|
|
25766
25745
|
* deliver. Which URL is correct depends on how the assistant is reachable:
|
|
25767
|
-
* a
|
|
25746
|
+
* a cloud pod and a cloud-connected assistant are served through a
|
|
25768
25747
|
* managed callback route, while a self-hosted deployment is served through its
|
|
25769
25748
|
* configured public ingress. `ingress.publicBaseUrl` alone does not decide it,
|
|
25770
|
-
* because on a
|
|
25749
|
+
* because on a cloud-connected assistant that value holds the Tunnel
|
|
25771
25750
|
* address, which is not where plugin routes are served.
|
|
25772
25751
|
*
|
|
25773
25752
|
* `resolveCallbackUrl` owns that decision for every caller in the codebase
|
|
@@ -25787,7 +25766,7 @@ export declare interface WebhookUrlOptions {
|
|
|
25787
25766
|
* explicitly from a plugin route handler, where no context is established.
|
|
25788
25767
|
*/
|
|
25789
25768
|
plugin?: string;
|
|
25790
|
-
/** Human-readable label for the
|
|
25769
|
+
/** Human-readable label for the cloud's admin display. */
|
|
25791
25770
|
sourceIdentifier?: string;
|
|
25792
25771
|
}
|
|
25793
25772
|
|