@lessly/sdk-app 63.6.0 → 63.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/_types/gen/client.gen.d.ts +72 -1
  2. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  3. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  4. package/dist/_types/gen/playground/index.d.ts +3 -0
  5. package/dist/_types/gen/playground/queryOptions.gen.d.ts +62 -0
  6. package/dist/_types/gen/types.gen.d.ts +913 -0
  7. package/dist/_types/gen/workflow/index.d.ts +2 -0
  8. package/dist/_types/gen/workflow/queryOptions.gen.d.ts +98 -0
  9. package/dist/chunk-ETSAJJIN.js +10902 -0
  10. package/dist/chunk-ETSAJJIN.js.map +1 -0
  11. package/dist/index.cjs +676 -2
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.js +85 -10299
  14. package/dist/index.js.map +1 -1
  15. package/dist/playground/index.cjs +96 -0
  16. package/dist/playground/index.cjs.map +1 -0
  17. package/dist/playground/index.d.cts +1 -0
  18. package/dist/playground/index.d.ts +1 -0
  19. package/dist/playground/index.js +70 -0
  20. package/dist/playground/index.js.map +1 -0
  21. package/dist/workflow/index.cjs +126 -0
  22. package/dist/workflow/index.cjs.map +1 -0
  23. package/dist/workflow/index.d.cts +1 -0
  24. package/dist/workflow/index.d.ts +1 -0
  25. package/dist/workflow/index.js +101 -0
  26. package/dist/workflow/index.js.map +1 -0
  27. package/package.json +22 -2
  28. package/src/gen/bindings.gen.ts +602 -1
  29. package/src/gen/client.gen.ts +149 -0
  30. package/src/gen/manifest.gen.ts +83 -2
  31. package/src/gen/playground/connect.gen.ts +9 -0
  32. package/src/gen/playground/index.ts +4 -0
  33. package/src/gen/playground/queryOptions.gen.ts +105 -0
  34. package/src/gen/types.gen.ts +1004 -0
  35. package/src/gen/workflow/index.ts +3 -0
  36. package/src/gen/workflow/queryOptions.gen.ts +161 -0
@@ -85727,6 +85727,305 @@ export interface OrganizationYoutubeInstallOutput {
85727
85727
  url: string
85728
85728
  }
85729
85729
 
85730
+ export interface PlaygroundAnalyticsOverviewInput {
85731
+ /**
85732
+ * Max records per entity in recent[]; omit for the endpoint default
85733
+ */
85734
+ limit?: number
85735
+ }
85736
+
85737
+ export interface PlaygroundAnalyticsOverviewOutput {
85738
+ ok: boolean
85739
+ minted: boolean
85740
+ overview?: unknown
85741
+ http_status: number
85742
+ }
85743
+
85744
+ export interface PlaygroundBillingEntitlementsInput {
85745
+
85746
+ }
85747
+
85748
+ export interface PlaygroundBillingEntitlementsOutput {
85749
+ ok: boolean
85750
+ minted: boolean
85751
+ http_status: number
85752
+ entitlements?: unknown
85753
+ }
85754
+
85755
+ export interface PlaygroundBillingRecordUsageInput {
85756
+ /**
85757
+ * Quantity of events to record against playground-events (SUM); defaults to 1
85758
+ */
85759
+ value?: number
85760
+ }
85761
+
85762
+ export interface PlaygroundBillingRecordUsageOutput {
85763
+ minted: boolean
85764
+ accepted: (number | null)
85765
+ recorded: boolean
85766
+ duplicates: (number | null)
85767
+ http_status: number
85768
+ }
85769
+
85770
+ export interface PlaygroundClickupCreateTaskInput {
85771
+ /**
85772
+ * Task title; defaults to a fixture label
85773
+ */
85774
+ name?: string
85775
+ /**
85776
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
85777
+ */
85778
+ listId?: string
85779
+ }
85780
+
85781
+ export interface PlaygroundClickupCreateTaskOutput {
85782
+ minted: boolean
85783
+ task_id: (string | null)
85784
+ list_status: number
85785
+ vend_status: number
85786
+ clickup_status: number
85787
+ installation_count: number
85788
+ }
85789
+
85790
+ export interface PlaygroundClickupGetLastWebhookInput {
85791
+
85792
+ }
85793
+
85794
+ export type PlaygroundClickupGetLastWebhookOutput = ({
85795
+ payload: string
85796
+ event_id: string
85797
+ provider: string
85798
+ verified: boolean
85799
+ product_id: string
85800
+ occurred_at: string
85801
+ connector_id: string
85802
+ clickup_event: (string | null)
85803
+ receipt_count: number
85804
+ } | {
85805
+ found: false
85806
+ })
85807
+
85808
+ export interface PlaygroundClickupGetOverviewInput {
85809
+
85810
+ }
85811
+
85812
+ export interface PlaygroundClickupGetOverviewOutput {
85813
+ team: ({
85814
+ teamId: string
85815
+ teamName: string
85816
+ } | null)
85817
+ lists: PlaygroundClickupGetOverviewOutputItems[]
85818
+ tasks: {
85819
+ id: string
85820
+ name: string
85821
+ status: (string | null)
85822
+ }[]
85823
+ minted: boolean
85824
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
85825
+ list_status: number
85826
+ vend_status: number
85827
+ lists_status: number
85828
+ tasks_status: number
85829
+ spaces_status: number
85830
+ folders_status: number
85831
+ installation_count: number
85832
+ }
85833
+ export interface PlaygroundClickupGetOverviewOutputItems {
85834
+ id: string
85835
+ name: string
85836
+ }
85837
+
85838
+ export interface PlaygroundGdriveGetLastChangeInput {
85839
+
85840
+ }
85841
+
85842
+ export type PlaygroundGdriveGetLastChangeOutput = ({
85843
+ file_id: string
85844
+ removed: boolean
85845
+ file_name: (string | null)
85846
+ mime_type: (string | null)
85847
+ product_id: string
85848
+ occurred_at: string
85849
+ connector_id: string
85850
+ resource_state: string
85851
+ } | {
85852
+ found: false
85853
+ })
85854
+
85855
+ export interface PlaygroundGdriveReadFileInput {
85856
+ /**
85857
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
85858
+ */
85859
+ fileId?: string
85860
+ }
85861
+
85862
+ export interface PlaygroundGdriveReadFileOutput {
85863
+ minted: boolean
85864
+ file_id: (string | null)
85865
+ file_name: (string | null)
85866
+ mime_type: (string | null)
85867
+ file_count: number
85868
+ get_status: number
85869
+ list_status: number
85870
+ vend_status: number
85871
+ content_bytes: (number | null)
85872
+ }
85873
+
85874
+ export interface PlaygroundGoogleadsReadCustomerInput {
85875
+
85876
+ }
85877
+
85878
+ export interface PlaygroundGoogleadsReadCustomerOutput {
85879
+ minted: boolean
85880
+ vended: boolean
85881
+ customer_id: (string | null)
85882
+ vend_status: number
85883
+ result_count: number
85884
+ search_status: number
85885
+ login_customer_id: (string | null)
85886
+ }
85887
+
85888
+ export interface PlaygroundLifecycleGetStateInput {
85889
+
85890
+ }
85891
+
85892
+ export interface PlaygroundLifecycleGetStateOutput {
85893
+ blocked: boolean
85894
+ archived: boolean
85895
+ productId: string
85896
+ lastBlockTransition: ({
85897
+ eventId: string
85898
+ eventName: string
85899
+ productId: string
85900
+ occurredAt: string
85901
+ recordedAt: string
85902
+ receiptCount: number
85903
+ organizationId: string
85904
+ cascadedFromOrg: boolean
85905
+ } | null)
85906
+ lastArchiveTransition: ({
85907
+ eventId: string
85908
+ eventName: string
85909
+ productId: string
85910
+ occurredAt: string
85911
+ recordedAt: string
85912
+ receiptCount: number
85913
+ organizationId: string
85914
+ cascadedFromOrg: boolean
85915
+ } | null)
85916
+ }
85917
+
85918
+ export interface PlaygroundLifecycleListEventsInput {
85919
+
85920
+ }
85921
+
85922
+ export type PlaygroundLifecycleListEventsOutput = {
85923
+ eventId: string
85924
+ eventName: string
85925
+ productId: string
85926
+ occurredAt: string
85927
+ recordedAt: string
85928
+ receiptCount: number
85929
+ organizationId: string
85930
+ cascadedFromOrg: boolean
85931
+ }[]
85932
+
85933
+ export interface PlaygroundWebhookGetLastInput {
85934
+
85935
+ }
85936
+
85937
+ export type PlaygroundWebhookGetLastOutput = ({
85938
+ payload?: unknown
85939
+ event_id: string
85940
+ provider: string
85941
+ verified: boolean
85942
+ product_id: string
85943
+ occurred_at: string
85944
+ connector_id: string
85945
+ delivery_count: number
85946
+ } | {
85947
+ found: false
85948
+ })
85949
+
85950
+ export interface PlaygroundWorkflowEchoInput {
85951
+ /**
85952
+ * The text to store, 1–1024 characters
85953
+ */
85954
+ note: string
85955
+ /**
85956
+ * Optional labels stored alongside the note, at most 20
85957
+ *
85958
+ * @maxItems 20
85959
+ */
85960
+ tags?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
85961
+ }
85962
+
85963
+ export interface PlaygroundWorkflowEchoOutput {
85964
+ /**
85965
+ * Identifier of the stored echo
85966
+ */
85967
+ id: string
85968
+ /**
85969
+ * The note exactly as it was received
85970
+ */
85971
+ note: string
85972
+ /**
85973
+ * The tags exactly as they were received
85974
+ */
85975
+ tags: string[]
85976
+ /**
85977
+ * ISO-8601 instant (UTC) at which the echo was stored
85978
+ */
85979
+ received_at: string
85980
+ }
85981
+
85982
+ export interface PlaygroundWorkflowEchoListInput {
85983
+
85984
+ }
85985
+
85986
+ export type PlaygroundWorkflowEchoListOutput = {
85987
+ /**
85988
+ * Identifier of the stored echo
85989
+ */
85990
+ id: string
85991
+ /**
85992
+ * The note exactly as it was received
85993
+ */
85994
+ note: string
85995
+ /**
85996
+ * The tags exactly as they were received
85997
+ */
85998
+ tags: string[]
85999
+ /**
86000
+ * ISO-8601 instant (UTC) at which the echo was stored
86001
+ */
86002
+ received_at: string
86003
+ }[]
86004
+
86005
+ export interface PlaygroundWorkflowPingInput {
86006
+ /**
86007
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
86008
+ */
86009
+ kind?: string
86010
+ }
86011
+
86012
+ export interface PlaygroundWorkflowPingOutput {
86013
+ /**
86014
+ * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
86015
+ */
86016
+ id: string
86017
+ /**
86018
+ * The name of the event that was published
86019
+ */
86020
+ event: string
86021
+ }
86022
+
86023
+ export interface PlaygroundWsEchoInput {
86024
+
86025
+ }
86026
+
86027
+ export type PlaygroundWsEchoOutput = unknown;
86028
+
85730
86029
  export interface RealtimeArchiveExportInput {
85731
86030
  /**
85732
86031
  * Only entries with ts <= to_ts (epoch ms)
@@ -110623,3 +110922,708 @@ items: {
110623
110922
  has_more: boolean
110624
110923
  next_cursor: (string | null)
110625
110924
  }
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
+
111426
+ export interface WorkflowHealthPingInput {
111427
+
111428
+ }
111429
+
111430
+ export interface WorkflowHealthPingOutput {
111431
+ ok: boolean
111432
+ toolkit: string
111433
+ productId: string
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
+ }