@agent-phonon/protocol 0.6.1 → 0.8.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/schemas/methods.d.ts +1071 -3
- package/dist/schemas/methods.d.ts.map +1 -1
- package/dist/schemas/methods.js +55 -2
- package/dist/schemas/methods.js.map +1 -1
- package/dist/schemas/project.d.ts +447 -0
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +165 -0
- package/dist/schemas/project.js.map +1 -1
- package/dist/schemas/workflow.d.ts +927 -3
- package/dist/schemas/workflow.d.ts.map +1 -1
- package/dist/schemas/workflow.js +93 -0
- package/dist/schemas/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/schemas/methods.ts +67 -0
- package/src/schemas/project.ts +198 -0
- package/src/schemas/workflow.ts +111 -0
|
@@ -3122,6 +3122,387 @@ export declare const METHODS: {
|
|
|
3122
3122
|
affectedWorktrees?: string[] | undefined;
|
|
3123
3123
|
}>;
|
|
3124
3124
|
};
|
|
3125
|
+
readonly "project.git.commit": {
|
|
3126
|
+
readonly direction: "s2p";
|
|
3127
|
+
readonly kind: "request";
|
|
3128
|
+
readonly params: z.ZodObject<{
|
|
3129
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3130
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3131
|
+
message: z.ZodString;
|
|
3132
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3133
|
+
allowEmpty: z.ZodDefault<z.ZodBoolean>;
|
|
3134
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
3135
|
+
name: z.ZodString;
|
|
3136
|
+
email: z.ZodString;
|
|
3137
|
+
}, "strip", z.ZodTypeAny, {
|
|
3138
|
+
name: string;
|
|
3139
|
+
email: string;
|
|
3140
|
+
}, {
|
|
3141
|
+
name: string;
|
|
3142
|
+
email: string;
|
|
3143
|
+
}>>;
|
|
3144
|
+
}, "strip", z.ZodTypeAny, {
|
|
3145
|
+
message: string;
|
|
3146
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3147
|
+
allowEmpty: boolean;
|
|
3148
|
+
worktreeId?: string | undefined;
|
|
3149
|
+
files?: string[] | undefined;
|
|
3150
|
+
author?: {
|
|
3151
|
+
name: string;
|
|
3152
|
+
email: string;
|
|
3153
|
+
} | undefined;
|
|
3154
|
+
}, {
|
|
3155
|
+
message: string;
|
|
3156
|
+
projectId: string;
|
|
3157
|
+
worktreeId?: string | undefined;
|
|
3158
|
+
files?: string[] | undefined;
|
|
3159
|
+
allowEmpty?: boolean | undefined;
|
|
3160
|
+
author?: {
|
|
3161
|
+
name: string;
|
|
3162
|
+
email: string;
|
|
3163
|
+
} | undefined;
|
|
3164
|
+
}>;
|
|
3165
|
+
readonly result: z.ZodObject<{
|
|
3166
|
+
commitSha: z.ZodString;
|
|
3167
|
+
filesChanged: z.ZodNumber;
|
|
3168
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
3169
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
3170
|
+
}, "strip", z.ZodTypeAny, {
|
|
3171
|
+
commitSha: string;
|
|
3172
|
+
filesChanged: number;
|
|
3173
|
+
insertions?: number | undefined;
|
|
3174
|
+
deletions?: number | undefined;
|
|
3175
|
+
}, {
|
|
3176
|
+
commitSha: string;
|
|
3177
|
+
filesChanged: number;
|
|
3178
|
+
insertions?: number | undefined;
|
|
3179
|
+
deletions?: number | undefined;
|
|
3180
|
+
}>;
|
|
3181
|
+
};
|
|
3182
|
+
readonly "project.git.merge": {
|
|
3183
|
+
readonly direction: "s2p";
|
|
3184
|
+
readonly kind: "request";
|
|
3185
|
+
readonly params: z.ZodObject<{
|
|
3186
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3187
|
+
sourceBranch: z.ZodString;
|
|
3188
|
+
targetBranch: z.ZodOptional<z.ZodString>;
|
|
3189
|
+
strategy: z.ZodDefault<z.ZodEnum<["merge", "squash", "rebase", "ff-only"]>>;
|
|
3190
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3191
|
+
abortOnConflict: z.ZodDefault<z.ZodBoolean>;
|
|
3192
|
+
}, "strip", z.ZodTypeAny, {
|
|
3193
|
+
strategy: "merge" | "squash" | "rebase" | "ff-only";
|
|
3194
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3195
|
+
sourceBranch: string;
|
|
3196
|
+
abortOnConflict: boolean;
|
|
3197
|
+
message?: string | undefined;
|
|
3198
|
+
targetBranch?: string | undefined;
|
|
3199
|
+
}, {
|
|
3200
|
+
projectId: string;
|
|
3201
|
+
sourceBranch: string;
|
|
3202
|
+
message?: string | undefined;
|
|
3203
|
+
strategy?: "merge" | "squash" | "rebase" | "ff-only" | undefined;
|
|
3204
|
+
targetBranch?: string | undefined;
|
|
3205
|
+
abortOnConflict?: boolean | undefined;
|
|
3206
|
+
}>;
|
|
3207
|
+
readonly result: z.ZodObject<{
|
|
3208
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
mergeCommitCreated: z.ZodBoolean;
|
|
3210
|
+
hasConflict: z.ZodBoolean;
|
|
3211
|
+
conflictFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3212
|
+
aborted: z.ZodOptional<z.ZodBoolean>;
|
|
3213
|
+
}, "strip", z.ZodTypeAny, {
|
|
3214
|
+
mergeCommitCreated: boolean;
|
|
3215
|
+
hasConflict: boolean;
|
|
3216
|
+
aborted?: boolean | undefined;
|
|
3217
|
+
commitSha?: string | undefined;
|
|
3218
|
+
conflictFiles?: string[] | undefined;
|
|
3219
|
+
}, {
|
|
3220
|
+
mergeCommitCreated: boolean;
|
|
3221
|
+
hasConflict: boolean;
|
|
3222
|
+
aborted?: boolean | undefined;
|
|
3223
|
+
commitSha?: string | undefined;
|
|
3224
|
+
conflictFiles?: string[] | undefined;
|
|
3225
|
+
}>;
|
|
3226
|
+
};
|
|
3227
|
+
readonly "project.git.diff": {
|
|
3228
|
+
readonly direction: "s2p";
|
|
3229
|
+
readonly kind: "request";
|
|
3230
|
+
readonly params: z.ZodObject<{
|
|
3231
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3232
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3233
|
+
ref1: z.ZodOptional<z.ZodString>;
|
|
3234
|
+
ref2: z.ZodOptional<z.ZodString>;
|
|
3235
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3236
|
+
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
3237
|
+
statOnly: z.ZodDefault<z.ZodBoolean>;
|
|
3238
|
+
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
3239
|
+
}, "strip", z.ZodTypeAny, {
|
|
3240
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3241
|
+
contextLines: number;
|
|
3242
|
+
statOnly: boolean;
|
|
3243
|
+
maxBytes: number;
|
|
3244
|
+
worktreeId?: string | undefined;
|
|
3245
|
+
ref1?: string | undefined;
|
|
3246
|
+
ref2?: string | undefined;
|
|
3247
|
+
paths?: string[] | undefined;
|
|
3248
|
+
}, {
|
|
3249
|
+
projectId: string;
|
|
3250
|
+
worktreeId?: string | undefined;
|
|
3251
|
+
ref1?: string | undefined;
|
|
3252
|
+
ref2?: string | undefined;
|
|
3253
|
+
paths?: string[] | undefined;
|
|
3254
|
+
contextLines?: number | undefined;
|
|
3255
|
+
statOnly?: boolean | undefined;
|
|
3256
|
+
maxBytes?: number | undefined;
|
|
3257
|
+
}>;
|
|
3258
|
+
readonly result: z.ZodObject<{
|
|
3259
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
3260
|
+
filesChanged: z.ZodNumber;
|
|
3261
|
+
insertions: z.ZodNumber;
|
|
3262
|
+
deletions: z.ZodNumber;
|
|
3263
|
+
truncated: z.ZodBoolean;
|
|
3264
|
+
}, "strip", z.ZodTypeAny, {
|
|
3265
|
+
filesChanged: number;
|
|
3266
|
+
insertions: number;
|
|
3267
|
+
deletions: number;
|
|
3268
|
+
truncated: boolean;
|
|
3269
|
+
patch?: string | undefined;
|
|
3270
|
+
}, {
|
|
3271
|
+
filesChanged: number;
|
|
3272
|
+
insertions: number;
|
|
3273
|
+
deletions: number;
|
|
3274
|
+
truncated: boolean;
|
|
3275
|
+
patch?: string | undefined;
|
|
3276
|
+
}>;
|
|
3277
|
+
};
|
|
3278
|
+
readonly "project.git.log": {
|
|
3279
|
+
readonly direction: "s2p";
|
|
3280
|
+
readonly kind: "request";
|
|
3281
|
+
readonly params: z.ZodObject<{
|
|
3282
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3283
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3284
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
3285
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
3286
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3287
|
+
until: z.ZodOptional<z.ZodString>;
|
|
3288
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3289
|
+
}, "strip", z.ZodTypeAny, {
|
|
3290
|
+
limit: number;
|
|
3291
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3292
|
+
worktreeId?: string | undefined;
|
|
3293
|
+
branch?: string | undefined;
|
|
3294
|
+
paths?: string[] | undefined;
|
|
3295
|
+
since?: string | undefined;
|
|
3296
|
+
until?: string | undefined;
|
|
3297
|
+
}, {
|
|
3298
|
+
projectId: string;
|
|
3299
|
+
worktreeId?: string | undefined;
|
|
3300
|
+
limit?: number | undefined;
|
|
3301
|
+
branch?: string | undefined;
|
|
3302
|
+
paths?: string[] | undefined;
|
|
3303
|
+
since?: string | undefined;
|
|
3304
|
+
until?: string | undefined;
|
|
3305
|
+
}>;
|
|
3306
|
+
readonly result: z.ZodObject<{
|
|
3307
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
3308
|
+
sha: z.ZodString;
|
|
3309
|
+
shortSha: z.ZodString;
|
|
3310
|
+
author: z.ZodString;
|
|
3311
|
+
email: z.ZodString;
|
|
3312
|
+
timestamp: z.ZodString;
|
|
3313
|
+
subject: z.ZodString;
|
|
3314
|
+
body: z.ZodOptional<z.ZodString>;
|
|
3315
|
+
}, "strip", z.ZodTypeAny, {
|
|
3316
|
+
email: string;
|
|
3317
|
+
author: string;
|
|
3318
|
+
sha: string;
|
|
3319
|
+
shortSha: string;
|
|
3320
|
+
timestamp: string;
|
|
3321
|
+
subject: string;
|
|
3322
|
+
body?: string | undefined;
|
|
3323
|
+
}, {
|
|
3324
|
+
email: string;
|
|
3325
|
+
author: string;
|
|
3326
|
+
sha: string;
|
|
3327
|
+
shortSha: string;
|
|
3328
|
+
timestamp: string;
|
|
3329
|
+
subject: string;
|
|
3330
|
+
body?: string | undefined;
|
|
3331
|
+
}>, "many">;
|
|
3332
|
+
}, "strip", z.ZodTypeAny, {
|
|
3333
|
+
commits: {
|
|
3334
|
+
email: string;
|
|
3335
|
+
author: string;
|
|
3336
|
+
sha: string;
|
|
3337
|
+
shortSha: string;
|
|
3338
|
+
timestamp: string;
|
|
3339
|
+
subject: string;
|
|
3340
|
+
body?: string | undefined;
|
|
3341
|
+
}[];
|
|
3342
|
+
}, {
|
|
3343
|
+
commits: {
|
|
3344
|
+
email: string;
|
|
3345
|
+
author: string;
|
|
3346
|
+
sha: string;
|
|
3347
|
+
shortSha: string;
|
|
3348
|
+
timestamp: string;
|
|
3349
|
+
subject: string;
|
|
3350
|
+
body?: string | undefined;
|
|
3351
|
+
}[];
|
|
3352
|
+
}>;
|
|
3353
|
+
};
|
|
3354
|
+
readonly "project.git.push": {
|
|
3355
|
+
readonly direction: "s2p";
|
|
3356
|
+
readonly kind: "request";
|
|
3357
|
+
readonly params: z.ZodObject<{
|
|
3358
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3359
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3360
|
+
branch: z.ZodString;
|
|
3361
|
+
remote: z.ZodDefault<z.ZodString>;
|
|
3362
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
3363
|
+
setUpstream: z.ZodDefault<z.ZodBoolean>;
|
|
3364
|
+
}, "strip", z.ZodTypeAny, {
|
|
3365
|
+
force: boolean;
|
|
3366
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3367
|
+
branch: string;
|
|
3368
|
+
remote: string;
|
|
3369
|
+
setUpstream: boolean;
|
|
3370
|
+
worktreeId?: string | undefined;
|
|
3371
|
+
}, {
|
|
3372
|
+
projectId: string;
|
|
3373
|
+
branch: string;
|
|
3374
|
+
worktreeId?: string | undefined;
|
|
3375
|
+
force?: boolean | undefined;
|
|
3376
|
+
remote?: string | undefined;
|
|
3377
|
+
setUpstream?: boolean | undefined;
|
|
3378
|
+
}>;
|
|
3379
|
+
readonly result: z.ZodObject<{
|
|
3380
|
+
pushed: z.ZodBoolean;
|
|
3381
|
+
remote: z.ZodString;
|
|
3382
|
+
branch: z.ZodString;
|
|
3383
|
+
commitsPushed: z.ZodOptional<z.ZodNumber>;
|
|
3384
|
+
remoteHead: z.ZodOptional<z.ZodString>;
|
|
3385
|
+
}, "strip", z.ZodTypeAny, {
|
|
3386
|
+
branch: string;
|
|
3387
|
+
remote: string;
|
|
3388
|
+
pushed: boolean;
|
|
3389
|
+
commitsPushed?: number | undefined;
|
|
3390
|
+
remoteHead?: string | undefined;
|
|
3391
|
+
}, {
|
|
3392
|
+
branch: string;
|
|
3393
|
+
remote: string;
|
|
3394
|
+
pushed: boolean;
|
|
3395
|
+
commitsPushed?: number | undefined;
|
|
3396
|
+
remoteHead?: string | undefined;
|
|
3397
|
+
}>;
|
|
3398
|
+
};
|
|
3399
|
+
readonly "project.git.status": {
|
|
3400
|
+
readonly direction: "s2p";
|
|
3401
|
+
readonly kind: "request";
|
|
3402
|
+
readonly params: z.ZodObject<{
|
|
3403
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3404
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3405
|
+
}, "strip", z.ZodTypeAny, {
|
|
3406
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3407
|
+
worktreeId?: string | undefined;
|
|
3408
|
+
}, {
|
|
3409
|
+
projectId: string;
|
|
3410
|
+
worktreeId?: string | undefined;
|
|
3411
|
+
}>;
|
|
3412
|
+
readonly result: z.ZodObject<{
|
|
3413
|
+
branch: z.ZodString;
|
|
3414
|
+
isClean: z.ZodBoolean;
|
|
3415
|
+
ahead: z.ZodOptional<z.ZodNumber>;
|
|
3416
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
3417
|
+
upstream: z.ZodOptional<z.ZodString>;
|
|
3418
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3419
|
+
path: z.ZodString;
|
|
3420
|
+
index: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
3421
|
+
worktree: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
3422
|
+
}, "strip", z.ZodTypeAny, {
|
|
3423
|
+
path: string;
|
|
3424
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3425
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3426
|
+
}, {
|
|
3427
|
+
path: string;
|
|
3428
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3429
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3430
|
+
}>, "many">;
|
|
3431
|
+
}, "strip", z.ZodTypeAny, {
|
|
3432
|
+
branch: string;
|
|
3433
|
+
files: {
|
|
3434
|
+
path: string;
|
|
3435
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3436
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3437
|
+
}[];
|
|
3438
|
+
isClean: boolean;
|
|
3439
|
+
ahead?: number | undefined;
|
|
3440
|
+
behind?: number | undefined;
|
|
3441
|
+
upstream?: string | undefined;
|
|
3442
|
+
}, {
|
|
3443
|
+
branch: string;
|
|
3444
|
+
files: {
|
|
3445
|
+
path: string;
|
|
3446
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3447
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
3448
|
+
}[];
|
|
3449
|
+
isClean: boolean;
|
|
3450
|
+
ahead?: number | undefined;
|
|
3451
|
+
behind?: number | undefined;
|
|
3452
|
+
upstream?: string | undefined;
|
|
3453
|
+
}>;
|
|
3454
|
+
};
|
|
3455
|
+
readonly "project.exec": {
|
|
3456
|
+
readonly direction: "s2p";
|
|
3457
|
+
readonly kind: "request";
|
|
3458
|
+
readonly params: z.ZodObject<{
|
|
3459
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
3460
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3461
|
+
command: z.ZodString;
|
|
3462
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3463
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
3464
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3465
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3466
|
+
maxOutputBytes: z.ZodDefault<z.ZodNumber>;
|
|
3467
|
+
}, "strip", z.ZodTypeAny, {
|
|
3468
|
+
args: string[];
|
|
3469
|
+
command: string;
|
|
3470
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
3471
|
+
timeoutMs: number;
|
|
3472
|
+
maxOutputBytes: number;
|
|
3473
|
+
worktreeId?: string | undefined;
|
|
3474
|
+
cwd?: string | undefined;
|
|
3475
|
+
env?: Record<string, string> | undefined;
|
|
3476
|
+
}, {
|
|
3477
|
+
command: string;
|
|
3478
|
+
projectId: string;
|
|
3479
|
+
worktreeId?: string | undefined;
|
|
3480
|
+
args?: string[] | undefined;
|
|
3481
|
+
cwd?: string | undefined;
|
|
3482
|
+
env?: Record<string, string> | undefined;
|
|
3483
|
+
timeoutMs?: number | undefined;
|
|
3484
|
+
maxOutputBytes?: number | undefined;
|
|
3485
|
+
}>;
|
|
3486
|
+
readonly result: z.ZodObject<{
|
|
3487
|
+
exitCode: z.ZodNumber;
|
|
3488
|
+
stdout: z.ZodString;
|
|
3489
|
+
stderr: z.ZodString;
|
|
3490
|
+
durationMs: z.ZodNumber;
|
|
3491
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
3492
|
+
}, "strip", z.ZodTypeAny, {
|
|
3493
|
+
truncated: boolean;
|
|
3494
|
+
exitCode: number;
|
|
3495
|
+
stdout: string;
|
|
3496
|
+
stderr: string;
|
|
3497
|
+
durationMs: number;
|
|
3498
|
+
}, {
|
|
3499
|
+
exitCode: number;
|
|
3500
|
+
stdout: string;
|
|
3501
|
+
stderr: string;
|
|
3502
|
+
durationMs: number;
|
|
3503
|
+
truncated?: boolean | undefined;
|
|
3504
|
+
}>;
|
|
3505
|
+
};
|
|
3125
3506
|
readonly "file.read": {
|
|
3126
3507
|
readonly direction: "s2p";
|
|
3127
3508
|
readonly kind: "request";
|
|
@@ -4747,12 +5128,42 @@ export declare const METHODS: {
|
|
|
4747
5128
|
usage: z.ZodOptional<z.ZodObject<{
|
|
4748
5129
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4749
5130
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5131
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
5132
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
5133
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
5134
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5135
|
+
costEstimate: z.ZodOptional<z.ZodObject<{
|
|
5136
|
+
amount: z.ZodNumber;
|
|
5137
|
+
currency: z.ZodEnum<["USD", "CNY"]>;
|
|
5138
|
+
}, "strip", z.ZodTypeAny, {
|
|
5139
|
+
amount: number;
|
|
5140
|
+
currency: "USD" | "CNY";
|
|
5141
|
+
}, {
|
|
5142
|
+
amount: number;
|
|
5143
|
+
currency: "USD" | "CNY";
|
|
5144
|
+
}>>;
|
|
4750
5145
|
}, "strip", z.ZodTypeAny, {
|
|
4751
5146
|
inputTokens?: number | undefined;
|
|
4752
5147
|
outputTokens?: number | undefined;
|
|
5148
|
+
durationMs?: number | undefined;
|
|
5149
|
+
cachedTokens?: number | undefined;
|
|
5150
|
+
reasoningTokens?: number | undefined;
|
|
5151
|
+
toolCalls?: number | undefined;
|
|
5152
|
+
costEstimate?: {
|
|
5153
|
+
amount: number;
|
|
5154
|
+
currency: "USD" | "CNY";
|
|
5155
|
+
} | undefined;
|
|
4753
5156
|
}, {
|
|
4754
5157
|
inputTokens?: number | undefined;
|
|
4755
5158
|
outputTokens?: number | undefined;
|
|
5159
|
+
durationMs?: number | undefined;
|
|
5160
|
+
cachedTokens?: number | undefined;
|
|
5161
|
+
reasoningTokens?: number | undefined;
|
|
5162
|
+
toolCalls?: number | undefined;
|
|
5163
|
+
costEstimate?: {
|
|
5164
|
+
amount: number;
|
|
5165
|
+
currency: "USD" | "CNY";
|
|
5166
|
+
} | undefined;
|
|
4756
5167
|
}>>;
|
|
4757
5168
|
}, "strip", z.ZodTypeAny, {
|
|
4758
5169
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -4760,6 +5171,14 @@ export declare const METHODS: {
|
|
|
4760
5171
|
usage?: {
|
|
4761
5172
|
inputTokens?: number | undefined;
|
|
4762
5173
|
outputTokens?: number | undefined;
|
|
5174
|
+
durationMs?: number | undefined;
|
|
5175
|
+
cachedTokens?: number | undefined;
|
|
5176
|
+
reasoningTokens?: number | undefined;
|
|
5177
|
+
toolCalls?: number | undefined;
|
|
5178
|
+
costEstimate?: {
|
|
5179
|
+
amount: number;
|
|
5180
|
+
currency: "USD" | "CNY";
|
|
5181
|
+
} | undefined;
|
|
4763
5182
|
} | undefined;
|
|
4764
5183
|
}, {
|
|
4765
5184
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -4767,6 +5186,14 @@ export declare const METHODS: {
|
|
|
4767
5186
|
usage?: {
|
|
4768
5187
|
inputTokens?: number | undefined;
|
|
4769
5188
|
outputTokens?: number | undefined;
|
|
5189
|
+
durationMs?: number | undefined;
|
|
5190
|
+
cachedTokens?: number | undefined;
|
|
5191
|
+
reasoningTokens?: number | undefined;
|
|
5192
|
+
toolCalls?: number | undefined;
|
|
5193
|
+
costEstimate?: {
|
|
5194
|
+
amount: number;
|
|
5195
|
+
currency: "USD" | "CNY";
|
|
5196
|
+
} | undefined;
|
|
4770
5197
|
} | undefined;
|
|
4771
5198
|
}>>;
|
|
4772
5199
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4784,6 +5211,14 @@ export declare const METHODS: {
|
|
|
4784
5211
|
usage?: {
|
|
4785
5212
|
inputTokens?: number | undefined;
|
|
4786
5213
|
outputTokens?: number | undefined;
|
|
5214
|
+
durationMs?: number | undefined;
|
|
5215
|
+
cachedTokens?: number | undefined;
|
|
5216
|
+
reasoningTokens?: number | undefined;
|
|
5217
|
+
toolCalls?: number | undefined;
|
|
5218
|
+
costEstimate?: {
|
|
5219
|
+
amount: number;
|
|
5220
|
+
currency: "USD" | "CNY";
|
|
5221
|
+
} | undefined;
|
|
4787
5222
|
} | undefined;
|
|
4788
5223
|
} | undefined;
|
|
4789
5224
|
error?: string | undefined;
|
|
@@ -4804,6 +5239,14 @@ export declare const METHODS: {
|
|
|
4804
5239
|
usage?: {
|
|
4805
5240
|
inputTokens?: number | undefined;
|
|
4806
5241
|
outputTokens?: number | undefined;
|
|
5242
|
+
durationMs?: number | undefined;
|
|
5243
|
+
cachedTokens?: number | undefined;
|
|
5244
|
+
reasoningTokens?: number | undefined;
|
|
5245
|
+
toolCalls?: number | undefined;
|
|
5246
|
+
costEstimate?: {
|
|
5247
|
+
amount: number;
|
|
5248
|
+
currency: "USD" | "CNY";
|
|
5249
|
+
} | undefined;
|
|
4807
5250
|
} | undefined;
|
|
4808
5251
|
} | undefined;
|
|
4809
5252
|
error?: string | undefined;
|
|
@@ -4837,6 +5280,14 @@ export declare const METHODS: {
|
|
|
4837
5280
|
usage?: {
|
|
4838
5281
|
inputTokens?: number | undefined;
|
|
4839
5282
|
outputTokens?: number | undefined;
|
|
5283
|
+
durationMs?: number | undefined;
|
|
5284
|
+
cachedTokens?: number | undefined;
|
|
5285
|
+
reasoningTokens?: number | undefined;
|
|
5286
|
+
toolCalls?: number | undefined;
|
|
5287
|
+
costEstimate?: {
|
|
5288
|
+
amount: number;
|
|
5289
|
+
currency: "USD" | "CNY";
|
|
5290
|
+
} | undefined;
|
|
4840
5291
|
} | undefined;
|
|
4841
5292
|
} | undefined;
|
|
4842
5293
|
error?: string | undefined;
|
|
@@ -4869,6 +5320,14 @@ export declare const METHODS: {
|
|
|
4869
5320
|
usage?: {
|
|
4870
5321
|
inputTokens?: number | undefined;
|
|
4871
5322
|
outputTokens?: number | undefined;
|
|
5323
|
+
durationMs?: number | undefined;
|
|
5324
|
+
cachedTokens?: number | undefined;
|
|
5325
|
+
reasoningTokens?: number | undefined;
|
|
5326
|
+
toolCalls?: number | undefined;
|
|
5327
|
+
costEstimate?: {
|
|
5328
|
+
amount: number;
|
|
5329
|
+
currency: "USD" | "CNY";
|
|
5330
|
+
} | undefined;
|
|
4872
5331
|
} | undefined;
|
|
4873
5332
|
} | undefined;
|
|
4874
5333
|
error?: string | undefined;
|
|
@@ -4955,12 +5414,42 @@ export declare const METHODS: {
|
|
|
4955
5414
|
usage: z.ZodOptional<z.ZodObject<{
|
|
4956
5415
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4957
5416
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5417
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
5418
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
5419
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
5420
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5421
|
+
costEstimate: z.ZodOptional<z.ZodObject<{
|
|
5422
|
+
amount: z.ZodNumber;
|
|
5423
|
+
currency: z.ZodEnum<["USD", "CNY"]>;
|
|
5424
|
+
}, "strip", z.ZodTypeAny, {
|
|
5425
|
+
amount: number;
|
|
5426
|
+
currency: "USD" | "CNY";
|
|
5427
|
+
}, {
|
|
5428
|
+
amount: number;
|
|
5429
|
+
currency: "USD" | "CNY";
|
|
5430
|
+
}>>;
|
|
4958
5431
|
}, "strip", z.ZodTypeAny, {
|
|
4959
5432
|
inputTokens?: number | undefined;
|
|
4960
5433
|
outputTokens?: number | undefined;
|
|
5434
|
+
durationMs?: number | undefined;
|
|
5435
|
+
cachedTokens?: number | undefined;
|
|
5436
|
+
reasoningTokens?: number | undefined;
|
|
5437
|
+
toolCalls?: number | undefined;
|
|
5438
|
+
costEstimate?: {
|
|
5439
|
+
amount: number;
|
|
5440
|
+
currency: "USD" | "CNY";
|
|
5441
|
+
} | undefined;
|
|
4961
5442
|
}, {
|
|
4962
5443
|
inputTokens?: number | undefined;
|
|
4963
5444
|
outputTokens?: number | undefined;
|
|
5445
|
+
durationMs?: number | undefined;
|
|
5446
|
+
cachedTokens?: number | undefined;
|
|
5447
|
+
reasoningTokens?: number | undefined;
|
|
5448
|
+
toolCalls?: number | undefined;
|
|
5449
|
+
costEstimate?: {
|
|
5450
|
+
amount: number;
|
|
5451
|
+
currency: "USD" | "CNY";
|
|
5452
|
+
} | undefined;
|
|
4964
5453
|
}>>;
|
|
4965
5454
|
}, "strip", z.ZodTypeAny, {
|
|
4966
5455
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -4968,6 +5457,14 @@ export declare const METHODS: {
|
|
|
4968
5457
|
usage?: {
|
|
4969
5458
|
inputTokens?: number | undefined;
|
|
4970
5459
|
outputTokens?: number | undefined;
|
|
5460
|
+
durationMs?: number | undefined;
|
|
5461
|
+
cachedTokens?: number | undefined;
|
|
5462
|
+
reasoningTokens?: number | undefined;
|
|
5463
|
+
toolCalls?: number | undefined;
|
|
5464
|
+
costEstimate?: {
|
|
5465
|
+
amount: number;
|
|
5466
|
+
currency: "USD" | "CNY";
|
|
5467
|
+
} | undefined;
|
|
4971
5468
|
} | undefined;
|
|
4972
5469
|
}, {
|
|
4973
5470
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -4975,6 +5472,14 @@ export declare const METHODS: {
|
|
|
4975
5472
|
usage?: {
|
|
4976
5473
|
inputTokens?: number | undefined;
|
|
4977
5474
|
outputTokens?: number | undefined;
|
|
5475
|
+
durationMs?: number | undefined;
|
|
5476
|
+
cachedTokens?: number | undefined;
|
|
5477
|
+
reasoningTokens?: number | undefined;
|
|
5478
|
+
toolCalls?: number | undefined;
|
|
5479
|
+
costEstimate?: {
|
|
5480
|
+
amount: number;
|
|
5481
|
+
currency: "USD" | "CNY";
|
|
5482
|
+
} | undefined;
|
|
4978
5483
|
} | undefined;
|
|
4979
5484
|
}>>;
|
|
4980
5485
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4992,6 +5497,14 @@ export declare const METHODS: {
|
|
|
4992
5497
|
usage?: {
|
|
4993
5498
|
inputTokens?: number | undefined;
|
|
4994
5499
|
outputTokens?: number | undefined;
|
|
5500
|
+
durationMs?: number | undefined;
|
|
5501
|
+
cachedTokens?: number | undefined;
|
|
5502
|
+
reasoningTokens?: number | undefined;
|
|
5503
|
+
toolCalls?: number | undefined;
|
|
5504
|
+
costEstimate?: {
|
|
5505
|
+
amount: number;
|
|
5506
|
+
currency: "USD" | "CNY";
|
|
5507
|
+
} | undefined;
|
|
4995
5508
|
} | undefined;
|
|
4996
5509
|
} | undefined;
|
|
4997
5510
|
error?: string | undefined;
|
|
@@ -5012,6 +5525,14 @@ export declare const METHODS: {
|
|
|
5012
5525
|
usage?: {
|
|
5013
5526
|
inputTokens?: number | undefined;
|
|
5014
5527
|
outputTokens?: number | undefined;
|
|
5528
|
+
durationMs?: number | undefined;
|
|
5529
|
+
cachedTokens?: number | undefined;
|
|
5530
|
+
reasoningTokens?: number | undefined;
|
|
5531
|
+
toolCalls?: number | undefined;
|
|
5532
|
+
costEstimate?: {
|
|
5533
|
+
amount: number;
|
|
5534
|
+
currency: "USD" | "CNY";
|
|
5535
|
+
} | undefined;
|
|
5015
5536
|
} | undefined;
|
|
5016
5537
|
} | undefined;
|
|
5017
5538
|
error?: string | undefined;
|
|
@@ -5045,6 +5566,14 @@ export declare const METHODS: {
|
|
|
5045
5566
|
usage?: {
|
|
5046
5567
|
inputTokens?: number | undefined;
|
|
5047
5568
|
outputTokens?: number | undefined;
|
|
5569
|
+
durationMs?: number | undefined;
|
|
5570
|
+
cachedTokens?: number | undefined;
|
|
5571
|
+
reasoningTokens?: number | undefined;
|
|
5572
|
+
toolCalls?: number | undefined;
|
|
5573
|
+
costEstimate?: {
|
|
5574
|
+
amount: number;
|
|
5575
|
+
currency: "USD" | "CNY";
|
|
5576
|
+
} | undefined;
|
|
5048
5577
|
} | undefined;
|
|
5049
5578
|
} | undefined;
|
|
5050
5579
|
error?: string | undefined;
|
|
@@ -5077,6 +5606,14 @@ export declare const METHODS: {
|
|
|
5077
5606
|
usage?: {
|
|
5078
5607
|
inputTokens?: number | undefined;
|
|
5079
5608
|
outputTokens?: number | undefined;
|
|
5609
|
+
durationMs?: number | undefined;
|
|
5610
|
+
cachedTokens?: number | undefined;
|
|
5611
|
+
reasoningTokens?: number | undefined;
|
|
5612
|
+
toolCalls?: number | undefined;
|
|
5613
|
+
costEstimate?: {
|
|
5614
|
+
amount: number;
|
|
5615
|
+
currency: "USD" | "CNY";
|
|
5616
|
+
} | undefined;
|
|
5080
5617
|
} | undefined;
|
|
5081
5618
|
} | undefined;
|
|
5082
5619
|
error?: string | undefined;
|
|
@@ -5112,6 +5649,14 @@ export declare const METHODS: {
|
|
|
5112
5649
|
usage?: {
|
|
5113
5650
|
inputTokens?: number | undefined;
|
|
5114
5651
|
outputTokens?: number | undefined;
|
|
5652
|
+
durationMs?: number | undefined;
|
|
5653
|
+
cachedTokens?: number | undefined;
|
|
5654
|
+
reasoningTokens?: number | undefined;
|
|
5655
|
+
toolCalls?: number | undefined;
|
|
5656
|
+
costEstimate?: {
|
|
5657
|
+
amount: number;
|
|
5658
|
+
currency: "USD" | "CNY";
|
|
5659
|
+
} | undefined;
|
|
5115
5660
|
} | undefined;
|
|
5116
5661
|
} | undefined;
|
|
5117
5662
|
error?: string | undefined;
|
|
@@ -5147,6 +5692,14 @@ export declare const METHODS: {
|
|
|
5147
5692
|
usage?: {
|
|
5148
5693
|
inputTokens?: number | undefined;
|
|
5149
5694
|
outputTokens?: number | undefined;
|
|
5695
|
+
durationMs?: number | undefined;
|
|
5696
|
+
cachedTokens?: number | undefined;
|
|
5697
|
+
reasoningTokens?: number | undefined;
|
|
5698
|
+
toolCalls?: number | undefined;
|
|
5699
|
+
costEstimate?: {
|
|
5700
|
+
amount: number;
|
|
5701
|
+
currency: "USD" | "CNY";
|
|
5702
|
+
} | undefined;
|
|
5150
5703
|
} | undefined;
|
|
5151
5704
|
} | undefined;
|
|
5152
5705
|
error?: string | undefined;
|
|
@@ -5169,7 +5722,7 @@ export declare const METHODS: {
|
|
|
5169
5722
|
readonly params: z.ZodObject<{
|
|
5170
5723
|
workflowId: z.ZodString;
|
|
5171
5724
|
seq: z.ZodNumber;
|
|
5172
|
-
type: z.ZodEnum<["workflow.status", "node.status", "edge.route", "executor.decision", "round.started", "round.completed", "discussion.terminated"]>;
|
|
5725
|
+
type: z.ZodEnum<["workflow.status", "node.status", "edge.route", "executor.decision", "round.started", "round.completed", "discussion.terminated", "human_review.requested", "human_review.resolved", "artifact.written", "node.diagnostic"]>;
|
|
5173
5726
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
5174
5727
|
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
5175
5728
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -5183,12 +5736,42 @@ export declare const METHODS: {
|
|
|
5183
5736
|
usage: z.ZodOptional<z.ZodObject<{
|
|
5184
5737
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5185
5738
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5739
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
5740
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
5741
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
5742
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5743
|
+
costEstimate: z.ZodOptional<z.ZodObject<{
|
|
5744
|
+
amount: z.ZodNumber;
|
|
5745
|
+
currency: z.ZodEnum<["USD", "CNY"]>;
|
|
5746
|
+
}, "strip", z.ZodTypeAny, {
|
|
5747
|
+
amount: number;
|
|
5748
|
+
currency: "USD" | "CNY";
|
|
5749
|
+
}, {
|
|
5750
|
+
amount: number;
|
|
5751
|
+
currency: "USD" | "CNY";
|
|
5752
|
+
}>>;
|
|
5186
5753
|
}, "strip", z.ZodTypeAny, {
|
|
5187
5754
|
inputTokens?: number | undefined;
|
|
5188
5755
|
outputTokens?: number | undefined;
|
|
5756
|
+
durationMs?: number | undefined;
|
|
5757
|
+
cachedTokens?: number | undefined;
|
|
5758
|
+
reasoningTokens?: number | undefined;
|
|
5759
|
+
toolCalls?: number | undefined;
|
|
5760
|
+
costEstimate?: {
|
|
5761
|
+
amount: number;
|
|
5762
|
+
currency: "USD" | "CNY";
|
|
5763
|
+
} | undefined;
|
|
5189
5764
|
}, {
|
|
5190
5765
|
inputTokens?: number | undefined;
|
|
5191
5766
|
outputTokens?: number | undefined;
|
|
5767
|
+
durationMs?: number | undefined;
|
|
5768
|
+
cachedTokens?: number | undefined;
|
|
5769
|
+
reasoningTokens?: number | undefined;
|
|
5770
|
+
toolCalls?: number | undefined;
|
|
5771
|
+
costEstimate?: {
|
|
5772
|
+
amount: number;
|
|
5773
|
+
currency: "USD" | "CNY";
|
|
5774
|
+
} | undefined;
|
|
5192
5775
|
}>>;
|
|
5193
5776
|
}, "strip", z.ZodTypeAny, {
|
|
5194
5777
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -5196,6 +5779,14 @@ export declare const METHODS: {
|
|
|
5196
5779
|
usage?: {
|
|
5197
5780
|
inputTokens?: number | undefined;
|
|
5198
5781
|
outputTokens?: number | undefined;
|
|
5782
|
+
durationMs?: number | undefined;
|
|
5783
|
+
cachedTokens?: number | undefined;
|
|
5784
|
+
reasoningTokens?: number | undefined;
|
|
5785
|
+
toolCalls?: number | undefined;
|
|
5786
|
+
costEstimate?: {
|
|
5787
|
+
amount: number;
|
|
5788
|
+
currency: "USD" | "CNY";
|
|
5789
|
+
} | undefined;
|
|
5199
5790
|
} | undefined;
|
|
5200
5791
|
}, {
|
|
5201
5792
|
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
@@ -5203,12 +5794,20 @@ export declare const METHODS: {
|
|
|
5203
5794
|
usage?: {
|
|
5204
5795
|
inputTokens?: number | undefined;
|
|
5205
5796
|
outputTokens?: number | undefined;
|
|
5797
|
+
durationMs?: number | undefined;
|
|
5798
|
+
cachedTokens?: number | undefined;
|
|
5799
|
+
reasoningTokens?: number | undefined;
|
|
5800
|
+
toolCalls?: number | undefined;
|
|
5801
|
+
costEstimate?: {
|
|
5802
|
+
amount: number;
|
|
5803
|
+
currency: "USD" | "CNY";
|
|
5804
|
+
} | undefined;
|
|
5206
5805
|
} | undefined;
|
|
5207
5806
|
}>>;
|
|
5208
5807
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5209
5808
|
timestamp: z.ZodString;
|
|
5210
5809
|
}, "strip", z.ZodTypeAny, {
|
|
5211
|
-
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
|
|
5810
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
5212
5811
|
seq: number;
|
|
5213
5812
|
workflowId: string;
|
|
5214
5813
|
timestamp: string;
|
|
@@ -5224,12 +5823,20 @@ export declare const METHODS: {
|
|
|
5224
5823
|
usage?: {
|
|
5225
5824
|
inputTokens?: number | undefined;
|
|
5226
5825
|
outputTokens?: number | undefined;
|
|
5826
|
+
durationMs?: number | undefined;
|
|
5827
|
+
cachedTokens?: number | undefined;
|
|
5828
|
+
reasoningTokens?: number | undefined;
|
|
5829
|
+
toolCalls?: number | undefined;
|
|
5830
|
+
costEstimate?: {
|
|
5831
|
+
amount: number;
|
|
5832
|
+
currency: "USD" | "CNY";
|
|
5833
|
+
} | undefined;
|
|
5227
5834
|
} | undefined;
|
|
5228
5835
|
} | undefined;
|
|
5229
5836
|
nodeId?: string | undefined;
|
|
5230
5837
|
payload?: Record<string, unknown> | undefined;
|
|
5231
5838
|
}, {
|
|
5232
|
-
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
|
|
5839
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
5233
5840
|
seq: number;
|
|
5234
5841
|
workflowId: string;
|
|
5235
5842
|
timestamp: string;
|
|
@@ -5245,6 +5852,14 @@ export declare const METHODS: {
|
|
|
5245
5852
|
usage?: {
|
|
5246
5853
|
inputTokens?: number | undefined;
|
|
5247
5854
|
outputTokens?: number | undefined;
|
|
5855
|
+
durationMs?: number | undefined;
|
|
5856
|
+
cachedTokens?: number | undefined;
|
|
5857
|
+
reasoningTokens?: number | undefined;
|
|
5858
|
+
toolCalls?: number | undefined;
|
|
5859
|
+
costEstimate?: {
|
|
5860
|
+
amount: number;
|
|
5861
|
+
currency: "USD" | "CNY";
|
|
5862
|
+
} | undefined;
|
|
5248
5863
|
} | undefined;
|
|
5249
5864
|
} | undefined;
|
|
5250
5865
|
nodeId?: string | undefined;
|
|
@@ -5252,6 +5867,65 @@ export declare const METHODS: {
|
|
|
5252
5867
|
}>;
|
|
5253
5868
|
readonly result: z.ZodUndefined;
|
|
5254
5869
|
};
|
|
5870
|
+
readonly "workflow.resume": {
|
|
5871
|
+
readonly direction: "s2p";
|
|
5872
|
+
readonly kind: "request";
|
|
5873
|
+
readonly params: z.ZodObject<{
|
|
5874
|
+
workflowId: z.ZodString;
|
|
5875
|
+
strategy: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"last_success_dependents">, z.ZodLiteral<"failed_node">, z.ZodString]>>;
|
|
5876
|
+
rerunNodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5877
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
sharedContextPatch: z.ZodOptional<z.ZodObject<{
|
|
5879
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5880
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5881
|
+
placement: z.ZodDefault<z.ZodEnum<["prepend", "append"]>>;
|
|
5882
|
+
}, "strip", z.ZodTypeAny, {
|
|
5883
|
+
placement: "prepend" | "append";
|
|
5884
|
+
text?: string | undefined;
|
|
5885
|
+
files?: string[] | undefined;
|
|
5886
|
+
}, {
|
|
5887
|
+
text?: string | undefined;
|
|
5888
|
+
files?: string[] | undefined;
|
|
5889
|
+
placement?: "prepend" | "append" | undefined;
|
|
5890
|
+
}>>;
|
|
5891
|
+
}, "strip", z.ZodTypeAny, {
|
|
5892
|
+
strategy: string;
|
|
5893
|
+
workflowId: string;
|
|
5894
|
+
rerunNodes?: string[] | undefined;
|
|
5895
|
+
feedback?: string | undefined;
|
|
5896
|
+
sharedContextPatch?: {
|
|
5897
|
+
placement: "prepend" | "append";
|
|
5898
|
+
text?: string | undefined;
|
|
5899
|
+
files?: string[] | undefined;
|
|
5900
|
+
} | undefined;
|
|
5901
|
+
}, {
|
|
5902
|
+
workflowId: string;
|
|
5903
|
+
strategy?: string | undefined;
|
|
5904
|
+
rerunNodes?: string[] | undefined;
|
|
5905
|
+
feedback?: string | undefined;
|
|
5906
|
+
sharedContextPatch?: {
|
|
5907
|
+
text?: string | undefined;
|
|
5908
|
+
files?: string[] | undefined;
|
|
5909
|
+
placement?: "prepend" | "append" | undefined;
|
|
5910
|
+
} | undefined;
|
|
5911
|
+
}>;
|
|
5912
|
+
readonly result: z.ZodObject<{
|
|
5913
|
+
workflowId: z.ZodString;
|
|
5914
|
+
status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
|
|
5915
|
+
createdAt: z.ZodString;
|
|
5916
|
+
resumed: z.ZodDefault<z.ZodBoolean>;
|
|
5917
|
+
}, "strip", z.ZodTypeAny, {
|
|
5918
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5919
|
+
createdAt: string;
|
|
5920
|
+
workflowId: string;
|
|
5921
|
+
resumed: boolean;
|
|
5922
|
+
}, {
|
|
5923
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5924
|
+
createdAt: string;
|
|
5925
|
+
workflowId: string;
|
|
5926
|
+
resumed?: boolean | undefined;
|
|
5927
|
+
}>;
|
|
5928
|
+
};
|
|
5255
5929
|
readonly "workflow.ack": {
|
|
5256
5930
|
readonly direction: "s2p";
|
|
5257
5931
|
readonly kind: "notification";
|
|
@@ -5267,6 +5941,400 @@ export declare const METHODS: {
|
|
|
5267
5941
|
}>;
|
|
5268
5942
|
readonly result: z.ZodUndefined;
|
|
5269
5943
|
};
|
|
5944
|
+
readonly "workflow.events.list": {
|
|
5945
|
+
readonly direction: "s2p";
|
|
5946
|
+
readonly kind: "request";
|
|
5947
|
+
readonly params: z.ZodObject<{
|
|
5948
|
+
workflowId: z.ZodString;
|
|
5949
|
+
afterSeq: z.ZodOptional<z.ZodNumber>;
|
|
5950
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
5951
|
+
}, "strip", z.ZodTypeAny, {
|
|
5952
|
+
workflowId: string;
|
|
5953
|
+
limit?: number | undefined;
|
|
5954
|
+
afterSeq?: number | undefined;
|
|
5955
|
+
}, {
|
|
5956
|
+
workflowId: string;
|
|
5957
|
+
limit?: number | undefined;
|
|
5958
|
+
afterSeq?: number | undefined;
|
|
5959
|
+
}>;
|
|
5960
|
+
readonly result: z.ZodObject<{
|
|
5961
|
+
events: z.ZodArray<z.ZodObject<{
|
|
5962
|
+
workflowId: z.ZodString;
|
|
5963
|
+
seq: z.ZodNumber;
|
|
5964
|
+
type: z.ZodEnum<["workflow.status", "node.status", "edge.route", "executor.decision", "round.started", "round.completed", "discussion.terminated", "human_review.requested", "human_review.resolved", "artifact.written", "node.diagnostic"]>;
|
|
5965
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
5966
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
5967
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
5968
|
+
agent: z.ZodOptional<z.ZodBranded<z.ZodString, "AgentId">>;
|
|
5969
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5970
|
+
role: z.ZodOptional<z.ZodString>;
|
|
5971
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>, z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>]>>;
|
|
5972
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
5973
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5974
|
+
status: z.ZodEnum<["completed", "interrupted", "aborted", "failed", "timeout"]>;
|
|
5975
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
5976
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5977
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5978
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
5979
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
5980
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
5981
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5982
|
+
costEstimate: z.ZodOptional<z.ZodObject<{
|
|
5983
|
+
amount: z.ZodNumber;
|
|
5984
|
+
currency: z.ZodEnum<["USD", "CNY"]>;
|
|
5985
|
+
}, "strip", z.ZodTypeAny, {
|
|
5986
|
+
amount: number;
|
|
5987
|
+
currency: "USD" | "CNY";
|
|
5988
|
+
}, {
|
|
5989
|
+
amount: number;
|
|
5990
|
+
currency: "USD" | "CNY";
|
|
5991
|
+
}>>;
|
|
5992
|
+
}, "strip", z.ZodTypeAny, {
|
|
5993
|
+
inputTokens?: number | undefined;
|
|
5994
|
+
outputTokens?: number | undefined;
|
|
5995
|
+
durationMs?: number | undefined;
|
|
5996
|
+
cachedTokens?: number | undefined;
|
|
5997
|
+
reasoningTokens?: number | undefined;
|
|
5998
|
+
toolCalls?: number | undefined;
|
|
5999
|
+
costEstimate?: {
|
|
6000
|
+
amount: number;
|
|
6001
|
+
currency: "USD" | "CNY";
|
|
6002
|
+
} | undefined;
|
|
6003
|
+
}, {
|
|
6004
|
+
inputTokens?: number | undefined;
|
|
6005
|
+
outputTokens?: number | undefined;
|
|
6006
|
+
durationMs?: number | undefined;
|
|
6007
|
+
cachedTokens?: number | undefined;
|
|
6008
|
+
reasoningTokens?: number | undefined;
|
|
6009
|
+
toolCalls?: number | undefined;
|
|
6010
|
+
costEstimate?: {
|
|
6011
|
+
amount: number;
|
|
6012
|
+
currency: "USD" | "CNY";
|
|
6013
|
+
} | undefined;
|
|
6014
|
+
}>>;
|
|
6015
|
+
}, "strip", z.ZodTypeAny, {
|
|
6016
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6017
|
+
text?: string | undefined;
|
|
6018
|
+
usage?: {
|
|
6019
|
+
inputTokens?: number | undefined;
|
|
6020
|
+
outputTokens?: number | undefined;
|
|
6021
|
+
durationMs?: number | undefined;
|
|
6022
|
+
cachedTokens?: number | undefined;
|
|
6023
|
+
reasoningTokens?: number | undefined;
|
|
6024
|
+
toolCalls?: number | undefined;
|
|
6025
|
+
costEstimate?: {
|
|
6026
|
+
amount: number;
|
|
6027
|
+
currency: "USD" | "CNY";
|
|
6028
|
+
} | undefined;
|
|
6029
|
+
} | undefined;
|
|
6030
|
+
}, {
|
|
6031
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6032
|
+
text?: string | undefined;
|
|
6033
|
+
usage?: {
|
|
6034
|
+
inputTokens?: number | undefined;
|
|
6035
|
+
outputTokens?: number | undefined;
|
|
6036
|
+
durationMs?: number | undefined;
|
|
6037
|
+
cachedTokens?: number | undefined;
|
|
6038
|
+
reasoningTokens?: number | undefined;
|
|
6039
|
+
toolCalls?: number | undefined;
|
|
6040
|
+
costEstimate?: {
|
|
6041
|
+
amount: number;
|
|
6042
|
+
currency: "USD" | "CNY";
|
|
6043
|
+
} | undefined;
|
|
6044
|
+
} | undefined;
|
|
6045
|
+
}>>;
|
|
6046
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6047
|
+
timestamp: z.ZodString;
|
|
6048
|
+
}, "strip", z.ZodTypeAny, {
|
|
6049
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
6050
|
+
seq: number;
|
|
6051
|
+
workflowId: string;
|
|
6052
|
+
timestamp: string;
|
|
6053
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
6054
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
6055
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
6056
|
+
role?: string | undefined;
|
|
6057
|
+
model?: string | undefined;
|
|
6058
|
+
turnId?: string | undefined;
|
|
6059
|
+
result?: {
|
|
6060
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6061
|
+
text?: string | undefined;
|
|
6062
|
+
usage?: {
|
|
6063
|
+
inputTokens?: number | undefined;
|
|
6064
|
+
outputTokens?: number | undefined;
|
|
6065
|
+
durationMs?: number | undefined;
|
|
6066
|
+
cachedTokens?: number | undefined;
|
|
6067
|
+
reasoningTokens?: number | undefined;
|
|
6068
|
+
toolCalls?: number | undefined;
|
|
6069
|
+
costEstimate?: {
|
|
6070
|
+
amount: number;
|
|
6071
|
+
currency: "USD" | "CNY";
|
|
6072
|
+
} | undefined;
|
|
6073
|
+
} | undefined;
|
|
6074
|
+
} | undefined;
|
|
6075
|
+
nodeId?: string | undefined;
|
|
6076
|
+
payload?: Record<string, unknown> | undefined;
|
|
6077
|
+
}, {
|
|
6078
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
6079
|
+
seq: number;
|
|
6080
|
+
workflowId: string;
|
|
6081
|
+
timestamp: string;
|
|
6082
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
6083
|
+
sessionId?: string | undefined;
|
|
6084
|
+
agent?: string | undefined;
|
|
6085
|
+
role?: string | undefined;
|
|
6086
|
+
model?: string | undefined;
|
|
6087
|
+
turnId?: string | undefined;
|
|
6088
|
+
result?: {
|
|
6089
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6090
|
+
text?: string | undefined;
|
|
6091
|
+
usage?: {
|
|
6092
|
+
inputTokens?: number | undefined;
|
|
6093
|
+
outputTokens?: number | undefined;
|
|
6094
|
+
durationMs?: number | undefined;
|
|
6095
|
+
cachedTokens?: number | undefined;
|
|
6096
|
+
reasoningTokens?: number | undefined;
|
|
6097
|
+
toolCalls?: number | undefined;
|
|
6098
|
+
costEstimate?: {
|
|
6099
|
+
amount: number;
|
|
6100
|
+
currency: "USD" | "CNY";
|
|
6101
|
+
} | undefined;
|
|
6102
|
+
} | undefined;
|
|
6103
|
+
} | undefined;
|
|
6104
|
+
nodeId?: string | undefined;
|
|
6105
|
+
payload?: Record<string, unknown> | undefined;
|
|
6106
|
+
}>, "many">;
|
|
6107
|
+
nextSeq: z.ZodOptional<z.ZodNumber>;
|
|
6108
|
+
}, "strip", z.ZodTypeAny, {
|
|
6109
|
+
events: {
|
|
6110
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
6111
|
+
seq: number;
|
|
6112
|
+
workflowId: string;
|
|
6113
|
+
timestamp: string;
|
|
6114
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
6115
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
6116
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
6117
|
+
role?: string | undefined;
|
|
6118
|
+
model?: string | undefined;
|
|
6119
|
+
turnId?: string | undefined;
|
|
6120
|
+
result?: {
|
|
6121
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6122
|
+
text?: string | undefined;
|
|
6123
|
+
usage?: {
|
|
6124
|
+
inputTokens?: number | undefined;
|
|
6125
|
+
outputTokens?: number | undefined;
|
|
6126
|
+
durationMs?: number | undefined;
|
|
6127
|
+
cachedTokens?: number | undefined;
|
|
6128
|
+
reasoningTokens?: number | undefined;
|
|
6129
|
+
toolCalls?: number | undefined;
|
|
6130
|
+
costEstimate?: {
|
|
6131
|
+
amount: number;
|
|
6132
|
+
currency: "USD" | "CNY";
|
|
6133
|
+
} | undefined;
|
|
6134
|
+
} | undefined;
|
|
6135
|
+
} | undefined;
|
|
6136
|
+
nodeId?: string | undefined;
|
|
6137
|
+
payload?: Record<string, unknown> | undefined;
|
|
6138
|
+
}[];
|
|
6139
|
+
nextSeq?: number | undefined;
|
|
6140
|
+
}, {
|
|
6141
|
+
events: {
|
|
6142
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated" | "human_review.requested" | "human_review.resolved" | "artifact.written" | "node.diagnostic";
|
|
6143
|
+
seq: number;
|
|
6144
|
+
workflowId: string;
|
|
6145
|
+
timestamp: string;
|
|
6146
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
6147
|
+
sessionId?: string | undefined;
|
|
6148
|
+
agent?: string | undefined;
|
|
6149
|
+
role?: string | undefined;
|
|
6150
|
+
model?: string | undefined;
|
|
6151
|
+
turnId?: string | undefined;
|
|
6152
|
+
result?: {
|
|
6153
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
6154
|
+
text?: string | undefined;
|
|
6155
|
+
usage?: {
|
|
6156
|
+
inputTokens?: number | undefined;
|
|
6157
|
+
outputTokens?: number | undefined;
|
|
6158
|
+
durationMs?: number | undefined;
|
|
6159
|
+
cachedTokens?: number | undefined;
|
|
6160
|
+
reasoningTokens?: number | undefined;
|
|
6161
|
+
toolCalls?: number | undefined;
|
|
6162
|
+
costEstimate?: {
|
|
6163
|
+
amount: number;
|
|
6164
|
+
currency: "USD" | "CNY";
|
|
6165
|
+
} | undefined;
|
|
6166
|
+
} | undefined;
|
|
6167
|
+
} | undefined;
|
|
6168
|
+
nodeId?: string | undefined;
|
|
6169
|
+
payload?: Record<string, unknown> | undefined;
|
|
6170
|
+
}[];
|
|
6171
|
+
nextSeq?: number | undefined;
|
|
6172
|
+
}>;
|
|
6173
|
+
};
|
|
6174
|
+
readonly "workflow.artifact.register": {
|
|
6175
|
+
readonly direction: "s2p";
|
|
6176
|
+
readonly kind: "request";
|
|
6177
|
+
readonly params: z.ZodObject<{
|
|
6178
|
+
workflowId: z.ZodString;
|
|
6179
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
6180
|
+
kind: z.ZodEnum<["report", "diff", "spec", "log", "patch", "image", "binary", "other"]>;
|
|
6181
|
+
path: z.ZodString;
|
|
6182
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6183
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
6184
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6185
|
+
}, "strip", z.ZodTypeAny, {
|
|
6186
|
+
path: string;
|
|
6187
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6188
|
+
workflowId: string;
|
|
6189
|
+
nodeId?: string | undefined;
|
|
6190
|
+
mimeType?: string | undefined;
|
|
6191
|
+
title?: string | undefined;
|
|
6192
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6193
|
+
}, {
|
|
6194
|
+
path: string;
|
|
6195
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6196
|
+
workflowId: string;
|
|
6197
|
+
nodeId?: string | undefined;
|
|
6198
|
+
mimeType?: string | undefined;
|
|
6199
|
+
title?: string | undefined;
|
|
6200
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6201
|
+
}>;
|
|
6202
|
+
readonly result: z.ZodObject<{
|
|
6203
|
+
artifact: z.ZodObject<{
|
|
6204
|
+
artifactId: z.ZodString;
|
|
6205
|
+
workflowId: z.ZodString;
|
|
6206
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
6207
|
+
kind: z.ZodEnum<["report", "diff", "spec", "log", "patch", "image", "binary", "other"]>;
|
|
6208
|
+
path: z.ZodString;
|
|
6209
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6210
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
6211
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
6212
|
+
createdAt: z.ZodString;
|
|
6213
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6214
|
+
}, "strip", z.ZodTypeAny, {
|
|
6215
|
+
path: string;
|
|
6216
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6217
|
+
createdAt: string;
|
|
6218
|
+
workflowId: string;
|
|
6219
|
+
artifactId: string;
|
|
6220
|
+
nodeId?: string | undefined;
|
|
6221
|
+
mimeType?: string | undefined;
|
|
6222
|
+
title?: string | undefined;
|
|
6223
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6224
|
+
size?: number | undefined;
|
|
6225
|
+
}, {
|
|
6226
|
+
path: string;
|
|
6227
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6228
|
+
createdAt: string;
|
|
6229
|
+
workflowId: string;
|
|
6230
|
+
artifactId: string;
|
|
6231
|
+
nodeId?: string | undefined;
|
|
6232
|
+
mimeType?: string | undefined;
|
|
6233
|
+
title?: string | undefined;
|
|
6234
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6235
|
+
size?: number | undefined;
|
|
6236
|
+
}>;
|
|
6237
|
+
}, "strip", z.ZodTypeAny, {
|
|
6238
|
+
artifact: {
|
|
6239
|
+
path: string;
|
|
6240
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6241
|
+
createdAt: string;
|
|
6242
|
+
workflowId: string;
|
|
6243
|
+
artifactId: string;
|
|
6244
|
+
nodeId?: string | undefined;
|
|
6245
|
+
mimeType?: string | undefined;
|
|
6246
|
+
title?: string | undefined;
|
|
6247
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6248
|
+
size?: number | undefined;
|
|
6249
|
+
};
|
|
6250
|
+
}, {
|
|
6251
|
+
artifact: {
|
|
6252
|
+
path: string;
|
|
6253
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6254
|
+
createdAt: string;
|
|
6255
|
+
workflowId: string;
|
|
6256
|
+
artifactId: string;
|
|
6257
|
+
nodeId?: string | undefined;
|
|
6258
|
+
mimeType?: string | undefined;
|
|
6259
|
+
title?: string | undefined;
|
|
6260
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6261
|
+
size?: number | undefined;
|
|
6262
|
+
};
|
|
6263
|
+
}>;
|
|
6264
|
+
};
|
|
6265
|
+
readonly "workflow.artifacts.list": {
|
|
6266
|
+
readonly direction: "s2p";
|
|
6267
|
+
readonly kind: "request";
|
|
6268
|
+
readonly params: z.ZodObject<{
|
|
6269
|
+
workflowId: z.ZodString;
|
|
6270
|
+
}, "strip", z.ZodTypeAny, {
|
|
6271
|
+
workflowId: string;
|
|
6272
|
+
}, {
|
|
6273
|
+
workflowId: string;
|
|
6274
|
+
}>;
|
|
6275
|
+
readonly result: z.ZodObject<{
|
|
6276
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
6277
|
+
artifactId: z.ZodString;
|
|
6278
|
+
workflowId: z.ZodString;
|
|
6279
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
6280
|
+
kind: z.ZodEnum<["report", "diff", "spec", "log", "patch", "image", "binary", "other"]>;
|
|
6281
|
+
path: z.ZodString;
|
|
6282
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6283
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
6284
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
6285
|
+
createdAt: z.ZodString;
|
|
6286
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6287
|
+
}, "strip", z.ZodTypeAny, {
|
|
6288
|
+
path: string;
|
|
6289
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6290
|
+
createdAt: string;
|
|
6291
|
+
workflowId: string;
|
|
6292
|
+
artifactId: string;
|
|
6293
|
+
nodeId?: string | undefined;
|
|
6294
|
+
mimeType?: string | undefined;
|
|
6295
|
+
title?: string | undefined;
|
|
6296
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6297
|
+
size?: number | undefined;
|
|
6298
|
+
}, {
|
|
6299
|
+
path: string;
|
|
6300
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6301
|
+
createdAt: string;
|
|
6302
|
+
workflowId: string;
|
|
6303
|
+
artifactId: string;
|
|
6304
|
+
nodeId?: string | undefined;
|
|
6305
|
+
mimeType?: string | undefined;
|
|
6306
|
+
title?: string | undefined;
|
|
6307
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6308
|
+
size?: number | undefined;
|
|
6309
|
+
}>, "many">;
|
|
6310
|
+
}, "strip", z.ZodTypeAny, {
|
|
6311
|
+
artifacts: {
|
|
6312
|
+
path: string;
|
|
6313
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6314
|
+
createdAt: string;
|
|
6315
|
+
workflowId: string;
|
|
6316
|
+
artifactId: string;
|
|
6317
|
+
nodeId?: string | undefined;
|
|
6318
|
+
mimeType?: string | undefined;
|
|
6319
|
+
title?: string | undefined;
|
|
6320
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6321
|
+
size?: number | undefined;
|
|
6322
|
+
}[];
|
|
6323
|
+
}, {
|
|
6324
|
+
artifacts: {
|
|
6325
|
+
path: string;
|
|
6326
|
+
kind: "patch" | "image" | "other" | "report" | "diff" | "spec" | "log" | "binary";
|
|
6327
|
+
createdAt: string;
|
|
6328
|
+
workflowId: string;
|
|
6329
|
+
artifactId: string;
|
|
6330
|
+
nodeId?: string | undefined;
|
|
6331
|
+
mimeType?: string | undefined;
|
|
6332
|
+
title?: string | undefined;
|
|
6333
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6334
|
+
size?: number | undefined;
|
|
6335
|
+
}[];
|
|
6336
|
+
}>;
|
|
6337
|
+
};
|
|
5270
6338
|
};
|
|
5271
6339
|
export type MethodName = keyof typeof METHODS;
|
|
5272
6340
|
export type MethodSpec = (typeof METHODS)[MethodName];
|