@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.
@@ -117371,6 +117371,474 @@ export interface WaitlistSignupsListOutput {
117371
117371
  has_more: boolean;
117372
117372
  next_cursor: (string | null);
117373
117373
  }
117374
+ export interface WorkflowCapabilityGetInput {
117375
+ /**
117376
+ * Tool name of an action (e.g. "mail_email_send") or event name of a trigger.
117377
+ */
117378
+ key: string;
117379
+ }
117380
+ export interface WorkflowCapabilityGetOutput {
117381
+ key: string;
117382
+ http?: ({
117383
+ path: string;
117384
+ method: string;
117385
+ } | null);
117386
+ kind: ("action" | "event" | "schedule" | "manual");
117387
+ title: string;
117388
+ schema?: {
117389
+ [k: string]: unknown;
117390
+ };
117391
+ toolkit: string;
117392
+ examples?: {
117393
+ [k: string]: unknown;
117394
+ }[];
117395
+ read_only?: boolean;
117396
+ filterable?: string[];
117397
+ composition?: {
117398
+ [k: string]: unknown;
117399
+ };
117400
+ description?: string;
117401
+ schema_hash: string;
117402
+ input_schema?: {
117403
+ [k: string]: unknown;
117404
+ };
117405
+ output_schema?: ({
117406
+ [k: string]: unknown;
117407
+ } | null);
117408
+ executable_in_phase?: boolean;
117409
+ }
117410
+ export interface WorkflowCapabilityListInput {
117411
+ /**
117412
+ * Only triggers (events, schedule, manual) or only actions (callable tools).
117413
+ */
117414
+ kind?: ("trigger" | "action");
117415
+ /**
117416
+ * Page size, 1-200; defaults to 50.
117417
+ */
117418
+ limit?: number;
117419
+ /**
117420
+ * Case-insensitive substring matched against the key, title and description.
117421
+ */
117422
+ query?: string;
117423
+ /**
117424
+ * Opaque cursor from a previous page.
117425
+ */
117426
+ cursor?: string;
117427
+ /**
117428
+ * Only capabilities of this toolkit, e.g. "mail".
117429
+ */
117430
+ toolkit?: string;
117431
+ }
117432
+ export interface WorkflowCapabilityListOutput {
117433
+ items: {
117434
+ key: string;
117435
+ http?: ({
117436
+ path: string;
117437
+ method: string;
117438
+ } | null);
117439
+ kind: ("action" | "event" | "schedule" | "manual");
117440
+ title: string;
117441
+ schema?: {
117442
+ [k: string]: unknown;
117443
+ };
117444
+ toolkit: string;
117445
+ examples?: {
117446
+ [k: string]: unknown;
117447
+ }[];
117448
+ read_only?: boolean;
117449
+ filterable?: string[];
117450
+ composition?: {
117451
+ [k: string]: unknown;
117452
+ };
117453
+ description?: string;
117454
+ schema_hash: string;
117455
+ input_schema?: {
117456
+ [k: string]: unknown;
117457
+ };
117458
+ output_schema?: ({
117459
+ [k: string]: unknown;
117460
+ } | null);
117461
+ executable_in_phase?: boolean;
117462
+ }[];
117463
+ next_cursor: (string | null);
117464
+ /**
117465
+ * Version of the snapshot these items came from; record it with a dependency.
117466
+ */
117467
+ catalog_version: string;
117468
+ }
117469
+ export interface WorkflowConfigDeleteInput {
117470
+ /**
117471
+ * Config key as referenced in a definition: {{ config.<key> }}.
117472
+ */
117473
+ key: string;
117474
+ }
117475
+ export interface WorkflowConfigDeleteOutput {
117476
+ key: string;
117477
+ deleted: boolean;
117478
+ }
117479
+ export interface WorkflowConfigListInput {
117480
+ /**
117481
+ * Page size, 1-200; defaults to 50.
117482
+ */
117483
+ limit?: number;
117484
+ /**
117485
+ * Opaque cursor from a previous page.
117486
+ */
117487
+ cursor?: string;
117488
+ }
117489
+ export interface WorkflowConfigListOutput {
117490
+ items: {
117491
+ key: string;
117492
+ is_secret: boolean;
117493
+ updated_at: string;
117494
+ }[];
117495
+ next_cursor: (string | null);
117496
+ }
117497
+ export interface WorkflowConfigSetInput {
117498
+ /**
117499
+ * Config key as referenced in a definition: {{ config.<key> }}.
117500
+ */
117501
+ key: string;
117502
+ /**
117503
+ * The value to store. Encrypted at rest when `secret` is true.
117504
+ */
117505
+ value: string;
117506
+ /**
117507
+ * True for credentials: the value is encrypted at rest and never read back.
117508
+ */
117509
+ secret: boolean;
117510
+ }
117511
+ export interface WorkflowConfigSetOutput {
117512
+ key: string;
117513
+ is_secret: boolean;
117514
+ updated_at: string;
117515
+ }
117516
+ export interface WorkflowDefinitionCreateInput {
117517
+ name: string;
117518
+ /**
117519
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117520
+ */
117521
+ definition: {
117522
+ [k: string]: unknown;
117523
+ };
117524
+ description?: string;
117525
+ }
117526
+ export interface WorkflowDefinitionCreateOutput {
117527
+ live: ({
117528
+ note: (string | null);
117529
+ version: number;
117530
+ published_at: (string | null);
117531
+ } | null);
117532
+ draft: ({
117533
+ [k: string]: unknown;
117534
+ } | null);
117535
+ /**
117536
+ * Validation of the draft as it stands right now.
117537
+ */
117538
+ issues: {
117539
+ /**
117540
+ * A documented issue code; repair by reacting to this, not to prose.
117541
+ */
117542
+ code: string;
117543
+ hint?: string;
117544
+ /**
117545
+ * JSON Pointer into the definition.
117546
+ */
117547
+ path: string;
117548
+ actual?: string;
117549
+ node_id?: string;
117550
+ expected?: string;
117551
+ severity: ("error" | "warning");
117552
+ }[];
117553
+ workflow: {
117554
+ id: string;
117555
+ name: string;
117556
+ status: ("draft" | "enabled" | "disabled");
117557
+ created_at: string;
117558
+ updated_at: string;
117559
+ description: (string | null);
117560
+ live_version: (number | null);
117561
+ };
117562
+ }
117563
+ export interface WorkflowDefinitionDisableInput {
117564
+ workflow_id: string;
117565
+ }
117566
+ export interface WorkflowDefinitionDisableOutput {
117567
+ id: string;
117568
+ name: string;
117569
+ status: ("draft" | "enabled" | "disabled");
117570
+ created_at: string;
117571
+ updated_at: string;
117572
+ description: (string | null);
117573
+ live_version: (number | null);
117574
+ }
117575
+ export interface WorkflowDefinitionDryrunInput {
117576
+ /**
117577
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117578
+ */
117579
+ definition?: {
117580
+ [k: string]: unknown;
117581
+ };
117582
+ /**
117583
+ * `waits: resolve|timeout`, `split: <branch>` — for node types that execute later.
117584
+ */
117585
+ assumptions?: {
117586
+ [k: string]: string;
117587
+ };
117588
+ workflow_id?: string;
117589
+ /**
117590
+ * What `trigger.data` holds; defaults to a placeholder built from the schema.
117591
+ */
117592
+ trigger_payload?: {
117593
+ [k: string]: unknown;
117594
+ };
117595
+ }
117596
+ export interface WorkflowDefinitionDryrunOutput {
117597
+ /**
117598
+ * The node ids this payload would visit, in order.
117599
+ */
117600
+ path: string[];
117601
+ nodes: {
117602
+ [k: string]: {
117603
+ type: string;
117604
+ waits?: string;
117605
+ branch?: string;
117606
+ output_mock?: unknown;
117607
+ resolved_input?: unknown;
117608
+ skipped_reason?: string;
117609
+ };
117610
+ };
117611
+ }
117612
+ export interface WorkflowDefinitionEnableInput {
117613
+ workflow_id: string;
117614
+ }
117615
+ export interface WorkflowDefinitionEnableOutput {
117616
+ id: string;
117617
+ name: string;
117618
+ status: ("draft" | "enabled" | "disabled");
117619
+ created_at: string;
117620
+ updated_at: string;
117621
+ description: (string | null);
117622
+ live_version: (number | null);
117623
+ }
117624
+ export interface WorkflowDefinitionExportInput {
117625
+ /**
117626
+ * Defaults to the live version.
117627
+ */
117628
+ version?: number;
117629
+ workflow_id: string;
117630
+ }
117631
+ export interface WorkflowDefinitionExportOutput {
117632
+ version: number;
117633
+ definition: {
117634
+ [k: string]: unknown;
117635
+ };
117636
+ workflow_id: string;
117637
+ }
117638
+ export interface WorkflowDefinitionGetInput {
117639
+ workflow_id: string;
117640
+ }
117641
+ export interface WorkflowDefinitionGetOutput {
117642
+ live: ({
117643
+ note: (string | null);
117644
+ version: number;
117645
+ published_at: (string | null);
117646
+ } | null);
117647
+ draft: ({
117648
+ [k: string]: unknown;
117649
+ } | null);
117650
+ /**
117651
+ * Validation of the draft as it stands right now.
117652
+ */
117653
+ issues: {
117654
+ /**
117655
+ * A documented issue code; repair by reacting to this, not to prose.
117656
+ */
117657
+ code: string;
117658
+ hint?: string;
117659
+ /**
117660
+ * JSON Pointer into the definition.
117661
+ */
117662
+ path: string;
117663
+ actual?: string;
117664
+ node_id?: string;
117665
+ expected?: string;
117666
+ severity: ("error" | "warning");
117667
+ }[];
117668
+ workflow: {
117669
+ id: string;
117670
+ name: string;
117671
+ status: ("draft" | "enabled" | "disabled");
117672
+ created_at: string;
117673
+ updated_at: string;
117674
+ description: (string | null);
117675
+ live_version: (number | null);
117676
+ };
117677
+ }
117678
+ export interface WorkflowDefinitionImportInput {
117679
+ name: string;
117680
+ /**
117681
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117682
+ */
117683
+ definition: {
117684
+ [k: string]: unknown;
117685
+ };
117686
+ }
117687
+ export interface WorkflowDefinitionImportOutput {
117688
+ live: ({
117689
+ note: (string | null);
117690
+ version: number;
117691
+ published_at: (string | null);
117692
+ } | null);
117693
+ draft: ({
117694
+ [k: string]: unknown;
117695
+ } | null);
117696
+ /**
117697
+ * Validation of the draft as it stands right now.
117698
+ */
117699
+ issues: {
117700
+ /**
117701
+ * A documented issue code; repair by reacting to this, not to prose.
117702
+ */
117703
+ code: string;
117704
+ hint?: string;
117705
+ /**
117706
+ * JSON Pointer into the definition.
117707
+ */
117708
+ path: string;
117709
+ actual?: string;
117710
+ node_id?: string;
117711
+ expected?: string;
117712
+ severity: ("error" | "warning");
117713
+ }[];
117714
+ workflow: {
117715
+ id: string;
117716
+ name: string;
117717
+ status: ("draft" | "enabled" | "disabled");
117718
+ created_at: string;
117719
+ updated_at: string;
117720
+ description: (string | null);
117721
+ live_version: (number | null);
117722
+ };
117723
+ }
117724
+ export interface WorkflowDefinitionListInput {
117725
+ /**
117726
+ * Page size, 1-200; defaults to 50.
117727
+ */
117728
+ limit?: number;
117729
+ /**
117730
+ * Opaque cursor from a previous page.
117731
+ */
117732
+ cursor?: string;
117733
+ status?: ("draft" | "enabled" | "disabled");
117734
+ }
117735
+ export interface WorkflowDefinitionListOutput {
117736
+ items: {
117737
+ id: string;
117738
+ name: string;
117739
+ status: ("draft" | "enabled" | "disabled");
117740
+ created_at: string;
117741
+ updated_at: string;
117742
+ description: (string | null);
117743
+ live_version: (number | null);
117744
+ }[];
117745
+ next_cursor: (string | null);
117746
+ }
117747
+ export interface WorkflowDefinitionPublishInput {
117748
+ /**
117749
+ * Why this version exists; shown in the version list.
117750
+ */
117751
+ note: string;
117752
+ workflow_id: string;
117753
+ }
117754
+ export interface WorkflowDefinitionPublishOutput {
117755
+ status: string;
117756
+ version: number;
117757
+ workflow_id: string;
117758
+ dependencies: {
117759
+ key: string;
117760
+ kind: ("trigger" | "action");
117761
+ schema_hash: string;
117762
+ }[];
117763
+ }
117764
+ export interface WorkflowDefinitionUpdateInput {
117765
+ name?: string;
117766
+ /**
117767
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117768
+ */
117769
+ definition?: {
117770
+ [k: string]: unknown;
117771
+ };
117772
+ description?: string;
117773
+ workflow_id: string;
117774
+ }
117775
+ export interface WorkflowDefinitionUpdateOutput {
117776
+ live: ({
117777
+ note: (string | null);
117778
+ version: number;
117779
+ published_at: (string | null);
117780
+ } | null);
117781
+ draft: ({
117782
+ [k: string]: unknown;
117783
+ } | null);
117784
+ /**
117785
+ * Validation of the draft as it stands right now.
117786
+ */
117787
+ issues: {
117788
+ /**
117789
+ * A documented issue code; repair by reacting to this, not to prose.
117790
+ */
117791
+ code: string;
117792
+ hint?: string;
117793
+ /**
117794
+ * JSON Pointer into the definition.
117795
+ */
117796
+ path: string;
117797
+ actual?: string;
117798
+ node_id?: string;
117799
+ expected?: string;
117800
+ severity: ("error" | "warning");
117801
+ }[];
117802
+ workflow: {
117803
+ id: string;
117804
+ name: string;
117805
+ status: ("draft" | "enabled" | "disabled");
117806
+ created_at: string;
117807
+ updated_at: string;
117808
+ description: (string | null);
117809
+ live_version: (number | null);
117810
+ };
117811
+ }
117812
+ export interface WorkflowDefinitionValidateInput {
117813
+ /**
117814
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117815
+ */
117816
+ definition?: {
117817
+ [k: string]: unknown;
117818
+ };
117819
+ workflow_id?: string;
117820
+ }
117821
+ export interface WorkflowDefinitionValidateOutput {
117822
+ /**
117823
+ * True when no issue has severity "error"; publish needs this.
117824
+ */
117825
+ ok: boolean;
117826
+ issues: {
117827
+ /**
117828
+ * A documented issue code; repair by reacting to this, not to prose.
117829
+ */
117830
+ code: string;
117831
+ hint?: string;
117832
+ /**
117833
+ * JSON Pointer into the definition.
117834
+ */
117835
+ path: string;
117836
+ actual?: string;
117837
+ node_id?: string;
117838
+ expected?: string;
117839
+ severity: ("error" | "warning");
117840
+ }[];
117841
+ }
117374
117842
  export interface WorkflowHealthPingInput {
117375
117843
  }
117376
117844
  export interface WorkflowHealthPingOutput {
@@ -117378,3 +117846,184 @@ export interface WorkflowHealthPingOutput {
117378
117846
  toolkit: string;
117379
117847
  productId: string;
117380
117848
  }
117849
+ export interface WorkflowRunCancelInput {
117850
+ run_id: string;
117851
+ }
117852
+ export interface WorkflowRunCancelOutput {
117853
+ id: string;
117854
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117855
+ version: number;
117856
+ ended_at: (string | null);
117857
+ created_at: string;
117858
+ started_at: (string | null);
117859
+ /**
117860
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117861
+ */
117862
+ held_reason?: {
117863
+ [k: string]: unknown;
117864
+ };
117865
+ workflow_id: string;
117866
+ trigger_event_id: string;
117867
+ replay_generation: number;
117868
+ }
117869
+ export interface WorkflowRunGetInput {
117870
+ run_id: string;
117871
+ }
117872
+ export interface WorkflowRunGetOutput {
117873
+ run: {
117874
+ id: string;
117875
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117876
+ version: number;
117877
+ ended_at: (string | null);
117878
+ created_at: string;
117879
+ started_at: (string | null);
117880
+ /**
117881
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117882
+ */
117883
+ held_reason?: {
117884
+ [k: string]: unknown;
117885
+ };
117886
+ workflow_id: string;
117887
+ trigger_event_id: string;
117888
+ replay_generation: number;
117889
+ };
117890
+ steps: {
117891
+ error?: unknown;
117892
+ input?: unknown;
117893
+ output?: unknown;
117894
+ status: string;
117895
+ attempt: number;
117896
+ ended_at: (string | null);
117897
+ /**
117898
+ * `node_id`, or `node_id[i]/child_id` inside a loop.
117899
+ */
117900
+ node_path: string;
117901
+ started_at: string;
117902
+ idempotency_key: (string | null);
117903
+ }[];
117904
+ waits: {
117905
+ id: string;
117906
+ kind: string;
117907
+ due_at: (string | null);
117908
+ status: string;
117909
+ node_path: string;
117910
+ }[];
117911
+ events: {
117912
+ at: string;
117913
+ seq: number;
117914
+ kind: string;
117915
+ payload?: unknown;
117916
+ }[];
117917
+ }
117918
+ export interface WorkflowRunListInput {
117919
+ /**
117920
+ * Page size, 1-200; defaults to 50.
117921
+ */
117922
+ limit?: number;
117923
+ /**
117924
+ * Opaque cursor from a previous page.
117925
+ */
117926
+ cursor?: string;
117927
+ status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117928
+ workflow_id?: string;
117929
+ }
117930
+ export interface WorkflowRunListOutput {
117931
+ items: {
117932
+ id: string;
117933
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117934
+ version: number;
117935
+ ended_at: (string | null);
117936
+ created_at: string;
117937
+ started_at: (string | null);
117938
+ /**
117939
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117940
+ */
117941
+ held_reason?: {
117942
+ [k: string]: unknown;
117943
+ };
117944
+ workflow_id: string;
117945
+ trigger_event_id: string;
117946
+ replay_generation: number;
117947
+ }[];
117948
+ next_cursor: (string | null);
117949
+ }
117950
+ export interface WorkflowRunReplayInput {
117951
+ run_id: string;
117952
+ /**
117953
+ * Re-execute the failed step instead of reusing its result: bumps `replay_generation`, which the action's Idempotency-Key carries. Defaults to false.
117954
+ */
117955
+ reexecute?: boolean;
117956
+ }
117957
+ export interface WorkflowRunReplayOutput {
117958
+ id: string;
117959
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117960
+ version: number;
117961
+ ended_at: (string | null);
117962
+ created_at: string;
117963
+ started_at: (string | null);
117964
+ /**
117965
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117966
+ */
117967
+ held_reason?: {
117968
+ [k: string]: unknown;
117969
+ };
117970
+ workflow_id: string;
117971
+ trigger_event_id: string;
117972
+ replay_generation: number;
117973
+ }
117974
+ export interface WorkflowRunStartInput {
117975
+ input?: {
117976
+ [k: string]: unknown;
117977
+ };
117978
+ workflow_id: string;
117979
+ idempotency_key: string;
117980
+ }
117981
+ export interface WorkflowRunStartOutput {
117982
+ run_id?: string;
117983
+ event_id: string;
117984
+ deduplicated: boolean;
117985
+ }
117986
+ export interface WorkflowVersionGetInput {
117987
+ /**
117988
+ * 0 is the draft.
117989
+ */
117990
+ version: number;
117991
+ workflow_id: string;
117992
+ }
117993
+ export interface WorkflowVersionGetOutput {
117994
+ note: (string | null);
117995
+ version: number;
117996
+ definition: {
117997
+ [k: string]: unknown;
117998
+ };
117999
+ workflow_id: string;
118000
+ dependencies: ({
118001
+ [k: string]: unknown;
118002
+ }[] | null);
118003
+ published_at: (string | null);
118004
+ published_by: (string | null);
118005
+ }
118006
+ export interface WorkflowVersionListInput {
118007
+ /**
118008
+ * Page size, 1-200; defaults to 50.
118009
+ */
118010
+ limit?: number;
118011
+ /**
118012
+ * Opaque cursor from a previous page.
118013
+ */
118014
+ cursor?: string;
118015
+ workflow_id: string;
118016
+ }
118017
+ export interface WorkflowVersionListOutput {
118018
+ items: {
118019
+ note: (string | null);
118020
+ version: number;
118021
+ workflow_id: string;
118022
+ dependencies: ({
118023
+ [k: string]: unknown;
118024
+ }[] | null);
118025
+ published_at: (string | null);
118026
+ published_by: (string | null);
118027
+ }[];
118028
+ next_cursor: (string | null);
118029
+ }
@@ -1,2 +1,2 @@
1
1
  export * from './queryOptions.gen.js';
2
- export type { WorkflowHealthPingInput, WorkflowHealthPingOutput } from '../types.gen.js';
2
+ 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.js';