@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.
@@ -10463,6 +10463,304 @@ export const bindings: BindingsMap = {
10463
10463
  }
10464
10464
  },
10465
10465
  "workflow": {
10466
+ "capability": {
10467
+ "get": {
10468
+ "level": "read",
10469
+ "method": "GET",
10470
+ "operationKey": "workflow_capability_get",
10471
+ "params": [
10472
+ {
10473
+ "in": "query",
10474
+ "name": "key"
10475
+ }
10476
+ ],
10477
+ "path": "/workflow/capability/get",
10478
+ "readOnly": true
10479
+ },
10480
+ "list": {
10481
+ "level": "read",
10482
+ "method": "GET",
10483
+ "operationKey": "workflow_capability_list",
10484
+ "params": [
10485
+ {
10486
+ "in": "query",
10487
+ "name": "toolkit"
10488
+ },
10489
+ {
10490
+ "in": "query",
10491
+ "name": "kind"
10492
+ },
10493
+ {
10494
+ "in": "query",
10495
+ "name": "query"
10496
+ },
10497
+ {
10498
+ "in": "query",
10499
+ "name": "cursor"
10500
+ },
10501
+ {
10502
+ "in": "query",
10503
+ "name": "limit"
10504
+ }
10505
+ ],
10506
+ "path": "/workflow/capability",
10507
+ "readOnly": true
10508
+ }
10509
+ },
10510
+ "config": {
10511
+ "delete": {
10512
+ "level": "admin",
10513
+ "method": "DELETE",
10514
+ "operationKey": "workflow_config_delete",
10515
+ "params": [
10516
+ {
10517
+ "in": "query",
10518
+ "name": "key"
10519
+ }
10520
+ ],
10521
+ "path": "/workflow/config",
10522
+ "readOnly": false
10523
+ },
10524
+ "list": {
10525
+ "level": "read",
10526
+ "method": "GET",
10527
+ "operationKey": "workflow_config_list",
10528
+ "params": [
10529
+ {
10530
+ "in": "query",
10531
+ "name": "cursor"
10532
+ },
10533
+ {
10534
+ "in": "query",
10535
+ "name": "limit"
10536
+ }
10537
+ ],
10538
+ "path": "/workflow/config",
10539
+ "readOnly": true
10540
+ },
10541
+ "set": {
10542
+ "level": "write",
10543
+ "method": "POST",
10544
+ "operationKey": "workflow_config_set",
10545
+ "params": [
10546
+ {
10547
+ "in": "body",
10548
+ "name": "key"
10549
+ },
10550
+ {
10551
+ "in": "body",
10552
+ "name": "value"
10553
+ },
10554
+ {
10555
+ "in": "body",
10556
+ "name": "secret"
10557
+ }
10558
+ ],
10559
+ "path": "/workflow/config",
10560
+ "readOnly": false
10561
+ }
10562
+ },
10563
+ "definition": {
10564
+ "create": {
10565
+ "level": "write",
10566
+ "method": "POST",
10567
+ "operationKey": "workflow_definition_create",
10568
+ "params": [
10569
+ {
10570
+ "in": "body",
10571
+ "name": "name"
10572
+ },
10573
+ {
10574
+ "in": "body",
10575
+ "name": "description"
10576
+ },
10577
+ {
10578
+ "in": "body",
10579
+ "name": "definition"
10580
+ }
10581
+ ],
10582
+ "path": "/workflow/definition",
10583
+ "readOnly": false
10584
+ },
10585
+ "disable": {
10586
+ "level": "write",
10587
+ "method": "POST",
10588
+ "operationKey": "workflow_definition_disable",
10589
+ "params": [
10590
+ {
10591
+ "in": "body",
10592
+ "name": "workflow_id"
10593
+ }
10594
+ ],
10595
+ "path": "/workflow/definition/disable",
10596
+ "readOnly": false
10597
+ },
10598
+ "dryrun": {
10599
+ "level": "read",
10600
+ "method": "POST",
10601
+ "operationKey": "workflow_definition_dryrun",
10602
+ "params": [
10603
+ {
10604
+ "in": "body",
10605
+ "name": "workflow_id"
10606
+ },
10607
+ {
10608
+ "in": "body",
10609
+ "name": "definition"
10610
+ },
10611
+ {
10612
+ "in": "body",
10613
+ "name": "trigger_payload"
10614
+ },
10615
+ {
10616
+ "in": "body",
10617
+ "name": "assumptions"
10618
+ }
10619
+ ],
10620
+ "path": "/workflow/definition/dryrun",
10621
+ "readOnly": true
10622
+ },
10623
+ "enable": {
10624
+ "level": "write",
10625
+ "method": "POST",
10626
+ "operationKey": "workflow_definition_enable",
10627
+ "params": [
10628
+ {
10629
+ "in": "body",
10630
+ "name": "workflow_id"
10631
+ }
10632
+ ],
10633
+ "path": "/workflow/definition/enable",
10634
+ "readOnly": false
10635
+ },
10636
+ "export": {
10637
+ "level": "read",
10638
+ "method": "GET",
10639
+ "operationKey": "workflow_definition_export",
10640
+ "params": [
10641
+ {
10642
+ "in": "query",
10643
+ "name": "workflow_id"
10644
+ },
10645
+ {
10646
+ "in": "query",
10647
+ "name": "version"
10648
+ }
10649
+ ],
10650
+ "path": "/workflow/definition/export",
10651
+ "readOnly": true
10652
+ },
10653
+ "get": {
10654
+ "level": "read",
10655
+ "method": "GET",
10656
+ "operationKey": "workflow_definition_get",
10657
+ "params": [
10658
+ {
10659
+ "in": "query",
10660
+ "name": "workflow_id"
10661
+ }
10662
+ ],
10663
+ "path": "/workflow/definition/get",
10664
+ "readOnly": true
10665
+ },
10666
+ "import": {
10667
+ "level": "write",
10668
+ "method": "POST",
10669
+ "operationKey": "workflow_definition_import",
10670
+ "params": [
10671
+ {
10672
+ "in": "body",
10673
+ "name": "name"
10674
+ },
10675
+ {
10676
+ "in": "body",
10677
+ "name": "definition"
10678
+ }
10679
+ ],
10680
+ "path": "/workflow/definition/import",
10681
+ "readOnly": false
10682
+ },
10683
+ "list": {
10684
+ "level": "read",
10685
+ "method": "GET",
10686
+ "operationKey": "workflow_definition_list",
10687
+ "params": [
10688
+ {
10689
+ "in": "query",
10690
+ "name": "status"
10691
+ },
10692
+ {
10693
+ "in": "query",
10694
+ "name": "cursor"
10695
+ },
10696
+ {
10697
+ "in": "query",
10698
+ "name": "limit"
10699
+ }
10700
+ ],
10701
+ "path": "/workflow/definition",
10702
+ "readOnly": true
10703
+ },
10704
+ "publish": {
10705
+ "level": "write",
10706
+ "method": "POST",
10707
+ "operationKey": "workflow_definition_publish",
10708
+ "params": [
10709
+ {
10710
+ "in": "body",
10711
+ "name": "workflow_id"
10712
+ },
10713
+ {
10714
+ "in": "body",
10715
+ "name": "note"
10716
+ }
10717
+ ],
10718
+ "path": "/workflow/definition/publish",
10719
+ "readOnly": false
10720
+ },
10721
+ "update": {
10722
+ "level": "write",
10723
+ "method": "POST",
10724
+ "operationKey": "workflow_definition_update",
10725
+ "params": [
10726
+ {
10727
+ "in": "body",
10728
+ "name": "workflow_id"
10729
+ },
10730
+ {
10731
+ "in": "body",
10732
+ "name": "name"
10733
+ },
10734
+ {
10735
+ "in": "body",
10736
+ "name": "description"
10737
+ },
10738
+ {
10739
+ "in": "body",
10740
+ "name": "definition"
10741
+ }
10742
+ ],
10743
+ "path": "/workflow/definition/update",
10744
+ "readOnly": false
10745
+ },
10746
+ "validate": {
10747
+ "level": "read",
10748
+ "method": "POST",
10749
+ "operationKey": "workflow_definition_validate",
10750
+ "params": [
10751
+ {
10752
+ "in": "body",
10753
+ "name": "workflow_id"
10754
+ },
10755
+ {
10756
+ "in": "body",
10757
+ "name": "definition"
10758
+ }
10759
+ ],
10760
+ "path": "/workflow/definition/validate",
10761
+ "readOnly": true
10762
+ }
10763
+ },
10466
10764
  "health": {
10467
10765
  "ping": {
10468
10766
  "level": "read",
@@ -10471,6 +10769,137 @@ export const bindings: BindingsMap = {
10471
10769
  "path": "/workflow/health/ping",
10472
10770
  "readOnly": true
10473
10771
  }
10772
+ },
10773
+ "run": {
10774
+ "cancel": {
10775
+ "level": "write",
10776
+ "method": "POST",
10777
+ "operationKey": "workflow_run_cancel",
10778
+ "params": [
10779
+ {
10780
+ "in": "body",
10781
+ "name": "run_id"
10782
+ }
10783
+ ],
10784
+ "path": "/workflow/runs/cancel",
10785
+ "readOnly": false
10786
+ },
10787
+ "get": {
10788
+ "level": "read",
10789
+ "method": "GET",
10790
+ "operationKey": "workflow_run_get",
10791
+ "params": [
10792
+ {
10793
+ "in": "query",
10794
+ "name": "run_id"
10795
+ }
10796
+ ],
10797
+ "path": "/workflow/runs/get",
10798
+ "readOnly": true
10799
+ },
10800
+ "list": {
10801
+ "level": "read",
10802
+ "method": "GET",
10803
+ "operationKey": "workflow_run_list",
10804
+ "params": [
10805
+ {
10806
+ "in": "query",
10807
+ "name": "workflow_id"
10808
+ },
10809
+ {
10810
+ "in": "query",
10811
+ "name": "status"
10812
+ },
10813
+ {
10814
+ "in": "query",
10815
+ "name": "cursor"
10816
+ },
10817
+ {
10818
+ "in": "query",
10819
+ "name": "limit"
10820
+ }
10821
+ ],
10822
+ "path": "/workflow/runs",
10823
+ "readOnly": true
10824
+ },
10825
+ "replay": {
10826
+ "level": "write",
10827
+ "method": "POST",
10828
+ "operationKey": "workflow_run_replay",
10829
+ "params": [
10830
+ {
10831
+ "in": "body",
10832
+ "name": "run_id"
10833
+ },
10834
+ {
10835
+ "in": "body",
10836
+ "name": "reexecute"
10837
+ }
10838
+ ],
10839
+ "path": "/workflow/runs/replay",
10840
+ "readOnly": false
10841
+ },
10842
+ "start": {
10843
+ "level": "write",
10844
+ "method": "POST",
10845
+ "operationKey": "workflow_run_start",
10846
+ "params": [
10847
+ {
10848
+ "in": "body",
10849
+ "name": "workflow_id"
10850
+ },
10851
+ {
10852
+ "in": "body",
10853
+ "name": "idempotency_key"
10854
+ },
10855
+ {
10856
+ "in": "body",
10857
+ "name": "input"
10858
+ }
10859
+ ],
10860
+ "path": "/workflow/runs/start",
10861
+ "readOnly": false
10862
+ }
10863
+ },
10864
+ "version": {
10865
+ "get": {
10866
+ "level": "read",
10867
+ "method": "GET",
10868
+ "operationKey": "workflow_version_get",
10869
+ "params": [
10870
+ {
10871
+ "in": "query",
10872
+ "name": "workflow_id"
10873
+ },
10874
+ {
10875
+ "in": "query",
10876
+ "name": "version"
10877
+ }
10878
+ ],
10879
+ "path": "/workflow/version/get",
10880
+ "readOnly": true
10881
+ },
10882
+ "list": {
10883
+ "level": "read",
10884
+ "method": "GET",
10885
+ "operationKey": "workflow_version_list",
10886
+ "params": [
10887
+ {
10888
+ "in": "query",
10889
+ "name": "workflow_id"
10890
+ },
10891
+ {
10892
+ "in": "query",
10893
+ "name": "cursor"
10894
+ },
10895
+ {
10896
+ "in": "query",
10897
+ "name": "limit"
10898
+ }
10899
+ ],
10900
+ "path": "/workflow/version",
10901
+ "readOnly": true
10902
+ }
10474
10903
  }
10475
10904
  }
10476
10905
  };
@@ -1117,8 +1117,54 @@ import type {
1117
1117
  WaitlistSignupsFunnelOutput,
1118
1118
  WaitlistSignupsListInput,
1119
1119
  WaitlistSignupsListOutput,
1120
+ WorkflowCapabilityGetInput,
1121
+ WorkflowCapabilityGetOutput,
1122
+ WorkflowCapabilityListInput,
1123
+ WorkflowCapabilityListOutput,
1124
+ WorkflowConfigDeleteInput,
1125
+ WorkflowConfigDeleteOutput,
1126
+ WorkflowConfigListInput,
1127
+ WorkflowConfigListOutput,
1128
+ WorkflowConfigSetInput,
1129
+ WorkflowConfigSetOutput,
1130
+ WorkflowDefinitionCreateInput,
1131
+ WorkflowDefinitionCreateOutput,
1132
+ WorkflowDefinitionDisableInput,
1133
+ WorkflowDefinitionDisableOutput,
1134
+ WorkflowDefinitionDryrunInput,
1135
+ WorkflowDefinitionDryrunOutput,
1136
+ WorkflowDefinitionEnableInput,
1137
+ WorkflowDefinitionEnableOutput,
1138
+ WorkflowDefinitionExportInput,
1139
+ WorkflowDefinitionExportOutput,
1140
+ WorkflowDefinitionGetInput,
1141
+ WorkflowDefinitionGetOutput,
1142
+ WorkflowDefinitionImportInput,
1143
+ WorkflowDefinitionImportOutput,
1144
+ WorkflowDefinitionListInput,
1145
+ WorkflowDefinitionListOutput,
1146
+ WorkflowDefinitionPublishInput,
1147
+ WorkflowDefinitionPublishOutput,
1148
+ WorkflowDefinitionUpdateInput,
1149
+ WorkflowDefinitionUpdateOutput,
1150
+ WorkflowDefinitionValidateInput,
1151
+ WorkflowDefinitionValidateOutput,
1120
1152
  WorkflowHealthPingInput,
1121
1153
  WorkflowHealthPingOutput,
1154
+ WorkflowRunCancelInput,
1155
+ WorkflowRunCancelOutput,
1156
+ WorkflowRunGetInput,
1157
+ WorkflowRunGetOutput,
1158
+ WorkflowRunListInput,
1159
+ WorkflowRunListOutput,
1160
+ WorkflowRunReplayInput,
1161
+ WorkflowRunReplayOutput,
1162
+ WorkflowRunStartInput,
1163
+ WorkflowRunStartOutput,
1164
+ WorkflowVersionGetInput,
1165
+ WorkflowVersionGetOutput,
1166
+ WorkflowVersionListInput,
1167
+ WorkflowVersionListOutput,
1122
1168
  } from './types.gen';
1123
1169
 
1124
1170
  export interface GeneratedClient {
@@ -2145,8 +2191,41 @@ export interface GeneratedClient {
2145
2191
  };
2146
2192
  };
2147
2193
  workflow: {
2194
+ capability: {
2195
+ get: ((input: WorkflowCapabilityGetInput) => Promise<WorkflowCapabilityGetOutput>) & Operation;
2196
+ list: ((input: WorkflowCapabilityListInput) => Promise<WorkflowCapabilityListOutput>) & Operation;
2197
+ };
2198
+ config: {
2199
+ delete: ((input: WorkflowConfigDeleteInput) => Promise<WorkflowConfigDeleteOutput>) & Operation;
2200
+ list: ((input: WorkflowConfigListInput) => Promise<WorkflowConfigListOutput>) & Operation;
2201
+ set: ((input: WorkflowConfigSetInput) => Promise<WorkflowConfigSetOutput>) & Operation;
2202
+ };
2203
+ definition: {
2204
+ create: ((input: WorkflowDefinitionCreateInput) => Promise<WorkflowDefinitionCreateOutput>) & Operation;
2205
+ disable: ((input: WorkflowDefinitionDisableInput) => Promise<WorkflowDefinitionDisableOutput>) & Operation;
2206
+ dryrun: ((input: WorkflowDefinitionDryrunInput) => Promise<WorkflowDefinitionDryrunOutput>) & Operation;
2207
+ enable: ((input: WorkflowDefinitionEnableInput) => Promise<WorkflowDefinitionEnableOutput>) & Operation;
2208
+ export: ((input: WorkflowDefinitionExportInput) => Promise<WorkflowDefinitionExportOutput>) & Operation;
2209
+ get: ((input: WorkflowDefinitionGetInput) => Promise<WorkflowDefinitionGetOutput>) & Operation;
2210
+ import: ((input: WorkflowDefinitionImportInput) => Promise<WorkflowDefinitionImportOutput>) & Operation;
2211
+ list: ((input: WorkflowDefinitionListInput) => Promise<WorkflowDefinitionListOutput>) & Operation;
2212
+ publish: ((input: WorkflowDefinitionPublishInput) => Promise<WorkflowDefinitionPublishOutput>) & Operation;
2213
+ update: ((input: WorkflowDefinitionUpdateInput) => Promise<WorkflowDefinitionUpdateOutput>) & Operation;
2214
+ validate: ((input: WorkflowDefinitionValidateInput) => Promise<WorkflowDefinitionValidateOutput>) & Operation;
2215
+ };
2148
2216
  health: {
2149
2217
  ping: ((input: WorkflowHealthPingInput) => Promise<WorkflowHealthPingOutput>) & Operation;
2150
2218
  };
2219
+ run: {
2220
+ cancel: ((input: WorkflowRunCancelInput) => Promise<WorkflowRunCancelOutput>) & Operation;
2221
+ get: ((input: WorkflowRunGetInput) => Promise<WorkflowRunGetOutput>) & Operation;
2222
+ list: ((input: WorkflowRunListInput) => Promise<WorkflowRunListOutput>) & Operation;
2223
+ replay: ((input: WorkflowRunReplayInput) => Promise<WorkflowRunReplayOutput>) & Operation;
2224
+ start: ((input: WorkflowRunStartInput) => Promise<WorkflowRunStartOutput>) & Operation;
2225
+ };
2226
+ version: {
2227
+ get: ((input: WorkflowVersionGetInput) => Promise<WorkflowVersionGetOutput>) & Operation;
2228
+ list: ((input: WorkflowVersionListInput) => Promise<WorkflowVersionListOutput>) & Operation;
2229
+ };
2151
2230
  };
2152
2231
  }
@@ -562,7 +562,30 @@ export const operations: Record<string, ToolLevel> = {
562
562
  'waitlist_signups_erase': 'write',
563
563
  'waitlist_signups_funnel': 'read',
564
564
  'waitlist_signups_list': 'read',
565
+ 'workflow_capability_get': 'read',
566
+ 'workflow_capability_list': 'read',
567
+ 'workflow_config_delete': 'admin',
568
+ 'workflow_config_list': 'read',
569
+ 'workflow_config_set': 'write',
570
+ 'workflow_definition_create': 'write',
571
+ 'workflow_definition_disable': 'write',
572
+ 'workflow_definition_dryrun': 'read',
573
+ 'workflow_definition_enable': 'write',
574
+ 'workflow_definition_export': 'read',
575
+ 'workflow_definition_get': 'read',
576
+ 'workflow_definition_import': 'write',
577
+ 'workflow_definition_list': 'read',
578
+ 'workflow_definition_publish': 'write',
579
+ 'workflow_definition_update': 'write',
580
+ 'workflow_definition_validate': 'read',
565
581
  'workflow_health_ping': 'read',
582
+ 'workflow_run_cancel': 'write',
583
+ 'workflow_run_get': 'read',
584
+ 'workflow_run_list': 'read',
585
+ 'workflow_run_replay': 'write',
586
+ 'workflow_run_start': 'write',
587
+ 'workflow_version_get': 'read',
588
+ 'workflow_version_list': 'read',
566
589
  };
567
590
 
568
591
  export const compositions: Record<string, ToolComposition> = {