@scarn/sdk 0.8.14 → 0.8.17

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.
Files changed (47) hide show
  1. package/dist/automations/index.js +4 -4
  2. package/dist/{chunk-4ggr8af6.js → chunk-098740f7.js} +1 -1
  3. package/dist/{chunk-y2pv8d6a.js → chunk-19brnwkp.js} +1 -1
  4. package/dist/{chunk-8jfqd6m3.js → chunk-1wnv6rb2.js} +2 -2
  5. package/dist/{chunk-5zsavw98.js → chunk-2ekz6tr5.js} +1 -1
  6. package/dist/{chunk-xzx08r6y.js → chunk-2sk92cnd.js} +1 -1
  7. package/dist/{chunk-k4y5qt4y.js → chunk-46wmsgv7.js} +1 -1
  8. package/dist/{chunk-11hbmexe.js → chunk-9we3vqsv.js} +1 -1
  9. package/dist/{chunk-tpe834e0.js → chunk-a04phj60.js} +56 -16
  10. package/dist/{chunk-43y7tfn4.js → chunk-aknfw08j.js} +1 -1
  11. package/dist/{chunk-e1h021kq.js → chunk-cdj0yqgs.js} +1 -1
  12. package/dist/{chunk-jjxbkv7z.js → chunk-dhqeg0wf.js} +2 -2
  13. package/dist/{chunk-cnxaagfj.js → chunk-evb3hw48.js} +1 -1
  14. package/dist/{chunk-1yb2h6t9.js → chunk-g2mzg278.js} +5 -5
  15. package/dist/{chunk-76d1bwwz.js → chunk-p1fs73bd.js} +2 -2
  16. package/dist/{chunk-qq5mk270.js → chunk-qs7p11rp.js} +17 -1
  17. package/dist/{chunk-qesxv9gj.js → chunk-r03knh9j.js} +17 -11
  18. package/dist/{chunk-63f90zky.js → chunk-y34zsgsw.js} +1 -1
  19. package/dist/{chunk-skzxcba3.js → chunk-yf15kdte.js} +7087 -1944
  20. package/dist/client.js +2 -2
  21. package/dist/contracts/artifacts.js +2 -2
  22. package/dist/contracts/automation-document/index.js +3 -3
  23. package/dist/contracts/pipeline-document/index.js +2 -2
  24. package/dist/contracts/pipeline-document/schema.d.ts +10 -10
  25. package/dist/contracts/step-artifact-submissions.js +2 -2
  26. package/dist/contracts/work-item-changes.js +1 -1
  27. package/dist/defaults/index.d.ts +1 -1
  28. package/dist/defaults/index.js +3 -2
  29. package/dist/definitions/automations/index.js +3 -3
  30. package/dist/definitions/pipelines/index.js +3 -3
  31. package/dist/definitions/steps/index.js +10 -10
  32. package/dist/definitions/validation/index.js +7 -7
  33. package/dist/devcontainer-config-path.js +2 -2
  34. package/dist/env-vars.js +2 -2
  35. package/dist/generated/index.d.ts +1 -1
  36. package/dist/generated/sdk.gen.d.ts +22 -11
  37. package/dist/generated/types.gen.d.ts +737 -165
  38. package/dist/health-checks.d.ts +3 -3
  39. package/dist/health-checks.js +2 -2
  40. package/dist/index.js +16 -16
  41. package/dist/managed-runtimes.js +2 -2
  42. package/dist/opencode-mcp.js +2 -2
  43. package/dist/pipelines/index.js +3 -3
  44. package/dist/push/index.js +13 -13
  45. package/dist/repo-config.js +2 -2
  46. package/dist/task-plane-client.d.ts +22 -0
  47. package/package.json +1 -1
@@ -3778,10 +3778,17 @@ export type GetApiTasksByTaskIdResponses = {
3778
3778
  title: string;
3779
3779
  } | null;
3780
3780
  startedBy: {
3781
+ kind: 'user';
3781
3782
  userId: string;
3782
3783
  username: string | null;
3783
- image: string | null;
3784
- } | null;
3784
+ } | {
3785
+ kind: 'automation';
3786
+ automationId: string;
3787
+ key: string;
3788
+ title: string | null;
3789
+ } | {
3790
+ kind: 'system';
3791
+ };
3785
3792
  source: {
3786
3793
  kind: 'step_definition';
3787
3794
  stepDefinitionId: string;
@@ -4099,10 +4106,17 @@ export type GetApiProjectsByProjectIdTasksResponses = {
4099
4106
  title: string;
4100
4107
  } | null;
4101
4108
  startedBy: {
4109
+ kind: 'user';
4102
4110
  userId: string;
4103
4111
  username: string | null;
4104
- image: string | null;
4105
- } | null;
4112
+ } | {
4113
+ kind: 'automation';
4114
+ automationId: string;
4115
+ key: string;
4116
+ title: string | null;
4117
+ } | {
4118
+ kind: 'system';
4119
+ };
4106
4120
  source: {
4107
4121
  kind: 'step_definition';
4108
4122
  stepDefinitionId: string;
@@ -5667,6 +5681,25 @@ export type PostApiTaskRunsByTaskRunIdLogsErrors = {
5667
5681
  [key: string]: unknown;
5668
5682
  };
5669
5683
  };
5684
+ /**
5685
+ * Response for status 413
5686
+ */
5687
+ 413: {
5688
+ type: string;
5689
+ title: string;
5690
+ status: number;
5691
+ detail?: string;
5692
+ instance?: string;
5693
+ code?: string;
5694
+ errors?: Array<{
5695
+ path: string;
5696
+ message: string;
5697
+ summary?: string;
5698
+ }>;
5699
+ meta?: {
5700
+ [key: string]: unknown;
5701
+ };
5702
+ };
5670
5703
  /**
5671
5704
  * Response for status 422
5672
5705
  */
@@ -5686,6 +5719,25 @@ export type PostApiTaskRunsByTaskRunIdLogsErrors = {
5686
5719
  [key: string]: unknown;
5687
5720
  };
5688
5721
  };
5722
+ /**
5723
+ * Response for status 429
5724
+ */
5725
+ 429: {
5726
+ type: string;
5727
+ title: string;
5728
+ status: number;
5729
+ detail?: string;
5730
+ instance?: string;
5731
+ code?: string;
5732
+ errors?: Array<{
5733
+ path: string;
5734
+ message: string;
5735
+ summary?: string;
5736
+ }>;
5737
+ meta?: {
5738
+ [key: string]: unknown;
5739
+ };
5740
+ };
5689
5741
  /**
5690
5742
  * Response for status 500
5691
5743
  */
@@ -9944,6 +9996,18 @@ export type GetApiPipelineExecutionsResponses = {
9944
9996
  cause?: unknown;
9945
9997
  } | null;
9946
9998
  triggeredByUserId: string | null;
9999
+ startedBy: {
10000
+ kind: 'user';
10001
+ userId: string;
10002
+ username: string | null;
10003
+ } | {
10004
+ kind: 'automation';
10005
+ automationId: string;
10006
+ key: string;
10007
+ title: string | null;
10008
+ } | {
10009
+ kind: 'system';
10010
+ };
9947
10011
  cancelledByUserId: string | null;
9948
10012
  startedAt: string | null;
9949
10013
  completedAt: string | null;
@@ -10127,6 +10191,18 @@ export type PostApiPipelineExecutionsResponses = {
10127
10191
  cause?: unknown;
10128
10192
  } | null;
10129
10193
  triggeredByUserId: string | null;
10194
+ startedBy: {
10195
+ kind: 'user';
10196
+ userId: string;
10197
+ username: string | null;
10198
+ } | {
10199
+ kind: 'automation';
10200
+ automationId: string;
10201
+ key: string;
10202
+ title: string | null;
10203
+ } | {
10204
+ kind: 'system';
10205
+ };
10130
10206
  cancelledByUserId: string | null;
10131
10207
  startedAt: string | null;
10132
10208
  completedAt: string | null;
@@ -10369,6 +10445,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunRe
10369
10445
  cause?: unknown;
10370
10446
  } | null;
10371
10447
  triggeredByUserId: string | null;
10448
+ startedBy: {
10449
+ kind: 'user';
10450
+ userId: string;
10451
+ username: string | null;
10452
+ } | {
10453
+ kind: 'automation';
10454
+ automationId: string;
10455
+ key: string;
10456
+ title: string | null;
10457
+ } | {
10458
+ kind: 'system';
10459
+ };
10372
10460
  cancelledByUserId: string | null;
10373
10461
  startedAt: string | null;
10374
10462
  completedAt: string | null;
@@ -10765,6 +10853,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdC
10765
10853
  cause?: unknown;
10766
10854
  } | null;
10767
10855
  triggeredByUserId: string | null;
10856
+ startedBy: {
10857
+ kind: 'user';
10858
+ userId: string;
10859
+ username: string | null;
10860
+ } | {
10861
+ kind: 'automation';
10862
+ automationId: string;
10863
+ key: string;
10864
+ title: string | null;
10865
+ } | {
10866
+ kind: 'system';
10867
+ };
10768
10868
  cancelledByUserId: string | null;
10769
10869
  startedAt: string | null;
10770
10870
  completedAt: string | null;
@@ -11006,6 +11106,18 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11006
11106
  cause?: unknown;
11007
11107
  } | null;
11008
11108
  triggeredByUserId: string | null;
11109
+ startedBy: {
11110
+ kind: 'user';
11111
+ userId: string;
11112
+ username: string | null;
11113
+ } | {
11114
+ kind: 'automation';
11115
+ automationId: string;
11116
+ key: string;
11117
+ title: string | null;
11118
+ } | {
11119
+ kind: 'system';
11120
+ };
11009
11121
  cancelledByUserId: string | null;
11010
11122
  startedAt: string | null;
11011
11123
  completedAt: string | null;
@@ -11101,17 +11213,24 @@ export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses = {
11101
11213
  };
11102
11214
  };
11103
11215
  export type PutApiPipelineExecutionsByPipelineExecutionIdCancelResponse = PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses[keyof PutApiPipelineExecutionsByPipelineExecutionIdCancelResponses];
11104
- export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11105
- body: {
11106
- workerId?: string;
11107
- };
11216
+ export type GetApiProjectsByProjectIdRunsData = {
11217
+ body?: never;
11108
11218
  path: {
11109
11219
  projectId: string;
11110
11220
  };
11111
- query?: never;
11112
- url: '/api/projects/{projectId}/work-signal-token';
11221
+ query?: {
11222
+ status?: 'needs-you' | 'open' | 'finished' | 'all' | 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11223
+ whatRan?: string | 'task';
11224
+ startedBy?: string | 'me';
11225
+ workItemId?: string;
11226
+ atNode?: string;
11227
+ q?: string;
11228
+ before?: string;
11229
+ limit?: number;
11230
+ };
11231
+ url: '/api/projects/{projectId}/runs';
11113
11232
  };
11114
- export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11233
+ export type GetApiProjectsByProjectIdRunsErrors = {
11115
11234
  /**
11116
11235
  * Response for status 401
11117
11236
  */
@@ -11208,27 +11327,110 @@ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11208
11327
  };
11209
11328
  };
11210
11329
  };
11211
- export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11212
- export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11330
+ export type GetApiProjectsByProjectIdRunsError = GetApiProjectsByProjectIdRunsErrors[keyof GetApiProjectsByProjectIdRunsErrors];
11331
+ export type GetApiProjectsByProjectIdRunsResponses = {
11213
11332
  /**
11214
11333
  * Response for status 200
11215
11334
  */
11216
11335
  200: {
11217
- url: string;
11218
- token: string;
11219
- expiresAt: string;
11336
+ runs: Array<{
11337
+ type: 'pipeline' | 'step' | 'task';
11338
+ id: string;
11339
+ href: string;
11340
+ title: string;
11341
+ whatRan: {
11342
+ kind: 'pipeline';
11343
+ id: string;
11344
+ name: string;
11345
+ } | {
11346
+ kind: 'step';
11347
+ id: string;
11348
+ name: string;
11349
+ } | {
11350
+ kind: 'task';
11351
+ name: string;
11352
+ };
11353
+ workItem: {
11354
+ id: string;
11355
+ platformKey: string;
11356
+ title: string;
11357
+ parent: {
11358
+ id: string;
11359
+ platformKey: string;
11360
+ title: string;
11361
+ } | null;
11362
+ } | null;
11363
+ status: 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11364
+ statusLine: string;
11365
+ outcome: string | null;
11366
+ openNodeIds: Array<string>;
11367
+ waitingOnYou: boolean;
11368
+ waitingOn: Array<{
11369
+ userId: string;
11370
+ username: string | null;
11371
+ }>;
11372
+ startedBy: {
11373
+ kind: 'user';
11374
+ userId: string;
11375
+ username: string | null;
11376
+ } | {
11377
+ kind: 'automation';
11378
+ automationId: string;
11379
+ key: string;
11380
+ title: string | null;
11381
+ } | {
11382
+ kind: 'system';
11383
+ };
11384
+ createdAt: string;
11385
+ updatedAt: string;
11386
+ }>;
11387
+ nextCursor: string | null;
11388
+ counts: {
11389
+ tabs: {
11390
+ [key: string]: number;
11391
+ };
11392
+ overall: {
11393
+ inProgress: number;
11394
+ needsYou: boolean;
11395
+ };
11396
+ startedBy: Array<{
11397
+ inProgress: number;
11398
+ needsYou: boolean;
11399
+ filter: string | 'me';
11400
+ label: string;
11401
+ }>;
11402
+ whatRan: Array<{
11403
+ inProgress: number;
11404
+ needsYou: boolean;
11405
+ filter: string | 'task';
11406
+ whatRan: {
11407
+ kind: 'pipeline';
11408
+ id: string;
11409
+ name: string;
11410
+ } | {
11411
+ kind: 'step';
11412
+ id: string;
11413
+ name: string;
11414
+ } | {
11415
+ kind: 'task';
11416
+ name: string;
11417
+ };
11418
+ }>;
11419
+ };
11220
11420
  };
11221
11421
  };
11222
- export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11223
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenData = {
11422
+ export type GetApiProjectsByProjectIdRunsResponse = GetApiProjectsByProjectIdRunsResponses[keyof GetApiProjectsByProjectIdRunsResponses];
11423
+ export type GetApiProjectsByProjectIdRunsByTypeByIdData = {
11224
11424
  body?: never;
11225
11425
  path: {
11226
- taskRunId: string;
11426
+ projectId: string;
11427
+ type: 'pipeline' | 'task';
11428
+ id: string;
11227
11429
  };
11228
11430
  query?: never;
11229
- url: '/api/task-runs/{taskRunId}/log-feed-token';
11431
+ url: '/api/projects/{projectId}/runs/{type}/{id}';
11230
11432
  };
11231
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11433
+ export type GetApiProjectsByProjectIdRunsByTypeByIdErrors = {
11232
11434
  /**
11233
11435
  * Response for status 401
11234
11436
  */
@@ -11325,29 +11527,73 @@ export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11325
11527
  };
11326
11528
  };
11327
11529
  };
11328
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenError = GetApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11329
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11530
+ export type GetApiProjectsByProjectIdRunsByTypeByIdError = GetApiProjectsByProjectIdRunsByTypeByIdErrors[keyof GetApiProjectsByProjectIdRunsByTypeByIdErrors];
11531
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponses = {
11330
11532
  /**
11331
11533
  * Response for status 200
11332
11534
  */
11333
11535
  200: {
11334
- url: string;
11335
- token: string;
11336
- expiresAt: string;
11536
+ type: 'pipeline' | 'step' | 'task';
11537
+ id: string;
11538
+ href: string;
11539
+ title: string;
11540
+ whatRan: {
11541
+ kind: 'pipeline';
11542
+ id: string;
11543
+ name: string;
11544
+ } | {
11545
+ kind: 'step';
11546
+ id: string;
11547
+ name: string;
11548
+ } | {
11549
+ kind: 'task';
11550
+ name: string;
11551
+ };
11552
+ workItem: {
11553
+ id: string;
11554
+ platformKey: string;
11555
+ title: string;
11556
+ parent: {
11557
+ id: string;
11558
+ platformKey: string;
11559
+ title: string;
11560
+ } | null;
11561
+ } | null;
11562
+ status: 'needs-you' | 'waiting' | 'running' | 'queued' | 'done' | 'ended' | 'failed' | 'cancelled';
11563
+ statusLine: string;
11564
+ outcome: string | null;
11565
+ openNodeIds: Array<string>;
11566
+ waitingOnYou: boolean;
11567
+ waitingOn: Array<{
11568
+ userId: string;
11569
+ username: string | null;
11570
+ }>;
11571
+ startedBy: {
11572
+ kind: 'user';
11573
+ userId: string;
11574
+ username: string | null;
11575
+ } | {
11576
+ kind: 'automation';
11577
+ automationId: string;
11578
+ key: string;
11579
+ title: string | null;
11580
+ } | {
11581
+ kind: 'system';
11582
+ };
11583
+ createdAt: string;
11584
+ updatedAt: string;
11337
11585
  };
11338
11586
  };
11339
- export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponse = GetApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11340
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenData = {
11341
- body: {
11342
- claimToken: string;
11343
- };
11587
+ export type GetApiProjectsByProjectIdRunsByTypeByIdResponse = GetApiProjectsByProjectIdRunsByTypeByIdResponses[keyof GetApiProjectsByProjectIdRunsByTypeByIdResponses];
11588
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsData = {
11589
+ body?: never;
11344
11590
  path: {
11345
- taskRunId: string;
11591
+ projectId: string;
11346
11592
  };
11347
11593
  query?: never;
11348
- url: '/api/task-runs/{taskRunId}/log-feed-token';
11594
+ url: '/api/projects/{projectId}/pipeline-definitions/live-counts';
11349
11595
  };
11350
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11596
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors = {
11351
11597
  /**
11352
11598
  * Response for status 401
11353
11599
  */
@@ -11405,25 +11651,6 @@ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11405
11651
  [key: string]: unknown;
11406
11652
  };
11407
11653
  };
11408
- /**
11409
- * Response for status 409
11410
- */
11411
- 409: {
11412
- type: string;
11413
- title: string;
11414
- status: number;
11415
- detail?: string;
11416
- instance?: string;
11417
- code?: string;
11418
- errors?: Array<{
11419
- path: string;
11420
- message: string;
11421
- summary?: string;
11422
- }>;
11423
- meta?: {
11424
- [key: string]: unknown;
11425
- };
11426
- };
11427
11654
  /**
11428
11655
  * Response for status 422
11429
11656
  */
@@ -11463,27 +11690,39 @@ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11463
11690
  };
11464
11691
  };
11465
11692
  };
11466
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenError = PostApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11467
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11693
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsError = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsErrors];
11694
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses = {
11468
11695
  /**
11469
11696
  * Response for status 200
11470
11697
  */
11471
11698
  200: {
11472
- url: string;
11473
- token: string;
11474
- expiresAt: string;
11699
+ pipelines: Array<{
11700
+ pipelineDefinitionId: string;
11701
+ inProgress: number;
11702
+ doneThisWeek: number;
11703
+ nodes: {
11704
+ [key: string]: {
11705
+ running: number;
11706
+ waiting: number;
11707
+ failed: number;
11708
+ lanes: number;
11709
+ };
11710
+ };
11711
+ }>;
11475
11712
  };
11476
11713
  };
11477
- export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponse = PostApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11478
- export type PutApiPipelineExecutionsBatchCancelData = {
11714
+ export type GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponse = GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses[keyof GetApiProjectsByProjectIdPipelineDefinitionsLiveCountsResponses];
11715
+ export type PostApiProjectsByProjectIdWorkSignalTokenData = {
11479
11716
  body: {
11480
- input: Array<string>;
11717
+ workerId?: string;
11718
+ };
11719
+ path: {
11720
+ projectId: string;
11481
11721
  };
11482
- path?: never;
11483
11722
  query?: never;
11484
- url: '/api/pipeline-executions/batch/cancel';
11723
+ url: '/api/projects/{projectId}/work-signal-token';
11485
11724
  };
11486
- export type PutApiPipelineExecutionsBatchCancelErrors = {
11725
+ export type PostApiProjectsByProjectIdWorkSignalTokenErrors = {
11487
11726
  /**
11488
11727
  * Response for status 401
11489
11728
  */
@@ -11504,9 +11743,9 @@ export type PutApiPipelineExecutionsBatchCancelErrors = {
11504
11743
  };
11505
11744
  };
11506
11745
  /**
11507
- * Response for status 403
11746
+ * Response for status 402
11508
11747
  */
11509
- 403: {
11748
+ 402: {
11510
11749
  type: string;
11511
11750
  title: string;
11512
11751
  status: number;
@@ -11523,7 +11762,398 @@ export type PutApiPipelineExecutionsBatchCancelErrors = {
11523
11762
  };
11524
11763
  };
11525
11764
  /**
11526
- * Response for status 404
11765
+ * Response for status 403
11766
+ */
11767
+ 403: {
11768
+ type: string;
11769
+ title: string;
11770
+ status: number;
11771
+ detail?: string;
11772
+ instance?: string;
11773
+ code?: string;
11774
+ errors?: Array<{
11775
+ path: string;
11776
+ message: string;
11777
+ summary?: string;
11778
+ }>;
11779
+ meta?: {
11780
+ [key: string]: unknown;
11781
+ };
11782
+ };
11783
+ /**
11784
+ * Response for status 404
11785
+ */
11786
+ 404: {
11787
+ type: string;
11788
+ title: string;
11789
+ status: number;
11790
+ detail?: string;
11791
+ instance?: string;
11792
+ code?: string;
11793
+ errors?: Array<{
11794
+ path: string;
11795
+ message: string;
11796
+ summary?: string;
11797
+ }>;
11798
+ meta?: {
11799
+ [key: string]: unknown;
11800
+ };
11801
+ };
11802
+ /**
11803
+ * Response for status 422
11804
+ */
11805
+ 422: {
11806
+ type: string;
11807
+ title: string;
11808
+ status: number;
11809
+ detail?: string;
11810
+ instance?: string;
11811
+ code?: string;
11812
+ errors?: Array<{
11813
+ path: string;
11814
+ message: string;
11815
+ summary?: string;
11816
+ }>;
11817
+ meta?: {
11818
+ [key: string]: unknown;
11819
+ };
11820
+ };
11821
+ /**
11822
+ * Response for status 500
11823
+ */
11824
+ 500: {
11825
+ type: string;
11826
+ title: string;
11827
+ status: number;
11828
+ detail?: string;
11829
+ instance?: string;
11830
+ code?: string;
11831
+ errors?: Array<{
11832
+ path: string;
11833
+ message: string;
11834
+ summary?: string;
11835
+ }>;
11836
+ meta?: {
11837
+ [key: string]: unknown;
11838
+ };
11839
+ };
11840
+ };
11841
+ export type PostApiProjectsByProjectIdWorkSignalTokenError = PostApiProjectsByProjectIdWorkSignalTokenErrors[keyof PostApiProjectsByProjectIdWorkSignalTokenErrors];
11842
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponses = {
11843
+ /**
11844
+ * Response for status 200
11845
+ */
11846
+ 200: {
11847
+ url: string;
11848
+ token: string;
11849
+ expiresAt: string;
11850
+ };
11851
+ };
11852
+ export type PostApiProjectsByProjectIdWorkSignalTokenResponse = PostApiProjectsByProjectIdWorkSignalTokenResponses[keyof PostApiProjectsByProjectIdWorkSignalTokenResponses];
11853
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenData = {
11854
+ body?: never;
11855
+ path: {
11856
+ taskRunId: string;
11857
+ };
11858
+ query?: never;
11859
+ url: '/api/task-runs/{taskRunId}/log-feed-token';
11860
+ };
11861
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11862
+ /**
11863
+ * Response for status 401
11864
+ */
11865
+ 401: {
11866
+ type: string;
11867
+ title: string;
11868
+ status: number;
11869
+ detail?: string;
11870
+ instance?: string;
11871
+ code?: string;
11872
+ errors?: Array<{
11873
+ path: string;
11874
+ message: string;
11875
+ summary?: string;
11876
+ }>;
11877
+ meta?: {
11878
+ [key: string]: unknown;
11879
+ };
11880
+ };
11881
+ /**
11882
+ * Response for status 403
11883
+ */
11884
+ 403: {
11885
+ type: string;
11886
+ title: string;
11887
+ status: number;
11888
+ detail?: string;
11889
+ instance?: string;
11890
+ code?: string;
11891
+ errors?: Array<{
11892
+ path: string;
11893
+ message: string;
11894
+ summary?: string;
11895
+ }>;
11896
+ meta?: {
11897
+ [key: string]: unknown;
11898
+ };
11899
+ };
11900
+ /**
11901
+ * Response for status 404
11902
+ */
11903
+ 404: {
11904
+ type: string;
11905
+ title: string;
11906
+ status: number;
11907
+ detail?: string;
11908
+ instance?: string;
11909
+ code?: string;
11910
+ errors?: Array<{
11911
+ path: string;
11912
+ message: string;
11913
+ summary?: string;
11914
+ }>;
11915
+ meta?: {
11916
+ [key: string]: unknown;
11917
+ };
11918
+ };
11919
+ /**
11920
+ * Response for status 422
11921
+ */
11922
+ 422: {
11923
+ type: string;
11924
+ title: string;
11925
+ status: number;
11926
+ detail?: string;
11927
+ instance?: string;
11928
+ code?: string;
11929
+ errors?: Array<{
11930
+ path: string;
11931
+ message: string;
11932
+ summary?: string;
11933
+ }>;
11934
+ meta?: {
11935
+ [key: string]: unknown;
11936
+ };
11937
+ };
11938
+ /**
11939
+ * Response for status 500
11940
+ */
11941
+ 500: {
11942
+ type: string;
11943
+ title: string;
11944
+ status: number;
11945
+ detail?: string;
11946
+ instance?: string;
11947
+ code?: string;
11948
+ errors?: Array<{
11949
+ path: string;
11950
+ message: string;
11951
+ summary?: string;
11952
+ }>;
11953
+ meta?: {
11954
+ [key: string]: unknown;
11955
+ };
11956
+ };
11957
+ };
11958
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenError = GetApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenErrors];
11959
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
11960
+ /**
11961
+ * Response for status 200
11962
+ */
11963
+ 200: {
11964
+ url: string;
11965
+ token: string;
11966
+ expiresAt: string;
11967
+ };
11968
+ };
11969
+ export type GetApiTaskRunsByTaskRunIdLogFeedTokenResponse = GetApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof GetApiTaskRunsByTaskRunIdLogFeedTokenResponses];
11970
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenData = {
11971
+ body: {
11972
+ claimToken: string;
11973
+ };
11974
+ path: {
11975
+ taskRunId: string;
11976
+ };
11977
+ query?: never;
11978
+ url: '/api/task-runs/{taskRunId}/log-feed-token';
11979
+ };
11980
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenErrors = {
11981
+ /**
11982
+ * Response for status 401
11983
+ */
11984
+ 401: {
11985
+ type: string;
11986
+ title: string;
11987
+ status: number;
11988
+ detail?: string;
11989
+ instance?: string;
11990
+ code?: string;
11991
+ errors?: Array<{
11992
+ path: string;
11993
+ message: string;
11994
+ summary?: string;
11995
+ }>;
11996
+ meta?: {
11997
+ [key: string]: unknown;
11998
+ };
11999
+ };
12000
+ /**
12001
+ * Response for status 403
12002
+ */
12003
+ 403: {
12004
+ type: string;
12005
+ title: string;
12006
+ status: number;
12007
+ detail?: string;
12008
+ instance?: string;
12009
+ code?: string;
12010
+ errors?: Array<{
12011
+ path: string;
12012
+ message: string;
12013
+ summary?: string;
12014
+ }>;
12015
+ meta?: {
12016
+ [key: string]: unknown;
12017
+ };
12018
+ };
12019
+ /**
12020
+ * Response for status 404
12021
+ */
12022
+ 404: {
12023
+ type: string;
12024
+ title: string;
12025
+ status: number;
12026
+ detail?: string;
12027
+ instance?: string;
12028
+ code?: string;
12029
+ errors?: Array<{
12030
+ path: string;
12031
+ message: string;
12032
+ summary?: string;
12033
+ }>;
12034
+ meta?: {
12035
+ [key: string]: unknown;
12036
+ };
12037
+ };
12038
+ /**
12039
+ * Response for status 409
12040
+ */
12041
+ 409: {
12042
+ type: string;
12043
+ title: string;
12044
+ status: number;
12045
+ detail?: string;
12046
+ instance?: string;
12047
+ code?: string;
12048
+ errors?: Array<{
12049
+ path: string;
12050
+ message: string;
12051
+ summary?: string;
12052
+ }>;
12053
+ meta?: {
12054
+ [key: string]: unknown;
12055
+ };
12056
+ };
12057
+ /**
12058
+ * Response for status 422
12059
+ */
12060
+ 422: {
12061
+ type: string;
12062
+ title: string;
12063
+ status: number;
12064
+ detail?: string;
12065
+ instance?: string;
12066
+ code?: string;
12067
+ errors?: Array<{
12068
+ path: string;
12069
+ message: string;
12070
+ summary?: string;
12071
+ }>;
12072
+ meta?: {
12073
+ [key: string]: unknown;
12074
+ };
12075
+ };
12076
+ /**
12077
+ * Response for status 500
12078
+ */
12079
+ 500: {
12080
+ type: string;
12081
+ title: string;
12082
+ status: number;
12083
+ detail?: string;
12084
+ instance?: string;
12085
+ code?: string;
12086
+ errors?: Array<{
12087
+ path: string;
12088
+ message: string;
12089
+ summary?: string;
12090
+ }>;
12091
+ meta?: {
12092
+ [key: string]: unknown;
12093
+ };
12094
+ };
12095
+ };
12096
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenError = PostApiTaskRunsByTaskRunIdLogFeedTokenErrors[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenErrors];
12097
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponses = {
12098
+ /**
12099
+ * Response for status 200
12100
+ */
12101
+ 200: {
12102
+ url: string;
12103
+ token: string;
12104
+ expiresAt: string;
12105
+ };
12106
+ };
12107
+ export type PostApiTaskRunsByTaskRunIdLogFeedTokenResponse = PostApiTaskRunsByTaskRunIdLogFeedTokenResponses[keyof PostApiTaskRunsByTaskRunIdLogFeedTokenResponses];
12108
+ export type PutApiPipelineExecutionsBatchCancelData = {
12109
+ body: {
12110
+ input: Array<string>;
12111
+ };
12112
+ path?: never;
12113
+ query?: never;
12114
+ url: '/api/pipeline-executions/batch/cancel';
12115
+ };
12116
+ export type PutApiPipelineExecutionsBatchCancelErrors = {
12117
+ /**
12118
+ * Response for status 401
12119
+ */
12120
+ 401: {
12121
+ type: string;
12122
+ title: string;
12123
+ status: number;
12124
+ detail?: string;
12125
+ instance?: string;
12126
+ code?: string;
12127
+ errors?: Array<{
12128
+ path: string;
12129
+ message: string;
12130
+ summary?: string;
12131
+ }>;
12132
+ meta?: {
12133
+ [key: string]: unknown;
12134
+ };
12135
+ };
12136
+ /**
12137
+ * Response for status 403
12138
+ */
12139
+ 403: {
12140
+ type: string;
12141
+ title: string;
12142
+ status: number;
12143
+ detail?: string;
12144
+ instance?: string;
12145
+ code?: string;
12146
+ errors?: Array<{
12147
+ path: string;
12148
+ message: string;
12149
+ summary?: string;
12150
+ }>;
12151
+ meta?: {
12152
+ [key: string]: unknown;
12153
+ };
12154
+ };
12155
+ /**
12156
+ * Response for status 404
11527
12157
  */
11528
12158
  404: {
11529
12159
  type: string;
@@ -11750,6 +12380,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdMessage
11750
12380
  cause?: unknown;
11751
12381
  } | null;
11752
12382
  triggeredByUserId: string | null;
12383
+ startedBy: {
12384
+ kind: 'user';
12385
+ userId: string;
12386
+ username: string | null;
12387
+ } | {
12388
+ kind: 'automation';
12389
+ automationId: string;
12390
+ key: string;
12391
+ title: string | null;
12392
+ } | {
12393
+ kind: 'system';
12394
+ };
11753
12395
  cancelledByUserId: string | null;
11754
12396
  startedAt: string | null;
11755
12397
  completedAt: string | null;
@@ -11996,6 +12638,18 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdDecisio
11996
12638
  cause?: unknown;
11997
12639
  } | null;
11998
12640
  triggeredByUserId: string | null;
12641
+ startedBy: {
12642
+ kind: 'user';
12643
+ userId: string;
12644
+ username: string | null;
12645
+ } | {
12646
+ kind: 'automation';
12647
+ automationId: string;
12648
+ key: string;
12649
+ title: string | null;
12650
+ } | {
12651
+ kind: 'system';
12652
+ };
11999
12653
  cancelledByUserId: string | null;
12000
12654
  startedAt: string | null;
12001
12655
  completedAt: string | null;
@@ -12218,6 +12872,18 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdResponses = {
12218
12872
  cause?: unknown;
12219
12873
  } | null;
12220
12874
  triggeredByUserId: string | null;
12875
+ startedBy: {
12876
+ kind: 'user';
12877
+ userId: string;
12878
+ username: string | null;
12879
+ } | {
12880
+ kind: 'automation';
12881
+ automationId: string;
12882
+ key: string;
12883
+ title: string | null;
12884
+ } | {
12885
+ kind: 'system';
12886
+ };
12221
12887
  cancelledByUserId: string | null;
12222
12888
  startedAt: string | null;
12223
12889
  completedAt: string | null;
@@ -12445,103 +13111,6 @@ export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadRe
12445
13111
  };
12446
13112
  };
12447
13113
  export type GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponse = GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses[keyof GetApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdThreadResponses];
12448
- export type GetApiPipelineExecutionsCountsByPipelineData = {
12449
- body?: never;
12450
- path?: never;
12451
- query: {
12452
- projectId: string;
12453
- };
12454
- url: '/api/pipeline-executions/counts/by-pipeline';
12455
- };
12456
- export type GetApiPipelineExecutionsCountsByPipelineErrors = {
12457
- /**
12458
- * Response for status 401
12459
- */
12460
- 401: {
12461
- type: string;
12462
- title: string;
12463
- status: number;
12464
- detail?: string;
12465
- instance?: string;
12466
- code?: string;
12467
- errors?: Array<{
12468
- path: string;
12469
- message: string;
12470
- summary?: string;
12471
- }>;
12472
- meta?: {
12473
- [key: string]: unknown;
12474
- };
12475
- };
12476
- /**
12477
- * Response for status 403
12478
- */
12479
- 403: {
12480
- type: string;
12481
- title: string;
12482
- status: number;
12483
- detail?: string;
12484
- instance?: string;
12485
- code?: string;
12486
- errors?: Array<{
12487
- path: string;
12488
- message: string;
12489
- summary?: string;
12490
- }>;
12491
- meta?: {
12492
- [key: string]: unknown;
12493
- };
12494
- };
12495
- /**
12496
- * Response for status 422
12497
- */
12498
- 422: {
12499
- type: string;
12500
- title: string;
12501
- status: number;
12502
- detail?: string;
12503
- instance?: string;
12504
- code?: string;
12505
- errors?: Array<{
12506
- path: string;
12507
- message: string;
12508
- summary?: string;
12509
- }>;
12510
- meta?: {
12511
- [key: string]: unknown;
12512
- };
12513
- };
12514
- /**
12515
- * Response for status 500
12516
- */
12517
- 500: {
12518
- type: string;
12519
- title: string;
12520
- status: number;
12521
- detail?: string;
12522
- instance?: string;
12523
- code?: string;
12524
- errors?: Array<{
12525
- path: string;
12526
- message: string;
12527
- summary?: string;
12528
- }>;
12529
- meta?: {
12530
- [key: string]: unknown;
12531
- };
12532
- };
12533
- };
12534
- export type GetApiPipelineExecutionsCountsByPipelineError = GetApiPipelineExecutionsCountsByPipelineErrors[keyof GetApiPipelineExecutionsCountsByPipelineErrors];
12535
- export type GetApiPipelineExecutionsCountsByPipelineResponses = {
12536
- /**
12537
- * Response for status 200
12538
- */
12539
- 200: Array<{
12540
- pipelineDefinitionId: string;
12541
- count: number;
12542
- }>;
12543
- };
12544
- export type GetApiPipelineExecutionsCountsByPipelineResponse = GetApiPipelineExecutionsCountsByPipelineResponses[keyof GetApiPipelineExecutionsCountsByPipelineResponses];
12545
13114
  export type GetApiWorkItemsByWorkItemIdQuestionsData = {
12546
13115
  body?: never;
12547
13116
  path: {
@@ -12797,8 +13366,9 @@ export type DeleteApiConversationsByConversationIdResponses = {
12797
13366
  /**
12798
13367
  * Response for status 204
12799
13368
  */
12800
- 204: unknown;
13369
+ 204: void;
12801
13370
  };
13371
+ export type DeleteApiConversationsByConversationIdResponse = DeleteApiConversationsByConversationIdResponses[keyof DeleteApiConversationsByConversationIdResponses];
12802
13372
  export type GetApiConversationsByConversationIdData = {
12803
13373
  body?: never;
12804
13374
  path: {
@@ -22293,6 +22863,7 @@ export type GetApiOrgsByOrgIdUsageResponses = {
22293
22863
  planId: 'free';
22294
22864
  writes: number;
22295
22865
  reads: number;
22866
+ signalTokens: number;
22296
22867
  storageBytes: number;
22297
22868
  storageBreakdown: {
22298
22869
  artifactBytes: number;
@@ -22303,6 +22874,7 @@ export type GetApiOrgsByOrgIdUsageResponses = {
22303
22874
  maxWritesPerMonth: number;
22304
22875
  maxReadsPerMonth: number;
22305
22876
  maxStorageBytes: number;
22877
+ maxSignalTokensPerMonth: number;
22306
22878
  };
22307
22879
  resetsAt: string;
22308
22880
  createdAt: string;