@lessly/sdk-app 65.1.0 → 66.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.
- package/dist/_types/gen/client.gen.d.ts +35 -1
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
- package/dist/_types/gen/playground/index.d.ts +3 -0
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +62 -0
- package/dist/_types/gen/types.gen.d.ts +347 -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-ORP3C4MA.js +11098 -0
- package/dist/chunk-ORP3C4MA.js.map +1 -0
- package/dist/index.cjs +199 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -10907
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs +96 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +1 -0
- package/dist/playground/index.d.ts +1 -0
- package/dist/playground/index.js +70 -0
- package/dist/playground/index.js.map +1 -0
- 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 +12 -2
- package/src/gen/bindings.gen.ts +189 -1
- package/src/gen/client.gen.ts +66 -0
- package/src/gen/manifest.gen.ts +19 -1
- package/src/gen/playground/connect.gen.ts +9 -0
- package/src/gen/playground/index.ts +4 -0
- package/src/gen/playground/queryOptions.gen.ts +105 -0
- package/src/gen/types.gen.ts +391 -0
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +6 -0
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
import type { ToolLevel, ToolComposition } from '../runtime/types';
|
|
3
3
|
|
|
4
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist', 'workflow'] as const;
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist', 'workflow'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -391,6 +391,21 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
391
391
|
'organization_support_threads_list': 'read',
|
|
392
392
|
'organization_x_install': 'read',
|
|
393
393
|
'organization_youtube_install': 'read',
|
|
394
|
+
'playground_analytics_overview': 'read',
|
|
395
|
+
'playground_billing_entitlements': 'read',
|
|
396
|
+
'playground_billing_record-usage': 'write',
|
|
397
|
+
'playground_clickup_create-task': 'write',
|
|
398
|
+
'playground_clickup_get-last-webhook': 'read',
|
|
399
|
+
'playground_clickup_get-overview': 'read',
|
|
400
|
+
'playground_gdrive_get-last-change': 'read',
|
|
401
|
+
'playground_gdrive_read-file': 'read',
|
|
402
|
+
'playground_googleads_read-customer': 'read',
|
|
403
|
+
'playground_lifecycle_get-state': 'read',
|
|
404
|
+
'playground_lifecycle_list-events': 'read',
|
|
405
|
+
'playground_webhook_get-last': 'read',
|
|
406
|
+
'playground_workflow_echo': 'write',
|
|
407
|
+
'playground_workflow_echo-list': 'read',
|
|
408
|
+
'playground_workflow_ping': 'write',
|
|
394
409
|
'realtime_archive_export': 'admin',
|
|
395
410
|
'realtime_archive_export_status': 'read',
|
|
396
411
|
'realtime_archive_get': 'read',
|
|
@@ -568,6 +583,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
568
583
|
'workflow_definition_validate': 'read',
|
|
569
584
|
'workflow_dependency_list': 'read',
|
|
570
585
|
'workflow_grant_list': 'read',
|
|
586
|
+
'workflow_grant_request': 'write',
|
|
571
587
|
'workflow_health_list': 'read',
|
|
572
588
|
'workflow_health_ping': 'read',
|
|
573
589
|
'workflow_killswitch_get': 'read',
|
|
@@ -622,4 +638,6 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
622
638
|
'mail_template_publish': {"label":"Publish template"},
|
|
623
639
|
'mail_template_update': {"label":"Update template"},
|
|
624
640
|
'mail_usage_get': {"label":"Get usage"},
|
|
641
|
+
'playground_workflow_echo': {"pii":["input.note"],"label":"Store workflow echo"},
|
|
642
|
+
'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
|
|
625
643
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import { wsBindings } from '../bindings.gen';
|
|
3
|
+
import type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';
|
|
4
|
+
import type {
|
|
5
|
+
PlaygroundWsEchoInput,
|
|
6
|
+
} from '../types.gen';
|
|
7
|
+
|
|
8
|
+
export const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>
|
|
9
|
+
sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export * from './connect.gen';
|
|
4
|
+
export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWorkflowEchoInput, PlaygroundWorkflowEchoListInput, PlaygroundWorkflowEchoListOutput, PlaygroundWorkflowEchoOutput, PlaygroundWorkflowPingInput, PlaygroundWorkflowPingOutput, PlaygroundWsEchoInput } from '../types.gen';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
PlaygroundAnalyticsOverviewInput,
|
|
5
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
6
|
+
PlaygroundBillingEntitlementsInput,
|
|
7
|
+
PlaygroundBillingEntitlementsOutput,
|
|
8
|
+
PlaygroundBillingRecordUsageInput,
|
|
9
|
+
PlaygroundClickupCreateTaskInput,
|
|
10
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
11
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
12
|
+
PlaygroundClickupGetOverviewInput,
|
|
13
|
+
PlaygroundClickupGetOverviewOutput,
|
|
14
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
15
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
16
|
+
PlaygroundGdriveReadFileInput,
|
|
17
|
+
PlaygroundGdriveReadFileOutput,
|
|
18
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
19
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
20
|
+
PlaygroundLifecycleGetStateInput,
|
|
21
|
+
PlaygroundLifecycleGetStateOutput,
|
|
22
|
+
PlaygroundLifecycleListEventsInput,
|
|
23
|
+
PlaygroundLifecycleListEventsOutput,
|
|
24
|
+
PlaygroundWebhookGetLastInput,
|
|
25
|
+
PlaygroundWebhookGetLastOutput,
|
|
26
|
+
PlaygroundWorkflowEchoInput,
|
|
27
|
+
PlaygroundWorkflowEchoListInput,
|
|
28
|
+
PlaygroundWorkflowEchoListOutput,
|
|
29
|
+
PlaygroundWorkflowPingInput,
|
|
30
|
+
} from '../types.gen';
|
|
31
|
+
|
|
32
|
+
export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
|
|
33
|
+
queryKey: ['playground', 'analytics', 'overview', input] as const,
|
|
34
|
+
queryFn: () => sdk['playground']['analytics']['overview'](input),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
|
|
38
|
+
queryKey: ['playground', 'billing', 'entitlements', input] as const,
|
|
39
|
+
queryFn: () => sdk['playground']['billing']['entitlements'](input),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
|
|
43
|
+
mutationKey: ['playground', 'billing', 'record-usage'],
|
|
44
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
|
|
48
|
+
mutationKey: ['playground', 'clickup', 'create-task'],
|
|
49
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
|
|
53
|
+
queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
|
|
54
|
+
queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
|
|
58
|
+
queryKey: ['playground', 'clickup', 'get-overview', input] as const,
|
|
59
|
+
queryFn: () => sdk['playground']['clickup']['get-overview'](input),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
|
|
63
|
+
queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
|
|
64
|
+
queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
|
|
68
|
+
queryKey: ['playground', 'gdrive', 'read-file', input] as const,
|
|
69
|
+
queryFn: () => sdk['playground']['gdrive']['read-file'](input),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
|
|
73
|
+
queryKey: ['playground', 'googleads', 'read-customer', input] as const,
|
|
74
|
+
queryFn: () => sdk['playground']['googleads']['read-customer'](input),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
|
|
78
|
+
queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
|
|
79
|
+
queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
|
|
83
|
+
queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
|
|
84
|
+
queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
|
|
88
|
+
queryKey: ['playground', 'webhook', 'get-last', input] as const,
|
|
89
|
+
queryFn: () => sdk['playground']['webhook']['get-last'](input),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
|
|
93
|
+
mutationKey: ['playground', 'workflow', 'echo'],
|
|
94
|
+
mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
|
|
98
|
+
queryKey: ['playground', 'workflow', 'echo-list', input] as const,
|
|
99
|
+
queryFn: () => sdk['playground']['workflow']['echo-list'](input),
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
|
|
103
|
+
mutationKey: ['playground', 'workflow', 'ping'],
|
|
104
|
+
mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
|
|
105
|
+
});
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -85804,6 +85804,305 @@ export interface OrganizationYoutubeInstallOutput {
|
|
|
85804
85804
|
url: string
|
|
85805
85805
|
}
|
|
85806
85806
|
|
|
85807
|
+
export interface PlaygroundAnalyticsOverviewInput {
|
|
85808
|
+
/**
|
|
85809
|
+
* Max records per entity in recent[]; omit for the endpoint default
|
|
85810
|
+
*/
|
|
85811
|
+
limit?: number
|
|
85812
|
+
}
|
|
85813
|
+
|
|
85814
|
+
export interface PlaygroundAnalyticsOverviewOutput {
|
|
85815
|
+
ok: boolean
|
|
85816
|
+
minted: boolean
|
|
85817
|
+
overview?: unknown
|
|
85818
|
+
http_status: number
|
|
85819
|
+
}
|
|
85820
|
+
|
|
85821
|
+
export interface PlaygroundBillingEntitlementsInput {
|
|
85822
|
+
|
|
85823
|
+
}
|
|
85824
|
+
|
|
85825
|
+
export interface PlaygroundBillingEntitlementsOutput {
|
|
85826
|
+
ok: boolean
|
|
85827
|
+
minted: boolean
|
|
85828
|
+
http_status: number
|
|
85829
|
+
entitlements?: unknown
|
|
85830
|
+
}
|
|
85831
|
+
|
|
85832
|
+
export interface PlaygroundBillingRecordUsageInput {
|
|
85833
|
+
/**
|
|
85834
|
+
* Quantity of events to record against playground-events (SUM); defaults to 1
|
|
85835
|
+
*/
|
|
85836
|
+
value?: number
|
|
85837
|
+
}
|
|
85838
|
+
|
|
85839
|
+
export interface PlaygroundBillingRecordUsageOutput {
|
|
85840
|
+
minted: boolean
|
|
85841
|
+
accepted: (number | null)
|
|
85842
|
+
recorded: boolean
|
|
85843
|
+
duplicates: (number | null)
|
|
85844
|
+
http_status: number
|
|
85845
|
+
}
|
|
85846
|
+
|
|
85847
|
+
export interface PlaygroundClickupCreateTaskInput {
|
|
85848
|
+
/**
|
|
85849
|
+
* Task title; defaults to a fixture label
|
|
85850
|
+
*/
|
|
85851
|
+
name?: string
|
|
85852
|
+
/**
|
|
85853
|
+
* ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
|
|
85854
|
+
*/
|
|
85855
|
+
listId?: string
|
|
85856
|
+
}
|
|
85857
|
+
|
|
85858
|
+
export interface PlaygroundClickupCreateTaskOutput {
|
|
85859
|
+
minted: boolean
|
|
85860
|
+
task_id: (string | null)
|
|
85861
|
+
list_status: number
|
|
85862
|
+
vend_status: number
|
|
85863
|
+
clickup_status: number
|
|
85864
|
+
installation_count: number
|
|
85865
|
+
}
|
|
85866
|
+
|
|
85867
|
+
export interface PlaygroundClickupGetLastWebhookInput {
|
|
85868
|
+
|
|
85869
|
+
}
|
|
85870
|
+
|
|
85871
|
+
export type PlaygroundClickupGetLastWebhookOutput = ({
|
|
85872
|
+
payload: string
|
|
85873
|
+
event_id: string
|
|
85874
|
+
provider: string
|
|
85875
|
+
verified: boolean
|
|
85876
|
+
product_id: string
|
|
85877
|
+
occurred_at: string
|
|
85878
|
+
connector_id: string
|
|
85879
|
+
clickup_event: (string | null)
|
|
85880
|
+
receipt_count: number
|
|
85881
|
+
} | {
|
|
85882
|
+
found: false
|
|
85883
|
+
})
|
|
85884
|
+
|
|
85885
|
+
export interface PlaygroundClickupGetOverviewInput {
|
|
85886
|
+
|
|
85887
|
+
}
|
|
85888
|
+
|
|
85889
|
+
export interface PlaygroundClickupGetOverviewOutput {
|
|
85890
|
+
team: ({
|
|
85891
|
+
teamId: string
|
|
85892
|
+
teamName: string
|
|
85893
|
+
} | null)
|
|
85894
|
+
lists: PlaygroundClickupGetOverviewOutputItems[]
|
|
85895
|
+
tasks: {
|
|
85896
|
+
id: string
|
|
85897
|
+
name: string
|
|
85898
|
+
status: (string | null)
|
|
85899
|
+
}[]
|
|
85900
|
+
minted: boolean
|
|
85901
|
+
spaces: PlaygroundClickupGetOverviewOutputItems[]
|
|
85902
|
+
list_status: number
|
|
85903
|
+
vend_status: number
|
|
85904
|
+
lists_status: number
|
|
85905
|
+
tasks_status: number
|
|
85906
|
+
spaces_status: number
|
|
85907
|
+
folders_status: number
|
|
85908
|
+
installation_count: number
|
|
85909
|
+
}
|
|
85910
|
+
export interface PlaygroundClickupGetOverviewOutputItems {
|
|
85911
|
+
id: string
|
|
85912
|
+
name: string
|
|
85913
|
+
}
|
|
85914
|
+
|
|
85915
|
+
export interface PlaygroundGdriveGetLastChangeInput {
|
|
85916
|
+
|
|
85917
|
+
}
|
|
85918
|
+
|
|
85919
|
+
export type PlaygroundGdriveGetLastChangeOutput = ({
|
|
85920
|
+
file_id: string
|
|
85921
|
+
removed: boolean
|
|
85922
|
+
file_name: (string | null)
|
|
85923
|
+
mime_type: (string | null)
|
|
85924
|
+
product_id: string
|
|
85925
|
+
occurred_at: string
|
|
85926
|
+
connector_id: string
|
|
85927
|
+
resource_state: string
|
|
85928
|
+
} | {
|
|
85929
|
+
found: false
|
|
85930
|
+
})
|
|
85931
|
+
|
|
85932
|
+
export interface PlaygroundGdriveReadFileInput {
|
|
85933
|
+
/**
|
|
85934
|
+
* Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
|
|
85935
|
+
*/
|
|
85936
|
+
fileId?: string
|
|
85937
|
+
}
|
|
85938
|
+
|
|
85939
|
+
export interface PlaygroundGdriveReadFileOutput {
|
|
85940
|
+
minted: boolean
|
|
85941
|
+
file_id: (string | null)
|
|
85942
|
+
file_name: (string | null)
|
|
85943
|
+
mime_type: (string | null)
|
|
85944
|
+
file_count: number
|
|
85945
|
+
get_status: number
|
|
85946
|
+
list_status: number
|
|
85947
|
+
vend_status: number
|
|
85948
|
+
content_bytes: (number | null)
|
|
85949
|
+
}
|
|
85950
|
+
|
|
85951
|
+
export interface PlaygroundGoogleadsReadCustomerInput {
|
|
85952
|
+
|
|
85953
|
+
}
|
|
85954
|
+
|
|
85955
|
+
export interface PlaygroundGoogleadsReadCustomerOutput {
|
|
85956
|
+
minted: boolean
|
|
85957
|
+
vended: boolean
|
|
85958
|
+
customer_id: (string | null)
|
|
85959
|
+
vend_status: number
|
|
85960
|
+
result_count: number
|
|
85961
|
+
search_status: number
|
|
85962
|
+
login_customer_id: (string | null)
|
|
85963
|
+
}
|
|
85964
|
+
|
|
85965
|
+
export interface PlaygroundLifecycleGetStateInput {
|
|
85966
|
+
|
|
85967
|
+
}
|
|
85968
|
+
|
|
85969
|
+
export interface PlaygroundLifecycleGetStateOutput {
|
|
85970
|
+
blocked: boolean
|
|
85971
|
+
archived: boolean
|
|
85972
|
+
productId: string
|
|
85973
|
+
lastBlockTransition: ({
|
|
85974
|
+
eventId: string
|
|
85975
|
+
eventName: string
|
|
85976
|
+
productId: string
|
|
85977
|
+
occurredAt: string
|
|
85978
|
+
recordedAt: string
|
|
85979
|
+
receiptCount: number
|
|
85980
|
+
organizationId: string
|
|
85981
|
+
cascadedFromOrg: boolean
|
|
85982
|
+
} | null)
|
|
85983
|
+
lastArchiveTransition: ({
|
|
85984
|
+
eventId: string
|
|
85985
|
+
eventName: string
|
|
85986
|
+
productId: string
|
|
85987
|
+
occurredAt: string
|
|
85988
|
+
recordedAt: string
|
|
85989
|
+
receiptCount: number
|
|
85990
|
+
organizationId: string
|
|
85991
|
+
cascadedFromOrg: boolean
|
|
85992
|
+
} | null)
|
|
85993
|
+
}
|
|
85994
|
+
|
|
85995
|
+
export interface PlaygroundLifecycleListEventsInput {
|
|
85996
|
+
|
|
85997
|
+
}
|
|
85998
|
+
|
|
85999
|
+
export type PlaygroundLifecycleListEventsOutput = {
|
|
86000
|
+
eventId: string
|
|
86001
|
+
eventName: string
|
|
86002
|
+
productId: string
|
|
86003
|
+
occurredAt: string
|
|
86004
|
+
recordedAt: string
|
|
86005
|
+
receiptCount: number
|
|
86006
|
+
organizationId: string
|
|
86007
|
+
cascadedFromOrg: boolean
|
|
86008
|
+
}[]
|
|
86009
|
+
|
|
86010
|
+
export interface PlaygroundWebhookGetLastInput {
|
|
86011
|
+
|
|
86012
|
+
}
|
|
86013
|
+
|
|
86014
|
+
export type PlaygroundWebhookGetLastOutput = ({
|
|
86015
|
+
payload?: unknown
|
|
86016
|
+
event_id: string
|
|
86017
|
+
provider: string
|
|
86018
|
+
verified: boolean
|
|
86019
|
+
product_id: string
|
|
86020
|
+
occurred_at: string
|
|
86021
|
+
connector_id: string
|
|
86022
|
+
delivery_count: number
|
|
86023
|
+
} | {
|
|
86024
|
+
found: false
|
|
86025
|
+
})
|
|
86026
|
+
|
|
86027
|
+
export interface PlaygroundWorkflowEchoInput {
|
|
86028
|
+
/**
|
|
86029
|
+
* The text to store, 1–1024 characters
|
|
86030
|
+
*/
|
|
86031
|
+
note: string
|
|
86032
|
+
/**
|
|
86033
|
+
* Optional labels stored alongside the note, at most 20
|
|
86034
|
+
*
|
|
86035
|
+
* @maxItems 20
|
|
86036
|
+
*/
|
|
86037
|
+
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]
|
|
86038
|
+
}
|
|
86039
|
+
|
|
86040
|
+
export interface PlaygroundWorkflowEchoOutput {
|
|
86041
|
+
/**
|
|
86042
|
+
* Identifier of the stored echo
|
|
86043
|
+
*/
|
|
86044
|
+
id: string
|
|
86045
|
+
/**
|
|
86046
|
+
* The note exactly as it was received
|
|
86047
|
+
*/
|
|
86048
|
+
note: string
|
|
86049
|
+
/**
|
|
86050
|
+
* The tags exactly as they were received
|
|
86051
|
+
*/
|
|
86052
|
+
tags: string[]
|
|
86053
|
+
/**
|
|
86054
|
+
* ISO-8601 instant (UTC) at which the echo was stored
|
|
86055
|
+
*/
|
|
86056
|
+
received_at: string
|
|
86057
|
+
}
|
|
86058
|
+
|
|
86059
|
+
export interface PlaygroundWorkflowEchoListInput {
|
|
86060
|
+
|
|
86061
|
+
}
|
|
86062
|
+
|
|
86063
|
+
export type PlaygroundWorkflowEchoListOutput = {
|
|
86064
|
+
/**
|
|
86065
|
+
* Identifier of the stored echo
|
|
86066
|
+
*/
|
|
86067
|
+
id: string
|
|
86068
|
+
/**
|
|
86069
|
+
* The note exactly as it was received
|
|
86070
|
+
*/
|
|
86071
|
+
note: string
|
|
86072
|
+
/**
|
|
86073
|
+
* The tags exactly as they were received
|
|
86074
|
+
*/
|
|
86075
|
+
tags: string[]
|
|
86076
|
+
/**
|
|
86077
|
+
* ISO-8601 instant (UTC) at which the echo was stored
|
|
86078
|
+
*/
|
|
86079
|
+
received_at: string
|
|
86080
|
+
}[]
|
|
86081
|
+
|
|
86082
|
+
export interface PlaygroundWorkflowPingInput {
|
|
86083
|
+
/**
|
|
86084
|
+
* Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
|
|
86085
|
+
*/
|
|
86086
|
+
kind?: string
|
|
86087
|
+
}
|
|
86088
|
+
|
|
86089
|
+
export interface PlaygroundWorkflowPingOutput {
|
|
86090
|
+
/**
|
|
86091
|
+
* 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.
|
|
86092
|
+
*/
|
|
86093
|
+
id: string
|
|
86094
|
+
/**
|
|
86095
|
+
* The name of the event that was published
|
|
86096
|
+
*/
|
|
86097
|
+
event: string
|
|
86098
|
+
}
|
|
86099
|
+
|
|
86100
|
+
export interface PlaygroundWsEchoInput {
|
|
86101
|
+
|
|
86102
|
+
}
|
|
86103
|
+
|
|
86104
|
+
export type PlaygroundWsEchoOutput = unknown;
|
|
86105
|
+
|
|
85807
86106
|
export interface RealtimeArchiveExportInput {
|
|
85808
86107
|
/**
|
|
85809
86108
|
* Only entries with ts <= to_ts (epoch ms)
|
|
@@ -110875,6 +111174,10 @@ draft: ({
|
|
|
110875
111174
|
* The workflow principal's grants; null when Governance could not be reached.
|
|
110876
111175
|
*/
|
|
110877
111176
|
grants: ({
|
|
111177
|
+
/**
|
|
111178
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
111179
|
+
*/
|
|
111180
|
+
hint: (string | null)
|
|
110878
111181
|
grants: {
|
|
110879
111182
|
/**
|
|
110880
111183
|
* "approved" is the only status a call gets through on.
|
|
@@ -110891,6 +111194,10 @@ sponsor_member_id: (string | null)
|
|
|
110891
111194
|
* Tool keys asked for and waiting on a human.
|
|
110892
111195
|
*/
|
|
110893
111196
|
pending: string[]
|
|
111197
|
+
/**
|
|
111198
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
111199
|
+
*/
|
|
111200
|
+
revoked: string[]
|
|
110894
111201
|
/**
|
|
110895
111202
|
* Tool keys the workflow may call right now.
|
|
110896
111203
|
*/
|
|
@@ -111129,6 +111436,10 @@ draft: ({
|
|
|
111129
111436
|
* The workflow principal's grants; null when Governance could not be reached.
|
|
111130
111437
|
*/
|
|
111131
111438
|
grants: ({
|
|
111439
|
+
/**
|
|
111440
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
111441
|
+
*/
|
|
111442
|
+
hint: (string | null)
|
|
111132
111443
|
grants: {
|
|
111133
111444
|
/**
|
|
111134
111445
|
* "approved" is the only status a call gets through on.
|
|
@@ -111145,6 +111456,10 @@ sponsor_member_id: (string | null)
|
|
|
111145
111456
|
* Tool keys asked for and waiting on a human.
|
|
111146
111457
|
*/
|
|
111147
111458
|
pending: string[]
|
|
111459
|
+
/**
|
|
111460
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
111461
|
+
*/
|
|
111462
|
+
revoked: string[]
|
|
111148
111463
|
/**
|
|
111149
111464
|
* Tool keys the workflow may call right now.
|
|
111150
111465
|
*/
|
|
@@ -111268,6 +111583,10 @@ draft: ({
|
|
|
111268
111583
|
* The workflow principal's grants; null when Governance could not be reached.
|
|
111269
111584
|
*/
|
|
111270
111585
|
grants: ({
|
|
111586
|
+
/**
|
|
111587
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
111588
|
+
*/
|
|
111589
|
+
hint: (string | null)
|
|
111271
111590
|
grants: {
|
|
111272
111591
|
/**
|
|
111273
111592
|
* "approved" is the only status a call gets through on.
|
|
@@ -111284,6 +111603,10 @@ sponsor_member_id: (string | null)
|
|
|
111284
111603
|
* Tool keys asked for and waiting on a human.
|
|
111285
111604
|
*/
|
|
111286
111605
|
pending: string[]
|
|
111606
|
+
/**
|
|
111607
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
111608
|
+
*/
|
|
111609
|
+
revoked: string[]
|
|
111287
111610
|
/**
|
|
111288
111611
|
* Tool keys the workflow may call right now.
|
|
111289
111612
|
*/
|
|
@@ -111441,6 +111764,10 @@ export interface WorkflowDefinitionPublishOutput {
|
|
|
111441
111764
|
* 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.
|
|
111442
111765
|
*/
|
|
111443
111766
|
grants: ({
|
|
111767
|
+
/**
|
|
111768
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
111769
|
+
*/
|
|
111770
|
+
hint: (string | null)
|
|
111444
111771
|
grants: {
|
|
111445
111772
|
/**
|
|
111446
111773
|
* "approved" is the only status a call gets through on.
|
|
@@ -111457,6 +111784,10 @@ sponsor_member_id: (string | null)
|
|
|
111457
111784
|
* Tool keys asked for and waiting on a human.
|
|
111458
111785
|
*/
|
|
111459
111786
|
pending: string[]
|
|
111787
|
+
/**
|
|
111788
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
111789
|
+
*/
|
|
111790
|
+
revoked: string[]
|
|
111460
111791
|
/**
|
|
111461
111792
|
* Tool keys the workflow may call right now.
|
|
111462
111793
|
*/
|
|
@@ -111508,6 +111839,10 @@ draft: ({
|
|
|
111508
111839
|
* The workflow principal's grants; null when Governance could not be reached.
|
|
111509
111840
|
*/
|
|
111510
111841
|
grants: ({
|
|
111842
|
+
/**
|
|
111843
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
111844
|
+
*/
|
|
111845
|
+
hint: (string | null)
|
|
111511
111846
|
grants: {
|
|
111512
111847
|
/**
|
|
111513
111848
|
* "approved" is the only status a call gets through on.
|
|
@@ -111524,6 +111859,10 @@ sponsor_member_id: (string | null)
|
|
|
111524
111859
|
* Tool keys asked for and waiting on a human.
|
|
111525
111860
|
*/
|
|
111526
111861
|
pending: string[]
|
|
111862
|
+
/**
|
|
111863
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
111864
|
+
*/
|
|
111865
|
+
revoked: string[]
|
|
111527
111866
|
/**
|
|
111528
111867
|
* Tool keys the workflow may call right now.
|
|
111529
111868
|
*/
|
|
@@ -111686,6 +112025,10 @@ workflow_id: string
|
|
|
111686
112025
|
}
|
|
111687
112026
|
|
|
111688
112027
|
export interface WorkflowGrantListOutput {
|
|
112028
|
+
/**
|
|
112029
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
112030
|
+
*/
|
|
112031
|
+
hint: (string | null)
|
|
111689
112032
|
grants: {
|
|
111690
112033
|
/**
|
|
111691
112034
|
* "approved" is the only status a call gets through on.
|
|
@@ -111702,6 +112045,54 @@ sponsor_member_id: (string | null)
|
|
|
111702
112045
|
* Tool keys asked for and waiting on a human.
|
|
111703
112046
|
*/
|
|
111704
112047
|
pending: string[]
|
|
112048
|
+
/**
|
|
112049
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
112050
|
+
*/
|
|
112051
|
+
revoked: string[]
|
|
112052
|
+
/**
|
|
112053
|
+
* Tool keys the workflow may call right now.
|
|
112054
|
+
*/
|
|
112055
|
+
effective: string[]
|
|
112056
|
+
workflow_id: string
|
|
112057
|
+
/**
|
|
112058
|
+
* Where a pending grant is approved, and by whom.
|
|
112059
|
+
*/
|
|
112060
|
+
approve_with: string
|
|
112061
|
+
/**
|
|
112062
|
+
* Tool keys that were approved and lost their sponsor.
|
|
112063
|
+
*/
|
|
112064
|
+
needs_sponsor: string[]
|
|
112065
|
+
}
|
|
112066
|
+
|
|
112067
|
+
export interface WorkflowGrantRequestInput {
|
|
112068
|
+
workflow_id: string
|
|
112069
|
+
}
|
|
112070
|
+
|
|
112071
|
+
export interface WorkflowGrantRequestOutput {
|
|
112072
|
+
/**
|
|
112073
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
112074
|
+
*/
|
|
112075
|
+
hint: (string | null)
|
|
112076
|
+
grants: {
|
|
112077
|
+
/**
|
|
112078
|
+
* "approved" is the only status a call gets through on.
|
|
112079
|
+
*/
|
|
112080
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor")
|
|
112081
|
+
tool_key: string
|
|
112082
|
+
approved_at: (string | null)
|
|
112083
|
+
/**
|
|
112084
|
+
* The member who vouches for the grant.
|
|
112085
|
+
*/
|
|
112086
|
+
sponsor_member_id: (string | null)
|
|
112087
|
+
}[]
|
|
112088
|
+
/**
|
|
112089
|
+
* Tool keys asked for and waiting on a human.
|
|
112090
|
+
*/
|
|
112091
|
+
pending: string[]
|
|
112092
|
+
/**
|
|
112093
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
112094
|
+
*/
|
|
112095
|
+
revoked: string[]
|
|
111705
112096
|
/**
|
|
111706
112097
|
* Tool keys the workflow may call right now.
|
|
111707
112098
|
*/
|
|
@@ -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, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, 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, 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, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen';
|
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
WorkflowDependencyListOutput,
|
|
30
30
|
WorkflowGrantListInput,
|
|
31
31
|
WorkflowGrantListOutput,
|
|
32
|
+
WorkflowGrantRequestInput,
|
|
32
33
|
WorkflowHealthListInput,
|
|
33
34
|
WorkflowHealthListOutput,
|
|
34
35
|
WorkflowHealthPingInput,
|
|
@@ -140,6 +141,11 @@ export const workflowGrantListQueryOptions = (sdk: GeneratedClient, input: Workf
|
|
|
140
141
|
queryFn: () => sdk['workflow']['grant']['list'](input),
|
|
141
142
|
});
|
|
142
143
|
|
|
144
|
+
export const workflowGrantRequestMutationOptions = (sdk: GeneratedClient) => ({
|
|
145
|
+
mutationKey: ['workflow', 'grant', 'request'],
|
|
146
|
+
mutationFn: (input: WorkflowGrantRequestInput) => sdk['workflow']['grant']['request'](input),
|
|
147
|
+
});
|
|
148
|
+
|
|
143
149
|
export const workflowHealthListQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthListInput) => ({
|
|
144
150
|
queryKey: ['workflow', 'health', 'list', input] as const,
|
|
145
151
|
queryFn: () => sdk['workflow']['health']['list'](input),
|