@runtypelabs/sdk 6.6.0 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +186 -41
- package/dist/index.d.ts +186 -41
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6449,7 +6449,7 @@ var Runtype = class {
|
|
|
6449
6449
|
|
|
6450
6450
|
// src/version.ts
|
|
6451
6451
|
var FALLBACK_VERSION = "0.0.0";
|
|
6452
|
-
var SDK_VERSION = "6.6.
|
|
6452
|
+
var SDK_VERSION = "6.6.1".length > 0 ? "6.6.1" : FALLBACK_VERSION;
|
|
6453
6453
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6454
6454
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6455
6455
|
|
package/dist/index.d.cts
CHANGED
|
@@ -5134,7 +5134,7 @@ interface paths {
|
|
|
5134
5134
|
maxRetries?: number;
|
|
5135
5135
|
/** @description Model id applied to every prompt step in this batch. */
|
|
5136
5136
|
modelOverride?: string;
|
|
5137
|
-
/** @description Completed results
|
|
5137
|
+
/** @description Deprecated and ignored. Completed results are now persisted per record as they finish, so no partial progress is held in memory and this threshold has no effect. Still accepted for backward compatibility. */
|
|
5138
5138
|
progressFlushSize?: number;
|
|
5139
5139
|
/** @description Max records dispatched in parallel within a processing chunk. */
|
|
5140
5140
|
recordConcurrency?: number;
|
|
@@ -10156,6 +10156,9 @@ interface paths {
|
|
|
10156
10156
|
[key: string]: unknown;
|
|
10157
10157
|
};
|
|
10158
10158
|
flow: {
|
|
10159
|
+
agents?: {
|
|
10160
|
+
[key: string]: unknown;
|
|
10161
|
+
};
|
|
10159
10162
|
contentHash?: string;
|
|
10160
10163
|
description?: string;
|
|
10161
10164
|
id?: string;
|
|
@@ -10517,6 +10520,9 @@ interface paths {
|
|
|
10517
10520
|
[key: string]: unknown;
|
|
10518
10521
|
};
|
|
10519
10522
|
flow?: {
|
|
10523
|
+
agents?: {
|
|
10524
|
+
[key: string]: unknown;
|
|
10525
|
+
};
|
|
10520
10526
|
contentHash?: string;
|
|
10521
10527
|
description?: string;
|
|
10522
10528
|
id?: string;
|
|
@@ -14848,6 +14854,108 @@ interface paths {
|
|
|
14848
14854
|
patch?: never;
|
|
14849
14855
|
trace?: never;
|
|
14850
14856
|
};
|
|
14857
|
+
"/v1/executions/{executionId}/journal": {
|
|
14858
|
+
parameters: {
|
|
14859
|
+
query?: never;
|
|
14860
|
+
header?: never;
|
|
14861
|
+
path?: never;
|
|
14862
|
+
cookie?: never;
|
|
14863
|
+
};
|
|
14864
|
+
/**
|
|
14865
|
+
* Read an execution journal
|
|
14866
|
+
* @description Returns the durable flow-execution journal events for an execution the caller owns, in replay order. At most 1000 events are returned; when the execution has more, the response is capped at that many rows and `truncated` is true.
|
|
14867
|
+
*/
|
|
14868
|
+
get: {
|
|
14869
|
+
parameters: {
|
|
14870
|
+
query?: never;
|
|
14871
|
+
header?: never;
|
|
14872
|
+
path: {
|
|
14873
|
+
/** @description Execution ID to read */
|
|
14874
|
+
executionId: string;
|
|
14875
|
+
};
|
|
14876
|
+
cookie?: never;
|
|
14877
|
+
};
|
|
14878
|
+
requestBody?: never;
|
|
14879
|
+
responses: {
|
|
14880
|
+
/** @description Journal events returned */
|
|
14881
|
+
200: {
|
|
14882
|
+
headers: {
|
|
14883
|
+
[name: string]: unknown;
|
|
14884
|
+
};
|
|
14885
|
+
content: {
|
|
14886
|
+
"application/json": {
|
|
14887
|
+
executionId: string;
|
|
14888
|
+
journalEvents: {
|
|
14889
|
+
attempt: number | null;
|
|
14890
|
+
createdAt: string | null;
|
|
14891
|
+
eventName: string;
|
|
14892
|
+
id: string;
|
|
14893
|
+
payload: {
|
|
14894
|
+
[key: string]: unknown;
|
|
14895
|
+
};
|
|
14896
|
+
seq: number;
|
|
14897
|
+
stepId: string | null;
|
|
14898
|
+
}[];
|
|
14899
|
+
/** @description True when the execution has more than 1000 journal events and the returned list is capped. */
|
|
14900
|
+
truncated: boolean;
|
|
14901
|
+
};
|
|
14902
|
+
};
|
|
14903
|
+
};
|
|
14904
|
+
/** @description Invalid execution ID */
|
|
14905
|
+
400: {
|
|
14906
|
+
headers: {
|
|
14907
|
+
[name: string]: unknown;
|
|
14908
|
+
};
|
|
14909
|
+
content: {
|
|
14910
|
+
"application/json": components["schemas"]["Error"];
|
|
14911
|
+
};
|
|
14912
|
+
};
|
|
14913
|
+
/** @description Unauthorized */
|
|
14914
|
+
401: {
|
|
14915
|
+
headers: {
|
|
14916
|
+
[name: string]: unknown;
|
|
14917
|
+
};
|
|
14918
|
+
content: {
|
|
14919
|
+
"application/json": components["schemas"]["Error"];
|
|
14920
|
+
};
|
|
14921
|
+
};
|
|
14922
|
+
/** @description Insufficient API key permissions */
|
|
14923
|
+
403: {
|
|
14924
|
+
headers: {
|
|
14925
|
+
[name: string]: unknown;
|
|
14926
|
+
};
|
|
14927
|
+
content: {
|
|
14928
|
+
"application/json": components["schemas"]["Error"];
|
|
14929
|
+
};
|
|
14930
|
+
};
|
|
14931
|
+
/** @description Not found */
|
|
14932
|
+
404: {
|
|
14933
|
+
headers: {
|
|
14934
|
+
[name: string]: unknown;
|
|
14935
|
+
};
|
|
14936
|
+
content: {
|
|
14937
|
+
"application/json": components["schemas"]["Error"];
|
|
14938
|
+
};
|
|
14939
|
+
};
|
|
14940
|
+
/** @description Internal server error */
|
|
14941
|
+
500: {
|
|
14942
|
+
headers: {
|
|
14943
|
+
[name: string]: unknown;
|
|
14944
|
+
};
|
|
14945
|
+
content: {
|
|
14946
|
+
"application/json": components["schemas"]["Error"];
|
|
14947
|
+
};
|
|
14948
|
+
};
|
|
14949
|
+
};
|
|
14950
|
+
};
|
|
14951
|
+
put?: never;
|
|
14952
|
+
post?: never;
|
|
14953
|
+
delete?: never;
|
|
14954
|
+
options?: never;
|
|
14955
|
+
head?: never;
|
|
14956
|
+
patch?: never;
|
|
14957
|
+
trace?: never;
|
|
14958
|
+
};
|
|
14851
14959
|
"/v1/feedback": {
|
|
14852
14960
|
parameters: {
|
|
14853
14961
|
query?: never;
|
|
@@ -27273,7 +27381,7 @@ interface paths {
|
|
|
27273
27381
|
put?: never;
|
|
27274
27382
|
/**
|
|
27275
27383
|
* Create surface
|
|
27276
|
-
* @description Create a new surface for a product.
|
|
27384
|
+
* @description Create a new surface for a product.
|
|
27277
27385
|
*/
|
|
27278
27386
|
post: {
|
|
27279
27387
|
parameters: {
|
|
@@ -27353,15 +27461,6 @@ interface paths {
|
|
|
27353
27461
|
"application/json": components["schemas"]["Error"];
|
|
27354
27462
|
};
|
|
27355
27463
|
};
|
|
27356
|
-
/** @description Surface limit exceeded */
|
|
27357
|
-
402: {
|
|
27358
|
-
headers: {
|
|
27359
|
-
[name: string]: unknown;
|
|
27360
|
-
};
|
|
27361
|
-
content: {
|
|
27362
|
-
"application/json": components["schemas"]["Error"];
|
|
27363
|
-
};
|
|
27364
|
-
};
|
|
27365
27464
|
/** @description Insufficient permissions */
|
|
27366
27465
|
403: {
|
|
27367
27466
|
headers: {
|
|
@@ -27477,15 +27576,6 @@ interface paths {
|
|
|
27477
27576
|
"application/json": components["schemas"]["Error"];
|
|
27478
27577
|
};
|
|
27479
27578
|
};
|
|
27480
|
-
/** @description Plan surface limit reached for the target environment (only a create counts against the quota) */
|
|
27481
|
-
402: {
|
|
27482
|
-
headers: {
|
|
27483
|
-
[name: string]: unknown;
|
|
27484
|
-
};
|
|
27485
|
-
content: {
|
|
27486
|
-
"application/json": components["schemas"]["Error"];
|
|
27487
|
-
};
|
|
27488
|
-
};
|
|
27489
27579
|
/** @description Insufficient permissions */
|
|
27490
27580
|
403: {
|
|
27491
27581
|
headers: {
|
|
@@ -27830,15 +27920,6 @@ interface paths {
|
|
|
27830
27920
|
"application/json": components["schemas"]["Error"];
|
|
27831
27921
|
};
|
|
27832
27922
|
};
|
|
27833
|
-
/** @description Surface limit exceeded */
|
|
27834
|
-
402: {
|
|
27835
|
-
headers: {
|
|
27836
|
-
[name: string]: unknown;
|
|
27837
|
-
};
|
|
27838
|
-
content: {
|
|
27839
|
-
"application/json": components["schemas"]["Error"];
|
|
27840
|
-
};
|
|
27841
|
-
};
|
|
27842
27923
|
/** @description Insufficient permissions */
|
|
27843
27924
|
403: {
|
|
27844
27925
|
headers: {
|
|
@@ -36106,11 +36187,23 @@ interface paths {
|
|
|
36106
36187
|
record: {
|
|
36107
36188
|
createdAt: string;
|
|
36108
36189
|
id: string;
|
|
36190
|
+
messages?: {
|
|
36191
|
+
content: string;
|
|
36192
|
+
role: string;
|
|
36193
|
+
}[] | null;
|
|
36109
36194
|
metadata: {
|
|
36110
36195
|
[key: string]: unknown;
|
|
36111
36196
|
};
|
|
36197
|
+
metadataLabels?: {
|
|
36198
|
+
[key: string]: string;
|
|
36199
|
+
} | null;
|
|
36200
|
+
metadataSchema?: {
|
|
36201
|
+
[key: string]: unknown;
|
|
36202
|
+
} | null;
|
|
36112
36203
|
name: string;
|
|
36113
36204
|
organizationId: string | null;
|
|
36205
|
+
productSurfaceId?: string | null;
|
|
36206
|
+
schemaValid?: boolean | null;
|
|
36114
36207
|
type: string;
|
|
36115
36208
|
updatedAt: string;
|
|
36116
36209
|
userId: string;
|
|
@@ -36260,11 +36353,23 @@ interface paths {
|
|
|
36260
36353
|
records: {
|
|
36261
36354
|
createdAt: string;
|
|
36262
36355
|
id: string;
|
|
36356
|
+
messages?: {
|
|
36357
|
+
content: string;
|
|
36358
|
+
role: string;
|
|
36359
|
+
}[] | null;
|
|
36263
36360
|
metadata: {
|
|
36264
36361
|
[key: string]: unknown;
|
|
36265
36362
|
};
|
|
36363
|
+
metadataLabels?: {
|
|
36364
|
+
[key: string]: string;
|
|
36365
|
+
} | null;
|
|
36366
|
+
metadataSchema?: {
|
|
36367
|
+
[key: string]: unknown;
|
|
36368
|
+
} | null;
|
|
36266
36369
|
name: string;
|
|
36267
36370
|
organizationId: string | null;
|
|
36371
|
+
productSurfaceId?: string | null;
|
|
36372
|
+
schemaValid?: boolean | null;
|
|
36268
36373
|
type: string;
|
|
36269
36374
|
updatedAt: string;
|
|
36270
36375
|
userId: string;
|
|
@@ -36394,11 +36499,23 @@ interface paths {
|
|
|
36394
36499
|
record: {
|
|
36395
36500
|
createdAt: string;
|
|
36396
36501
|
id: string;
|
|
36502
|
+
messages?: {
|
|
36503
|
+
content: string;
|
|
36504
|
+
role: string;
|
|
36505
|
+
}[] | null;
|
|
36397
36506
|
metadata: {
|
|
36398
36507
|
[key: string]: unknown;
|
|
36399
36508
|
};
|
|
36509
|
+
metadataLabels?: {
|
|
36510
|
+
[key: string]: string;
|
|
36511
|
+
} | null;
|
|
36512
|
+
metadataSchema?: {
|
|
36513
|
+
[key: string]: unknown;
|
|
36514
|
+
} | null;
|
|
36400
36515
|
name: string;
|
|
36401
36516
|
organizationId: string | null;
|
|
36517
|
+
productSurfaceId?: string | null;
|
|
36518
|
+
schemaValid?: boolean | null;
|
|
36402
36519
|
type: string;
|
|
36403
36520
|
updatedAt: string;
|
|
36404
36521
|
userId: string;
|
|
@@ -36530,11 +36647,23 @@ interface paths {
|
|
|
36530
36647
|
record: {
|
|
36531
36648
|
createdAt: string;
|
|
36532
36649
|
id: string;
|
|
36650
|
+
messages?: {
|
|
36651
|
+
content: string;
|
|
36652
|
+
role: string;
|
|
36653
|
+
}[] | null;
|
|
36533
36654
|
metadata: {
|
|
36534
36655
|
[key: string]: unknown;
|
|
36535
36656
|
};
|
|
36657
|
+
metadataLabels?: {
|
|
36658
|
+
[key: string]: string;
|
|
36659
|
+
} | null;
|
|
36660
|
+
metadataSchema?: {
|
|
36661
|
+
[key: string]: unknown;
|
|
36662
|
+
} | null;
|
|
36536
36663
|
name: string;
|
|
36537
36664
|
organizationId: string | null;
|
|
36665
|
+
productSurfaceId?: string | null;
|
|
36666
|
+
schemaValid?: boolean | null;
|
|
36538
36667
|
type: string;
|
|
36539
36668
|
updatedAt: string;
|
|
36540
36669
|
userId: string;
|
|
@@ -36945,7 +37074,7 @@ interface paths {
|
|
|
36945
37074
|
[name: string]: unknown;
|
|
36946
37075
|
};
|
|
36947
37076
|
content: {
|
|
36948
|
-
"application/json": components["schemas"]["
|
|
37077
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
36949
37078
|
};
|
|
36950
37079
|
};
|
|
36951
37080
|
/** @description Insufficient permissions */
|
|
@@ -37496,7 +37625,7 @@ interface paths {
|
|
|
37496
37625
|
[name: string]: unknown;
|
|
37497
37626
|
};
|
|
37498
37627
|
content: {
|
|
37499
|
-
"application/json": components["schemas"]["
|
|
37628
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
37500
37629
|
};
|
|
37501
37630
|
};
|
|
37502
37631
|
/** @description Insufficient permissions */
|
|
@@ -37711,7 +37840,7 @@ interface paths {
|
|
|
37711
37840
|
[name: string]: unknown;
|
|
37712
37841
|
};
|
|
37713
37842
|
content: {
|
|
37714
|
-
"application/json": components["schemas"]["
|
|
37843
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
37715
37844
|
};
|
|
37716
37845
|
};
|
|
37717
37846
|
/** @description Insufficient permissions */
|
|
@@ -44577,6 +44706,14 @@ interface components {
|
|
|
44577
44706
|
error: string;
|
|
44578
44707
|
message?: string;
|
|
44579
44708
|
};
|
|
44709
|
+
ScheduleEntitlementError: components["schemas"]["Error"] & {
|
|
44710
|
+
/** @description Stable error code (e.g. ACTIVE_SCHEDULE_LIMIT, SCHEDULE_FREQUENCY_LIMIT). */
|
|
44711
|
+
code?: string;
|
|
44712
|
+
/** @description Human-readable error message. */
|
|
44713
|
+
message?: string;
|
|
44714
|
+
/** @description Dashboard-relative URL to the billing/upgrade page. */
|
|
44715
|
+
upgradeUrl?: string;
|
|
44716
|
+
};
|
|
44580
44717
|
SkillEnsureConflict: {
|
|
44581
44718
|
/** @enum {string} */
|
|
44582
44719
|
code: "external_modification" | "remote_changed";
|
|
@@ -45457,8 +45594,8 @@ interface RetrieveRecordStepConfig$1 {
|
|
|
45457
45594
|
recordId?: string;
|
|
45458
45595
|
/**
|
|
45459
45596
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45460
|
-
* createdAt, updatedAt). Coexists with recordType/recordName
|
|
45461
|
-
* backward compatibility; the API executor prefers recordFilter when
|
|
45597
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName
|
|
45598
|
+
* for backward compatibility; the API executor prefers recordFilter when
|
|
45462
45599
|
* both are set.
|
|
45463
45600
|
*/
|
|
45464
45601
|
recordFilter?: RecordFilter;
|
|
@@ -45485,8 +45622,8 @@ interface GetRecordStepConfig$1 {
|
|
|
45485
45622
|
recordName?: string;
|
|
45486
45623
|
/**
|
|
45487
45624
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45488
|
-
* createdAt, updatedAt). Coexists with recordType/recordName;
|
|
45489
|
-
* executor prefers recordFilter when both are set.
|
|
45625
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
|
|
45626
|
+
* the API executor prefers recordFilter when both are set.
|
|
45490
45627
|
*/
|
|
45491
45628
|
recordFilter?: RecordFilter;
|
|
45492
45629
|
fieldsToInclude?: string | string[];
|
|
@@ -45511,8 +45648,8 @@ interface ListRecordsStepConfig$1 {
|
|
|
45511
45648
|
recordName?: string;
|
|
45512
45649
|
/**
|
|
45513
45650
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45514
|
-
* createdAt, updatedAt). Coexists with recordType/recordName;
|
|
45515
|
-
* executor prefers recordFilter when both are set.
|
|
45651
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
|
|
45652
|
+
* the API executor prefers recordFilter when both are set.
|
|
45516
45653
|
*/
|
|
45517
45654
|
recordFilter?: RecordFilter;
|
|
45518
45655
|
/** Max records returned (default 50, capped at 1000). */
|
|
@@ -51599,7 +51736,8 @@ interface ClientToken {
|
|
|
51599
51736
|
id: string;
|
|
51600
51737
|
name: string | null;
|
|
51601
51738
|
flowIds: string[];
|
|
51602
|
-
defaultFlowId: string;
|
|
51739
|
+
defaultFlowId: string | null;
|
|
51740
|
+
agentIds: string[];
|
|
51603
51741
|
allowedOrigins: string[];
|
|
51604
51742
|
environment: ClientTokenEnvironment;
|
|
51605
51743
|
pinToVersion: ClientTokenVersionPin | null;
|
|
@@ -51611,6 +51749,10 @@ interface ClientToken {
|
|
|
51611
51749
|
isActive: boolean;
|
|
51612
51750
|
tokenPrefix: string;
|
|
51613
51751
|
tokenHint: string | null;
|
|
51752
|
+
/** Publishable token value. Null for legacy rows until regenerated. */
|
|
51753
|
+
tokenValue: string | null;
|
|
51754
|
+
/** Product chat surface this token was minted for, when surface-bound. */
|
|
51755
|
+
productSurfaceId?: string | null;
|
|
51614
51756
|
conversationCount?: number;
|
|
51615
51757
|
lastUsedAt: string | null;
|
|
51616
51758
|
createdAt: string;
|
|
@@ -51621,8 +51763,9 @@ interface ClientToken {
|
|
|
51621
51763
|
*/
|
|
51622
51764
|
interface CreateClientTokenRequest {
|
|
51623
51765
|
name: string;
|
|
51624
|
-
flowIds
|
|
51625
|
-
defaultFlowId
|
|
51766
|
+
flowIds?: string[];
|
|
51767
|
+
defaultFlowId?: string;
|
|
51768
|
+
agentIds?: string[];
|
|
51626
51769
|
allowedOrigins: string[];
|
|
51627
51770
|
environment?: ClientTokenEnvironment;
|
|
51628
51771
|
pinToVersion?: ClientTokenVersionPin;
|
|
@@ -51631,6 +51774,7 @@ interface CreateClientTokenRequest {
|
|
|
51631
51774
|
maxMessagesPerSession?: number;
|
|
51632
51775
|
sessionIdleTimeoutMinutes?: number;
|
|
51633
51776
|
config?: ClientTokenConfig;
|
|
51777
|
+
productSurfaceId?: string;
|
|
51634
51778
|
}
|
|
51635
51779
|
/**
|
|
51636
51780
|
* Request to update a client token
|
|
@@ -51639,6 +51783,7 @@ interface UpdateClientTokenRequest {
|
|
|
51639
51783
|
name?: string;
|
|
51640
51784
|
flowIds?: string[];
|
|
51641
51785
|
defaultFlowId?: string;
|
|
51786
|
+
agentIds?: string[];
|
|
51642
51787
|
allowedOrigins?: string[];
|
|
51643
51788
|
pinToVersion?: ClientTokenVersionPin;
|
|
51644
51789
|
rateLimitPerMinute?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -5134,7 +5134,7 @@ interface paths {
|
|
|
5134
5134
|
maxRetries?: number;
|
|
5135
5135
|
/** @description Model id applied to every prompt step in this batch. */
|
|
5136
5136
|
modelOverride?: string;
|
|
5137
|
-
/** @description Completed results
|
|
5137
|
+
/** @description Deprecated and ignored. Completed results are now persisted per record as they finish, so no partial progress is held in memory and this threshold has no effect. Still accepted for backward compatibility. */
|
|
5138
5138
|
progressFlushSize?: number;
|
|
5139
5139
|
/** @description Max records dispatched in parallel within a processing chunk. */
|
|
5140
5140
|
recordConcurrency?: number;
|
|
@@ -10156,6 +10156,9 @@ interface paths {
|
|
|
10156
10156
|
[key: string]: unknown;
|
|
10157
10157
|
};
|
|
10158
10158
|
flow: {
|
|
10159
|
+
agents?: {
|
|
10160
|
+
[key: string]: unknown;
|
|
10161
|
+
};
|
|
10159
10162
|
contentHash?: string;
|
|
10160
10163
|
description?: string;
|
|
10161
10164
|
id?: string;
|
|
@@ -10517,6 +10520,9 @@ interface paths {
|
|
|
10517
10520
|
[key: string]: unknown;
|
|
10518
10521
|
};
|
|
10519
10522
|
flow?: {
|
|
10523
|
+
agents?: {
|
|
10524
|
+
[key: string]: unknown;
|
|
10525
|
+
};
|
|
10520
10526
|
contentHash?: string;
|
|
10521
10527
|
description?: string;
|
|
10522
10528
|
id?: string;
|
|
@@ -14848,6 +14854,108 @@ interface paths {
|
|
|
14848
14854
|
patch?: never;
|
|
14849
14855
|
trace?: never;
|
|
14850
14856
|
};
|
|
14857
|
+
"/v1/executions/{executionId}/journal": {
|
|
14858
|
+
parameters: {
|
|
14859
|
+
query?: never;
|
|
14860
|
+
header?: never;
|
|
14861
|
+
path?: never;
|
|
14862
|
+
cookie?: never;
|
|
14863
|
+
};
|
|
14864
|
+
/**
|
|
14865
|
+
* Read an execution journal
|
|
14866
|
+
* @description Returns the durable flow-execution journal events for an execution the caller owns, in replay order. At most 1000 events are returned; when the execution has more, the response is capped at that many rows and `truncated` is true.
|
|
14867
|
+
*/
|
|
14868
|
+
get: {
|
|
14869
|
+
parameters: {
|
|
14870
|
+
query?: never;
|
|
14871
|
+
header?: never;
|
|
14872
|
+
path: {
|
|
14873
|
+
/** @description Execution ID to read */
|
|
14874
|
+
executionId: string;
|
|
14875
|
+
};
|
|
14876
|
+
cookie?: never;
|
|
14877
|
+
};
|
|
14878
|
+
requestBody?: never;
|
|
14879
|
+
responses: {
|
|
14880
|
+
/** @description Journal events returned */
|
|
14881
|
+
200: {
|
|
14882
|
+
headers: {
|
|
14883
|
+
[name: string]: unknown;
|
|
14884
|
+
};
|
|
14885
|
+
content: {
|
|
14886
|
+
"application/json": {
|
|
14887
|
+
executionId: string;
|
|
14888
|
+
journalEvents: {
|
|
14889
|
+
attempt: number | null;
|
|
14890
|
+
createdAt: string | null;
|
|
14891
|
+
eventName: string;
|
|
14892
|
+
id: string;
|
|
14893
|
+
payload: {
|
|
14894
|
+
[key: string]: unknown;
|
|
14895
|
+
};
|
|
14896
|
+
seq: number;
|
|
14897
|
+
stepId: string | null;
|
|
14898
|
+
}[];
|
|
14899
|
+
/** @description True when the execution has more than 1000 journal events and the returned list is capped. */
|
|
14900
|
+
truncated: boolean;
|
|
14901
|
+
};
|
|
14902
|
+
};
|
|
14903
|
+
};
|
|
14904
|
+
/** @description Invalid execution ID */
|
|
14905
|
+
400: {
|
|
14906
|
+
headers: {
|
|
14907
|
+
[name: string]: unknown;
|
|
14908
|
+
};
|
|
14909
|
+
content: {
|
|
14910
|
+
"application/json": components["schemas"]["Error"];
|
|
14911
|
+
};
|
|
14912
|
+
};
|
|
14913
|
+
/** @description Unauthorized */
|
|
14914
|
+
401: {
|
|
14915
|
+
headers: {
|
|
14916
|
+
[name: string]: unknown;
|
|
14917
|
+
};
|
|
14918
|
+
content: {
|
|
14919
|
+
"application/json": components["schemas"]["Error"];
|
|
14920
|
+
};
|
|
14921
|
+
};
|
|
14922
|
+
/** @description Insufficient API key permissions */
|
|
14923
|
+
403: {
|
|
14924
|
+
headers: {
|
|
14925
|
+
[name: string]: unknown;
|
|
14926
|
+
};
|
|
14927
|
+
content: {
|
|
14928
|
+
"application/json": components["schemas"]["Error"];
|
|
14929
|
+
};
|
|
14930
|
+
};
|
|
14931
|
+
/** @description Not found */
|
|
14932
|
+
404: {
|
|
14933
|
+
headers: {
|
|
14934
|
+
[name: string]: unknown;
|
|
14935
|
+
};
|
|
14936
|
+
content: {
|
|
14937
|
+
"application/json": components["schemas"]["Error"];
|
|
14938
|
+
};
|
|
14939
|
+
};
|
|
14940
|
+
/** @description Internal server error */
|
|
14941
|
+
500: {
|
|
14942
|
+
headers: {
|
|
14943
|
+
[name: string]: unknown;
|
|
14944
|
+
};
|
|
14945
|
+
content: {
|
|
14946
|
+
"application/json": components["schemas"]["Error"];
|
|
14947
|
+
};
|
|
14948
|
+
};
|
|
14949
|
+
};
|
|
14950
|
+
};
|
|
14951
|
+
put?: never;
|
|
14952
|
+
post?: never;
|
|
14953
|
+
delete?: never;
|
|
14954
|
+
options?: never;
|
|
14955
|
+
head?: never;
|
|
14956
|
+
patch?: never;
|
|
14957
|
+
trace?: never;
|
|
14958
|
+
};
|
|
14851
14959
|
"/v1/feedback": {
|
|
14852
14960
|
parameters: {
|
|
14853
14961
|
query?: never;
|
|
@@ -27273,7 +27381,7 @@ interface paths {
|
|
|
27273
27381
|
put?: never;
|
|
27274
27382
|
/**
|
|
27275
27383
|
* Create surface
|
|
27276
|
-
* @description Create a new surface for a product.
|
|
27384
|
+
* @description Create a new surface for a product.
|
|
27277
27385
|
*/
|
|
27278
27386
|
post: {
|
|
27279
27387
|
parameters: {
|
|
@@ -27353,15 +27461,6 @@ interface paths {
|
|
|
27353
27461
|
"application/json": components["schemas"]["Error"];
|
|
27354
27462
|
};
|
|
27355
27463
|
};
|
|
27356
|
-
/** @description Surface limit exceeded */
|
|
27357
|
-
402: {
|
|
27358
|
-
headers: {
|
|
27359
|
-
[name: string]: unknown;
|
|
27360
|
-
};
|
|
27361
|
-
content: {
|
|
27362
|
-
"application/json": components["schemas"]["Error"];
|
|
27363
|
-
};
|
|
27364
|
-
};
|
|
27365
27464
|
/** @description Insufficient permissions */
|
|
27366
27465
|
403: {
|
|
27367
27466
|
headers: {
|
|
@@ -27477,15 +27576,6 @@ interface paths {
|
|
|
27477
27576
|
"application/json": components["schemas"]["Error"];
|
|
27478
27577
|
};
|
|
27479
27578
|
};
|
|
27480
|
-
/** @description Plan surface limit reached for the target environment (only a create counts against the quota) */
|
|
27481
|
-
402: {
|
|
27482
|
-
headers: {
|
|
27483
|
-
[name: string]: unknown;
|
|
27484
|
-
};
|
|
27485
|
-
content: {
|
|
27486
|
-
"application/json": components["schemas"]["Error"];
|
|
27487
|
-
};
|
|
27488
|
-
};
|
|
27489
27579
|
/** @description Insufficient permissions */
|
|
27490
27580
|
403: {
|
|
27491
27581
|
headers: {
|
|
@@ -27830,15 +27920,6 @@ interface paths {
|
|
|
27830
27920
|
"application/json": components["schemas"]["Error"];
|
|
27831
27921
|
};
|
|
27832
27922
|
};
|
|
27833
|
-
/** @description Surface limit exceeded */
|
|
27834
|
-
402: {
|
|
27835
|
-
headers: {
|
|
27836
|
-
[name: string]: unknown;
|
|
27837
|
-
};
|
|
27838
|
-
content: {
|
|
27839
|
-
"application/json": components["schemas"]["Error"];
|
|
27840
|
-
};
|
|
27841
|
-
};
|
|
27842
27923
|
/** @description Insufficient permissions */
|
|
27843
27924
|
403: {
|
|
27844
27925
|
headers: {
|
|
@@ -36106,11 +36187,23 @@ interface paths {
|
|
|
36106
36187
|
record: {
|
|
36107
36188
|
createdAt: string;
|
|
36108
36189
|
id: string;
|
|
36190
|
+
messages?: {
|
|
36191
|
+
content: string;
|
|
36192
|
+
role: string;
|
|
36193
|
+
}[] | null;
|
|
36109
36194
|
metadata: {
|
|
36110
36195
|
[key: string]: unknown;
|
|
36111
36196
|
};
|
|
36197
|
+
metadataLabels?: {
|
|
36198
|
+
[key: string]: string;
|
|
36199
|
+
} | null;
|
|
36200
|
+
metadataSchema?: {
|
|
36201
|
+
[key: string]: unknown;
|
|
36202
|
+
} | null;
|
|
36112
36203
|
name: string;
|
|
36113
36204
|
organizationId: string | null;
|
|
36205
|
+
productSurfaceId?: string | null;
|
|
36206
|
+
schemaValid?: boolean | null;
|
|
36114
36207
|
type: string;
|
|
36115
36208
|
updatedAt: string;
|
|
36116
36209
|
userId: string;
|
|
@@ -36260,11 +36353,23 @@ interface paths {
|
|
|
36260
36353
|
records: {
|
|
36261
36354
|
createdAt: string;
|
|
36262
36355
|
id: string;
|
|
36356
|
+
messages?: {
|
|
36357
|
+
content: string;
|
|
36358
|
+
role: string;
|
|
36359
|
+
}[] | null;
|
|
36263
36360
|
metadata: {
|
|
36264
36361
|
[key: string]: unknown;
|
|
36265
36362
|
};
|
|
36363
|
+
metadataLabels?: {
|
|
36364
|
+
[key: string]: string;
|
|
36365
|
+
} | null;
|
|
36366
|
+
metadataSchema?: {
|
|
36367
|
+
[key: string]: unknown;
|
|
36368
|
+
} | null;
|
|
36266
36369
|
name: string;
|
|
36267
36370
|
organizationId: string | null;
|
|
36371
|
+
productSurfaceId?: string | null;
|
|
36372
|
+
schemaValid?: boolean | null;
|
|
36268
36373
|
type: string;
|
|
36269
36374
|
updatedAt: string;
|
|
36270
36375
|
userId: string;
|
|
@@ -36394,11 +36499,23 @@ interface paths {
|
|
|
36394
36499
|
record: {
|
|
36395
36500
|
createdAt: string;
|
|
36396
36501
|
id: string;
|
|
36502
|
+
messages?: {
|
|
36503
|
+
content: string;
|
|
36504
|
+
role: string;
|
|
36505
|
+
}[] | null;
|
|
36397
36506
|
metadata: {
|
|
36398
36507
|
[key: string]: unknown;
|
|
36399
36508
|
};
|
|
36509
|
+
metadataLabels?: {
|
|
36510
|
+
[key: string]: string;
|
|
36511
|
+
} | null;
|
|
36512
|
+
metadataSchema?: {
|
|
36513
|
+
[key: string]: unknown;
|
|
36514
|
+
} | null;
|
|
36400
36515
|
name: string;
|
|
36401
36516
|
organizationId: string | null;
|
|
36517
|
+
productSurfaceId?: string | null;
|
|
36518
|
+
schemaValid?: boolean | null;
|
|
36402
36519
|
type: string;
|
|
36403
36520
|
updatedAt: string;
|
|
36404
36521
|
userId: string;
|
|
@@ -36530,11 +36647,23 @@ interface paths {
|
|
|
36530
36647
|
record: {
|
|
36531
36648
|
createdAt: string;
|
|
36532
36649
|
id: string;
|
|
36650
|
+
messages?: {
|
|
36651
|
+
content: string;
|
|
36652
|
+
role: string;
|
|
36653
|
+
}[] | null;
|
|
36533
36654
|
metadata: {
|
|
36534
36655
|
[key: string]: unknown;
|
|
36535
36656
|
};
|
|
36657
|
+
metadataLabels?: {
|
|
36658
|
+
[key: string]: string;
|
|
36659
|
+
} | null;
|
|
36660
|
+
metadataSchema?: {
|
|
36661
|
+
[key: string]: unknown;
|
|
36662
|
+
} | null;
|
|
36536
36663
|
name: string;
|
|
36537
36664
|
organizationId: string | null;
|
|
36665
|
+
productSurfaceId?: string | null;
|
|
36666
|
+
schemaValid?: boolean | null;
|
|
36538
36667
|
type: string;
|
|
36539
36668
|
updatedAt: string;
|
|
36540
36669
|
userId: string;
|
|
@@ -36945,7 +37074,7 @@ interface paths {
|
|
|
36945
37074
|
[name: string]: unknown;
|
|
36946
37075
|
};
|
|
36947
37076
|
content: {
|
|
36948
|
-
"application/json": components["schemas"]["
|
|
37077
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
36949
37078
|
};
|
|
36950
37079
|
};
|
|
36951
37080
|
/** @description Insufficient permissions */
|
|
@@ -37496,7 +37625,7 @@ interface paths {
|
|
|
37496
37625
|
[name: string]: unknown;
|
|
37497
37626
|
};
|
|
37498
37627
|
content: {
|
|
37499
|
-
"application/json": components["schemas"]["
|
|
37628
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
37500
37629
|
};
|
|
37501
37630
|
};
|
|
37502
37631
|
/** @description Insufficient permissions */
|
|
@@ -37711,7 +37840,7 @@ interface paths {
|
|
|
37711
37840
|
[name: string]: unknown;
|
|
37712
37841
|
};
|
|
37713
37842
|
content: {
|
|
37714
|
-
"application/json": components["schemas"]["
|
|
37843
|
+
"application/json": components["schemas"]["ScheduleEntitlementError"];
|
|
37715
37844
|
};
|
|
37716
37845
|
};
|
|
37717
37846
|
/** @description Insufficient permissions */
|
|
@@ -44577,6 +44706,14 @@ interface components {
|
|
|
44577
44706
|
error: string;
|
|
44578
44707
|
message?: string;
|
|
44579
44708
|
};
|
|
44709
|
+
ScheduleEntitlementError: components["schemas"]["Error"] & {
|
|
44710
|
+
/** @description Stable error code (e.g. ACTIVE_SCHEDULE_LIMIT, SCHEDULE_FREQUENCY_LIMIT). */
|
|
44711
|
+
code?: string;
|
|
44712
|
+
/** @description Human-readable error message. */
|
|
44713
|
+
message?: string;
|
|
44714
|
+
/** @description Dashboard-relative URL to the billing/upgrade page. */
|
|
44715
|
+
upgradeUrl?: string;
|
|
44716
|
+
};
|
|
44580
44717
|
SkillEnsureConflict: {
|
|
44581
44718
|
/** @enum {string} */
|
|
44582
44719
|
code: "external_modification" | "remote_changed";
|
|
@@ -45457,8 +45594,8 @@ interface RetrieveRecordStepConfig$1 {
|
|
|
45457
45594
|
recordId?: string;
|
|
45458
45595
|
/**
|
|
45459
45596
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45460
|
-
* createdAt, updatedAt). Coexists with recordType/recordName
|
|
45461
|
-
* backward compatibility; the API executor prefers recordFilter when
|
|
45597
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName
|
|
45598
|
+
* for backward compatibility; the API executor prefers recordFilter when
|
|
45462
45599
|
* both are set.
|
|
45463
45600
|
*/
|
|
45464
45601
|
recordFilter?: RecordFilter;
|
|
@@ -45485,8 +45622,8 @@ interface GetRecordStepConfig$1 {
|
|
|
45485
45622
|
recordName?: string;
|
|
45486
45623
|
/**
|
|
45487
45624
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45488
|
-
* createdAt, updatedAt). Coexists with recordType/recordName;
|
|
45489
|
-
* executor prefers recordFilter when both are set.
|
|
45625
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
|
|
45626
|
+
* the API executor prefers recordFilter when both are set.
|
|
45490
45627
|
*/
|
|
45491
45628
|
recordFilter?: RecordFilter;
|
|
45492
45629
|
fieldsToInclude?: string | string[];
|
|
@@ -45511,8 +45648,8 @@ interface ListRecordsStepConfig$1 {
|
|
|
45511
45648
|
recordName?: string;
|
|
45512
45649
|
/**
|
|
45513
45650
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
45514
|
-
* createdAt, updatedAt). Coexists with recordType/recordName;
|
|
45515
|
-
* executor prefers recordFilter when both are set.
|
|
45651
|
+
* createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
|
|
45652
|
+
* the API executor prefers recordFilter when both are set.
|
|
45516
45653
|
*/
|
|
45517
45654
|
recordFilter?: RecordFilter;
|
|
45518
45655
|
/** Max records returned (default 50, capped at 1000). */
|
|
@@ -51599,7 +51736,8 @@ interface ClientToken {
|
|
|
51599
51736
|
id: string;
|
|
51600
51737
|
name: string | null;
|
|
51601
51738
|
flowIds: string[];
|
|
51602
|
-
defaultFlowId: string;
|
|
51739
|
+
defaultFlowId: string | null;
|
|
51740
|
+
agentIds: string[];
|
|
51603
51741
|
allowedOrigins: string[];
|
|
51604
51742
|
environment: ClientTokenEnvironment;
|
|
51605
51743
|
pinToVersion: ClientTokenVersionPin | null;
|
|
@@ -51611,6 +51749,10 @@ interface ClientToken {
|
|
|
51611
51749
|
isActive: boolean;
|
|
51612
51750
|
tokenPrefix: string;
|
|
51613
51751
|
tokenHint: string | null;
|
|
51752
|
+
/** Publishable token value. Null for legacy rows until regenerated. */
|
|
51753
|
+
tokenValue: string | null;
|
|
51754
|
+
/** Product chat surface this token was minted for, when surface-bound. */
|
|
51755
|
+
productSurfaceId?: string | null;
|
|
51614
51756
|
conversationCount?: number;
|
|
51615
51757
|
lastUsedAt: string | null;
|
|
51616
51758
|
createdAt: string;
|
|
@@ -51621,8 +51763,9 @@ interface ClientToken {
|
|
|
51621
51763
|
*/
|
|
51622
51764
|
interface CreateClientTokenRequest {
|
|
51623
51765
|
name: string;
|
|
51624
|
-
flowIds
|
|
51625
|
-
defaultFlowId
|
|
51766
|
+
flowIds?: string[];
|
|
51767
|
+
defaultFlowId?: string;
|
|
51768
|
+
agentIds?: string[];
|
|
51626
51769
|
allowedOrigins: string[];
|
|
51627
51770
|
environment?: ClientTokenEnvironment;
|
|
51628
51771
|
pinToVersion?: ClientTokenVersionPin;
|
|
@@ -51631,6 +51774,7 @@ interface CreateClientTokenRequest {
|
|
|
51631
51774
|
maxMessagesPerSession?: number;
|
|
51632
51775
|
sessionIdleTimeoutMinutes?: number;
|
|
51633
51776
|
config?: ClientTokenConfig;
|
|
51777
|
+
productSurfaceId?: string;
|
|
51634
51778
|
}
|
|
51635
51779
|
/**
|
|
51636
51780
|
* Request to update a client token
|
|
@@ -51639,6 +51783,7 @@ interface UpdateClientTokenRequest {
|
|
|
51639
51783
|
name?: string;
|
|
51640
51784
|
flowIds?: string[];
|
|
51641
51785
|
defaultFlowId?: string;
|
|
51786
|
+
agentIds?: string[];
|
|
51642
51787
|
allowedOrigins?: string[];
|
|
51643
51788
|
pinToVersion?: ClientTokenVersionPin;
|
|
51644
51789
|
rateLimitPerMinute?: number;
|
package/dist/index.mjs
CHANGED
|
@@ -6261,7 +6261,7 @@ var Runtype = class {
|
|
|
6261
6261
|
|
|
6262
6262
|
// src/version.ts
|
|
6263
6263
|
var FALLBACK_VERSION = "0.0.0";
|
|
6264
|
-
var SDK_VERSION = "6.6.
|
|
6264
|
+
var SDK_VERSION = "6.6.1".length > 0 ? "6.6.1" : FALLBACK_VERSION;
|
|
6265
6265
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6266
6266
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6267
6267
|
|
package/package.json
CHANGED