@lessly/sdk-app 96.0.0 → 96.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +1 -59
  2. package/dist/_types/gen/client.gen.d.ts +42 -6
  3. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  4. package/dist/_types/gen/organization/index.d.ts +1 -1
  5. package/dist/_types/gen/organization/queryOptions.gen.d.ts +8 -12
  6. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  7. package/dist/_types/gen/playground/index.d.ts +3 -0
  8. package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
  9. package/dist/_types/gen/types.gen.d.ts +340 -24
  10. package/dist/chunk-DVWGP4BN.js +11704 -0
  11. package/dist/chunk-DVWGP4BN.js.map +1 -0
  12. package/dist/index.cjs +251 -26
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +24 -11489
  15. package/dist/index.js.map +1 -1
  16. package/dist/organization/index.cjs +10 -15
  17. package/dist/organization/index.cjs.map +1 -1
  18. package/dist/organization/index.js +9 -13
  19. package/dist/organization/index.js.map +1 -1
  20. package/dist/playground/index.cjs +106 -0
  21. package/dist/playground/index.cjs.map +1 -0
  22. package/dist/playground/index.d.cts +1 -0
  23. package/dist/playground/index.d.ts +1 -0
  24. package/dist/playground/index.js +78 -0
  25. package/dist/playground/index.js.map +1 -0
  26. package/package.json +12 -2
  27. package/src/gen/bindings.gen.ts +238 -24
  28. package/src/gen/client.gen.ts +79 -11
  29. package/src/gen/manifest.gen.ts +23 -4
  30. package/src/gen/organization/index.ts +1 -1
  31. package/src/gen/organization/queryOptions.gen.ts +11 -17
  32. package/src/gen/playground/connect.gen.ts +9 -0
  33. package/src/gen/playground/index.ts +4 -0
  34. package/src/gen/playground/queryOptions.gen.ts +119 -0
  35. package/src/gen/types.gen.ts +386 -28
@@ -3,11 +3,10 @@ import type { GeneratedClient } from '../client.gen';
3
3
  import type {
4
4
  OrganizationAuthMeInput,
5
5
  OrganizationAuthMeOutput,
6
- OrganizationBillingBudgetClearInput,
7
- OrganizationBillingBudgetResumeInput,
8
- OrganizationBillingBudgetSetInput,
9
6
  OrganizationBillingBudgetsGetInput,
10
7
  OrganizationBillingBudgetsGetOutput,
8
+ OrganizationBillingCapsClearInput,
9
+ OrganizationBillingCapsSetInput,
11
10
  OrganizationBindingsListInput,
12
11
  OrganizationBindingsListOutput,
13
12
  OrganizationClickupInstallInput,
@@ -133,24 +132,19 @@ export const organizationAuthMeQueryOptions = (sdk: GeneratedClient, input: Orga
133
132
  queryFn: () => sdk['organization']['auth']['me'](input),
134
133
  });
135
134
 
136
- export const organizationBillingBudgetClearMutationOptions = (sdk: GeneratedClient) => ({
137
- mutationKey: ['organization', 'billing-budget', 'clear'],
138
- mutationFn: (input: OrganizationBillingBudgetClearInput) => sdk['organization']['billing-budget']['clear'](input),
139
- });
140
-
141
- export const organizationBillingBudgetResumeMutationOptions = (sdk: GeneratedClient) => ({
142
- mutationKey: ['organization', 'billing-budget', 'resume'],
143
- mutationFn: (input: OrganizationBillingBudgetResumeInput) => sdk['organization']['billing-budget']['resume'](input),
135
+ export const organizationBillingBudgetsGetQueryOptions = (sdk: GeneratedClient, input: OrganizationBillingBudgetsGetInput) => ({
136
+ queryKey: ['organization', 'billing-budgets', 'get', input] as const,
137
+ queryFn: () => sdk['organization']['billing-budgets']['get'](input),
144
138
  });
145
139
 
146
- export const organizationBillingBudgetSetMutationOptions = (sdk: GeneratedClient) => ({
147
- mutationKey: ['organization', 'billing-budget', 'set'],
148
- mutationFn: (input: OrganizationBillingBudgetSetInput) => sdk['organization']['billing-budget']['set'](input),
140
+ export const organizationBillingCapsClearMutationOptions = (sdk: GeneratedClient) => ({
141
+ mutationKey: ['organization', 'billing-caps', 'clear'],
142
+ mutationFn: (input: OrganizationBillingCapsClearInput) => sdk['organization']['billing-caps']['clear'](input),
149
143
  });
150
144
 
151
- export const organizationBillingBudgetsGetQueryOptions = (sdk: GeneratedClient, input: OrganizationBillingBudgetsGetInput) => ({
152
- queryKey: ['organization', 'billing-budgets', 'get', input] as const,
153
- queryFn: () => sdk['organization']['billing-budgets']['get'](input),
145
+ export const organizationBillingCapsSetMutationOptions = (sdk: GeneratedClient) => ({
146
+ mutationKey: ['organization', 'billing-caps', 'set'],
147
+ mutationFn: (input: OrganizationBillingCapsSetInput) => sdk['organization']['billing-caps']['set'](input),
154
148
  });
155
149
 
156
150
  export const organizationBindingsListQueryOptions = (sdk: GeneratedClient, input: OrganizationBindingsListInput) => ({
@@ -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, PlaygroundEchoPingInput, PlaygroundEchoPingOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWorkflowEchoInput, PlaygroundWorkflowEchoListInput, PlaygroundWorkflowEchoListOutput, PlaygroundWorkflowEchoOutput, PlaygroundWorkflowPingInput, PlaygroundWorkflowPingOutput, PlaygroundWorkflowSubjectsListInput, PlaygroundWorkflowSubjectsListOutput, PlaygroundWsEchoInput } from '../types.gen';
@@ -0,0 +1,119 @@
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
+ PlaygroundEchoPingInput,
15
+ PlaygroundEchoPingOutput,
16
+ PlaygroundGdriveGetLastChangeInput,
17
+ PlaygroundGdriveGetLastChangeOutput,
18
+ PlaygroundGdriveReadFileInput,
19
+ PlaygroundGdriveReadFileOutput,
20
+ PlaygroundGoogleadsReadCustomerInput,
21
+ PlaygroundGoogleadsReadCustomerOutput,
22
+ PlaygroundLifecycleGetStateInput,
23
+ PlaygroundLifecycleGetStateOutput,
24
+ PlaygroundLifecycleListEventsInput,
25
+ PlaygroundLifecycleListEventsOutput,
26
+ PlaygroundWebhookGetLastInput,
27
+ PlaygroundWebhookGetLastOutput,
28
+ PlaygroundWorkflowEchoInput,
29
+ PlaygroundWorkflowEchoListInput,
30
+ PlaygroundWorkflowEchoListOutput,
31
+ PlaygroundWorkflowPingInput,
32
+ PlaygroundWorkflowSubjectsListInput,
33
+ PlaygroundWorkflowSubjectsListOutput,
34
+ } from '../types.gen';
35
+
36
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
37
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
38
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
39
+ });
40
+
41
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
42
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
43
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
44
+ });
45
+
46
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
47
+ mutationKey: ['playground', 'billing', 'record-usage'],
48
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
49
+ });
50
+
51
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
52
+ mutationKey: ['playground', 'clickup', 'create-task'],
53
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
54
+ });
55
+
56
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
57
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
58
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
59
+ });
60
+
61
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
62
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
63
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
64
+ });
65
+
66
+ export const playgroundEchoPingQueryOptions = (sdk: GeneratedClient, input: PlaygroundEchoPingInput) => ({
67
+ queryKey: ['playground', 'echo', 'ping', input] as const,
68
+ queryFn: () => sdk['playground']['echo']['ping'](input),
69
+ });
70
+
71
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
72
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
73
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
74
+ });
75
+
76
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
77
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
78
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
79
+ });
80
+
81
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
82
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
83
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
84
+ });
85
+
86
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
87
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
88
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
89
+ });
90
+
91
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
92
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
93
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
94
+ });
95
+
96
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
97
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
98
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
99
+ });
100
+
101
+ export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
102
+ mutationKey: ['playground', 'workflow', 'echo'],
103
+ mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
104
+ });
105
+
106
+ export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
107
+ queryKey: ['playground', 'workflow', 'echo-list', input] as const,
108
+ queryFn: () => sdk['playground']['workflow']['echo-list'](input),
109
+ });
110
+
111
+ export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
112
+ mutationKey: ['playground', 'workflow', 'ping'],
113
+ mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
114
+ });
115
+
116
+ export const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({
117
+ queryKey: ['playground', 'workflow', 'subjects-list', input] as const,
118
+ queryFn: () => sdk['playground']['workflow']['subjects-list'](input),
119
+ });
@@ -95554,42 +95554,28 @@ displayName: string
95554
95554
  identityType: string
95555
95555
  }
95556
95556
 
95557
- export interface OrganizationBillingBudgetClearInput {
95558
-
95559
- }
95560
-
95561
- export interface OrganizationBillingBudgetClearOutput {
95562
- [k: string]: unknown
95563
- }
95564
-
95565
- export interface OrganizationBillingBudgetResumeInput {
95557
+ export interface OrganizationBillingBudgetsGetInput {
95566
95558
 
95567
95559
  }
95568
95560
 
95569
- export interface OrganizationBillingBudgetResumeOutput {
95561
+ export interface OrganizationBillingBudgetsGetOutput {
95570
95562
  [k: string]: unknown
95571
95563
  }
95572
95564
 
95573
- export interface OrganizationBillingBudgetSetInput {
95574
- /**
95575
- * At 100%: "pause" stops chargeable compute and blocks new chargeable work until Resume; "alerts_only" only notifies. Default: "pause".
95576
- */
95577
- action?: ("pause" | "alerts_only")
95578
- /**
95579
- * Monthly limit for extra charges, in integer minor units of the organization currency. Example: 50000 = EUR 500.00.
95580
- */
95581
- amount_minor: number
95565
+ export interface OrganizationBillingCapsClearInput {
95566
+ productId: string
95582
95567
  }
95583
95568
 
95584
- export interface OrganizationBillingBudgetSetOutput {
95569
+ export interface OrganizationBillingCapsClearOutput {
95585
95570
  [k: string]: unknown
95586
95571
  }
95587
95572
 
95588
- export interface OrganizationBillingBudgetsGetInput {
95589
-
95573
+ export interface OrganizationBillingCapsSetInput {
95574
+ cap_minor: number
95575
+ productId: string
95590
95576
  }
95591
95577
 
95592
- export interface OrganizationBillingBudgetsGetOutput {
95578
+ export interface OrganizationBillingCapsSetOutput {
95593
95579
  [k: string]: unknown
95594
95580
  }
95595
95581
 
@@ -98827,6 +98813,378 @@ export interface OrganizationYoutubeInstallOutput {
98827
98813
  url: string
98828
98814
  }
98829
98815
 
98816
+ export interface PlaygroundAnalyticsOverviewInput {
98817
+ /**
98818
+ * Max records per entity in recent[]; omit for the endpoint default
98819
+ */
98820
+ limit?: number
98821
+ }
98822
+
98823
+ export interface PlaygroundAnalyticsOverviewOutput {
98824
+ ok: boolean
98825
+ minted: boolean
98826
+ overview?: unknown
98827
+ http_status: number
98828
+ }
98829
+
98830
+ export interface PlaygroundBillingEntitlementsInput {
98831
+
98832
+ }
98833
+
98834
+ export interface PlaygroundBillingEntitlementsOutput {
98835
+ ok: boolean
98836
+ minted: boolean
98837
+ http_status: number
98838
+ entitlements?: unknown
98839
+ }
98840
+
98841
+ export interface PlaygroundBillingRecordUsageInput {
98842
+ /**
98843
+ * Quantity of events to record against playground-events (SUM); defaults to 1
98844
+ */
98845
+ value?: number
98846
+ }
98847
+
98848
+ export interface PlaygroundBillingRecordUsageOutput {
98849
+ minted: boolean
98850
+ accepted: (number | null)
98851
+ recorded: boolean
98852
+ duplicates: (number | null)
98853
+ http_status: number
98854
+ }
98855
+
98856
+ export interface PlaygroundClickupCreateTaskInput {
98857
+ /**
98858
+ * Task title; defaults to a fixture label
98859
+ */
98860
+ name?: string
98861
+ /**
98862
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
98863
+ */
98864
+ listId?: string
98865
+ }
98866
+
98867
+ export interface PlaygroundClickupCreateTaskOutput {
98868
+ minted: boolean
98869
+ task_id: (string | null)
98870
+ list_status: number
98871
+ vend_status: number
98872
+ clickup_status: number
98873
+ installation_count: number
98874
+ }
98875
+
98876
+ export interface PlaygroundClickupGetLastWebhookInput {
98877
+
98878
+ }
98879
+
98880
+ export type PlaygroundClickupGetLastWebhookOutput = ({
98881
+ payload: string
98882
+ event_id: string
98883
+ provider: string
98884
+ verified: boolean
98885
+ product_id: string
98886
+ occurred_at: string
98887
+ connector_id: string
98888
+ clickup_event: (string | null)
98889
+ receipt_count: number
98890
+ } | {
98891
+ found: false
98892
+ })
98893
+
98894
+ export interface PlaygroundClickupGetOverviewInput {
98895
+
98896
+ }
98897
+
98898
+ export interface PlaygroundClickupGetOverviewOutput {
98899
+ team: ({
98900
+ teamId: string
98901
+ teamName: string
98902
+ } | null)
98903
+ lists: PlaygroundClickupGetOverviewOutputItems[]
98904
+ tasks: {
98905
+ id: string
98906
+ name: string
98907
+ status: (string | null)
98908
+ }[]
98909
+ minted: boolean
98910
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
98911
+ list_status: number
98912
+ vend_status: number
98913
+ lists_status: number
98914
+ tasks_status: number
98915
+ spaces_status: number
98916
+ folders_status: number
98917
+ installation_count: number
98918
+ }
98919
+ export interface PlaygroundClickupGetOverviewOutputItems {
98920
+ id: string
98921
+ name: string
98922
+ }
98923
+
98924
+ export interface PlaygroundEchoPingInput {
98925
+ /**
98926
+ * The text to echo back, 1–1024 characters
98927
+ */
98928
+ message: string
98929
+ }
98930
+
98931
+ export interface PlaygroundEchoPingOutput {
98932
+ /**
98933
+ * The message exactly as it was received
98934
+ */
98935
+ message: string
98936
+ /**
98937
+ * The product the call was resolved to
98938
+ */
98939
+ productId: string
98940
+ /**
98941
+ * ISO-8601 instant (UTC) at which the call reached the service
98942
+ */
98943
+ receivedAt: string
98944
+ }
98945
+
98946
+ export interface PlaygroundGdriveGetLastChangeInput {
98947
+
98948
+ }
98949
+
98950
+ export type PlaygroundGdriveGetLastChangeOutput = ({
98951
+ file_id: string
98952
+ removed: boolean
98953
+ file_name: (string | null)
98954
+ mime_type: (string | null)
98955
+ product_id: string
98956
+ occurred_at: string
98957
+ connector_id: string
98958
+ resource_state: string
98959
+ } | {
98960
+ found: false
98961
+ })
98962
+
98963
+ export interface PlaygroundGdriveReadFileInput {
98964
+ /**
98965
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
98966
+ */
98967
+ fileId?: string
98968
+ }
98969
+
98970
+ export interface PlaygroundGdriveReadFileOutput {
98971
+ minted: boolean
98972
+ file_id: (string | null)
98973
+ file_name: (string | null)
98974
+ mime_type: (string | null)
98975
+ file_count: number
98976
+ get_status: number
98977
+ list_status: number
98978
+ vend_status: number
98979
+ content_bytes: (number | null)
98980
+ }
98981
+
98982
+ export interface PlaygroundGoogleadsReadCustomerInput {
98983
+
98984
+ }
98985
+
98986
+ export interface PlaygroundGoogleadsReadCustomerOutput {
98987
+ minted: boolean
98988
+ vended: boolean
98989
+ customer_id: (string | null)
98990
+ vend_status: number
98991
+ result_count: number
98992
+ search_status: number
98993
+ login_customer_id: (string | null)
98994
+ }
98995
+
98996
+ export interface PlaygroundLifecycleGetStateInput {
98997
+
98998
+ }
98999
+
99000
+ export interface PlaygroundLifecycleGetStateOutput {
99001
+ blocked: boolean
99002
+ archived: boolean
99003
+ productId: string
99004
+ lastBlockTransition: ({
99005
+ eventId: string
99006
+ eventName: string
99007
+ productId: string
99008
+ occurredAt: string
99009
+ recordedAt: string
99010
+ receiptCount: number
99011
+ organizationId: string
99012
+ cascadedFromOrg: boolean
99013
+ } | null)
99014
+ lastArchiveTransition: ({
99015
+ eventId: string
99016
+ eventName: string
99017
+ productId: string
99018
+ occurredAt: string
99019
+ recordedAt: string
99020
+ receiptCount: number
99021
+ organizationId: string
99022
+ cascadedFromOrg: boolean
99023
+ } | null)
99024
+ }
99025
+
99026
+ export interface PlaygroundLifecycleListEventsInput {
99027
+
99028
+ }
99029
+
99030
+ export type PlaygroundLifecycleListEventsOutput = {
99031
+ eventId: string
99032
+ eventName: string
99033
+ productId: string
99034
+ occurredAt: string
99035
+ recordedAt: string
99036
+ receiptCount: number
99037
+ organizationId: string
99038
+ cascadedFromOrg: boolean
99039
+ }[]
99040
+
99041
+ export interface PlaygroundWebhookGetLastInput {
99042
+
99043
+ }
99044
+
99045
+ export type PlaygroundWebhookGetLastOutput = ({
99046
+ payload?: unknown
99047
+ event_id: string
99048
+ provider: string
99049
+ verified: boolean
99050
+ product_id: string
99051
+ occurred_at: string
99052
+ connector_id: string
99053
+ delivery_count: number
99054
+ } | {
99055
+ found: false
99056
+ })
99057
+
99058
+ export interface PlaygroundWorkflowEchoInput {
99059
+ /**
99060
+ * The text to store, 1–1024 characters
99061
+ */
99062
+ note: string
99063
+ /**
99064
+ * Optional labels stored alongside the note, at most 20
99065
+ *
99066
+ * @maxItems 20
99067
+ */
99068
+ 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]
99069
+ }
99070
+
99071
+ export interface PlaygroundWorkflowEchoOutput {
99072
+ /**
99073
+ * Identifier of the stored echo
99074
+ */
99075
+ id: string
99076
+ /**
99077
+ * The note exactly as it was received
99078
+ */
99079
+ note: string
99080
+ /**
99081
+ * The tags exactly as they were received
99082
+ */
99083
+ tags: string[]
99084
+ /**
99085
+ * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
99086
+ */
99087
+ echo_id: string
99088
+ /**
99089
+ * ISO-8601 instant (UTC) at which the echo was stored
99090
+ */
99091
+ received_at: string
99092
+ }
99093
+
99094
+ export interface PlaygroundWorkflowEchoListInput {
99095
+
99096
+ }
99097
+
99098
+ export type PlaygroundWorkflowEchoListOutput = {
99099
+ /**
99100
+ * Identifier of the stored echo
99101
+ */
99102
+ id: string
99103
+ /**
99104
+ * The note exactly as it was received
99105
+ */
99106
+ note: string
99107
+ /**
99108
+ * The tags exactly as they were received
99109
+ */
99110
+ tags: string[]
99111
+ /**
99112
+ * ISO-8601 instant (UTC) at which the echo was stored
99113
+ */
99114
+ received_at: string
99115
+ }[]
99116
+
99117
+ export interface PlaygroundWorkflowPingInput {
99118
+ /**
99119
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
99120
+ */
99121
+ kind?: string
99122
+ }
99123
+
99124
+ export interface PlaygroundWorkflowPingOutput {
99125
+ /**
99126
+ * 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.
99127
+ */
99128
+ id: string
99129
+ /**
99130
+ * The name of the event that was published
99131
+ */
99132
+ event: string
99133
+ }
99134
+
99135
+ export interface PlaygroundWorkflowSubjectsListInput {
99136
+ /**
99137
+ * How many subjects to return, 1–100. Defaults to 25.
99138
+ */
99139
+ limit?: number
99140
+ /**
99141
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
99142
+ */
99143
+ cursor?: string
99144
+ /**
99145
+ * 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.
99146
+ */
99147
+ last_activity_after?: string
99148
+ /**
99149
+ * 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.
99150
+ */
99151
+ last_activity_before?: string
99152
+ }
99153
+
99154
+ export interface PlaygroundWorkflowSubjectsListOutput {
99155
+ /**
99156
+ * This page of subjects, most recently active first
99157
+ */
99158
+ items: {
99159
+ /**
99160
+ * 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.
99161
+ */
99162
+ subject_key: string
99163
+ /**
99164
+ * Human-readable name of the subject
99165
+ */
99166
+ display_name: string
99167
+ /**
99168
+ * ISO-8601 instant (UTC) of the subject last activity
99169
+ */
99170
+ last_activity_at: string
99171
+ }[]
99172
+ /**
99173
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
99174
+ */
99175
+ has_more: boolean
99176
+ /**
99177
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
99178
+ */
99179
+ next_cursor: (string | null)
99180
+ }
99181
+
99182
+ export interface PlaygroundWsEchoInput {
99183
+
99184
+ }
99185
+
99186
+ export type PlaygroundWsEchoOutput = unknown;
99187
+
98830
99188
  export interface RealtimeArchiveExportInput {
98831
99189
  /**
98832
99190
  * Only entries with ts <= to_ts (epoch ms)
@@ -128996,7 +129354,7 @@ ended_at: (string | null)
128996
129354
  created_at: string
128997
129355
  started_at: (string | null)
128998
129356
  /**
128999
- * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
129357
+ * Why the run is held; null otherwise. Either `{ code, tool|name, nodeId, hint }` — a grant, a principal, an unsupported or missing capability — or, when billing refused, `{ code: "entitlement", error, reason, meter, pool, upgrade_url, nodeId, tool }`: `upgrade_url` is the way out, and `nodeId`/`tool` are null when the run was refused before any node ran.
129000
129358
  */
129001
129359
  held_reason?: {
129002
129360
  [k: string]: unknown
@@ -129027,7 +129385,7 @@ ended_at: (string | null)
129027
129385
  created_at: string
129028
129386
  started_at: (string | null)
129029
129387
  /**
129030
- * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
129388
+ * Why the run is held; null otherwise. Either `{ code, tool|name, nodeId, hint }` — a grant, a principal, an unsupported or missing capability — or, when billing refused, `{ code: "entitlement", error, reason, meter, pool, upgrade_url, nodeId, tool }`: `upgrade_url` is the way out, and `nodeId`/`tool` are null when the run was refused before any node ran.
129031
129389
  */
129032
129390
  held_reason?: {
129033
129391
  [k: string]: unknown
@@ -129116,7 +129474,7 @@ ended_at: (string | null)
129116
129474
  created_at: string
129117
129475
  started_at: (string | null)
129118
129476
  /**
129119
- * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
129477
+ * Why the run is held; null otherwise. Either `{ code, tool|name, nodeId, hint }` — a grant, a principal, an unsupported or missing capability — or, when billing refused, `{ code: "entitlement", error, reason, meter, pool, upgrade_url, nodeId, tool }`: `upgrade_url` is the way out, and `nodeId`/`tool` are null when the run was refused before any node ran.
129120
129478
  */
129121
129479
  held_reason?: {
129122
129480
  [k: string]: unknown
@@ -129152,7 +129510,7 @@ ended_at: (string | null)
129152
129510
  created_at: string
129153
129511
  started_at: (string | null)
129154
129512
  /**
129155
- * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
129513
+ * Why the run is held; null otherwise. Either `{ code, tool|name, nodeId, hint }` — a grant, a principal, an unsupported or missing capability — or, when billing refused, `{ code: "entitlement", error, reason, meter, pool, upgrade_url, nodeId, tool }`: `upgrade_url` is the way out, and `nodeId`/`tool` are null when the run was refused before any node ran.
129156
129514
  */
129157
129515
  held_reason?: {
129158
129516
  [k: string]: unknown
@@ -129296,7 +129654,7 @@ ended_at: (string | null)
129296
129654
  created_at: string
129297
129655
  started_at: (string | null)
129298
129656
  /**
129299
- * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
129657
+ * Why the run is held; null otherwise. Either `{ code, tool|name, nodeId, hint }` — a grant, a principal, an unsupported or missing capability — or, when billing refused, `{ code: "entitlement", error, reason, meter, pool, upgrade_url, nodeId, tool }`: `upgrade_url` is the way out, and `nodeId`/`tool` are null when the run was refused before any node ran.
129300
129658
  */
129301
129659
  held_reason?: {
129302
129660
  [k: string]: unknown