@lessly/sdk-app 63.7.0 → 63.8.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.
@@ -110923,6 +110923,506 @@ has_more: boolean
110923
110923
  next_cursor: (string | null)
110924
110924
  }
110925
110925
 
110926
+ export interface WorkflowCapabilityGetInput {
110927
+ /**
110928
+ * Tool name of an action (e.g. "mail_email_send") or event name of a trigger.
110929
+ */
110930
+ key: string
110931
+ }
110932
+
110933
+ export interface WorkflowCapabilityGetOutput {
110934
+ key: string
110935
+ http?: ({
110936
+ path: string
110937
+ method: string
110938
+ } | null)
110939
+ kind: ("action" | "event" | "schedule" | "manual")
110940
+ title: string
110941
+ schema?: {
110942
+ [k: string]: unknown
110943
+ }
110944
+ toolkit: string
110945
+ examples?: {
110946
+ [k: string]: unknown
110947
+ }[]
110948
+ read_only?: boolean
110949
+ filterable?: string[]
110950
+ composition?: {
110951
+ [k: string]: unknown
110952
+ }
110953
+ description?: string
110954
+ schema_hash: string
110955
+ input_schema?: {
110956
+ [k: string]: unknown
110957
+ }
110958
+ output_schema?: ({
110959
+ [k: string]: unknown
110960
+ } | null)
110961
+ executable_in_phase?: boolean
110962
+ }
110963
+
110964
+ export interface WorkflowCapabilityListInput {
110965
+ /**
110966
+ * Only triggers (events, schedule, manual) or only actions (callable tools).
110967
+ */
110968
+ kind?: ("trigger" | "action")
110969
+ /**
110970
+ * Page size, 1-200; defaults to 50.
110971
+ */
110972
+ limit?: number
110973
+ /**
110974
+ * Case-insensitive substring matched against the key, title and description.
110975
+ */
110976
+ query?: string
110977
+ /**
110978
+ * Opaque cursor from a previous page.
110979
+ */
110980
+ cursor?: string
110981
+ /**
110982
+ * Only capabilities of this toolkit, e.g. "mail".
110983
+ */
110984
+ toolkit?: string
110985
+ }
110986
+
110987
+ export interface WorkflowCapabilityListOutput {
110988
+ items: {
110989
+ key: string
110990
+ http?: ({
110991
+ path: string
110992
+ method: string
110993
+ } | null)
110994
+ kind: ("action" | "event" | "schedule" | "manual")
110995
+ title: string
110996
+ schema?: {
110997
+ [k: string]: unknown
110998
+ }
110999
+ toolkit: string
111000
+ examples?: {
111001
+ [k: string]: unknown
111002
+ }[]
111003
+ read_only?: boolean
111004
+ filterable?: string[]
111005
+ composition?: {
111006
+ [k: string]: unknown
111007
+ }
111008
+ description?: string
111009
+ schema_hash: string
111010
+ input_schema?: {
111011
+ [k: string]: unknown
111012
+ }
111013
+ output_schema?: ({
111014
+ [k: string]: unknown
111015
+ } | null)
111016
+ executable_in_phase?: boolean
111017
+ }[]
111018
+ next_cursor: (string | null)
111019
+ /**
111020
+ * Version of the snapshot these items came from; record it with a dependency.
111021
+ */
111022
+ catalog_version: string
111023
+ }
111024
+
111025
+ export interface WorkflowConfigDeleteInput {
111026
+ /**
111027
+ * Config key as referenced in a definition: {{ config.<key> }}.
111028
+ */
111029
+ key: string
111030
+ }
111031
+
111032
+ export interface WorkflowConfigDeleteOutput {
111033
+ key: string
111034
+ deleted: boolean
111035
+ }
111036
+
111037
+ export interface WorkflowConfigListInput {
111038
+ /**
111039
+ * Page size, 1-200; defaults to 50.
111040
+ */
111041
+ limit?: number
111042
+ /**
111043
+ * Opaque cursor from a previous page.
111044
+ */
111045
+ cursor?: string
111046
+ }
111047
+
111048
+ export interface WorkflowConfigListOutput {
111049
+ items: {
111050
+ key: string
111051
+ is_secret: boolean
111052
+ updated_at: string
111053
+ }[]
111054
+ next_cursor: (string | null)
111055
+ }
111056
+
111057
+ export interface WorkflowConfigSetInput {
111058
+ /**
111059
+ * Config key as referenced in a definition: {{ config.<key> }}.
111060
+ */
111061
+ key: string
111062
+ /**
111063
+ * The value to store. Encrypted at rest when `secret` is true.
111064
+ */
111065
+ value: string
111066
+ /**
111067
+ * True for credentials: the value is encrypted at rest and never read back.
111068
+ */
111069
+ secret: boolean
111070
+ }
111071
+
111072
+ export interface WorkflowConfigSetOutput {
111073
+ key: string
111074
+ is_secret: boolean
111075
+ updated_at: string
111076
+ }
111077
+
111078
+ export interface WorkflowDefinitionCreateInput {
111079
+ name: string
111080
+ /**
111081
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
111082
+ */
111083
+ definition: {
111084
+ [k: string]: unknown
111085
+ }
111086
+ description?: string
111087
+ }
111088
+
111089
+ export interface WorkflowDefinitionCreateOutput {
111090
+ live: ({
111091
+ note: (string | null)
111092
+ version: number
111093
+ published_at: (string | null)
111094
+ } | null)
111095
+ draft: ({
111096
+ [k: string]: unknown
111097
+ } | null)
111098
+ /**
111099
+ * Validation of the draft as it stands right now.
111100
+ */
111101
+ issues: {
111102
+ /**
111103
+ * A documented issue code; repair by reacting to this, not to prose.
111104
+ */
111105
+ code: string
111106
+ hint?: string
111107
+ /**
111108
+ * JSON Pointer into the definition.
111109
+ */
111110
+ path: string
111111
+ actual?: string
111112
+ node_id?: string
111113
+ expected?: string
111114
+ severity: ("error" | "warning")
111115
+ }[]
111116
+ workflow: {
111117
+ id: string
111118
+ name: string
111119
+ status: ("draft" | "enabled" | "disabled")
111120
+ created_at: string
111121
+ updated_at: string
111122
+ description: (string | null)
111123
+ live_version: (number | null)
111124
+ }
111125
+ }
111126
+
111127
+ export interface WorkflowDefinitionDisableInput {
111128
+ workflow_id: string
111129
+ }
111130
+
111131
+ export interface WorkflowDefinitionDisableOutput {
111132
+ id: string
111133
+ name: string
111134
+ status: ("draft" | "enabled" | "disabled")
111135
+ created_at: string
111136
+ updated_at: string
111137
+ description: (string | null)
111138
+ live_version: (number | null)
111139
+ }
111140
+
111141
+ export interface WorkflowDefinitionDryrunInput {
111142
+ /**
111143
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
111144
+ */
111145
+ definition?: {
111146
+ [k: string]: unknown
111147
+ }
111148
+ /**
111149
+ * `waits: resolve|timeout`, `split: <branch>` — for node types that execute later.
111150
+ */
111151
+ assumptions?: {
111152
+ [k: string]: string
111153
+ }
111154
+ workflow_id?: string
111155
+ /**
111156
+ * What `trigger.data` holds; defaults to a placeholder built from the schema.
111157
+ */
111158
+ trigger_payload?: {
111159
+ [k: string]: unknown
111160
+ }
111161
+ }
111162
+
111163
+ export interface WorkflowDefinitionDryrunOutput {
111164
+ /**
111165
+ * The node ids this payload would visit, in order.
111166
+ */
111167
+ path: string[]
111168
+ nodes: {
111169
+ [k: string]: {
111170
+ type: string
111171
+ waits?: string
111172
+ branch?: string
111173
+ output_mock?: unknown
111174
+ resolved_input?: unknown
111175
+ skipped_reason?: string
111176
+ }
111177
+ }
111178
+ }
111179
+
111180
+ export interface WorkflowDefinitionEnableInput {
111181
+ workflow_id: string
111182
+ }
111183
+
111184
+ export interface WorkflowDefinitionEnableOutput {
111185
+ id: string
111186
+ name: string
111187
+ status: ("draft" | "enabled" | "disabled")
111188
+ created_at: string
111189
+ updated_at: string
111190
+ description: (string | null)
111191
+ live_version: (number | null)
111192
+ }
111193
+
111194
+ export interface WorkflowDefinitionExportInput {
111195
+ /**
111196
+ * Defaults to the live version.
111197
+ */
111198
+ version?: number
111199
+ workflow_id: string
111200
+ }
111201
+
111202
+ export interface WorkflowDefinitionExportOutput {
111203
+ version: number
111204
+ definition: {
111205
+ [k: string]: unknown
111206
+ }
111207
+ workflow_id: string
111208
+ }
111209
+
111210
+ export interface WorkflowDefinitionGetInput {
111211
+ workflow_id: string
111212
+ }
111213
+
111214
+ export interface WorkflowDefinitionGetOutput {
111215
+ live: ({
111216
+ note: (string | null)
111217
+ version: number
111218
+ published_at: (string | null)
111219
+ } | null)
111220
+ draft: ({
111221
+ [k: string]: unknown
111222
+ } | null)
111223
+ /**
111224
+ * Validation of the draft as it stands right now.
111225
+ */
111226
+ issues: {
111227
+ /**
111228
+ * A documented issue code; repair by reacting to this, not to prose.
111229
+ */
111230
+ code: string
111231
+ hint?: string
111232
+ /**
111233
+ * JSON Pointer into the definition.
111234
+ */
111235
+ path: string
111236
+ actual?: string
111237
+ node_id?: string
111238
+ expected?: string
111239
+ severity: ("error" | "warning")
111240
+ }[]
111241
+ workflow: {
111242
+ id: string
111243
+ name: string
111244
+ status: ("draft" | "enabled" | "disabled")
111245
+ created_at: string
111246
+ updated_at: string
111247
+ description: (string | null)
111248
+ live_version: (number | null)
111249
+ }
111250
+ }
111251
+
111252
+ export interface WorkflowDefinitionImportInput {
111253
+ name: string
111254
+ /**
111255
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
111256
+ */
111257
+ definition: {
111258
+ [k: string]: unknown
111259
+ }
111260
+ }
111261
+
111262
+ export interface WorkflowDefinitionImportOutput {
111263
+ live: ({
111264
+ note: (string | null)
111265
+ version: number
111266
+ published_at: (string | null)
111267
+ } | null)
111268
+ draft: ({
111269
+ [k: string]: unknown
111270
+ } | null)
111271
+ /**
111272
+ * Validation of the draft as it stands right now.
111273
+ */
111274
+ issues: {
111275
+ /**
111276
+ * A documented issue code; repair by reacting to this, not to prose.
111277
+ */
111278
+ code: string
111279
+ hint?: string
111280
+ /**
111281
+ * JSON Pointer into the definition.
111282
+ */
111283
+ path: string
111284
+ actual?: string
111285
+ node_id?: string
111286
+ expected?: string
111287
+ severity: ("error" | "warning")
111288
+ }[]
111289
+ workflow: {
111290
+ id: string
111291
+ name: string
111292
+ status: ("draft" | "enabled" | "disabled")
111293
+ created_at: string
111294
+ updated_at: string
111295
+ description: (string | null)
111296
+ live_version: (number | null)
111297
+ }
111298
+ }
111299
+
111300
+ export interface WorkflowDefinitionListInput {
111301
+ /**
111302
+ * Page size, 1-200; defaults to 50.
111303
+ */
111304
+ limit?: number
111305
+ /**
111306
+ * Opaque cursor from a previous page.
111307
+ */
111308
+ cursor?: string
111309
+ status?: ("draft" | "enabled" | "disabled")
111310
+ }
111311
+
111312
+ export interface WorkflowDefinitionListOutput {
111313
+ items: {
111314
+ id: string
111315
+ name: string
111316
+ status: ("draft" | "enabled" | "disabled")
111317
+ created_at: string
111318
+ updated_at: string
111319
+ description: (string | null)
111320
+ live_version: (number | null)
111321
+ }[]
111322
+ next_cursor: (string | null)
111323
+ }
111324
+
111325
+ export interface WorkflowDefinitionPublishInput {
111326
+ /**
111327
+ * Why this version exists; shown in the version list.
111328
+ */
111329
+ note: string
111330
+ workflow_id: string
111331
+ }
111332
+
111333
+ export interface WorkflowDefinitionPublishOutput {
111334
+ status: string
111335
+ version: number
111336
+ workflow_id: string
111337
+ dependencies: {
111338
+ key: string
111339
+ kind: ("trigger" | "action")
111340
+ schema_hash: string
111341
+ }[]
111342
+ }
111343
+
111344
+ export interface WorkflowDefinitionUpdateInput {
111345
+ name?: string
111346
+ /**
111347
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
111348
+ */
111349
+ definition?: {
111350
+ [k: string]: unknown
111351
+ }
111352
+ description?: string
111353
+ workflow_id: string
111354
+ }
111355
+
111356
+ export interface WorkflowDefinitionUpdateOutput {
111357
+ live: ({
111358
+ note: (string | null)
111359
+ version: number
111360
+ published_at: (string | null)
111361
+ } | null)
111362
+ draft: ({
111363
+ [k: string]: unknown
111364
+ } | null)
111365
+ /**
111366
+ * Validation of the draft as it stands right now.
111367
+ */
111368
+ issues: {
111369
+ /**
111370
+ * A documented issue code; repair by reacting to this, not to prose.
111371
+ */
111372
+ code: string
111373
+ hint?: string
111374
+ /**
111375
+ * JSON Pointer into the definition.
111376
+ */
111377
+ path: string
111378
+ actual?: string
111379
+ node_id?: string
111380
+ expected?: string
111381
+ severity: ("error" | "warning")
111382
+ }[]
111383
+ workflow: {
111384
+ id: string
111385
+ name: string
111386
+ status: ("draft" | "enabled" | "disabled")
111387
+ created_at: string
111388
+ updated_at: string
111389
+ description: (string | null)
111390
+ live_version: (number | null)
111391
+ }
111392
+ }
111393
+
111394
+ export interface WorkflowDefinitionValidateInput {
111395
+ /**
111396
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
111397
+ */
111398
+ definition?: {
111399
+ [k: string]: unknown
111400
+ }
111401
+ workflow_id?: string
111402
+ }
111403
+
111404
+ export interface WorkflowDefinitionValidateOutput {
111405
+ /**
111406
+ * True when no issue has severity "error"; publish needs this.
111407
+ */
111408
+ ok: boolean
111409
+ issues: {
111410
+ /**
111411
+ * A documented issue code; repair by reacting to this, not to prose.
111412
+ */
111413
+ code: string
111414
+ hint?: string
111415
+ /**
111416
+ * JSON Pointer into the definition.
111417
+ */
111418
+ path: string
111419
+ actual?: string
111420
+ node_id?: string
111421
+ expected?: string
111422
+ severity: ("error" | "warning")
111423
+ }[]
111424
+ }
111425
+
110926
111426
  export interface WorkflowHealthPingInput {
110927
111427
 
110928
111428
  }
@@ -110932,3 +111432,198 @@ ok: boolean
110932
111432
  toolkit: string
110933
111433
  productId: string
110934
111434
  }
111435
+
111436
+ export interface WorkflowRunCancelInput {
111437
+ run_id: string
111438
+ }
111439
+
111440
+ export interface WorkflowRunCancelOutput {
111441
+ id: string
111442
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
111443
+ version: number
111444
+ ended_at: (string | null)
111445
+ created_at: string
111446
+ started_at: (string | null)
111447
+ /**
111448
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
111449
+ */
111450
+ held_reason?: {
111451
+ [k: string]: unknown
111452
+ }
111453
+ workflow_id: string
111454
+ trigger_event_id: string
111455
+ replay_generation: number
111456
+ }
111457
+
111458
+ export interface WorkflowRunGetInput {
111459
+ run_id: string
111460
+ }
111461
+
111462
+ export interface WorkflowRunGetOutput {
111463
+ run: {
111464
+ id: string
111465
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
111466
+ version: number
111467
+ ended_at: (string | null)
111468
+ created_at: string
111469
+ started_at: (string | null)
111470
+ /**
111471
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
111472
+ */
111473
+ held_reason?: {
111474
+ [k: string]: unknown
111475
+ }
111476
+ workflow_id: string
111477
+ trigger_event_id: string
111478
+ replay_generation: number
111479
+ }
111480
+ steps: {
111481
+ error?: unknown
111482
+ input?: unknown
111483
+ output?: unknown
111484
+ status: string
111485
+ attempt: number
111486
+ ended_at: (string | null)
111487
+ /**
111488
+ * `node_id`, or `node_id[i]/child_id` inside a loop.
111489
+ */
111490
+ node_path: string
111491
+ started_at: string
111492
+ idempotency_key: (string | null)
111493
+ }[]
111494
+ waits: {
111495
+ id: string
111496
+ kind: string
111497
+ due_at: (string | null)
111498
+ status: string
111499
+ node_path: string
111500
+ }[]
111501
+ events: {
111502
+ at: string
111503
+ seq: number
111504
+ kind: string
111505
+ payload?: unknown
111506
+ }[]
111507
+ }
111508
+
111509
+ export interface WorkflowRunListInput {
111510
+ /**
111511
+ * Page size, 1-200; defaults to 50.
111512
+ */
111513
+ limit?: number
111514
+ /**
111515
+ * Opaque cursor from a previous page.
111516
+ */
111517
+ cursor?: string
111518
+ status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
111519
+ workflow_id?: string
111520
+ }
111521
+
111522
+ export interface WorkflowRunListOutput {
111523
+ items: {
111524
+ id: string
111525
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
111526
+ version: number
111527
+ ended_at: (string | null)
111528
+ created_at: string
111529
+ started_at: (string | null)
111530
+ /**
111531
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
111532
+ */
111533
+ held_reason?: {
111534
+ [k: string]: unknown
111535
+ }
111536
+ workflow_id: string
111537
+ trigger_event_id: string
111538
+ replay_generation: number
111539
+ }[]
111540
+ next_cursor: (string | null)
111541
+ }
111542
+
111543
+ export interface WorkflowRunReplayInput {
111544
+ run_id: string
111545
+ /**
111546
+ * Re-execute the failed step instead of reusing its result: bumps `replay_generation`, which the action's Idempotency-Key carries. Defaults to false.
111547
+ */
111548
+ reexecute?: boolean
111549
+ }
111550
+
111551
+ export interface WorkflowRunReplayOutput {
111552
+ id: string
111553
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
111554
+ version: number
111555
+ ended_at: (string | null)
111556
+ created_at: string
111557
+ started_at: (string | null)
111558
+ /**
111559
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
111560
+ */
111561
+ held_reason?: {
111562
+ [k: string]: unknown
111563
+ }
111564
+ workflow_id: string
111565
+ trigger_event_id: string
111566
+ replay_generation: number
111567
+ }
111568
+
111569
+ export interface WorkflowRunStartInput {
111570
+ input?: {
111571
+ [k: string]: unknown
111572
+ }
111573
+ workflow_id: string
111574
+ idempotency_key: string
111575
+ }
111576
+
111577
+ export interface WorkflowRunStartOutput {
111578
+ run_id?: string
111579
+ event_id: string
111580
+ deduplicated: boolean
111581
+ }
111582
+
111583
+ export interface WorkflowVersionGetInput {
111584
+ /**
111585
+ * 0 is the draft.
111586
+ */
111587
+ version: number
111588
+ workflow_id: string
111589
+ }
111590
+
111591
+ export interface WorkflowVersionGetOutput {
111592
+ note: (string | null)
111593
+ version: number
111594
+ definition: {
111595
+ [k: string]: unknown
111596
+ }
111597
+ workflow_id: string
111598
+ dependencies: ({
111599
+ [k: string]: unknown
111600
+ }[] | null)
111601
+ published_at: (string | null)
111602
+ published_by: (string | null)
111603
+ }
111604
+
111605
+ export interface WorkflowVersionListInput {
111606
+ /**
111607
+ * Page size, 1-200; defaults to 50.
111608
+ */
111609
+ limit?: number
111610
+ /**
111611
+ * Opaque cursor from a previous page.
111612
+ */
111613
+ cursor?: string
111614
+ workflow_id: string
111615
+ }
111616
+
111617
+ export interface WorkflowVersionListOutput {
111618
+ items: {
111619
+ note: (string | null)
111620
+ version: number
111621
+ workflow_id: string
111622
+ dependencies: ({
111623
+ [k: string]: unknown
111624
+ }[] | null)
111625
+ published_at: (string | null)
111626
+ published_by: (string | null)
111627
+ }[]
111628
+ next_cursor: (string | null)
111629
+ }
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { WorkflowHealthPingInput, WorkflowHealthPingOutput } from '../types.gen';
3
+ export type { WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigDeleteOutput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowConfigSetOutput, WorkflowDefinitionCreateInput, WorkflowDefinitionCreateOutput, WorkflowDefinitionDisableInput, WorkflowDefinitionDisableOutput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionEnableOutput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionImportOutput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionPublishOutput, WorkflowDefinitionUpdateInput, WorkflowDefinitionUpdateOutput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen';