@runtypelabs/sdk 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +62 -0
- package/dist/index.d.cts +285 -3
- package/dist/index.d.ts +285 -3
- package/dist/index.mjs +61 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -320,6 +320,7 @@ __export(index_exports, {
|
|
|
320
320
|
PromptRunner: () => PromptRunner,
|
|
321
321
|
PromptsEndpoint: () => PromptsEndpoint,
|
|
322
322
|
PromptsNamespace: () => PromptsNamespace,
|
|
323
|
+
ProviderKeysEndpoint: () => ProviderKeysEndpoint,
|
|
323
324
|
RecordsEndpoint: () => RecordsEndpoint,
|
|
324
325
|
Runtype: () => Runtype,
|
|
325
326
|
RuntypeApiError: () => RuntypeApiError,
|
|
@@ -5045,6 +5046,65 @@ var ModelConfigsEndpoint = class {
|
|
|
5045
5046
|
return this.client.get("/model-configs/usage");
|
|
5046
5047
|
}
|
|
5047
5048
|
};
|
|
5049
|
+
var ProviderKeysEndpoint = class {
|
|
5050
|
+
constructor(client) {
|
|
5051
|
+
this.client = client;
|
|
5052
|
+
}
|
|
5053
|
+
/**
|
|
5054
|
+
* List the authenticated user's provider API keys (secrets are never returned)
|
|
5055
|
+
*/
|
|
5056
|
+
async list() {
|
|
5057
|
+
const response = await this.client.get("/provider-keys");
|
|
5058
|
+
return response.providerKeys || [];
|
|
5059
|
+
}
|
|
5060
|
+
/**
|
|
5061
|
+
* Create a provider API key. For `generic-openai`, pass
|
|
5062
|
+
* `settings: { baseUrl }` to point at the OpenAI-compatible endpoint.
|
|
5063
|
+
*/
|
|
5064
|
+
async create(data) {
|
|
5065
|
+
const response = await this.client.post("/provider-keys", data);
|
|
5066
|
+
return response.providerKey;
|
|
5067
|
+
}
|
|
5068
|
+
/**
|
|
5069
|
+
* Update a provider API key: rename, rotate the secret, toggle default/active,
|
|
5070
|
+
* or change a generic-openai endpoint base URL via `settings: { baseUrl }`.
|
|
5071
|
+
*/
|
|
5072
|
+
async update(id, data) {
|
|
5073
|
+
const response = await this.client.patch(
|
|
5074
|
+
`/provider-keys/${id}`,
|
|
5075
|
+
data
|
|
5076
|
+
);
|
|
5077
|
+
return response.providerKey;
|
|
5078
|
+
}
|
|
5079
|
+
/**
|
|
5080
|
+
* Delete a provider API key. For generic-openai keys this also removes the
|
|
5081
|
+
* associated model configs.
|
|
5082
|
+
*/
|
|
5083
|
+
async delete(id) {
|
|
5084
|
+
return this.client.delete(`/provider-keys/${id}`);
|
|
5085
|
+
}
|
|
5086
|
+
/**
|
|
5087
|
+
* Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
|
|
5088
|
+
* before a key is saved.
|
|
5089
|
+
*/
|
|
5090
|
+
async discoverModels(data) {
|
|
5091
|
+
return this.client.post("/provider-keys/discover-models", data);
|
|
5092
|
+
}
|
|
5093
|
+
/**
|
|
5094
|
+
* Discover models from the endpoint of an existing generic-openai provider key.
|
|
5095
|
+
*/
|
|
5096
|
+
async discoverModelsForKey(id) {
|
|
5097
|
+
return this.client.post(`/provider-keys/${id}/discover-models`);
|
|
5098
|
+
}
|
|
5099
|
+
/**
|
|
5100
|
+
* Set the discrete model list for a generic-openai provider key. Pass the
|
|
5101
|
+
* discovered models, or a hand-authored list when the endpoint has no
|
|
5102
|
+
* `/v1/models`. An empty array removes all models for the key.
|
|
5103
|
+
*/
|
|
5104
|
+
async syncModels(id, models) {
|
|
5105
|
+
return this.client.post(`/provider-keys/${id}/sync-models`, { models });
|
|
5106
|
+
}
|
|
5107
|
+
};
|
|
5048
5108
|
var DispatchEndpoint = class {
|
|
5049
5109
|
constructor(client) {
|
|
5050
5110
|
this.client = client;
|
|
@@ -8577,6 +8637,7 @@ var RuntypeClient2 = class {
|
|
|
8577
8637
|
this.records = new RecordsEndpoint(this);
|
|
8578
8638
|
this.apiKeys = new ApiKeysEndpoint(this);
|
|
8579
8639
|
this.modelConfigs = new ModelConfigsEndpoint(this);
|
|
8640
|
+
this.providerKeys = new ProviderKeysEndpoint(this);
|
|
8580
8641
|
this.dispatch = new DispatchEndpoint(this);
|
|
8581
8642
|
this.chat = new ChatEndpoint(this);
|
|
8582
8643
|
this.users = new UsersEndpoint(this);
|
|
@@ -9578,6 +9639,7 @@ var STEP_TYPE_TO_METHOD = {
|
|
|
9578
9639
|
PromptRunner,
|
|
9579
9640
|
PromptsEndpoint,
|
|
9580
9641
|
PromptsNamespace,
|
|
9642
|
+
ProviderKeysEndpoint,
|
|
9581
9643
|
RecordsEndpoint,
|
|
9582
9644
|
Runtype,
|
|
9583
9645
|
RuntypeApiError,
|
package/dist/index.d.cts
CHANGED
|
@@ -21605,6 +21605,106 @@ interface paths {
|
|
|
21605
21605
|
patch?: never;
|
|
21606
21606
|
trace?: never;
|
|
21607
21607
|
};
|
|
21608
|
+
"/v1/products/{productId}/surfaces/{surfaceId}/discovered-tools": {
|
|
21609
|
+
parameters: {
|
|
21610
|
+
query?: never;
|
|
21611
|
+
header?: never;
|
|
21612
|
+
path?: never;
|
|
21613
|
+
cookie?: never;
|
|
21614
|
+
};
|
|
21615
|
+
/**
|
|
21616
|
+
* List discovered WebMCP tools
|
|
21617
|
+
* @description List the WebMCP page tools observed on this chat surface over the trailing 7 days, grouped by validated request origin. Each tool carries a live admit/reject status derived from the surface's current behavior.webmcp allowlist (never stored). Client-reported pageOrigin is returned as diagnostic metadata only.
|
|
21618
|
+
*/
|
|
21619
|
+
get: {
|
|
21620
|
+
parameters: {
|
|
21621
|
+
query?: never;
|
|
21622
|
+
header?: never;
|
|
21623
|
+
path: {
|
|
21624
|
+
productId: string;
|
|
21625
|
+
surfaceId: string;
|
|
21626
|
+
};
|
|
21627
|
+
cookie?: never;
|
|
21628
|
+
};
|
|
21629
|
+
requestBody?: never;
|
|
21630
|
+
responses: {
|
|
21631
|
+
/** @description Discovered WebMCP tools grouped by request origin */
|
|
21632
|
+
200: {
|
|
21633
|
+
headers: {
|
|
21634
|
+
[name: string]: unknown;
|
|
21635
|
+
};
|
|
21636
|
+
content: {
|
|
21637
|
+
"application/json": {
|
|
21638
|
+
origins: {
|
|
21639
|
+
requestOrigin: string;
|
|
21640
|
+
tools: {
|
|
21641
|
+
description: string | null;
|
|
21642
|
+
firstSeenAt: string;
|
|
21643
|
+
lastSeenAt: string;
|
|
21644
|
+
parametersSchema: {
|
|
21645
|
+
[key: string]: unknown;
|
|
21646
|
+
} | null;
|
|
21647
|
+
reportedPageOrigin: string | null;
|
|
21648
|
+
/** @enum {string} */
|
|
21649
|
+
source: "observed" | "probe";
|
|
21650
|
+
/** @enum {string} */
|
|
21651
|
+
status: "admitted" | "disabled" | "not_in_allowlist";
|
|
21652
|
+
toolName: string;
|
|
21653
|
+
}[];
|
|
21654
|
+
}[];
|
|
21655
|
+
windowDays: number;
|
|
21656
|
+
};
|
|
21657
|
+
};
|
|
21658
|
+
};
|
|
21659
|
+
/** @description Unauthorized */
|
|
21660
|
+
401: {
|
|
21661
|
+
headers: {
|
|
21662
|
+
[name: string]: unknown;
|
|
21663
|
+
};
|
|
21664
|
+
content: {
|
|
21665
|
+
"application/json": {
|
|
21666
|
+
error: string;
|
|
21667
|
+
} & {
|
|
21668
|
+
[key: string]: unknown;
|
|
21669
|
+
};
|
|
21670
|
+
};
|
|
21671
|
+
};
|
|
21672
|
+
/** @description Insufficient permissions */
|
|
21673
|
+
403: {
|
|
21674
|
+
headers: {
|
|
21675
|
+
[name: string]: unknown;
|
|
21676
|
+
};
|
|
21677
|
+
content: {
|
|
21678
|
+
"application/json": {
|
|
21679
|
+
error: string;
|
|
21680
|
+
} & {
|
|
21681
|
+
[key: string]: unknown;
|
|
21682
|
+
};
|
|
21683
|
+
};
|
|
21684
|
+
};
|
|
21685
|
+
/** @description Surface not found */
|
|
21686
|
+
404: {
|
|
21687
|
+
headers: {
|
|
21688
|
+
[name: string]: unknown;
|
|
21689
|
+
};
|
|
21690
|
+
content: {
|
|
21691
|
+
"application/json": {
|
|
21692
|
+
error: string;
|
|
21693
|
+
} & {
|
|
21694
|
+
[key: string]: unknown;
|
|
21695
|
+
};
|
|
21696
|
+
};
|
|
21697
|
+
};
|
|
21698
|
+
};
|
|
21699
|
+
};
|
|
21700
|
+
put?: never;
|
|
21701
|
+
post?: never;
|
|
21702
|
+
delete?: never;
|
|
21703
|
+
options?: never;
|
|
21704
|
+
head?: never;
|
|
21705
|
+
patch?: never;
|
|
21706
|
+
trace?: never;
|
|
21707
|
+
};
|
|
21608
21708
|
"/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/mcp.json": {
|
|
21609
21709
|
parameters: {
|
|
21610
21710
|
query?: never;
|
|
@@ -22010,6 +22110,95 @@ interface paths {
|
|
|
22010
22110
|
patch?: never;
|
|
22011
22111
|
trace?: never;
|
|
22012
22112
|
};
|
|
22113
|
+
"/v1/products/{productId}/surfaces/{surfaceId}/observed-origins": {
|
|
22114
|
+
parameters: {
|
|
22115
|
+
query?: never;
|
|
22116
|
+
header?: never;
|
|
22117
|
+
path?: never;
|
|
22118
|
+
cookie?: never;
|
|
22119
|
+
};
|
|
22120
|
+
/**
|
|
22121
|
+
* List observed page origins
|
|
22122
|
+
* @description List the page origins observed sending requests to this chat surface over the trailing 7 days. Each origin carries an allowed flag indicating whether any active client token linked to this surface would admit it via the same validateOrigin check used by chat dispatch.
|
|
22123
|
+
*/
|
|
22124
|
+
get: {
|
|
22125
|
+
parameters: {
|
|
22126
|
+
query?: never;
|
|
22127
|
+
header?: never;
|
|
22128
|
+
path: {
|
|
22129
|
+
productId: string;
|
|
22130
|
+
surfaceId: string;
|
|
22131
|
+
};
|
|
22132
|
+
cookie?: never;
|
|
22133
|
+
};
|
|
22134
|
+
requestBody?: never;
|
|
22135
|
+
responses: {
|
|
22136
|
+
/** @description Observed origins with allowed flags */
|
|
22137
|
+
200: {
|
|
22138
|
+
headers: {
|
|
22139
|
+
[name: string]: unknown;
|
|
22140
|
+
};
|
|
22141
|
+
content: {
|
|
22142
|
+
"application/json": {
|
|
22143
|
+
origins: {
|
|
22144
|
+
allowed: boolean;
|
|
22145
|
+
firstSeenAt: string;
|
|
22146
|
+
lastSeenAt: string;
|
|
22147
|
+
origin: string;
|
|
22148
|
+
}[];
|
|
22149
|
+
windowDays: number;
|
|
22150
|
+
};
|
|
22151
|
+
};
|
|
22152
|
+
};
|
|
22153
|
+
/** @description Unauthorized */
|
|
22154
|
+
401: {
|
|
22155
|
+
headers: {
|
|
22156
|
+
[name: string]: unknown;
|
|
22157
|
+
};
|
|
22158
|
+
content: {
|
|
22159
|
+
"application/json": {
|
|
22160
|
+
error: string;
|
|
22161
|
+
} & {
|
|
22162
|
+
[key: string]: unknown;
|
|
22163
|
+
};
|
|
22164
|
+
};
|
|
22165
|
+
};
|
|
22166
|
+
/** @description Insufficient permissions */
|
|
22167
|
+
403: {
|
|
22168
|
+
headers: {
|
|
22169
|
+
[name: string]: unknown;
|
|
22170
|
+
};
|
|
22171
|
+
content: {
|
|
22172
|
+
"application/json": {
|
|
22173
|
+
error: string;
|
|
22174
|
+
} & {
|
|
22175
|
+
[key: string]: unknown;
|
|
22176
|
+
};
|
|
22177
|
+
};
|
|
22178
|
+
};
|
|
22179
|
+
/** @description Surface not found */
|
|
22180
|
+
404: {
|
|
22181
|
+
headers: {
|
|
22182
|
+
[name: string]: unknown;
|
|
22183
|
+
};
|
|
22184
|
+
content: {
|
|
22185
|
+
"application/json": {
|
|
22186
|
+
error: string;
|
|
22187
|
+
} & {
|
|
22188
|
+
[key: string]: unknown;
|
|
22189
|
+
};
|
|
22190
|
+
};
|
|
22191
|
+
};
|
|
22192
|
+
};
|
|
22193
|
+
};
|
|
22194
|
+
put?: never;
|
|
22195
|
+
post?: never;
|
|
22196
|
+
delete?: never;
|
|
22197
|
+
options?: never;
|
|
22198
|
+
head?: never;
|
|
22199
|
+
patch?: never;
|
|
22200
|
+
trace?: never;
|
|
22201
|
+
};
|
|
22013
22202
|
"/v1/prompts": {
|
|
22014
22203
|
parameters: {
|
|
22015
22204
|
query?: never;
|
|
@@ -33951,17 +34140,32 @@ interface BulkEditResponse {
|
|
|
33951
34140
|
recordIds?: number[];
|
|
33952
34141
|
}
|
|
33953
34142
|
type ProviderApiKey = paths['/v1/provider-keys']['get']['responses'][200]['content']['application/json']['providerKeys'][number];
|
|
34143
|
+
/**
|
|
34144
|
+
* Provider enum for creating a provider key, derived from the generated OpenAPI
|
|
34145
|
+
* spec so it can never drift from the API's accepted provider set.
|
|
34146
|
+
*/
|
|
34147
|
+
type ProviderKeyProvider = NonNullable<paths['/v1/provider-keys']['post']['requestBody']>['content']['application/json']['provider'];
|
|
34148
|
+
/**
|
|
34149
|
+
* Provider enum for creating a model config, derived from the generated OpenAPI
|
|
34150
|
+
* spec. Wider than {@link ProviderKeyProvider} (includes `model`/`runtime`/`mock`/
|
|
34151
|
+
* `modelsocket`).
|
|
34152
|
+
*/
|
|
34153
|
+
type ModelConfigProvider = NonNullable<paths['/v1/model-configs']['post']['requestBody']>['content']['application/json']['provider'];
|
|
33954
34154
|
interface CreateProviderKeyRequest {
|
|
33955
|
-
provider:
|
|
34155
|
+
provider: ProviderKeyProvider;
|
|
33956
34156
|
name: string;
|
|
33957
34157
|
apiKey: string;
|
|
33958
34158
|
isDefault?: boolean;
|
|
34159
|
+
/** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
|
|
34160
|
+
settings?: JsonObject;
|
|
33959
34161
|
}
|
|
33960
34162
|
interface UpdateProviderKeyRequest {
|
|
33961
34163
|
name?: string;
|
|
33962
34164
|
apiKey?: string;
|
|
33963
34165
|
isDefault?: boolean;
|
|
33964
34166
|
isActive?: boolean;
|
|
34167
|
+
/** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
|
|
34168
|
+
settings?: JsonObject;
|
|
33965
34169
|
}
|
|
33966
34170
|
interface CreateApiKeyRequest {
|
|
33967
34171
|
name: string;
|
|
@@ -33971,11 +34175,33 @@ interface CreateApiKeyRequest {
|
|
|
33971
34175
|
environment?: 'test' | 'production';
|
|
33972
34176
|
}
|
|
33973
34177
|
interface CreateModelConfigRequest {
|
|
33974
|
-
provider:
|
|
34178
|
+
provider: ModelConfigProvider;
|
|
33975
34179
|
modelId: string;
|
|
33976
34180
|
apiKey?: string;
|
|
34181
|
+
/** Provider key ID to use, or "platform" for Runtype's platform key. */
|
|
34182
|
+
providerKeyId?: string;
|
|
34183
|
+
/**
|
|
34184
|
+
* Optional settings. For a custom (OpenAI-compatible) model, include a
|
|
34185
|
+
* `customModel` block, e.g.
|
|
34186
|
+
* `{ customModel: { displayName, executorProvider: 'generic-openai', executorConfig: { baseURL } } }`.
|
|
34187
|
+
*/
|
|
33977
34188
|
settings?: JsonObject;
|
|
33978
34189
|
}
|
|
34190
|
+
/** A model discovered from an OpenAI-compatible endpoint's `/v1/models`. */
|
|
34191
|
+
interface DiscoveredModel {
|
|
34192
|
+
id: string;
|
|
34193
|
+
ownedBy?: string;
|
|
34194
|
+
}
|
|
34195
|
+
/** A model entry in a generic-openai provider key's discrete model list. */
|
|
34196
|
+
interface ProviderKeyModel {
|
|
34197
|
+
id: string;
|
|
34198
|
+
displayName?: string;
|
|
34199
|
+
maxOutputTokens?: number;
|
|
34200
|
+
supportsStreaming?: boolean;
|
|
34201
|
+
inputCostPer1kTokens?: number;
|
|
34202
|
+
outputCostPer1kTokens?: number;
|
|
34203
|
+
supportedResponseFormats?: string[];
|
|
34204
|
+
}
|
|
33979
34205
|
/** Content part types for multi-modal messages */
|
|
33980
34206
|
interface TextContentPart {
|
|
33981
34207
|
type: 'text';
|
|
@@ -36776,6 +37002,61 @@ declare class ModelConfigsEndpoint {
|
|
|
36776
37002
|
*/
|
|
36777
37003
|
getUsage(): Promise<any>;
|
|
36778
37004
|
}
|
|
37005
|
+
/**
|
|
37006
|
+
* Provider API key (BYOK) endpoint handlers. Manages credentials behind custom
|
|
37007
|
+
* model providers — most notably `generic-openai`, the OpenAI-compatible custom
|
|
37008
|
+
* endpoint — including model discovery against the endpoint's `/v1/models` and
|
|
37009
|
+
* setting a discrete model list. All write operations require the BYOK
|
|
37010
|
+
* entitlement; without it the API returns `402` with code `BYOK_NOT_AVAILABLE`.
|
|
37011
|
+
*/
|
|
37012
|
+
declare class ProviderKeysEndpoint {
|
|
37013
|
+
private client;
|
|
37014
|
+
constructor(client: ApiClient);
|
|
37015
|
+
/**
|
|
37016
|
+
* List the authenticated user's provider API keys (secrets are never returned)
|
|
37017
|
+
*/
|
|
37018
|
+
list(): Promise<ProviderApiKey[]>;
|
|
37019
|
+
/**
|
|
37020
|
+
* Create a provider API key. For `generic-openai`, pass
|
|
37021
|
+
* `settings: { baseUrl }` to point at the OpenAI-compatible endpoint.
|
|
37022
|
+
*/
|
|
37023
|
+
create(data: CreateProviderKeyRequest): Promise<ProviderApiKey>;
|
|
37024
|
+
/**
|
|
37025
|
+
* Update a provider API key: rename, rotate the secret, toggle default/active,
|
|
37026
|
+
* or change a generic-openai endpoint base URL via `settings: { baseUrl }`.
|
|
37027
|
+
*/
|
|
37028
|
+
update(id: string, data: UpdateProviderKeyRequest): Promise<ProviderApiKey>;
|
|
37029
|
+
/**
|
|
37030
|
+
* Delete a provider API key. For generic-openai keys this also removes the
|
|
37031
|
+
* associated model configs.
|
|
37032
|
+
*/
|
|
37033
|
+
delete(id: string): Promise<void>;
|
|
37034
|
+
/**
|
|
37035
|
+
* Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
|
|
37036
|
+
* before a key is saved.
|
|
37037
|
+
*/
|
|
37038
|
+
discoverModels(data: {
|
|
37039
|
+
apiKey: string;
|
|
37040
|
+
baseUrl: string;
|
|
37041
|
+
}): Promise<{
|
|
37042
|
+
models: DiscoveredModel[];
|
|
37043
|
+
}>;
|
|
37044
|
+
/**
|
|
37045
|
+
* Discover models from the endpoint of an existing generic-openai provider key.
|
|
37046
|
+
*/
|
|
37047
|
+
discoverModelsForKey(id: string): Promise<{
|
|
37048
|
+
models: DiscoveredModel[];
|
|
37049
|
+
}>;
|
|
37050
|
+
/**
|
|
37051
|
+
* Set the discrete model list for a generic-openai provider key. Pass the
|
|
37052
|
+
* discovered models, or a hand-authored list when the endpoint has no
|
|
37053
|
+
* `/v1/models`. An empty array removes all models for the key.
|
|
37054
|
+
*/
|
|
37055
|
+
syncModels(id: string, models: ProviderKeyModel[]): Promise<{
|
|
37056
|
+
success: boolean;
|
|
37057
|
+
syncedCount: number;
|
|
37058
|
+
}>;
|
|
37059
|
+
}
|
|
36779
37060
|
/**
|
|
36780
37061
|
* Dispatch endpoint handler for atomic record/flow creation and execution
|
|
36781
37062
|
*/
|
|
@@ -38594,6 +38875,7 @@ declare class RuntypeClient implements ApiClient {
|
|
|
38594
38875
|
records: RecordsEndpoint;
|
|
38595
38876
|
apiKeys: ApiKeysEndpoint;
|
|
38596
38877
|
modelConfigs: ModelConfigsEndpoint;
|
|
38878
|
+
providerKeys: ProviderKeysEndpoint;
|
|
38597
38879
|
dispatch: DispatchEndpoint;
|
|
38598
38880
|
chat: ChatEndpoint;
|
|
38599
38881
|
users: UsersEndpoint;
|
|
@@ -39225,4 +39507,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
39225
39507
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
39226
39508
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
39227
39509
|
|
|
39228
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
|
39510
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -21605,6 +21605,106 @@ interface paths {
|
|
|
21605
21605
|
patch?: never;
|
|
21606
21606
|
trace?: never;
|
|
21607
21607
|
};
|
|
21608
|
+
"/v1/products/{productId}/surfaces/{surfaceId}/discovered-tools": {
|
|
21609
|
+
parameters: {
|
|
21610
|
+
query?: never;
|
|
21611
|
+
header?: never;
|
|
21612
|
+
path?: never;
|
|
21613
|
+
cookie?: never;
|
|
21614
|
+
};
|
|
21615
|
+
/**
|
|
21616
|
+
* List discovered WebMCP tools
|
|
21617
|
+
* @description List the WebMCP page tools observed on this chat surface over the trailing 7 days, grouped by validated request origin. Each tool carries a live admit/reject status derived from the surface's current behavior.webmcp allowlist (never stored). Client-reported pageOrigin is returned as diagnostic metadata only.
|
|
21618
|
+
*/
|
|
21619
|
+
get: {
|
|
21620
|
+
parameters: {
|
|
21621
|
+
query?: never;
|
|
21622
|
+
header?: never;
|
|
21623
|
+
path: {
|
|
21624
|
+
productId: string;
|
|
21625
|
+
surfaceId: string;
|
|
21626
|
+
};
|
|
21627
|
+
cookie?: never;
|
|
21628
|
+
};
|
|
21629
|
+
requestBody?: never;
|
|
21630
|
+
responses: {
|
|
21631
|
+
/** @description Discovered WebMCP tools grouped by request origin */
|
|
21632
|
+
200: {
|
|
21633
|
+
headers: {
|
|
21634
|
+
[name: string]: unknown;
|
|
21635
|
+
};
|
|
21636
|
+
content: {
|
|
21637
|
+
"application/json": {
|
|
21638
|
+
origins: {
|
|
21639
|
+
requestOrigin: string;
|
|
21640
|
+
tools: {
|
|
21641
|
+
description: string | null;
|
|
21642
|
+
firstSeenAt: string;
|
|
21643
|
+
lastSeenAt: string;
|
|
21644
|
+
parametersSchema: {
|
|
21645
|
+
[key: string]: unknown;
|
|
21646
|
+
} | null;
|
|
21647
|
+
reportedPageOrigin: string | null;
|
|
21648
|
+
/** @enum {string} */
|
|
21649
|
+
source: "observed" | "probe";
|
|
21650
|
+
/** @enum {string} */
|
|
21651
|
+
status: "admitted" | "disabled" | "not_in_allowlist";
|
|
21652
|
+
toolName: string;
|
|
21653
|
+
}[];
|
|
21654
|
+
}[];
|
|
21655
|
+
windowDays: number;
|
|
21656
|
+
};
|
|
21657
|
+
};
|
|
21658
|
+
};
|
|
21659
|
+
/** @description Unauthorized */
|
|
21660
|
+
401: {
|
|
21661
|
+
headers: {
|
|
21662
|
+
[name: string]: unknown;
|
|
21663
|
+
};
|
|
21664
|
+
content: {
|
|
21665
|
+
"application/json": {
|
|
21666
|
+
error: string;
|
|
21667
|
+
} & {
|
|
21668
|
+
[key: string]: unknown;
|
|
21669
|
+
};
|
|
21670
|
+
};
|
|
21671
|
+
};
|
|
21672
|
+
/** @description Insufficient permissions */
|
|
21673
|
+
403: {
|
|
21674
|
+
headers: {
|
|
21675
|
+
[name: string]: unknown;
|
|
21676
|
+
};
|
|
21677
|
+
content: {
|
|
21678
|
+
"application/json": {
|
|
21679
|
+
error: string;
|
|
21680
|
+
} & {
|
|
21681
|
+
[key: string]: unknown;
|
|
21682
|
+
};
|
|
21683
|
+
};
|
|
21684
|
+
};
|
|
21685
|
+
/** @description Surface not found */
|
|
21686
|
+
404: {
|
|
21687
|
+
headers: {
|
|
21688
|
+
[name: string]: unknown;
|
|
21689
|
+
};
|
|
21690
|
+
content: {
|
|
21691
|
+
"application/json": {
|
|
21692
|
+
error: string;
|
|
21693
|
+
} & {
|
|
21694
|
+
[key: string]: unknown;
|
|
21695
|
+
};
|
|
21696
|
+
};
|
|
21697
|
+
};
|
|
21698
|
+
};
|
|
21699
|
+
};
|
|
21700
|
+
put?: never;
|
|
21701
|
+
post?: never;
|
|
21702
|
+
delete?: never;
|
|
21703
|
+
options?: never;
|
|
21704
|
+
head?: never;
|
|
21705
|
+
patch?: never;
|
|
21706
|
+
trace?: never;
|
|
21707
|
+
};
|
|
21608
21708
|
"/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/mcp.json": {
|
|
21609
21709
|
parameters: {
|
|
21610
21710
|
query?: never;
|
|
@@ -22010,6 +22110,95 @@ interface paths {
|
|
|
22010
22110
|
patch?: never;
|
|
22011
22111
|
trace?: never;
|
|
22012
22112
|
};
|
|
22113
|
+
"/v1/products/{productId}/surfaces/{surfaceId}/observed-origins": {
|
|
22114
|
+
parameters: {
|
|
22115
|
+
query?: never;
|
|
22116
|
+
header?: never;
|
|
22117
|
+
path?: never;
|
|
22118
|
+
cookie?: never;
|
|
22119
|
+
};
|
|
22120
|
+
/**
|
|
22121
|
+
* List observed page origins
|
|
22122
|
+
* @description List the page origins observed sending requests to this chat surface over the trailing 7 days. Each origin carries an allowed flag indicating whether any active client token linked to this surface would admit it via the same validateOrigin check used by chat dispatch.
|
|
22123
|
+
*/
|
|
22124
|
+
get: {
|
|
22125
|
+
parameters: {
|
|
22126
|
+
query?: never;
|
|
22127
|
+
header?: never;
|
|
22128
|
+
path: {
|
|
22129
|
+
productId: string;
|
|
22130
|
+
surfaceId: string;
|
|
22131
|
+
};
|
|
22132
|
+
cookie?: never;
|
|
22133
|
+
};
|
|
22134
|
+
requestBody?: never;
|
|
22135
|
+
responses: {
|
|
22136
|
+
/** @description Observed origins with allowed flags */
|
|
22137
|
+
200: {
|
|
22138
|
+
headers: {
|
|
22139
|
+
[name: string]: unknown;
|
|
22140
|
+
};
|
|
22141
|
+
content: {
|
|
22142
|
+
"application/json": {
|
|
22143
|
+
origins: {
|
|
22144
|
+
allowed: boolean;
|
|
22145
|
+
firstSeenAt: string;
|
|
22146
|
+
lastSeenAt: string;
|
|
22147
|
+
origin: string;
|
|
22148
|
+
}[];
|
|
22149
|
+
windowDays: number;
|
|
22150
|
+
};
|
|
22151
|
+
};
|
|
22152
|
+
};
|
|
22153
|
+
/** @description Unauthorized */
|
|
22154
|
+
401: {
|
|
22155
|
+
headers: {
|
|
22156
|
+
[name: string]: unknown;
|
|
22157
|
+
};
|
|
22158
|
+
content: {
|
|
22159
|
+
"application/json": {
|
|
22160
|
+
error: string;
|
|
22161
|
+
} & {
|
|
22162
|
+
[key: string]: unknown;
|
|
22163
|
+
};
|
|
22164
|
+
};
|
|
22165
|
+
};
|
|
22166
|
+
/** @description Insufficient permissions */
|
|
22167
|
+
403: {
|
|
22168
|
+
headers: {
|
|
22169
|
+
[name: string]: unknown;
|
|
22170
|
+
};
|
|
22171
|
+
content: {
|
|
22172
|
+
"application/json": {
|
|
22173
|
+
error: string;
|
|
22174
|
+
} & {
|
|
22175
|
+
[key: string]: unknown;
|
|
22176
|
+
};
|
|
22177
|
+
};
|
|
22178
|
+
};
|
|
22179
|
+
/** @description Surface not found */
|
|
22180
|
+
404: {
|
|
22181
|
+
headers: {
|
|
22182
|
+
[name: string]: unknown;
|
|
22183
|
+
};
|
|
22184
|
+
content: {
|
|
22185
|
+
"application/json": {
|
|
22186
|
+
error: string;
|
|
22187
|
+
} & {
|
|
22188
|
+
[key: string]: unknown;
|
|
22189
|
+
};
|
|
22190
|
+
};
|
|
22191
|
+
};
|
|
22192
|
+
};
|
|
22193
|
+
};
|
|
22194
|
+
put?: never;
|
|
22195
|
+
post?: never;
|
|
22196
|
+
delete?: never;
|
|
22197
|
+
options?: never;
|
|
22198
|
+
head?: never;
|
|
22199
|
+
patch?: never;
|
|
22200
|
+
trace?: never;
|
|
22201
|
+
};
|
|
22013
22202
|
"/v1/prompts": {
|
|
22014
22203
|
parameters: {
|
|
22015
22204
|
query?: never;
|
|
@@ -33951,17 +34140,32 @@ interface BulkEditResponse {
|
|
|
33951
34140
|
recordIds?: number[];
|
|
33952
34141
|
}
|
|
33953
34142
|
type ProviderApiKey = paths['/v1/provider-keys']['get']['responses'][200]['content']['application/json']['providerKeys'][number];
|
|
34143
|
+
/**
|
|
34144
|
+
* Provider enum for creating a provider key, derived from the generated OpenAPI
|
|
34145
|
+
* spec so it can never drift from the API's accepted provider set.
|
|
34146
|
+
*/
|
|
34147
|
+
type ProviderKeyProvider = NonNullable<paths['/v1/provider-keys']['post']['requestBody']>['content']['application/json']['provider'];
|
|
34148
|
+
/**
|
|
34149
|
+
* Provider enum for creating a model config, derived from the generated OpenAPI
|
|
34150
|
+
* spec. Wider than {@link ProviderKeyProvider} (includes `model`/`runtime`/`mock`/
|
|
34151
|
+
* `modelsocket`).
|
|
34152
|
+
*/
|
|
34153
|
+
type ModelConfigProvider = NonNullable<paths['/v1/model-configs']['post']['requestBody']>['content']['application/json']['provider'];
|
|
33954
34154
|
interface CreateProviderKeyRequest {
|
|
33955
|
-
provider:
|
|
34155
|
+
provider: ProviderKeyProvider;
|
|
33956
34156
|
name: string;
|
|
33957
34157
|
apiKey: string;
|
|
33958
34158
|
isDefault?: boolean;
|
|
34159
|
+
/** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
|
|
34160
|
+
settings?: JsonObject;
|
|
33959
34161
|
}
|
|
33960
34162
|
interface UpdateProviderKeyRequest {
|
|
33961
34163
|
name?: string;
|
|
33962
34164
|
apiKey?: string;
|
|
33963
34165
|
isDefault?: boolean;
|
|
33964
34166
|
isActive?: boolean;
|
|
34167
|
+
/** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
|
|
34168
|
+
settings?: JsonObject;
|
|
33965
34169
|
}
|
|
33966
34170
|
interface CreateApiKeyRequest {
|
|
33967
34171
|
name: string;
|
|
@@ -33971,11 +34175,33 @@ interface CreateApiKeyRequest {
|
|
|
33971
34175
|
environment?: 'test' | 'production';
|
|
33972
34176
|
}
|
|
33973
34177
|
interface CreateModelConfigRequest {
|
|
33974
|
-
provider:
|
|
34178
|
+
provider: ModelConfigProvider;
|
|
33975
34179
|
modelId: string;
|
|
33976
34180
|
apiKey?: string;
|
|
34181
|
+
/** Provider key ID to use, or "platform" for Runtype's platform key. */
|
|
34182
|
+
providerKeyId?: string;
|
|
34183
|
+
/**
|
|
34184
|
+
* Optional settings. For a custom (OpenAI-compatible) model, include a
|
|
34185
|
+
* `customModel` block, e.g.
|
|
34186
|
+
* `{ customModel: { displayName, executorProvider: 'generic-openai', executorConfig: { baseURL } } }`.
|
|
34187
|
+
*/
|
|
33977
34188
|
settings?: JsonObject;
|
|
33978
34189
|
}
|
|
34190
|
+
/** A model discovered from an OpenAI-compatible endpoint's `/v1/models`. */
|
|
34191
|
+
interface DiscoveredModel {
|
|
34192
|
+
id: string;
|
|
34193
|
+
ownedBy?: string;
|
|
34194
|
+
}
|
|
34195
|
+
/** A model entry in a generic-openai provider key's discrete model list. */
|
|
34196
|
+
interface ProviderKeyModel {
|
|
34197
|
+
id: string;
|
|
34198
|
+
displayName?: string;
|
|
34199
|
+
maxOutputTokens?: number;
|
|
34200
|
+
supportsStreaming?: boolean;
|
|
34201
|
+
inputCostPer1kTokens?: number;
|
|
34202
|
+
outputCostPer1kTokens?: number;
|
|
34203
|
+
supportedResponseFormats?: string[];
|
|
34204
|
+
}
|
|
33979
34205
|
/** Content part types for multi-modal messages */
|
|
33980
34206
|
interface TextContentPart {
|
|
33981
34207
|
type: 'text';
|
|
@@ -36776,6 +37002,61 @@ declare class ModelConfigsEndpoint {
|
|
|
36776
37002
|
*/
|
|
36777
37003
|
getUsage(): Promise<any>;
|
|
36778
37004
|
}
|
|
37005
|
+
/**
|
|
37006
|
+
* Provider API key (BYOK) endpoint handlers. Manages credentials behind custom
|
|
37007
|
+
* model providers — most notably `generic-openai`, the OpenAI-compatible custom
|
|
37008
|
+
* endpoint — including model discovery against the endpoint's `/v1/models` and
|
|
37009
|
+
* setting a discrete model list. All write operations require the BYOK
|
|
37010
|
+
* entitlement; without it the API returns `402` with code `BYOK_NOT_AVAILABLE`.
|
|
37011
|
+
*/
|
|
37012
|
+
declare class ProviderKeysEndpoint {
|
|
37013
|
+
private client;
|
|
37014
|
+
constructor(client: ApiClient);
|
|
37015
|
+
/**
|
|
37016
|
+
* List the authenticated user's provider API keys (secrets are never returned)
|
|
37017
|
+
*/
|
|
37018
|
+
list(): Promise<ProviderApiKey[]>;
|
|
37019
|
+
/**
|
|
37020
|
+
* Create a provider API key. For `generic-openai`, pass
|
|
37021
|
+
* `settings: { baseUrl }` to point at the OpenAI-compatible endpoint.
|
|
37022
|
+
*/
|
|
37023
|
+
create(data: CreateProviderKeyRequest): Promise<ProviderApiKey>;
|
|
37024
|
+
/**
|
|
37025
|
+
* Update a provider API key: rename, rotate the secret, toggle default/active,
|
|
37026
|
+
* or change a generic-openai endpoint base URL via `settings: { baseUrl }`.
|
|
37027
|
+
*/
|
|
37028
|
+
update(id: string, data: UpdateProviderKeyRequest): Promise<ProviderApiKey>;
|
|
37029
|
+
/**
|
|
37030
|
+
* Delete a provider API key. For generic-openai keys this also removes the
|
|
37031
|
+
* associated model configs.
|
|
37032
|
+
*/
|
|
37033
|
+
delete(id: string): Promise<void>;
|
|
37034
|
+
/**
|
|
37035
|
+
* Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
|
|
37036
|
+
* before a key is saved.
|
|
37037
|
+
*/
|
|
37038
|
+
discoverModels(data: {
|
|
37039
|
+
apiKey: string;
|
|
37040
|
+
baseUrl: string;
|
|
37041
|
+
}): Promise<{
|
|
37042
|
+
models: DiscoveredModel[];
|
|
37043
|
+
}>;
|
|
37044
|
+
/**
|
|
37045
|
+
* Discover models from the endpoint of an existing generic-openai provider key.
|
|
37046
|
+
*/
|
|
37047
|
+
discoverModelsForKey(id: string): Promise<{
|
|
37048
|
+
models: DiscoveredModel[];
|
|
37049
|
+
}>;
|
|
37050
|
+
/**
|
|
37051
|
+
* Set the discrete model list for a generic-openai provider key. Pass the
|
|
37052
|
+
* discovered models, or a hand-authored list when the endpoint has no
|
|
37053
|
+
* `/v1/models`. An empty array removes all models for the key.
|
|
37054
|
+
*/
|
|
37055
|
+
syncModels(id: string, models: ProviderKeyModel[]): Promise<{
|
|
37056
|
+
success: boolean;
|
|
37057
|
+
syncedCount: number;
|
|
37058
|
+
}>;
|
|
37059
|
+
}
|
|
36779
37060
|
/**
|
|
36780
37061
|
* Dispatch endpoint handler for atomic record/flow creation and execution
|
|
36781
37062
|
*/
|
|
@@ -38594,6 +38875,7 @@ declare class RuntypeClient implements ApiClient {
|
|
|
38594
38875
|
records: RecordsEndpoint;
|
|
38595
38876
|
apiKeys: ApiKeysEndpoint;
|
|
38596
38877
|
modelConfigs: ModelConfigsEndpoint;
|
|
38878
|
+
providerKeys: ProviderKeysEndpoint;
|
|
38597
38879
|
dispatch: DispatchEndpoint;
|
|
38598
38880
|
chat: ChatEndpoint;
|
|
38599
38881
|
users: UsersEndpoint;
|
|
@@ -39225,4 +39507,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
39225
39507
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
39226
39508
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
39227
39509
|
|
|
39228
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
|
39510
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
package/dist/index.mjs
CHANGED
|
@@ -4962,6 +4962,65 @@ var ModelConfigsEndpoint = class {
|
|
|
4962
4962
|
return this.client.get("/model-configs/usage");
|
|
4963
4963
|
}
|
|
4964
4964
|
};
|
|
4965
|
+
var ProviderKeysEndpoint = class {
|
|
4966
|
+
constructor(client) {
|
|
4967
|
+
this.client = client;
|
|
4968
|
+
}
|
|
4969
|
+
/**
|
|
4970
|
+
* List the authenticated user's provider API keys (secrets are never returned)
|
|
4971
|
+
*/
|
|
4972
|
+
async list() {
|
|
4973
|
+
const response = await this.client.get("/provider-keys");
|
|
4974
|
+
return response.providerKeys || [];
|
|
4975
|
+
}
|
|
4976
|
+
/**
|
|
4977
|
+
* Create a provider API key. For `generic-openai`, pass
|
|
4978
|
+
* `settings: { baseUrl }` to point at the OpenAI-compatible endpoint.
|
|
4979
|
+
*/
|
|
4980
|
+
async create(data) {
|
|
4981
|
+
const response = await this.client.post("/provider-keys", data);
|
|
4982
|
+
return response.providerKey;
|
|
4983
|
+
}
|
|
4984
|
+
/**
|
|
4985
|
+
* Update a provider API key: rename, rotate the secret, toggle default/active,
|
|
4986
|
+
* or change a generic-openai endpoint base URL via `settings: { baseUrl }`.
|
|
4987
|
+
*/
|
|
4988
|
+
async update(id, data) {
|
|
4989
|
+
const response = await this.client.patch(
|
|
4990
|
+
`/provider-keys/${id}`,
|
|
4991
|
+
data
|
|
4992
|
+
);
|
|
4993
|
+
return response.providerKey;
|
|
4994
|
+
}
|
|
4995
|
+
/**
|
|
4996
|
+
* Delete a provider API key. For generic-openai keys this also removes the
|
|
4997
|
+
* associated model configs.
|
|
4998
|
+
*/
|
|
4999
|
+
async delete(id) {
|
|
5000
|
+
return this.client.delete(`/provider-keys/${id}`);
|
|
5001
|
+
}
|
|
5002
|
+
/**
|
|
5003
|
+
* Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
|
|
5004
|
+
* before a key is saved.
|
|
5005
|
+
*/
|
|
5006
|
+
async discoverModels(data) {
|
|
5007
|
+
return this.client.post("/provider-keys/discover-models", data);
|
|
5008
|
+
}
|
|
5009
|
+
/**
|
|
5010
|
+
* Discover models from the endpoint of an existing generic-openai provider key.
|
|
5011
|
+
*/
|
|
5012
|
+
async discoverModelsForKey(id) {
|
|
5013
|
+
return this.client.post(`/provider-keys/${id}/discover-models`);
|
|
5014
|
+
}
|
|
5015
|
+
/**
|
|
5016
|
+
* Set the discrete model list for a generic-openai provider key. Pass the
|
|
5017
|
+
* discovered models, or a hand-authored list when the endpoint has no
|
|
5018
|
+
* `/v1/models`. An empty array removes all models for the key.
|
|
5019
|
+
*/
|
|
5020
|
+
async syncModels(id, models) {
|
|
5021
|
+
return this.client.post(`/provider-keys/${id}/sync-models`, { models });
|
|
5022
|
+
}
|
|
5023
|
+
};
|
|
4965
5024
|
var DispatchEndpoint = class {
|
|
4966
5025
|
constructor(client) {
|
|
4967
5026
|
this.client = client;
|
|
@@ -8494,6 +8553,7 @@ var RuntypeClient2 = class {
|
|
|
8494
8553
|
this.records = new RecordsEndpoint(this);
|
|
8495
8554
|
this.apiKeys = new ApiKeysEndpoint(this);
|
|
8496
8555
|
this.modelConfigs = new ModelConfigsEndpoint(this);
|
|
8556
|
+
this.providerKeys = new ProviderKeysEndpoint(this);
|
|
8497
8557
|
this.dispatch = new DispatchEndpoint(this);
|
|
8498
8558
|
this.chat = new ChatEndpoint(this);
|
|
8499
8559
|
this.users = new UsersEndpoint(this);
|
|
@@ -9494,6 +9554,7 @@ export {
|
|
|
9494
9554
|
PromptRunner,
|
|
9495
9555
|
PromptsEndpoint,
|
|
9496
9556
|
PromptsNamespace,
|
|
9557
|
+
ProviderKeysEndpoint,
|
|
9497
9558
|
RecordsEndpoint,
|
|
9498
9559
|
Runtype,
|
|
9499
9560
|
RuntypeApiError,
|
package/package.json
CHANGED