@lessly/sdk-app 67.2.0 → 67.4.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.
- package/dist/_types/gen/client.gen.d.ts +5 -1
- package/dist/_types/gen/playground/index.d.ts +1 -1
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +5 -1
- package/dist/_types/gen/types.gen.d.ts +117 -0
- package/dist/_types/gen/workflow/index.d.ts +1 -1
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +5 -1
- package/dist/{chunk-NEGA65H6.js → chunk-UPW2DNXO.js} +40 -2
- package/dist/chunk-UPW2DNXO.js.map +1 -0
- package/dist/index.cjs +42 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs +5 -0
- package/dist/playground/index.cjs.map +1 -1
- package/dist/playground/index.js +6 -2
- package/dist/playground/index.js.map +1 -1
- package/dist/workflow/index.cjs +5 -0
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +5 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +38 -0
- package/src/gen/client.gen.ts +8 -0
- package/src/gen/manifest.gen.ts +3 -0
- package/src/gen/playground/index.ts +1 -1
- package/src/gen/playground/queryOptions.gen.ts +7 -0
- package/src/gen/types.gen.ts +122 -0
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +7 -0
- package/dist/chunk-NEGA65H6.js.map +0 -1
package/src/gen/types.gen.ts
CHANGED
|
@@ -86101,6 +86101,53 @@ id: string
|
|
|
86101
86101
|
event: string
|
|
86102
86102
|
}
|
|
86103
86103
|
|
|
86104
|
+
export interface PlaygroundWorkflowSubjectsListInput {
|
|
86105
|
+
/**
|
|
86106
|
+
* How many subjects to return, 1–100. Defaults to 25.
|
|
86107
|
+
*/
|
|
86108
|
+
limit?: number
|
|
86109
|
+
/**
|
|
86110
|
+
* The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
|
|
86111
|
+
*/
|
|
86112
|
+
cursor?: string
|
|
86113
|
+
/**
|
|
86114
|
+
* ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
|
|
86115
|
+
*/
|
|
86116
|
+
last_activity_after?: string
|
|
86117
|
+
/**
|
|
86118
|
+
* ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
|
|
86119
|
+
*/
|
|
86120
|
+
last_activity_before?: string
|
|
86121
|
+
}
|
|
86122
|
+
|
|
86123
|
+
export interface PlaygroundWorkflowSubjectsListOutput {
|
|
86124
|
+
/**
|
|
86125
|
+
* This page of subjects, most recently active first
|
|
86126
|
+
*/
|
|
86127
|
+
items: {
|
|
86128
|
+
/**
|
|
86129
|
+
* Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
|
|
86130
|
+
*/
|
|
86131
|
+
subject_key: string
|
|
86132
|
+
/**
|
|
86133
|
+
* Human-readable name of the subject
|
|
86134
|
+
*/
|
|
86135
|
+
display_name: string
|
|
86136
|
+
/**
|
|
86137
|
+
* ISO-8601 instant (UTC) of the subject last activity
|
|
86138
|
+
*/
|
|
86139
|
+
last_activity_at: string
|
|
86140
|
+
}[]
|
|
86141
|
+
/**
|
|
86142
|
+
* Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
|
|
86143
|
+
*/
|
|
86144
|
+
has_more: boolean
|
|
86145
|
+
/**
|
|
86146
|
+
* Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
|
|
86147
|
+
*/
|
|
86148
|
+
next_cursor: (string | null)
|
|
86149
|
+
}
|
|
86150
|
+
|
|
86104
86151
|
export interface PlaygroundWsEchoInput {
|
|
86105
86152
|
|
|
86106
86153
|
}
|
|
@@ -111004,6 +111051,57 @@ has_more: boolean
|
|
|
111004
111051
|
next_cursor: (string | null)
|
|
111005
111052
|
}
|
|
111006
111053
|
|
|
111054
|
+
export interface WorkflowCapListInput {
|
|
111055
|
+
|
|
111056
|
+
}
|
|
111057
|
+
|
|
111058
|
+
export interface WorkflowCapListOutput {
|
|
111059
|
+
items: {
|
|
111060
|
+
/**
|
|
111061
|
+
* Spent in the window running now. Null when the key is contested — the runs spent against several different windows and no one number is the truth.
|
|
111062
|
+
*/
|
|
111063
|
+
used: (number | null)
|
|
111064
|
+
/**
|
|
111065
|
+
* Null when the declarations disagree.
|
|
111066
|
+
*/
|
|
111067
|
+
limit: (number | null)
|
|
111068
|
+
/**
|
|
111069
|
+
* Null when the declarations disagree: no single window is true for the key.
|
|
111070
|
+
*/
|
|
111071
|
+
window: (string | null)
|
|
111072
|
+
cap_key: string
|
|
111073
|
+
/**
|
|
111074
|
+
* `limit - used`, or null when either is unknown.
|
|
111075
|
+
*/
|
|
111076
|
+
remaining: (number | null)
|
|
111077
|
+
/**
|
|
111078
|
+
* Who shares this budget. Empty for a key that has counters but no live declaration.
|
|
111079
|
+
*/
|
|
111080
|
+
workflows: {
|
|
111081
|
+
name: string
|
|
111082
|
+
/**
|
|
111083
|
+
* What THIS workflow declared.
|
|
111084
|
+
*/
|
|
111085
|
+
limit: number
|
|
111086
|
+
/**
|
|
111087
|
+
* What THIS workflow declared. Always true, even when the key is contested.
|
|
111088
|
+
*/
|
|
111089
|
+
window: string
|
|
111090
|
+
/**
|
|
111091
|
+
* The cap node in that workflow’s live version, loop bodies included.
|
|
111092
|
+
*/
|
|
111093
|
+
node_id: string
|
|
111094
|
+
version: number
|
|
111095
|
+
workflow_id: string
|
|
111096
|
+
}[]
|
|
111097
|
+
/**
|
|
111098
|
+
* Two live workflows declare different budgets under this one key.
|
|
111099
|
+
*/
|
|
111100
|
+
conflicting: boolean
|
|
111101
|
+
window_start: (string | null)
|
|
111102
|
+
}[]
|
|
111103
|
+
}
|
|
111104
|
+
|
|
111007
111105
|
export interface WorkflowCapabilityGetInput {
|
|
111008
111106
|
/**
|
|
111009
111107
|
* Tool name of an action (e.g. "mail_email_send") or event name of a trigger.
|
|
@@ -112375,6 +112473,10 @@ started_at: (string | null)
|
|
|
112375
112473
|
held_reason?: {
|
|
112376
112474
|
[k: string]: unknown
|
|
112377
112475
|
}
|
|
112476
|
+
/**
|
|
112477
|
+
* Who this run is about, rendered once from the definition’s `subject` at run start and frozen. Null when the workflow declares no subject.
|
|
112478
|
+
*/
|
|
112479
|
+
subject_key: (string | null)
|
|
112378
112480
|
workflow_id: string
|
|
112379
112481
|
trigger_event_id: string
|
|
112380
112482
|
replay_generation: number
|
|
@@ -112402,6 +112504,10 @@ started_at: (string | null)
|
|
|
112402
112504
|
held_reason?: {
|
|
112403
112505
|
[k: string]: unknown
|
|
112404
112506
|
}
|
|
112507
|
+
/**
|
|
112508
|
+
* Who this run is about, rendered once from the definition’s `subject` at run start and frozen. Null when the workflow declares no subject.
|
|
112509
|
+
*/
|
|
112510
|
+
subject_key: (string | null)
|
|
112405
112511
|
workflow_id: string
|
|
112406
112512
|
trigger_event_id: string
|
|
112407
112513
|
replay_generation: number
|
|
@@ -112449,6 +112555,10 @@ limit?: number
|
|
|
112449
112555
|
*/
|
|
112450
112556
|
cursor?: string
|
|
112451
112557
|
status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112558
|
+
/**
|
|
112559
|
+
* Every run about one subject — the frozen key, not the template.
|
|
112560
|
+
*/
|
|
112561
|
+
subject_key?: string
|
|
112452
112562
|
workflow_id?: string
|
|
112453
112563
|
}
|
|
112454
112564
|
|
|
@@ -112470,6 +112580,10 @@ started_at: (string | null)
|
|
|
112470
112580
|
held_reason?: {
|
|
112471
112581
|
[k: string]: unknown
|
|
112472
112582
|
}
|
|
112583
|
+
/**
|
|
112584
|
+
* Who this run is about, rendered once from the definition’s `subject` at run start and frozen. Null when the workflow declares no subject.
|
|
112585
|
+
*/
|
|
112586
|
+
subject_key: (string | null)
|
|
112473
112587
|
workflow_id: string
|
|
112474
112588
|
trigger_event_id: string
|
|
112475
112589
|
replay_generation: number
|
|
@@ -112502,6 +112616,10 @@ started_at: (string | null)
|
|
|
112502
112616
|
held_reason?: {
|
|
112503
112617
|
[k: string]: unknown
|
|
112504
112618
|
}
|
|
112619
|
+
/**
|
|
112620
|
+
* Who this run is about, rendered once from the definition’s `subject` at run start and frozen. Null when the workflow declares no subject.
|
|
112621
|
+
*/
|
|
112622
|
+
subject_key: (string | null)
|
|
112505
112623
|
workflow_id: string
|
|
112506
112624
|
trigger_event_id: string
|
|
112507
112625
|
replay_generation: number
|
|
@@ -112638,6 +112756,10 @@ started_at: (string | null)
|
|
|
112638
112756
|
held_reason?: {
|
|
112639
112757
|
[k: string]: unknown
|
|
112640
112758
|
}
|
|
112759
|
+
/**
|
|
112760
|
+
* Who this run is about, rendered once from the definition’s `subject` at run start and frozen. Null when the workflow declares no subject.
|
|
112761
|
+
*/
|
|
112762
|
+
subject_key: (string | null)
|
|
112641
112763
|
workflow_id: string
|
|
112642
112764
|
trigger_event_id: string
|
|
112643
112765
|
replay_generation: number
|
|
@@ -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, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowGrantRequestOutput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen';
|
|
3
|
+
export type { WorkflowCapListInput, WorkflowCapListOutput, 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, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowGrantRequestOutput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
import type { GeneratedClient } from '../client.gen';
|
|
3
3
|
import type {
|
|
4
|
+
WorkflowCapListInput,
|
|
5
|
+
WorkflowCapListOutput,
|
|
4
6
|
WorkflowCapabilityGetInput,
|
|
5
7
|
WorkflowCapabilityGetOutput,
|
|
6
8
|
WorkflowCapabilityListInput,
|
|
@@ -61,6 +63,11 @@ import type {
|
|
|
61
63
|
WorkflowWaitResolveInput,
|
|
62
64
|
} from '../types.gen';
|
|
63
65
|
|
|
66
|
+
export const workflowCapListQueryOptions = (sdk: GeneratedClient, input: WorkflowCapListInput) => ({
|
|
67
|
+
queryKey: ['workflow', 'cap', 'list', input] as const,
|
|
68
|
+
queryFn: () => sdk['workflow']['cap']['list'](input),
|
|
69
|
+
});
|
|
70
|
+
|
|
64
71
|
export const workflowCapabilityGetQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => ({
|
|
65
72
|
queryKey: ['workflow', 'capability', 'get', input] as const,
|
|
66
73
|
queryFn: () => sdk['workflow']['capability']['get'](input),
|