@lessly/sdk-app 105.10.0 → 105.11.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.
@@ -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
+ });
@@ -30,12 +30,6 @@ propertiesColumn: (string | null)
30
30
  }[]
31
31
  product_id: string
32
32
  generated_at: string
33
- dropped_metrics?: {
34
- type: string
35
- metric: string
36
- reason: ("type_unknown" | "aggregate_unknown" | "column_missing")
37
- view_name: string
38
- }[]
39
33
  }
40
34
 
41
35
  export interface AnalyticsDashboardCreateInput {
@@ -73909,6 +73903,10 @@ id: string
73909
73903
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
73910
73904
  */
73911
73905
  origin?: ("integration" | "manual")
73906
+ /**
73907
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
73908
+ */
73909
+ enabled: boolean
73912
73910
  /**
73913
73911
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
73914
73912
  */
@@ -73933,6 +73931,10 @@ connectorId: (string | null)
73933
73931
  * Human label for the channel.
73934
73932
  */
73935
73933
  displayName: string
73934
+ /**
73935
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
73936
+ */
73937
+ networkName: string
73936
73938
  /**
73937
73939
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
73938
73940
  */
@@ -73969,6 +73971,10 @@ id: string
73969
73971
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
73970
73972
  */
73971
73973
  origin?: ("integration" | "manual")
73974
+ /**
73975
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
73976
+ */
73977
+ enabled: boolean
73972
73978
  /**
73973
73979
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
73974
73980
  */
@@ -73993,6 +73999,10 @@ connectorId: (string | null)
73993
73999
  * Human label for the channel.
73994
74000
  */
73995
74001
  displayName: string
74002
+ /**
74003
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
74004
+ */
74005
+ networkName: string
73996
74006
  /**
73997
74007
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
73998
74008
  */
@@ -74045,6 +74055,10 @@ id: string
74045
74055
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
74046
74056
  */
74047
74057
  origin?: ("integration" | "manual")
74058
+ /**
74059
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
74060
+ */
74061
+ enabled: boolean
74048
74062
  /**
74049
74063
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
74050
74064
  */
@@ -74069,6 +74083,10 @@ connectorId: (string | null)
74069
74083
  * Human label for the channel.
74070
74084
  */
74071
74085
  displayName: string
74086
+ /**
74087
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
74088
+ */
74089
+ networkName: string
74072
74090
  /**
74073
74091
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
74074
74092
  */
@@ -74106,6 +74124,10 @@ id: string
74106
74124
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
74107
74125
  */
74108
74126
  origin?: ("integration" | "manual")
74127
+ /**
74128
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
74129
+ */
74130
+ enabled: boolean
74109
74131
  /**
74110
74132
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
74111
74133
  */
@@ -74130,6 +74152,10 @@ connectorId: (string | null)
74130
74152
  * Human label for the channel.
74131
74153
  */
74132
74154
  displayName: string
74155
+ /**
74156
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
74157
+ */
74158
+ networkName: string
74133
74159
  /**
74134
74160
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
74135
74161
  */
@@ -74166,6 +74192,10 @@ id: string
74166
74192
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
74167
74193
  */
74168
74194
  origin?: ("integration" | "manual")
74195
+ /**
74196
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
74197
+ */
74198
+ enabled: boolean
74169
74199
  /**
74170
74200
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
74171
74201
  */
@@ -74190,6 +74220,10 @@ connectorId: (string | null)
74190
74220
  * Human label for the channel.
74191
74221
  */
74192
74222
  displayName: string
74223
+ /**
74224
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
74225
+ */
74226
+ networkName: string
74193
74227
  /**
74194
74228
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
74195
74229
  */
@@ -74215,6 +74249,10 @@ export interface ContentChannelsUpdateInput {
74215
74249
  * The channel id returned by content_channels_list.
74216
74250
  */
74217
74251
  id: string
74252
+ /**
74253
+ * Turn a manual channel on (true) or off (false). Integration channels are always on: false is refused with channel_not_toggleable. A channel with publications still scheduled cannot be turned off: the call is refused with channel_has_scheduled until they are cancelled or have gone out. Omit to leave it as it is.
74254
+ */
74255
+ enabled?: boolean
74218
74256
  /**
74219
74257
  * New human label for the channel. Omit to keep the current one.
74220
74258
  */
@@ -74240,6 +74278,10 @@ id: string
74240
74278
  * integration: the channel appeared by itself from an account connected on the Integrations page. manual: a seeded channel, or one bound by hand.
74241
74279
  */
74242
74280
  origin?: ("integration" | "manual")
74281
+ /**
74282
+ * Whether this channel is in use. An integration channel is always true. A manual channel is true once someone turns it on with content_channels_update (a new product starts with every manual channel off). Nothing can be scheduled on a channel that is off: content_publications_schedule refuses it with channel_disabled.
74283
+ */
74284
+ enabled: boolean
74243
74285
  /**
74244
74286
  * Social network: linkedin, x, youtube, instagram, reddit, facebook, tiktok, threads, pinterest, bluesky or telegram.
74245
74287
  */
@@ -74264,6 +74306,10 @@ connectorId: (string | null)
74264
74306
  * Human label for the channel.
74265
74307
  */
74266
74308
  displayName: string
74309
+ /**
74310
+ * The network as a person names it — LinkedIn, X, YouTube. Use it to label a network; displayName is the account or channel name.
74311
+ */
74312
+ networkName: string
74267
74313
  /**
74268
74314
  * Why it paused: revoked (access was taken away), expired (the credential ran out), detached (the integration was detached from this product), removed (the integration was deleted), or the provider reason code from a failed publish. Null when healthy.
74269
74315
  */
@@ -92322,7 +92368,7 @@ issues: {
92322
92368
  /**
92323
92369
  * Stable machine code for what is wrong: text_empty, text_too_long, too_many_media, link_not_supported, multiple_links, media_missing, media_not_ready, media_not_supported, video_required, cost_unknown, daily_ceiling_exceeded, network_not_targeted (the post has no output for this channel's network, or variantId names another network's output), variant_required (the network has several outputs and no variantId was given — the message lists them), variant_not_found (variantId matches no output), post_type_not_supported, field_required, field_too_long (both carry the field as `fields.<id>`).
92324
92370
  */
92325
- code: ("text_empty" | "text_too_long" | "too_many_media" | "link_not_supported" | "multiple_links" | "media_missing" | "media_not_ready" | "media_not_supported" | "video_required" | "cost_unknown" | "daily_ceiling_exceeded" | "network_not_targeted" | "post_type_not_supported" | "field_required" | "field_too_long" | "variant_required" | "variant_not_found" | "cover_too_large" | "cover_not_supported")
92371
+ code: ("text_empty" | "text_too_long" | "too_many_media" | "link_not_supported" | "multiple_links" | "media_missing" | "media_not_ready" | "media_not_supported" | "video_required" | "cost_unknown" | "daily_ceiling_exceeded" | "network_not_targeted" | "post_type_not_supported" | "field_required" | "field_too_long" | "variant_required" | "variant_not_found" | "cover_too_large" | "cover_not_supported" | "channel_disabled")
92326
92372
  /**
92327
92373
  * Which input the issue is about, when it is about one.
92328
92374
  */
@@ -111711,6 +111757,378 @@ export interface OrganizationYoutubeInstallOutput {
111711
111757
  url: string
111712
111758
  }
111713
111759
 
111760
+ export interface PlaygroundAnalyticsOverviewInput {
111761
+ /**
111762
+ * Max records per entity in recent[]; omit for the endpoint default
111763
+ */
111764
+ limit?: number
111765
+ }
111766
+
111767
+ export interface PlaygroundAnalyticsOverviewOutput {
111768
+ ok: boolean
111769
+ minted: boolean
111770
+ overview?: unknown
111771
+ http_status: number
111772
+ }
111773
+
111774
+ export interface PlaygroundBillingEntitlementsInput {
111775
+
111776
+ }
111777
+
111778
+ export interface PlaygroundBillingEntitlementsOutput {
111779
+ ok: boolean
111780
+ minted: boolean
111781
+ http_status: number
111782
+ entitlements?: unknown
111783
+ }
111784
+
111785
+ export interface PlaygroundBillingRecordUsageInput {
111786
+ /**
111787
+ * Quantity of events to record against playground-events (SUM); defaults to 1
111788
+ */
111789
+ value?: number
111790
+ }
111791
+
111792
+ export interface PlaygroundBillingRecordUsageOutput {
111793
+ minted: boolean
111794
+ accepted: (number | null)
111795
+ recorded: boolean
111796
+ duplicates: (number | null)
111797
+ http_status: number
111798
+ }
111799
+
111800
+ export interface PlaygroundClickupCreateTaskInput {
111801
+ /**
111802
+ * Task title; defaults to a fixture label
111803
+ */
111804
+ name?: string
111805
+ /**
111806
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
111807
+ */
111808
+ listId?: string
111809
+ }
111810
+
111811
+ export interface PlaygroundClickupCreateTaskOutput {
111812
+ minted: boolean
111813
+ task_id: (string | null)
111814
+ list_status: number
111815
+ vend_status: number
111816
+ clickup_status: number
111817
+ installation_count: number
111818
+ }
111819
+
111820
+ export interface PlaygroundClickupGetLastWebhookInput {
111821
+
111822
+ }
111823
+
111824
+ export type PlaygroundClickupGetLastWebhookOutput = ({
111825
+ payload: string
111826
+ event_id: string
111827
+ provider: string
111828
+ verified: boolean
111829
+ product_id: string
111830
+ occurred_at: string
111831
+ connector_id: string
111832
+ clickup_event: (string | null)
111833
+ receipt_count: number
111834
+ } | {
111835
+ found: false
111836
+ })
111837
+
111838
+ export interface PlaygroundClickupGetOverviewInput {
111839
+
111840
+ }
111841
+
111842
+ export interface PlaygroundClickupGetOverviewOutput {
111843
+ team: ({
111844
+ teamId: string
111845
+ teamName: string
111846
+ } | null)
111847
+ lists: PlaygroundClickupGetOverviewOutputItems[]
111848
+ tasks: {
111849
+ id: string
111850
+ name: string
111851
+ status: (string | null)
111852
+ }[]
111853
+ minted: boolean
111854
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
111855
+ list_status: number
111856
+ vend_status: number
111857
+ lists_status: number
111858
+ tasks_status: number
111859
+ spaces_status: number
111860
+ folders_status: number
111861
+ installation_count: number
111862
+ }
111863
+ export interface PlaygroundClickupGetOverviewOutputItems {
111864
+ id: string
111865
+ name: string
111866
+ }
111867
+
111868
+ export interface PlaygroundEchoPingInput {
111869
+ /**
111870
+ * The text to echo back, 1–1024 characters
111871
+ */
111872
+ message: string
111873
+ }
111874
+
111875
+ export interface PlaygroundEchoPingOutput {
111876
+ /**
111877
+ * The message exactly as it was received
111878
+ */
111879
+ message: string
111880
+ /**
111881
+ * The product the call was resolved to
111882
+ */
111883
+ productId: string
111884
+ /**
111885
+ * ISO-8601 instant (UTC) at which the call reached the service
111886
+ */
111887
+ receivedAt: string
111888
+ }
111889
+
111890
+ export interface PlaygroundGdriveGetLastChangeInput {
111891
+
111892
+ }
111893
+
111894
+ export type PlaygroundGdriveGetLastChangeOutput = ({
111895
+ file_id: string
111896
+ removed: boolean
111897
+ file_name: (string | null)
111898
+ mime_type: (string | null)
111899
+ product_id: string
111900
+ occurred_at: string
111901
+ connector_id: string
111902
+ resource_state: string
111903
+ } | {
111904
+ found: false
111905
+ })
111906
+
111907
+ export interface PlaygroundGdriveReadFileInput {
111908
+ /**
111909
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
111910
+ */
111911
+ fileId?: string
111912
+ }
111913
+
111914
+ export interface PlaygroundGdriveReadFileOutput {
111915
+ minted: boolean
111916
+ file_id: (string | null)
111917
+ file_name: (string | null)
111918
+ mime_type: (string | null)
111919
+ file_count: number
111920
+ get_status: number
111921
+ list_status: number
111922
+ vend_status: number
111923
+ content_bytes: (number | null)
111924
+ }
111925
+
111926
+ export interface PlaygroundGoogleadsReadCustomerInput {
111927
+
111928
+ }
111929
+
111930
+ export interface PlaygroundGoogleadsReadCustomerOutput {
111931
+ minted: boolean
111932
+ vended: boolean
111933
+ customer_id: (string | null)
111934
+ vend_status: number
111935
+ result_count: number
111936
+ search_status: number
111937
+ login_customer_id: (string | null)
111938
+ }
111939
+
111940
+ export interface PlaygroundLifecycleGetStateInput {
111941
+
111942
+ }
111943
+
111944
+ export interface PlaygroundLifecycleGetStateOutput {
111945
+ blocked: boolean
111946
+ archived: boolean
111947
+ productId: string
111948
+ lastBlockTransition: ({
111949
+ eventId: string
111950
+ eventName: string
111951
+ productId: string
111952
+ occurredAt: string
111953
+ recordedAt: string
111954
+ receiptCount: number
111955
+ organizationId: string
111956
+ cascadedFromOrg: boolean
111957
+ } | null)
111958
+ lastArchiveTransition: ({
111959
+ eventId: string
111960
+ eventName: string
111961
+ productId: string
111962
+ occurredAt: string
111963
+ recordedAt: string
111964
+ receiptCount: number
111965
+ organizationId: string
111966
+ cascadedFromOrg: boolean
111967
+ } | null)
111968
+ }
111969
+
111970
+ export interface PlaygroundLifecycleListEventsInput {
111971
+
111972
+ }
111973
+
111974
+ export type PlaygroundLifecycleListEventsOutput = {
111975
+ eventId: string
111976
+ eventName: string
111977
+ productId: string
111978
+ occurredAt: string
111979
+ recordedAt: string
111980
+ receiptCount: number
111981
+ organizationId: string
111982
+ cascadedFromOrg: boolean
111983
+ }[]
111984
+
111985
+ export interface PlaygroundWebhookGetLastInput {
111986
+
111987
+ }
111988
+
111989
+ export type PlaygroundWebhookGetLastOutput = ({
111990
+ payload?: unknown
111991
+ event_id: string
111992
+ provider: string
111993
+ verified: boolean
111994
+ product_id: string
111995
+ occurred_at: string
111996
+ connector_id: string
111997
+ delivery_count: number
111998
+ } | {
111999
+ found: false
112000
+ })
112001
+
112002
+ export interface PlaygroundWorkflowEchoInput {
112003
+ /**
112004
+ * The text to store, 1–1024 characters
112005
+ */
112006
+ note: string
112007
+ /**
112008
+ * Optional labels stored alongside the note, at most 20
112009
+ *
112010
+ * @maxItems 20
112011
+ */
112012
+ 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]
112013
+ }
112014
+
112015
+ export interface PlaygroundWorkflowEchoOutput {
112016
+ /**
112017
+ * Identifier of the stored echo
112018
+ */
112019
+ id: string
112020
+ /**
112021
+ * The note exactly as it was received
112022
+ */
112023
+ note: string
112024
+ /**
112025
+ * The tags exactly as they were received
112026
+ */
112027
+ tags: string[]
112028
+ /**
112029
+ * 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.
112030
+ */
112031
+ echo_id: string
112032
+ /**
112033
+ * ISO-8601 instant (UTC) at which the echo was stored
112034
+ */
112035
+ received_at: string
112036
+ }
112037
+
112038
+ export interface PlaygroundWorkflowEchoListInput {
112039
+
112040
+ }
112041
+
112042
+ export type PlaygroundWorkflowEchoListOutput = {
112043
+ /**
112044
+ * Identifier of the stored echo
112045
+ */
112046
+ id: string
112047
+ /**
112048
+ * The note exactly as it was received
112049
+ */
112050
+ note: string
112051
+ /**
112052
+ * The tags exactly as they were received
112053
+ */
112054
+ tags: string[]
112055
+ /**
112056
+ * ISO-8601 instant (UTC) at which the echo was stored
112057
+ */
112058
+ received_at: string
112059
+ }[]
112060
+
112061
+ export interface PlaygroundWorkflowPingInput {
112062
+ /**
112063
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
112064
+ */
112065
+ kind?: string
112066
+ }
112067
+
112068
+ export interface PlaygroundWorkflowPingOutput {
112069
+ /**
112070
+ * 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.
112071
+ */
112072
+ id: string
112073
+ /**
112074
+ * The name of the event that was published
112075
+ */
112076
+ event: string
112077
+ }
112078
+
112079
+ export interface PlaygroundWorkflowSubjectsListInput {
112080
+ /**
112081
+ * How many subjects to return, 1–100. Defaults to 25.
112082
+ */
112083
+ limit?: number
112084
+ /**
112085
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
112086
+ */
112087
+ cursor?: string
112088
+ /**
112089
+ * 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.
112090
+ */
112091
+ last_activity_after?: string
112092
+ /**
112093
+ * 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.
112094
+ */
112095
+ last_activity_before?: string
112096
+ }
112097
+
112098
+ export interface PlaygroundWorkflowSubjectsListOutput {
112099
+ /**
112100
+ * This page of subjects, most recently active first
112101
+ */
112102
+ items: {
112103
+ /**
112104
+ * 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.
112105
+ */
112106
+ subject_key: string
112107
+ /**
112108
+ * Human-readable name of the subject
112109
+ */
112110
+ display_name: string
112111
+ /**
112112
+ * ISO-8601 instant (UTC) of the subject last activity
112113
+ */
112114
+ last_activity_at: string
112115
+ }[]
112116
+ /**
112117
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
112118
+ */
112119
+ has_more: boolean
112120
+ /**
112121
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
112122
+ */
112123
+ next_cursor: (string | null)
112124
+ }
112125
+
112126
+ export interface PlaygroundWsEchoInput {
112127
+
112128
+ }
112129
+
112130
+ export type PlaygroundWsEchoOutput = unknown;
112131
+
111714
112132
  export interface RealtimeArchiveExportInput {
111715
112133
  /**
111716
112134
  * Only entries with ts <= to_ts (epoch ms)