@lessly/sdk-app 63.8.1 → 64.0.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.
@@ -110958,7 +110958,6 @@ input_schema?: {
110958
110958
  output_schema?: ({
110959
110959
  [k: string]: unknown
110960
110960
  } | null)
110961
- executable_in_phase?: boolean
110962
110961
  }
110963
110962
 
110964
110963
  export interface WorkflowCapabilityListInput {
@@ -111013,7 +111012,6 @@ input_schema?: {
111013
111012
  output_schema?: ({
111014
111013
  [k: string]: unknown
111015
111014
  } | null)
111016
- executable_in_phase?: boolean
111017
111015
  }[]
111018
111016
  next_cursor: (string | null)
111019
111017
  /**
@@ -111095,6 +111093,35 @@ published_at: (string | null)
111095
111093
  draft: ({
111096
111094
  [k: string]: unknown
111097
111095
  } | null)
111096
+ /**
111097
+ * The workflow principal's grants; null when Governance could not be reached.
111098
+ */
111099
+ grants: ({
111100
+ grants: {
111101
+ /**
111102
+ * "approved" is the only status a call gets through on.
111103
+ */
111104
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111105
+ tool_key: string
111106
+ approved_at: (string | null)
111107
+ /**
111108
+ * The member who vouches for the grant.
111109
+ */
111110
+ sponsor_member_id: (string | null)
111111
+ }[]
111112
+ /**
111113
+ * Tool keys asked for and waiting on a human.
111114
+ */
111115
+ pending: string[]
111116
+ /**
111117
+ * Tool keys the workflow may call right now.
111118
+ */
111119
+ effective: string[]
111120
+ /**
111121
+ * Tool keys that were approved and lost their sponsor.
111122
+ */
111123
+ needs_sponsor: string[]
111124
+ } | null)
111098
111125
  /**
111099
111126
  * Validation of the draft as it stands right now.
111100
111127
  */
@@ -111117,11 +111144,42 @@ workflow: {
111117
111144
  id: string
111118
111145
  name: string
111119
111146
  status: ("draft" | "enabled" | "disabled")
111147
+ /**
111148
+ * What is stopping an otherwise published workflow; null when nothing is.
111149
+ */
111150
+ attention: ({
111151
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111152
+ detail: {
111153
+ /**
111154
+ * Set instead when Governance could not be asked.
111155
+ */
111156
+ error?: string
111157
+ /**
111158
+ * The tools still waiting on a sponsor.
111159
+ */
111160
+ tools?: string[]
111161
+ }
111162
+ } | null)
111120
111163
  created_at: string
111121
111164
  updated_at: string
111122
111165
  description: (string | null)
111123
111166
  live_version: (number | null)
111124
111167
  }
111168
+ /**
111169
+ * What the live version was validated against, with the hashes it saw.
111170
+ */
111171
+ dependencies: {
111172
+ kind: ("trigger" | "action")
111173
+ /**
111174
+ * The event name of the trigger, or the tool name of the action.
111175
+ */
111176
+ name: string
111177
+ toolkit: string
111178
+ /**
111179
+ * The hash the capability had at publish; a drift means broken.
111180
+ */
111181
+ schema_hash: string
111182
+ }[]
111125
111183
  }
111126
111184
 
111127
111185
  export interface WorkflowDefinitionDisableInput {
@@ -111132,6 +111190,22 @@ export interface WorkflowDefinitionDisableOutput {
111132
111190
  id: string
111133
111191
  name: string
111134
111192
  status: ("draft" | "enabled" | "disabled")
111193
+ /**
111194
+ * What is stopping an otherwise published workflow; null when nothing is.
111195
+ */
111196
+ attention: ({
111197
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111198
+ detail: {
111199
+ /**
111200
+ * Set instead when Governance could not be asked.
111201
+ */
111202
+ error?: string
111203
+ /**
111204
+ * The tools still waiting on a sponsor.
111205
+ */
111206
+ tools?: string[]
111207
+ }
111208
+ } | null)
111135
111209
  created_at: string
111136
111210
  updated_at: string
111137
111211
  description: (string | null)
@@ -111185,6 +111259,22 @@ export interface WorkflowDefinitionEnableOutput {
111185
111259
  id: string
111186
111260
  name: string
111187
111261
  status: ("draft" | "enabled" | "disabled")
111262
+ /**
111263
+ * What is stopping an otherwise published workflow; null when nothing is.
111264
+ */
111265
+ attention: ({
111266
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111267
+ detail: {
111268
+ /**
111269
+ * Set instead when Governance could not be asked.
111270
+ */
111271
+ error?: string
111272
+ /**
111273
+ * The tools still waiting on a sponsor.
111274
+ */
111275
+ tools?: string[]
111276
+ }
111277
+ } | null)
111188
111278
  created_at: string
111189
111279
  updated_at: string
111190
111280
  description: (string | null)
@@ -111220,6 +111310,35 @@ published_at: (string | null)
111220
111310
  draft: ({
111221
111311
  [k: string]: unknown
111222
111312
  } | null)
111313
+ /**
111314
+ * The workflow principal's grants; null when Governance could not be reached.
111315
+ */
111316
+ grants: ({
111317
+ grants: {
111318
+ /**
111319
+ * "approved" is the only status a call gets through on.
111320
+ */
111321
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111322
+ tool_key: string
111323
+ approved_at: (string | null)
111324
+ /**
111325
+ * The member who vouches for the grant.
111326
+ */
111327
+ sponsor_member_id: (string | null)
111328
+ }[]
111329
+ /**
111330
+ * Tool keys asked for and waiting on a human.
111331
+ */
111332
+ pending: string[]
111333
+ /**
111334
+ * Tool keys the workflow may call right now.
111335
+ */
111336
+ effective: string[]
111337
+ /**
111338
+ * Tool keys that were approved and lost their sponsor.
111339
+ */
111340
+ needs_sponsor: string[]
111341
+ } | null)
111223
111342
  /**
111224
111343
  * Validation of the draft as it stands right now.
111225
111344
  */
@@ -111242,11 +111361,42 @@ workflow: {
111242
111361
  id: string
111243
111362
  name: string
111244
111363
  status: ("draft" | "enabled" | "disabled")
111364
+ /**
111365
+ * What is stopping an otherwise published workflow; null when nothing is.
111366
+ */
111367
+ attention: ({
111368
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111369
+ detail: {
111370
+ /**
111371
+ * Set instead when Governance could not be asked.
111372
+ */
111373
+ error?: string
111374
+ /**
111375
+ * The tools still waiting on a sponsor.
111376
+ */
111377
+ tools?: string[]
111378
+ }
111379
+ } | null)
111245
111380
  created_at: string
111246
111381
  updated_at: string
111247
111382
  description: (string | null)
111248
111383
  live_version: (number | null)
111249
111384
  }
111385
+ /**
111386
+ * What the live version was validated against, with the hashes it saw.
111387
+ */
111388
+ dependencies: {
111389
+ kind: ("trigger" | "action")
111390
+ /**
111391
+ * The event name of the trigger, or the tool name of the action.
111392
+ */
111393
+ name: string
111394
+ toolkit: string
111395
+ /**
111396
+ * The hash the capability had at publish; a drift means broken.
111397
+ */
111398
+ schema_hash: string
111399
+ }[]
111250
111400
  }
111251
111401
 
111252
111402
  export interface WorkflowDefinitionImportInput {
@@ -111268,6 +111418,35 @@ published_at: (string | null)
111268
111418
  draft: ({
111269
111419
  [k: string]: unknown
111270
111420
  } | null)
111421
+ /**
111422
+ * The workflow principal's grants; null when Governance could not be reached.
111423
+ */
111424
+ grants: ({
111425
+ grants: {
111426
+ /**
111427
+ * "approved" is the only status a call gets through on.
111428
+ */
111429
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111430
+ tool_key: string
111431
+ approved_at: (string | null)
111432
+ /**
111433
+ * The member who vouches for the grant.
111434
+ */
111435
+ sponsor_member_id: (string | null)
111436
+ }[]
111437
+ /**
111438
+ * Tool keys asked for and waiting on a human.
111439
+ */
111440
+ pending: string[]
111441
+ /**
111442
+ * Tool keys the workflow may call right now.
111443
+ */
111444
+ effective: string[]
111445
+ /**
111446
+ * Tool keys that were approved and lost their sponsor.
111447
+ */
111448
+ needs_sponsor: string[]
111449
+ } | null)
111271
111450
  /**
111272
111451
  * Validation of the draft as it stands right now.
111273
111452
  */
@@ -111290,11 +111469,42 @@ workflow: {
111290
111469
  id: string
111291
111470
  name: string
111292
111471
  status: ("draft" | "enabled" | "disabled")
111472
+ /**
111473
+ * What is stopping an otherwise published workflow; null when nothing is.
111474
+ */
111475
+ attention: ({
111476
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111477
+ detail: {
111478
+ /**
111479
+ * Set instead when Governance could not be asked.
111480
+ */
111481
+ error?: string
111482
+ /**
111483
+ * The tools still waiting on a sponsor.
111484
+ */
111485
+ tools?: string[]
111486
+ }
111487
+ } | null)
111293
111488
  created_at: string
111294
111489
  updated_at: string
111295
111490
  description: (string | null)
111296
111491
  live_version: (number | null)
111297
111492
  }
111493
+ /**
111494
+ * What the live version was validated against, with the hashes it saw.
111495
+ */
111496
+ dependencies: {
111497
+ kind: ("trigger" | "action")
111498
+ /**
111499
+ * The event name of the trigger, or the tool name of the action.
111500
+ */
111501
+ name: string
111502
+ toolkit: string
111503
+ /**
111504
+ * The hash the capability had at publish; a drift means broken.
111505
+ */
111506
+ schema_hash: string
111507
+ }[]
111298
111508
  }
111299
111509
 
111300
111510
  export interface WorkflowDefinitionListInput {
@@ -111314,6 +111524,22 @@ items: {
111314
111524
  id: string
111315
111525
  name: string
111316
111526
  status: ("draft" | "enabled" | "disabled")
111527
+ /**
111528
+ * What is stopping an otherwise published workflow; null when nothing is.
111529
+ */
111530
+ attention: ({
111531
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111532
+ detail: {
111533
+ /**
111534
+ * Set instead when Governance could not be asked.
111535
+ */
111536
+ error?: string
111537
+ /**
111538
+ * The tools still waiting on a sponsor.
111539
+ */
111540
+ tools?: string[]
111541
+ }
111542
+ } | null)
111317
111543
  created_at: string
111318
111544
  updated_at: string
111319
111545
  description: (string | null)
@@ -111331,12 +111557,48 @@ workflow_id: string
111331
111557
  }
111332
111558
 
111333
111559
  export interface WorkflowDefinitionPublishOutput {
111560
+ /**
111561
+ * What Governance holds for this workflow after the request; null when the request did not reach it. A publish never approves anything — a human sponsors it in Workspace.
111562
+ */
111563
+ grants: ({
111564
+ grants: {
111565
+ /**
111566
+ * "approved" is the only status a call gets through on.
111567
+ */
111568
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111569
+ tool_key: string
111570
+ approved_at: (string | null)
111571
+ /**
111572
+ * The member who vouches for the grant.
111573
+ */
111574
+ sponsor_member_id: (string | null)
111575
+ }[]
111576
+ /**
111577
+ * Tool keys asked for and waiting on a human.
111578
+ */
111579
+ pending: string[]
111580
+ /**
111581
+ * Tool keys the workflow may call right now.
111582
+ */
111583
+ effective: string[]
111584
+ /**
111585
+ * Tool keys that were approved and lost their sponsor.
111586
+ */
111587
+ needs_sponsor: string[]
111588
+ } | null)
111334
111589
  status: string
111335
111590
  version: number
111336
111591
  workflow_id: string
111337
111592
  dependencies: {
111338
- key: string
111339
111593
  kind: ("trigger" | "action")
111594
+ /**
111595
+ * The event name of the trigger, or the tool name of the action.
111596
+ */
111597
+ name: string
111598
+ toolkit: string
111599
+ /**
111600
+ * The hash the capability had at publish; a drift means broken.
111601
+ */
111340
111602
  schema_hash: string
111341
111603
  }[]
111342
111604
  }
@@ -111362,6 +111624,35 @@ published_at: (string | null)
111362
111624
  draft: ({
111363
111625
  [k: string]: unknown
111364
111626
  } | null)
111627
+ /**
111628
+ * The workflow principal's grants; null when Governance could not be reached.
111629
+ */
111630
+ grants: ({
111631
+ grants: {
111632
+ /**
111633
+ * "approved" is the only status a call gets through on.
111634
+ */
111635
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111636
+ tool_key: string
111637
+ approved_at: (string | null)
111638
+ /**
111639
+ * The member who vouches for the grant.
111640
+ */
111641
+ sponsor_member_id: (string | null)
111642
+ }[]
111643
+ /**
111644
+ * Tool keys asked for and waiting on a human.
111645
+ */
111646
+ pending: string[]
111647
+ /**
111648
+ * Tool keys the workflow may call right now.
111649
+ */
111650
+ effective: string[]
111651
+ /**
111652
+ * Tool keys that were approved and lost their sponsor.
111653
+ */
111654
+ needs_sponsor: string[]
111655
+ } | null)
111365
111656
  /**
111366
111657
  * Validation of the draft as it stands right now.
111367
111658
  */
@@ -111384,11 +111675,42 @@ workflow: {
111384
111675
  id: string
111385
111676
  name: string
111386
111677
  status: ("draft" | "enabled" | "disabled")
111678
+ /**
111679
+ * What is stopping an otherwise published workflow; null when nothing is.
111680
+ */
111681
+ attention: ({
111682
+ code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
111683
+ detail: {
111684
+ /**
111685
+ * Set instead when Governance could not be asked.
111686
+ */
111687
+ error?: string
111688
+ /**
111689
+ * The tools still waiting on a sponsor.
111690
+ */
111691
+ tools?: string[]
111692
+ }
111693
+ } | null)
111387
111694
  created_at: string
111388
111695
  updated_at: string
111389
111696
  description: (string | null)
111390
111697
  live_version: (number | null)
111391
111698
  }
111699
+ /**
111700
+ * What the live version was validated against, with the hashes it saw.
111701
+ */
111702
+ dependencies: {
111703
+ kind: ("trigger" | "action")
111704
+ /**
111705
+ * The event name of the trigger, or the tool name of the action.
111706
+ */
111707
+ name: string
111708
+ toolkit: string
111709
+ /**
111710
+ * The hash the capability had at publish; a drift means broken.
111711
+ */
111712
+ schema_hash: string
111713
+ }[]
111392
111714
  }
111393
111715
 
111394
111716
  export interface WorkflowDefinitionValidateInput {
@@ -111423,6 +111745,42 @@ severity: ("error" | "warning")
111423
111745
  }[]
111424
111746
  }
111425
111747
 
111748
+ export interface WorkflowGrantListInput {
111749
+ workflow_id: string
111750
+ }
111751
+
111752
+ export interface WorkflowGrantListOutput {
111753
+ grants: {
111754
+ /**
111755
+ * "approved" is the only status a call gets through on.
111756
+ */
111757
+ status: ("pending" | "approved" | "revoked" | "needs_sponsor")
111758
+ tool_key: string
111759
+ approved_at: (string | null)
111760
+ /**
111761
+ * The member who vouches for the grant.
111762
+ */
111763
+ sponsor_member_id: (string | null)
111764
+ }[]
111765
+ /**
111766
+ * Tool keys asked for and waiting on a human.
111767
+ */
111768
+ pending: string[]
111769
+ /**
111770
+ * Tool keys the workflow may call right now.
111771
+ */
111772
+ effective: string[]
111773
+ workflow_id: string
111774
+ /**
111775
+ * Where a pending grant is approved, and by whom.
111776
+ */
111777
+ approve_with: string
111778
+ /**
111779
+ * Tool keys that were approved and lost their sponsor.
111780
+ */
111781
+ needs_sponsor: string[]
111782
+ }
111783
+
111426
111784
  export interface WorkflowHealthPingInput {
111427
111785
 
111428
111786
  }
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.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';
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, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen';
@@ -25,6 +25,8 @@ import type {
25
25
  WorkflowDefinitionUpdateInput,
26
26
  WorkflowDefinitionValidateInput,
27
27
  WorkflowDefinitionValidateOutput,
28
+ WorkflowGrantListInput,
29
+ WorkflowGrantListOutput,
28
30
  WorkflowHealthPingInput,
29
31
  WorkflowHealthPingOutput,
30
32
  WorkflowRunCancelInput,
@@ -120,6 +122,11 @@ export const workflowDefinitionValidateQueryOptions = (sdk: GeneratedClient, inp
120
122
  queryFn: () => sdk['workflow']['definition']['validate'](input),
121
123
  });
122
124
 
125
+ export const workflowGrantListQueryOptions = (sdk: GeneratedClient, input: WorkflowGrantListInput) => ({
126
+ queryKey: ['workflow', 'grant', 'list', input] as const,
127
+ queryFn: () => sdk['workflow']['grant']['list'](input),
128
+ });
129
+
123
130
  export const workflowHealthPingQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthPingInput) => ({
124
131
  queryKey: ['workflow', 'health', 'ping', input] as const,
125
132
  queryFn: () => sdk['workflow']['health']['ping'](input),