@runtypelabs/sdk 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +59 -18
- package/dist/index.d.ts +59 -18
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6452,7 +6452,7 @@ var Runtype = class {
|
|
|
6452
6452
|
|
|
6453
6453
|
// src/version.ts
|
|
6454
6454
|
var FALLBACK_VERSION = "0.0.0";
|
|
6455
|
-
var SDK_VERSION = "7.
|
|
6455
|
+
var SDK_VERSION = "7.3.0".length > 0 ? "7.3.0" : FALLBACK_VERSION;
|
|
6456
6456
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6457
6457
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6458
6458
|
|
package/dist/index.d.cts
CHANGED
|
@@ -506,6 +506,12 @@ interface paths {
|
|
|
506
506
|
cursor?: string;
|
|
507
507
|
includeCount?: string;
|
|
508
508
|
search?: string;
|
|
509
|
+
/** @description Filter to a single agent type. */
|
|
510
|
+
agentType?: "runtype" | "external" | "claude_managed";
|
|
511
|
+
/** @description Deprecated alias for `agentType`. */
|
|
512
|
+
agent_type?: "runtype" | "external" | "claude_managed";
|
|
513
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
514
|
+
view?: "full" | "compact";
|
|
509
515
|
};
|
|
510
516
|
header?: never;
|
|
511
517
|
path?: never;
|
|
@@ -521,6 +527,7 @@ interface paths {
|
|
|
521
527
|
content: {
|
|
522
528
|
"application/json": {
|
|
523
529
|
data: {
|
|
530
|
+
agentType: string;
|
|
524
531
|
capabilityCount: number;
|
|
525
532
|
config: {
|
|
526
533
|
[key: string]: unknown;
|
|
@@ -894,7 +901,9 @@ interface paths {
|
|
|
894
901
|
/** Format: uri */
|
|
895
902
|
endpoint: string;
|
|
896
903
|
/** @enum {string} */
|
|
897
|
-
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
|
|
904
|
+
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
|
|
905
|
+
/** @enum {string} */
|
|
906
|
+
protocol?: "a2a" | "runtype-stream";
|
|
898
907
|
retryCount?: number;
|
|
899
908
|
skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
|
|
900
909
|
skillOrchestrator?: {
|
|
@@ -1703,7 +1712,7 @@ interface paths {
|
|
|
1703
1712
|
};
|
|
1704
1713
|
/**
|
|
1705
1714
|
* Update agent
|
|
1706
|
-
* @description Update an existing agent. Supports partial updates — only provided fields are changed.
|
|
1715
|
+
* @description Update an existing agent. Supports partial updates — only provided fields are changed. Both config and externalConfig are merged onto the stored values, so a partial write preserves keys it omits (notably externalConfig.protocol and externalConfig.cachedAgentCard). To REMOVE a value, send it explicitly as null: a null field clears that field, and externalConfig: null clears the whole object. Nested values replace atomically — sending auth replaces the entire auth block, so switching auth type cannot reuse the previous credential. Repointing an external agent (endpoint, agentCardUrl or protocol) discards the cached agent card, which is re-fetched by POST /agents/{id}/refresh-agent-card. Moving externalConfig.endpoint to a different host additionally requires re-sending externalConfig.auth: a stored credential is never carried to a host it was not configured against, so a repoint that omits auth is rejected with 400.
|
|
1707
1716
|
*/
|
|
1708
1717
|
put: {
|
|
1709
1718
|
parameters: {
|
|
@@ -1966,13 +1975,13 @@ interface paths {
|
|
|
1966
1975
|
description?: string;
|
|
1967
1976
|
externalConfig?: {
|
|
1968
1977
|
/** Format: uri */
|
|
1969
|
-
agentCardUrl?: string;
|
|
1978
|
+
agentCardUrl?: string | null;
|
|
1970
1979
|
auth?: {
|
|
1971
1980
|
credentials?: string;
|
|
1972
1981
|
headerName?: string;
|
|
1973
1982
|
/** @enum {string} */
|
|
1974
1983
|
type: "none" | "bearer" | "api_key" | "basic";
|
|
1975
|
-
};
|
|
1984
|
+
} | null;
|
|
1976
1985
|
cachedAgentCard?: {
|
|
1977
1986
|
capabilities?: {
|
|
1978
1987
|
pushNotifications?: boolean;
|
|
@@ -1996,13 +2005,15 @@ interface paths {
|
|
|
1996
2005
|
};
|
|
1997
2006
|
}[];
|
|
1998
2007
|
version?: string;
|
|
1999
|
-
};
|
|
2008
|
+
} | null;
|
|
2000
2009
|
/** Format: uri */
|
|
2001
|
-
endpoint
|
|
2002
|
-
/** @enum {string} */
|
|
2003
|
-
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
|
|
2004
|
-
|
|
2005
|
-
|
|
2010
|
+
endpoint?: string;
|
|
2011
|
+
/** @enum {string|null} */
|
|
2012
|
+
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom" | null;
|
|
2013
|
+
/** @enum {string|null} */
|
|
2014
|
+
protocol?: "a2a" | "runtype-stream" | null;
|
|
2015
|
+
retryCount?: number | null;
|
|
2016
|
+
skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none") | null;
|
|
2006
2017
|
skillOrchestrator?: {
|
|
2007
2018
|
frequencyPenalty?: number;
|
|
2008
2019
|
model: string;
|
|
@@ -2022,7 +2033,7 @@ interface paths {
|
|
|
2022
2033
|
temperature?: number;
|
|
2023
2034
|
topK?: number;
|
|
2024
2035
|
topP?: number;
|
|
2025
|
-
};
|
|
2036
|
+
} | null;
|
|
2026
2037
|
skillsOverride?: {
|
|
2027
2038
|
enabled: boolean;
|
|
2028
2039
|
exposedDescription?: string;
|
|
@@ -2031,8 +2042,8 @@ interface paths {
|
|
|
2031
2042
|
isNew?: boolean;
|
|
2032
2043
|
/** @enum {string} */
|
|
2033
2044
|
role?: "orchestrator" | "tool" | "standalone" | "hidden";
|
|
2034
|
-
}[];
|
|
2035
|
-
timeoutMs?: number;
|
|
2045
|
+
}[] | null;
|
|
2046
|
+
timeoutMs?: number | null;
|
|
2036
2047
|
} | null;
|
|
2037
2048
|
icon?: string;
|
|
2038
2049
|
maxTurns?: number;
|
|
@@ -5449,7 +5460,11 @@ interface paths {
|
|
|
5449
5460
|
"application/json": {
|
|
5450
5461
|
batchExecutionId: string;
|
|
5451
5462
|
recordId: string;
|
|
5463
|
+
/** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
5464
|
+
selfReportedCostUsd: number;
|
|
5452
5465
|
totalCostUsd: number;
|
|
5466
|
+
/** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
5467
|
+
unpricedExecutions: number;
|
|
5453
5468
|
};
|
|
5454
5469
|
};
|
|
5455
5470
|
};
|
|
@@ -5632,7 +5647,7 @@ interface paths {
|
|
|
5632
5647
|
};
|
|
5633
5648
|
/**
|
|
5634
5649
|
* Get batch execution total cost
|
|
5635
|
-
* @description Returns the total cost across all records, flow steps, agent executions, and nested subagents.
|
|
5650
|
+
* @description Returns the total cost across all records, flow steps, agent executions, and nested subagents, decomposed by how much the figure can be trusted.
|
|
5636
5651
|
*/
|
|
5637
5652
|
get: {
|
|
5638
5653
|
parameters: {
|
|
@@ -5654,7 +5669,11 @@ interface paths {
|
|
|
5654
5669
|
content: {
|
|
5655
5670
|
"application/json": {
|
|
5656
5671
|
batchExecutionId: string;
|
|
5672
|
+
/** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
5673
|
+
selfReportedCostUsd: number;
|
|
5657
5674
|
totalCostUsd: number;
|
|
5675
|
+
/** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
5676
|
+
unpricedExecutions: number;
|
|
5658
5677
|
};
|
|
5659
5678
|
};
|
|
5660
5679
|
};
|
|
@@ -7987,6 +8006,8 @@ interface paths {
|
|
|
7987
8006
|
limit?: string;
|
|
7988
8007
|
cursor?: string;
|
|
7989
8008
|
includeCount?: string;
|
|
8009
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
8010
|
+
view?: "full" | "compact";
|
|
7990
8011
|
};
|
|
7991
8012
|
header?: never;
|
|
7992
8013
|
path?: never;
|
|
@@ -8750,6 +8771,8 @@ interface paths {
|
|
|
8750
8771
|
name?: string;
|
|
8751
8772
|
cursor?: string;
|
|
8752
8773
|
limit?: string;
|
|
8774
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
8775
|
+
view?: "full" | "compact";
|
|
8753
8776
|
};
|
|
8754
8777
|
header?: never;
|
|
8755
8778
|
path?: never;
|
|
@@ -16685,6 +16708,8 @@ interface paths {
|
|
|
16685
16708
|
direction?: string;
|
|
16686
16709
|
includeCount?: string;
|
|
16687
16710
|
search?: string;
|
|
16711
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
16712
|
+
view?: "full" | "compact";
|
|
16688
16713
|
};
|
|
16689
16714
|
header?: never;
|
|
16690
16715
|
path?: never;
|
|
@@ -26165,6 +26190,8 @@ interface paths {
|
|
|
26165
26190
|
limit?: string;
|
|
26166
26191
|
cursor?: string;
|
|
26167
26192
|
search?: string;
|
|
26193
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
26194
|
+
view?: "full" | "compact";
|
|
26168
26195
|
};
|
|
26169
26196
|
header?: never;
|
|
26170
26197
|
path?: never;
|
|
@@ -29005,12 +29032,12 @@ interface paths {
|
|
|
29005
29032
|
surfaceId: string;
|
|
29006
29033
|
/** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
|
|
29007
29034
|
warnings?: {
|
|
29008
|
-
/** @description Stable advisory code
|
|
29035
|
+
/** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
|
|
29009
29036
|
code: string;
|
|
29010
29037
|
message: string;
|
|
29011
29038
|
path: string;
|
|
29012
29039
|
/** @enum {string} */
|
|
29013
|
-
severity: "warning";
|
|
29040
|
+
severity: "warning" | "recommendation";
|
|
29014
29041
|
suggestedFix?: string;
|
|
29015
29042
|
}[];
|
|
29016
29043
|
};
|
|
@@ -29159,12 +29186,12 @@ interface paths {
|
|
|
29159
29186
|
surfaceId: string;
|
|
29160
29187
|
/** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
|
|
29161
29188
|
warnings?: {
|
|
29162
|
-
/** @description Stable advisory code
|
|
29189
|
+
/** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
|
|
29163
29190
|
code: string;
|
|
29164
29191
|
message: string;
|
|
29165
29192
|
path: string;
|
|
29166
29193
|
/** @enum {string} */
|
|
29167
|
-
severity: "warning";
|
|
29194
|
+
severity: "warning" | "recommendation";
|
|
29168
29195
|
suggestedFix?: string;
|
|
29169
29196
|
}[];
|
|
29170
29197
|
};
|
|
@@ -32250,6 +32277,8 @@ interface paths {
|
|
|
32250
32277
|
search?: string;
|
|
32251
32278
|
/** @description Filter by model ID */
|
|
32252
32279
|
model?: string;
|
|
32280
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
32281
|
+
view?: "full" | "compact";
|
|
32253
32282
|
};
|
|
32254
32283
|
header?: never;
|
|
32255
32284
|
path?: never;
|
|
@@ -34352,6 +34381,8 @@ interface paths {
|
|
|
34352
34381
|
min_size_kb?: string;
|
|
34353
34382
|
max_size_kb?: string;
|
|
34354
34383
|
recordFilter?: string;
|
|
34384
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
34385
|
+
view?: "full" | "compact";
|
|
34355
34386
|
};
|
|
34356
34387
|
header?: never;
|
|
34357
34388
|
path?: never;
|
|
@@ -37760,6 +37791,8 @@ interface paths {
|
|
|
37760
37791
|
search?: string;
|
|
37761
37792
|
/** @description Filter by status */
|
|
37762
37793
|
status?: "active" | "paused";
|
|
37794
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
37795
|
+
view?: "full" | "compact";
|
|
37763
37796
|
};
|
|
37764
37797
|
header?: never;
|
|
37765
37798
|
path?: never;
|
|
@@ -38902,6 +38935,8 @@ interface paths {
|
|
|
38902
38935
|
"application/json": {
|
|
38903
38936
|
avgCostUsd: number | null;
|
|
38904
38937
|
avgDurationMs: number | null;
|
|
38938
|
+
/** @description Portion of avgCostUsd asserted by externally-run agents pushed to /v1/executions/ingest, over the same run count. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
38939
|
+
avgSelfReportedCostUsd: number | null;
|
|
38905
38940
|
completed: number;
|
|
38906
38941
|
failed: number;
|
|
38907
38942
|
last7Days: {
|
|
@@ -38911,6 +38946,8 @@ interface paths {
|
|
|
38911
38946
|
}[];
|
|
38912
38947
|
successRate: number | null;
|
|
38913
38948
|
total: number;
|
|
38949
|
+
/** @description Count of rows behind these costs that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
38950
|
+
unpricedExecutions: number;
|
|
38914
38951
|
};
|
|
38915
38952
|
};
|
|
38916
38953
|
};
|
|
@@ -40062,6 +40099,8 @@ interface paths {
|
|
|
40062
40099
|
cursor?: string;
|
|
40063
40100
|
direction?: string;
|
|
40064
40101
|
includeCount?: string;
|
|
40102
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
40103
|
+
view?: "full" | "compact";
|
|
40065
40104
|
};
|
|
40066
40105
|
header?: never;
|
|
40067
40106
|
path?: never;
|
|
@@ -41433,6 +41472,8 @@ interface paths {
|
|
|
41433
41472
|
isActive?: string;
|
|
41434
41473
|
ids?: string;
|
|
41435
41474
|
include?: string;
|
|
41475
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
41476
|
+
view?: "full" | "compact";
|
|
41436
41477
|
};
|
|
41437
41478
|
header?: never;
|
|
41438
41479
|
path?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -506,6 +506,12 @@ interface paths {
|
|
|
506
506
|
cursor?: string;
|
|
507
507
|
includeCount?: string;
|
|
508
508
|
search?: string;
|
|
509
|
+
/** @description Filter to a single agent type. */
|
|
510
|
+
agentType?: "runtype" | "external" | "claude_managed";
|
|
511
|
+
/** @description Deprecated alias for `agentType`. */
|
|
512
|
+
agent_type?: "runtype" | "external" | "claude_managed";
|
|
513
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
514
|
+
view?: "full" | "compact";
|
|
509
515
|
};
|
|
510
516
|
header?: never;
|
|
511
517
|
path?: never;
|
|
@@ -521,6 +527,7 @@ interface paths {
|
|
|
521
527
|
content: {
|
|
522
528
|
"application/json": {
|
|
523
529
|
data: {
|
|
530
|
+
agentType: string;
|
|
524
531
|
capabilityCount: number;
|
|
525
532
|
config: {
|
|
526
533
|
[key: string]: unknown;
|
|
@@ -894,7 +901,9 @@ interface paths {
|
|
|
894
901
|
/** Format: uri */
|
|
895
902
|
endpoint: string;
|
|
896
903
|
/** @enum {string} */
|
|
897
|
-
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
|
|
904
|
+
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
|
|
905
|
+
/** @enum {string} */
|
|
906
|
+
protocol?: "a2a" | "runtype-stream";
|
|
898
907
|
retryCount?: number;
|
|
899
908
|
skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
|
|
900
909
|
skillOrchestrator?: {
|
|
@@ -1703,7 +1712,7 @@ interface paths {
|
|
|
1703
1712
|
};
|
|
1704
1713
|
/**
|
|
1705
1714
|
* Update agent
|
|
1706
|
-
* @description Update an existing agent. Supports partial updates — only provided fields are changed.
|
|
1715
|
+
* @description Update an existing agent. Supports partial updates — only provided fields are changed. Both config and externalConfig are merged onto the stored values, so a partial write preserves keys it omits (notably externalConfig.protocol and externalConfig.cachedAgentCard). To REMOVE a value, send it explicitly as null: a null field clears that field, and externalConfig: null clears the whole object. Nested values replace atomically — sending auth replaces the entire auth block, so switching auth type cannot reuse the previous credential. Repointing an external agent (endpoint, agentCardUrl or protocol) discards the cached agent card, which is re-fetched by POST /agents/{id}/refresh-agent-card. Moving externalConfig.endpoint to a different host additionally requires re-sending externalConfig.auth: a stored credential is never carried to a host it was not configured against, so a repoint that omits auth is rejected with 400.
|
|
1707
1716
|
*/
|
|
1708
1717
|
put: {
|
|
1709
1718
|
parameters: {
|
|
@@ -1966,13 +1975,13 @@ interface paths {
|
|
|
1966
1975
|
description?: string;
|
|
1967
1976
|
externalConfig?: {
|
|
1968
1977
|
/** Format: uri */
|
|
1969
|
-
agentCardUrl?: string;
|
|
1978
|
+
agentCardUrl?: string | null;
|
|
1970
1979
|
auth?: {
|
|
1971
1980
|
credentials?: string;
|
|
1972
1981
|
headerName?: string;
|
|
1973
1982
|
/** @enum {string} */
|
|
1974
1983
|
type: "none" | "bearer" | "api_key" | "basic";
|
|
1975
|
-
};
|
|
1984
|
+
} | null;
|
|
1976
1985
|
cachedAgentCard?: {
|
|
1977
1986
|
capabilities?: {
|
|
1978
1987
|
pushNotifications?: boolean;
|
|
@@ -1996,13 +2005,15 @@ interface paths {
|
|
|
1996
2005
|
};
|
|
1997
2006
|
}[];
|
|
1998
2007
|
version?: string;
|
|
1999
|
-
};
|
|
2008
|
+
} | null;
|
|
2000
2009
|
/** Format: uri */
|
|
2001
|
-
endpoint
|
|
2002
|
-
/** @enum {string} */
|
|
2003
|
-
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
|
|
2004
|
-
|
|
2005
|
-
|
|
2010
|
+
endpoint?: string;
|
|
2011
|
+
/** @enum {string|null} */
|
|
2012
|
+
framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom" | null;
|
|
2013
|
+
/** @enum {string|null} */
|
|
2014
|
+
protocol?: "a2a" | "runtype-stream" | null;
|
|
2015
|
+
retryCount?: number | null;
|
|
2016
|
+
skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none") | null;
|
|
2006
2017
|
skillOrchestrator?: {
|
|
2007
2018
|
frequencyPenalty?: number;
|
|
2008
2019
|
model: string;
|
|
@@ -2022,7 +2033,7 @@ interface paths {
|
|
|
2022
2033
|
temperature?: number;
|
|
2023
2034
|
topK?: number;
|
|
2024
2035
|
topP?: number;
|
|
2025
|
-
};
|
|
2036
|
+
} | null;
|
|
2026
2037
|
skillsOverride?: {
|
|
2027
2038
|
enabled: boolean;
|
|
2028
2039
|
exposedDescription?: string;
|
|
@@ -2031,8 +2042,8 @@ interface paths {
|
|
|
2031
2042
|
isNew?: boolean;
|
|
2032
2043
|
/** @enum {string} */
|
|
2033
2044
|
role?: "orchestrator" | "tool" | "standalone" | "hidden";
|
|
2034
|
-
}[];
|
|
2035
|
-
timeoutMs?: number;
|
|
2045
|
+
}[] | null;
|
|
2046
|
+
timeoutMs?: number | null;
|
|
2036
2047
|
} | null;
|
|
2037
2048
|
icon?: string;
|
|
2038
2049
|
maxTurns?: number;
|
|
@@ -5449,7 +5460,11 @@ interface paths {
|
|
|
5449
5460
|
"application/json": {
|
|
5450
5461
|
batchExecutionId: string;
|
|
5451
5462
|
recordId: string;
|
|
5463
|
+
/** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
5464
|
+
selfReportedCostUsd: number;
|
|
5452
5465
|
totalCostUsd: number;
|
|
5466
|
+
/** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
5467
|
+
unpricedExecutions: number;
|
|
5453
5468
|
};
|
|
5454
5469
|
};
|
|
5455
5470
|
};
|
|
@@ -5632,7 +5647,7 @@ interface paths {
|
|
|
5632
5647
|
};
|
|
5633
5648
|
/**
|
|
5634
5649
|
* Get batch execution total cost
|
|
5635
|
-
* @description Returns the total cost across all records, flow steps, agent executions, and nested subagents.
|
|
5650
|
+
* @description Returns the total cost across all records, flow steps, agent executions, and nested subagents, decomposed by how much the figure can be trusted.
|
|
5636
5651
|
*/
|
|
5637
5652
|
get: {
|
|
5638
5653
|
parameters: {
|
|
@@ -5654,7 +5669,11 @@ interface paths {
|
|
|
5654
5669
|
content: {
|
|
5655
5670
|
"application/json": {
|
|
5656
5671
|
batchExecutionId: string;
|
|
5672
|
+
/** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
5673
|
+
selfReportedCostUsd: number;
|
|
5657
5674
|
totalCostUsd: number;
|
|
5675
|
+
/** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
5676
|
+
unpricedExecutions: number;
|
|
5658
5677
|
};
|
|
5659
5678
|
};
|
|
5660
5679
|
};
|
|
@@ -7987,6 +8006,8 @@ interface paths {
|
|
|
7987
8006
|
limit?: string;
|
|
7988
8007
|
cursor?: string;
|
|
7989
8008
|
includeCount?: string;
|
|
8009
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
8010
|
+
view?: "full" | "compact";
|
|
7990
8011
|
};
|
|
7991
8012
|
header?: never;
|
|
7992
8013
|
path?: never;
|
|
@@ -8750,6 +8771,8 @@ interface paths {
|
|
|
8750
8771
|
name?: string;
|
|
8751
8772
|
cursor?: string;
|
|
8752
8773
|
limit?: string;
|
|
8774
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
8775
|
+
view?: "full" | "compact";
|
|
8753
8776
|
};
|
|
8754
8777
|
header?: never;
|
|
8755
8778
|
path?: never;
|
|
@@ -16685,6 +16708,8 @@ interface paths {
|
|
|
16685
16708
|
direction?: string;
|
|
16686
16709
|
includeCount?: string;
|
|
16687
16710
|
search?: string;
|
|
16711
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
16712
|
+
view?: "full" | "compact";
|
|
16688
16713
|
};
|
|
16689
16714
|
header?: never;
|
|
16690
16715
|
path?: never;
|
|
@@ -26165,6 +26190,8 @@ interface paths {
|
|
|
26165
26190
|
limit?: string;
|
|
26166
26191
|
cursor?: string;
|
|
26167
26192
|
search?: string;
|
|
26193
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
26194
|
+
view?: "full" | "compact";
|
|
26168
26195
|
};
|
|
26169
26196
|
header?: never;
|
|
26170
26197
|
path?: never;
|
|
@@ -29005,12 +29032,12 @@ interface paths {
|
|
|
29005
29032
|
surfaceId: string;
|
|
29006
29033
|
/** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
|
|
29007
29034
|
warnings?: {
|
|
29008
|
-
/** @description Stable advisory code
|
|
29035
|
+
/** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
|
|
29009
29036
|
code: string;
|
|
29010
29037
|
message: string;
|
|
29011
29038
|
path: string;
|
|
29012
29039
|
/** @enum {string} */
|
|
29013
|
-
severity: "warning";
|
|
29040
|
+
severity: "warning" | "recommendation";
|
|
29014
29041
|
suggestedFix?: string;
|
|
29015
29042
|
}[];
|
|
29016
29043
|
};
|
|
@@ -29159,12 +29186,12 @@ interface paths {
|
|
|
29159
29186
|
surfaceId: string;
|
|
29160
29187
|
/** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
|
|
29161
29188
|
warnings?: {
|
|
29162
|
-
/** @description Stable advisory code
|
|
29189
|
+
/** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
|
|
29163
29190
|
code: string;
|
|
29164
29191
|
message: string;
|
|
29165
29192
|
path: string;
|
|
29166
29193
|
/** @enum {string} */
|
|
29167
|
-
severity: "warning";
|
|
29194
|
+
severity: "warning" | "recommendation";
|
|
29168
29195
|
suggestedFix?: string;
|
|
29169
29196
|
}[];
|
|
29170
29197
|
};
|
|
@@ -32250,6 +32277,8 @@ interface paths {
|
|
|
32250
32277
|
search?: string;
|
|
32251
32278
|
/** @description Filter by model ID */
|
|
32252
32279
|
model?: string;
|
|
32280
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
32281
|
+
view?: "full" | "compact";
|
|
32253
32282
|
};
|
|
32254
32283
|
header?: never;
|
|
32255
32284
|
path?: never;
|
|
@@ -34352,6 +34381,8 @@ interface paths {
|
|
|
34352
34381
|
min_size_kb?: string;
|
|
34353
34382
|
max_size_kb?: string;
|
|
34354
34383
|
recordFilter?: string;
|
|
34384
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
34385
|
+
view?: "full" | "compact";
|
|
34355
34386
|
};
|
|
34356
34387
|
header?: never;
|
|
34357
34388
|
path?: never;
|
|
@@ -37760,6 +37791,8 @@ interface paths {
|
|
|
37760
37791
|
search?: string;
|
|
37761
37792
|
/** @description Filter by status */
|
|
37762
37793
|
status?: "active" | "paused";
|
|
37794
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
37795
|
+
view?: "full" | "compact";
|
|
37763
37796
|
};
|
|
37764
37797
|
header?: never;
|
|
37765
37798
|
path?: never;
|
|
@@ -38902,6 +38935,8 @@ interface paths {
|
|
|
38902
38935
|
"application/json": {
|
|
38903
38936
|
avgCostUsd: number | null;
|
|
38904
38937
|
avgDurationMs: number | null;
|
|
38938
|
+
/** @description Portion of avgCostUsd asserted by externally-run agents pushed to /v1/executions/ingest, over the same run count. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
|
|
38939
|
+
avgSelfReportedCostUsd: number | null;
|
|
38905
38940
|
completed: number;
|
|
38906
38941
|
failed: number;
|
|
38907
38942
|
last7Days: {
|
|
@@ -38911,6 +38946,8 @@ interface paths {
|
|
|
38911
38946
|
}[];
|
|
38912
38947
|
successRate: number | null;
|
|
38913
38948
|
total: number;
|
|
38949
|
+
/** @description Count of rows behind these costs that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
|
|
38950
|
+
unpricedExecutions: number;
|
|
38914
38951
|
};
|
|
38915
38952
|
};
|
|
38916
38953
|
};
|
|
@@ -40062,6 +40099,8 @@ interface paths {
|
|
|
40062
40099
|
cursor?: string;
|
|
40063
40100
|
direction?: string;
|
|
40064
40101
|
includeCount?: string;
|
|
40102
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
40103
|
+
view?: "full" | "compact";
|
|
40065
40104
|
};
|
|
40066
40105
|
header?: never;
|
|
40067
40106
|
path?: never;
|
|
@@ -41433,6 +41472,8 @@ interface paths {
|
|
|
41433
41472
|
isActive?: string;
|
|
41434
41473
|
ids?: string;
|
|
41435
41474
|
include?: string;
|
|
41475
|
+
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
41476
|
+
view?: "full" | "compact";
|
|
41436
41477
|
};
|
|
41437
41478
|
header?: never;
|
|
41438
41479
|
path?: never;
|
package/dist/index.mjs
CHANGED
|
@@ -6264,7 +6264,7 @@ var Runtype = class {
|
|
|
6264
6264
|
|
|
6265
6265
|
// src/version.ts
|
|
6266
6266
|
var FALLBACK_VERSION = "0.0.0";
|
|
6267
|
-
var SDK_VERSION = "7.
|
|
6267
|
+
var SDK_VERSION = "7.3.0".length > 0 ? "7.3.0" : FALLBACK_VERSION;
|
|
6268
6268
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6269
6269
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6270
6270
|
|
package/package.json
CHANGED