@lessly/sdk-app 71.2.1 → 71.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7262,6 +7262,198 @@ export const bindings: BindingsMap = {
7262
7262
  }
7263
7263
  }
7264
7264
  },
7265
+ "playground": {
7266
+ "analytics": {
7267
+ "overview": {
7268
+ "level": "read",
7269
+ "method": "POST",
7270
+ "operationKey": "playground_analytics_overview",
7271
+ "params": [
7272
+ {
7273
+ "in": "body",
7274
+ "name": "limit"
7275
+ }
7276
+ ],
7277
+ "path": "/playground/analytics/overview",
7278
+ "readOnly": true
7279
+ }
7280
+ },
7281
+ "billing": {
7282
+ "entitlements": {
7283
+ "level": "read",
7284
+ "method": "POST",
7285
+ "operationKey": "playground_billing_entitlements",
7286
+ "path": "/playground/billing/entitlements",
7287
+ "readOnly": true
7288
+ },
7289
+ "record-usage": {
7290
+ "level": "write",
7291
+ "method": "POST",
7292
+ "operationKey": "playground_billing_record-usage",
7293
+ "params": [
7294
+ {
7295
+ "in": "body",
7296
+ "name": "value"
7297
+ }
7298
+ ],
7299
+ "path": "/playground/billing/usage",
7300
+ "readOnly": false
7301
+ }
7302
+ },
7303
+ "clickup": {
7304
+ "create-task": {
7305
+ "level": "write",
7306
+ "method": "POST",
7307
+ "operationKey": "playground_clickup_create-task",
7308
+ "params": [
7309
+ {
7310
+ "in": "body",
7311
+ "name": "listId"
7312
+ },
7313
+ {
7314
+ "in": "body",
7315
+ "name": "name"
7316
+ }
7317
+ ],
7318
+ "path": "/playground/clickup/tasks",
7319
+ "readOnly": false
7320
+ },
7321
+ "get-last-webhook": {
7322
+ "level": "read",
7323
+ "method": "GET",
7324
+ "operationKey": "playground_clickup_get-last-webhook",
7325
+ "path": "/playground/clickup/webhooks/last",
7326
+ "readOnly": true
7327
+ },
7328
+ "get-overview": {
7329
+ "level": "read",
7330
+ "method": "GET",
7331
+ "operationKey": "playground_clickup_get-overview",
7332
+ "path": "/playground/clickup/overview",
7333
+ "readOnly": true
7334
+ }
7335
+ },
7336
+ "gdrive": {
7337
+ "get-last-change": {
7338
+ "level": "read",
7339
+ "method": "GET",
7340
+ "operationKey": "playground_gdrive_get-last-change",
7341
+ "path": "/playground/gdrive/changes/last",
7342
+ "readOnly": true
7343
+ },
7344
+ "read-file": {
7345
+ "level": "read",
7346
+ "method": "POST",
7347
+ "operationKey": "playground_gdrive_read-file",
7348
+ "params": [
7349
+ {
7350
+ "in": "body",
7351
+ "name": "fileId"
7352
+ }
7353
+ ],
7354
+ "path": "/playground/gdrive/file",
7355
+ "readOnly": true
7356
+ }
7357
+ },
7358
+ "googleads": {
7359
+ "read-customer": {
7360
+ "level": "read",
7361
+ "method": "POST",
7362
+ "operationKey": "playground_googleads_read-customer",
7363
+ "path": "/playground/googleads/customer",
7364
+ "readOnly": true
7365
+ }
7366
+ },
7367
+ "lifecycle": {
7368
+ "get-state": {
7369
+ "level": "read",
7370
+ "method": "GET",
7371
+ "operationKey": "playground_lifecycle_get-state",
7372
+ "path": "/playground/lifecycle/state",
7373
+ "readOnly": true
7374
+ },
7375
+ "list-events": {
7376
+ "level": "read",
7377
+ "method": "GET",
7378
+ "operationKey": "playground_lifecycle_list-events",
7379
+ "path": "/playground/lifecycle/events",
7380
+ "readOnly": true
7381
+ }
7382
+ },
7383
+ "webhook": {
7384
+ "get-last": {
7385
+ "level": "read",
7386
+ "method": "GET",
7387
+ "operationKey": "playground_webhook_get-last",
7388
+ "path": "/playground/webhooks/last",
7389
+ "readOnly": true
7390
+ }
7391
+ },
7392
+ "workflow": {
7393
+ "echo": {
7394
+ "level": "write",
7395
+ "method": "POST",
7396
+ "operationKey": "playground_workflow_echo",
7397
+ "params": [
7398
+ {
7399
+ "in": "body",
7400
+ "name": "note"
7401
+ },
7402
+ {
7403
+ "in": "body",
7404
+ "name": "tags"
7405
+ }
7406
+ ],
7407
+ "path": "/playground/workflow/echo",
7408
+ "readOnly": false
7409
+ },
7410
+ "echo-list": {
7411
+ "level": "read",
7412
+ "method": "GET",
7413
+ "operationKey": "playground_workflow_echo-list",
7414
+ "path": "/playground/workflow/echoes",
7415
+ "readOnly": true
7416
+ },
7417
+ "ping": {
7418
+ "level": "write",
7419
+ "method": "POST",
7420
+ "operationKey": "playground_workflow_ping",
7421
+ "params": [
7422
+ {
7423
+ "in": "body",
7424
+ "name": "kind"
7425
+ }
7426
+ ],
7427
+ "path": "/playground/workflow/ping",
7428
+ "readOnly": false
7429
+ },
7430
+ "subjects-list": {
7431
+ "level": "read",
7432
+ "method": "GET",
7433
+ "operationKey": "playground_workflow_subjects-list",
7434
+ "params": [
7435
+ {
7436
+ "in": "query",
7437
+ "name": "last_activity_before"
7438
+ },
7439
+ {
7440
+ "in": "query",
7441
+ "name": "last_activity_after"
7442
+ },
7443
+ {
7444
+ "in": "query",
7445
+ "name": "limit"
7446
+ },
7447
+ {
7448
+ "in": "query",
7449
+ "name": "cursor"
7450
+ }
7451
+ ],
7452
+ "path": "/playground/workflow/subjects",
7453
+ "readOnly": true
7454
+ }
7455
+ }
7456
+ },
7265
7457
  "realtime": {
7266
7458
  "archive": {
7267
7459
  "export": {
@@ -9887,19 +10079,6 @@ export const bindings: BindingsMap = {
9887
10079
  "path": "/users/users/:userId",
9888
10080
  "readOnly": false
9889
10081
  },
9890
- "erase": {
9891
- "level": "admin",
9892
- "method": "POST",
9893
- "operationKey": "users_users_erase",
9894
- "params": [
9895
- {
9896
- "in": "path",
9897
- "name": "userId"
9898
- }
9899
- ],
9900
- "path": "/users/users/:userId/erase",
9901
- "readOnly": false
9902
- },
9903
10082
  "export": {
9904
10083
  "level": "admin",
9905
10084
  "method": "GET",
@@ -10100,19 +10279,6 @@ export const bindings: BindingsMap = {
10100
10279
  }
10101
10280
  },
10102
10281
  "waitlist": {
10103
- "erase": {
10104
- "level": "admin",
10105
- "method": "POST",
10106
- "operationKey": "users_waitlist_erase",
10107
- "params": [
10108
- {
10109
- "in": "body",
10110
- "name": "userId"
10111
- }
10112
- ],
10113
- "path": "/users/waitlist/erase",
10114
- "readOnly": false
10115
- },
10116
10282
  "funnel": {
10117
10283
  "level": "read",
10118
10284
  "method": "POST",
@@ -11186,4 +11352,12 @@ export const bindings: BindingsMap = {
11186
11352
  }
11187
11353
  };
11188
11354
 
11189
- export const wsBindings: WsBindingsMap = {};
11355
+ export const wsBindings: WsBindingsMap = {
11356
+ "playground": {
11357
+ "ws": {
11358
+ "echo": {
11359
+ "path": "/playground/ws/echo"
11360
+ }
11361
+ }
11362
+ }
11363
+ };
@@ -781,6 +781,38 @@ import type {
781
781
  OrganizationXInstallOutput,
782
782
  OrganizationYoutubeInstallInput,
783
783
  OrganizationYoutubeInstallOutput,
784
+ PlaygroundAnalyticsOverviewInput,
785
+ PlaygroundAnalyticsOverviewOutput,
786
+ PlaygroundBillingEntitlementsInput,
787
+ PlaygroundBillingEntitlementsOutput,
788
+ PlaygroundBillingRecordUsageInput,
789
+ PlaygroundBillingRecordUsageOutput,
790
+ PlaygroundClickupCreateTaskInput,
791
+ PlaygroundClickupCreateTaskOutput,
792
+ PlaygroundClickupGetLastWebhookInput,
793
+ PlaygroundClickupGetLastWebhookOutput,
794
+ PlaygroundClickupGetOverviewInput,
795
+ PlaygroundClickupGetOverviewOutput,
796
+ PlaygroundGdriveGetLastChangeInput,
797
+ PlaygroundGdriveGetLastChangeOutput,
798
+ PlaygroundGdriveReadFileInput,
799
+ PlaygroundGdriveReadFileOutput,
800
+ PlaygroundGoogleadsReadCustomerInput,
801
+ PlaygroundGoogleadsReadCustomerOutput,
802
+ PlaygroundLifecycleGetStateInput,
803
+ PlaygroundLifecycleGetStateOutput,
804
+ PlaygroundLifecycleListEventsInput,
805
+ PlaygroundLifecycleListEventsOutput,
806
+ PlaygroundWebhookGetLastInput,
807
+ PlaygroundWebhookGetLastOutput,
808
+ PlaygroundWorkflowEchoInput,
809
+ PlaygroundWorkflowEchoListInput,
810
+ PlaygroundWorkflowEchoListOutput,
811
+ PlaygroundWorkflowEchoOutput,
812
+ PlaygroundWorkflowPingInput,
813
+ PlaygroundWorkflowPingOutput,
814
+ PlaygroundWorkflowSubjectsListInput,
815
+ PlaygroundWorkflowSubjectsListOutput,
784
816
  RealtimeArchiveExportInput,
785
817
  RealtimeArchiveExportOutput,
786
818
  RealtimeArchiveExportStatusInput,
@@ -1043,8 +1075,6 @@ import type {
1043
1075
  UsersUsersCreateOutput,
1044
1076
  UsersUsersDeleteInput,
1045
1077
  UsersUsersDeleteOutput,
1046
- UsersUsersEraseInput,
1047
- UsersUsersEraseOutput,
1048
1078
  UsersUsersExportInput,
1049
1079
  UsersUsersExportOutput,
1050
1080
  UsersUsersGetInput,
@@ -1061,8 +1091,6 @@ import type {
1061
1091
  UsersUsersUnbanOutput,
1062
1092
  UsersUsersUpdateInput,
1063
1093
  UsersUsersUpdateOutput,
1064
- UsersWaitlistEraseInput,
1065
- UsersWaitlistEraseOutput,
1066
1094
  UsersWaitlistFunnelInput,
1067
1095
  UsersWaitlistFunnelOutput,
1068
1096
  UsersWaitlistImportInput,
@@ -1882,6 +1910,40 @@ export interface GeneratedClient {
1882
1910
  install: ((input: OrganizationYoutubeInstallInput) => Promise<OrganizationYoutubeInstallOutput>) & Operation;
1883
1911
  };
1884
1912
  };
1913
+ playground: {
1914
+ analytics: {
1915
+ overview: ((input: PlaygroundAnalyticsOverviewInput) => Promise<PlaygroundAnalyticsOverviewOutput>) & Operation;
1916
+ };
1917
+ billing: {
1918
+ entitlements: ((input: PlaygroundBillingEntitlementsInput) => Promise<PlaygroundBillingEntitlementsOutput>) & Operation;
1919
+ 'record-usage': ((input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>) & Operation;
1920
+ };
1921
+ clickup: {
1922
+ 'create-task': ((input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>) & Operation;
1923
+ 'get-last-webhook': ((input: PlaygroundClickupGetLastWebhookInput) => Promise<PlaygroundClickupGetLastWebhookOutput>) & Operation;
1924
+ 'get-overview': ((input: PlaygroundClickupGetOverviewInput) => Promise<PlaygroundClickupGetOverviewOutput>) & Operation;
1925
+ };
1926
+ gdrive: {
1927
+ 'get-last-change': ((input: PlaygroundGdriveGetLastChangeInput) => Promise<PlaygroundGdriveGetLastChangeOutput>) & Operation;
1928
+ 'read-file': ((input: PlaygroundGdriveReadFileInput) => Promise<PlaygroundGdriveReadFileOutput>) & Operation;
1929
+ };
1930
+ googleads: {
1931
+ 'read-customer': ((input: PlaygroundGoogleadsReadCustomerInput) => Promise<PlaygroundGoogleadsReadCustomerOutput>) & Operation;
1932
+ };
1933
+ lifecycle: {
1934
+ 'get-state': ((input: PlaygroundLifecycleGetStateInput) => Promise<PlaygroundLifecycleGetStateOutput>) & Operation;
1935
+ 'list-events': ((input: PlaygroundLifecycleListEventsInput) => Promise<PlaygroundLifecycleListEventsOutput>) & Operation;
1936
+ };
1937
+ webhook: {
1938
+ 'get-last': ((input: PlaygroundWebhookGetLastInput) => Promise<PlaygroundWebhookGetLastOutput>) & Operation;
1939
+ };
1940
+ workflow: {
1941
+ echo: ((input: PlaygroundWorkflowEchoInput) => Promise<PlaygroundWorkflowEchoOutput>) & Operation;
1942
+ 'echo-list': ((input: PlaygroundWorkflowEchoListInput) => Promise<PlaygroundWorkflowEchoListOutput>) & Operation;
1943
+ ping: ((input: PlaygroundWorkflowPingInput) => Promise<PlaygroundWorkflowPingOutput>) & Operation;
1944
+ 'subjects-list': ((input: PlaygroundWorkflowSubjectsListInput) => Promise<PlaygroundWorkflowSubjectsListOutput>) & Operation;
1945
+ };
1946
+ };
1885
1947
  realtime: {
1886
1948
  archive: {
1887
1949
  export: ((input: RealtimeArchiveExportInput) => Promise<RealtimeArchiveExportOutput>) & Operation;
@@ -2133,7 +2195,6 @@ export interface GeneratedClient {
2133
2195
  ban: ((input: UsersUsersBanInput) => Promise<UsersUsersBanOutput>) & Operation;
2134
2196
  create: ((input: UsersUsersCreateInput) => Promise<UsersUsersCreateOutput>) & Operation;
2135
2197
  delete: ((input: UsersUsersDeleteInput) => Promise<UsersUsersDeleteOutput>) & Operation;
2136
- erase: ((input: UsersUsersEraseInput) => Promise<UsersUsersEraseOutput>) & Operation;
2137
2198
  export: ((input: UsersUsersExportInput) => Promise<UsersUsersExportOutput>) & Operation;
2138
2199
  get: ((input: UsersUsersGetInput) => Promise<UsersUsersGetOutput>) & Operation;
2139
2200
  import: ((input: UsersUsersImportInput) => Promise<UsersUsersImportOutput>) & Operation;
@@ -2146,7 +2207,6 @@ export interface GeneratedClient {
2146
2207
  identifier: ((input: UsersUsersSetPrimaryIdentifierInput) => Promise<UsersUsersSetPrimaryIdentifierOutput>) & Operation;
2147
2208
  };
2148
2209
  waitlist: {
2149
- erase: ((input: UsersWaitlistEraseInput) => Promise<UsersWaitlistEraseOutput>) & Operation;
2150
2210
  funnel: ((input: UsersWaitlistFunnelInput) => Promise<UsersWaitlistFunnelOutput>) & Operation;
2151
2211
  import: ((input: UsersWaitlistImportInput) => Promise<UsersWaitlistImportOutput>) & Operation;
2152
2212
  invite: ((input: UsersWaitlistInviteInput) => Promise<UsersWaitlistInviteOutput>) & Operation;
@@ -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',
@@ -394,6 +394,22 @@ export const operations: Record<string, ToolLevel> = {
394
394
  'organization_support_threads_list': 'read',
395
395
  'organization_x_install': 'read',
396
396
  'organization_youtube_install': 'read',
397
+ 'playground_analytics_overview': 'read',
398
+ 'playground_billing_entitlements': 'read',
399
+ 'playground_billing_record-usage': 'write',
400
+ 'playground_clickup_create-task': 'write',
401
+ 'playground_clickup_get-last-webhook': 'read',
402
+ 'playground_clickup_get-overview': 'read',
403
+ 'playground_gdrive_get-last-change': 'read',
404
+ 'playground_gdrive_read-file': 'read',
405
+ 'playground_googleads_read-customer': 'read',
406
+ 'playground_lifecycle_get-state': 'read',
407
+ 'playground_lifecycle_list-events': 'read',
408
+ 'playground_webhook_get-last': 'read',
409
+ 'playground_workflow_echo': 'write',
410
+ 'playground_workflow_echo-list': 'read',
411
+ 'playground_workflow_ping': 'write',
412
+ 'playground_workflow_subjects-list': 'read',
397
413
  'realtime_archive_export': 'admin',
398
414
  'realtime_archive_export_status': 'read',
399
415
  'realtime_archive_get': 'read',
@@ -525,7 +541,6 @@ export const operations: Record<string, ToolLevel> = {
525
541
  'users_users_ban': 'admin',
526
542
  'users_users_create': 'write',
527
543
  'users_users_delete': 'admin',
528
- 'users_users_erase': 'admin',
529
544
  'users_users_export': 'admin',
530
545
  'users_users_get': 'read',
531
546
  'users_users_import': 'admin',
@@ -534,7 +549,6 @@ export const operations: Record<string, ToolLevel> = {
534
549
  'users_users_set_primary_identifier': 'write',
535
550
  'users_users_unban': 'admin',
536
551
  'users_users_update': 'write',
537
- 'users_waitlist_erase': 'admin',
538
552
  'users_waitlist_funnel': 'read',
539
553
  'users_waitlist_import': 'write',
540
554
  'users_waitlist_invite': 'write',
@@ -597,6 +611,33 @@ export const operations: Record<string, ToolLevel> = {
597
611
  };
598
612
 
599
613
  export const compositions: Record<string, ToolComposition> = {
614
+ 'brain_cognition_digest': {"label":"Run cognition digest"},
615
+ 'brain_cognition_sweep': {"label":"Run cognition sweep"},
616
+ 'brain_daemon_reingest': {"label":"Reingest daemon source","options":{"id":"brain_daemons_list"}},
617
+ 'brain_daemon_run': {"label":"Run ingestion daemon","options":{"id":"brain_daemons_list"}},
618
+ 'brain_daemon_runs': {"label":"List daemon runs","options":{"id":"brain_daemons_list"}},
619
+ 'brain_daemon_status': {"label":"Get daemon status","options":{"id":"brain_daemons_list"}},
620
+ 'brain_daemons_list': {"label":"List daemons"},
621
+ 'brain_knowledge_entity_memories': {"pii":["input.entity_ref","output.entity.canonical_name","output.entity.display_name","output.entity.aliases","output.entity.description","output.memories[].content","output.memories[].custom"],"label":"List entity memories"},
622
+ 'brain_knowledge_graph': {"pii":["output.nodes[].canonical_name","output.nodes[].display_name","output.nodes[].aliases","output.nodes[].description","output.edges[].reason"],"label":"Export knowledge graph"},
623
+ 'brain_knowledge_neighborhood': {"pii":["input.entity_ref","output.root.canonical_name","output.root.display_name","output.root.aliases","output.root.description","output.entities[].canonical_name","output.entities[].display_name","output.entities[].aliases","output.entities[].description","output.relations[].source_display_name","output.relations[].source_canonical_name","output.relations[].target_display_name","output.relations[].target_canonical_name","output.relations[].reason"],"label":"Expand entity neighborhood"},
624
+ 'brain_knowledge_relations': {"pii":["input.source_entity","input.target_entity","output.relations[].source_display_name","output.relations[].source_canonical_name","output.relations[].target_display_name","output.relations[].target_canonical_name","output.relations[].reason"],"label":"List knowledge relations"},
625
+ 'brain_knowledge_search': {"pii":["input.name","output.entities[].canonical_name","output.entities[].display_name","output.entities[].aliases","output.entities[].description"],"label":"Search knowledge entities"},
626
+ 'brain_memory_add': {"pii":["input.content","input.metadata"],"label":"Add memory"},
627
+ 'brain_memory_delete': {"label":"Delete memory"},
628
+ 'brain_memory_get': {"pii":["output.content"],"label":"Get memory"},
629
+ 'brain_memory_list': {"pii":["output.memories[].content","output.memories[].custom"],"label":"List memories"},
630
+ 'brain_memory_search': {"pii":["input.query","output.profile[].content","output.normal[].content","output.proactive[].content"],"label":"Search memories"},
631
+ 'brain_memory_stats': {"label":"Memory stats"},
632
+ 'brain_memory_update': {"pii":["input.content"],"label":"Update memory"},
633
+ 'brain_usage_report': {"label":"Get usage report"},
634
+ 'content_metrics_post_series': {"label":"Read post metrics","options":{"id":"content_publications_list"}},
635
+ 'content_posts_create': {"pii":["output.author"],"label":"Create draft post"},
636
+ 'content_posts_submit': {"pii":["output.author"],"label":"Submit post for approval","options":{"id":"content_posts_list"}},
637
+ 'content_publications_cancel': {"label":"Cancel publication","options":{"id":"content_publications_list"}},
638
+ 'content_publications_publish': {"label":"Publish now","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.published"},
639
+ 'content_publications_schedule': {"label":"Schedule publication","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.published"},
640
+ 'content_publications_validate': {"label":"Validate post against channels","options":{"postId":"content_posts_list"}},
600
641
  'mail_audience_create': {"label":"Create audience"},
601
642
  'mail_audience_delete': {"label":"Delete audience"},
602
643
  'mail_audience_get': {"label":"Get audience"},
@@ -636,4 +677,7 @@ export const compositions: Record<string, ToolComposition> = {
636
677
  'mail_template_publish': {"label":"Publish template"},
637
678
  'mail_template_update': {"label":"Update template"},
638
679
  'mail_usage_get': {"label":"Get usage"},
680
+ 'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
681
+ 'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
682
+ 'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
639
683
  };
@@ -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, PlaygroundWorkflowSubjectsListInput, PlaygroundWorkflowSubjectsListOutput, PlaygroundWsEchoInput } from '../types.gen';
@@ -0,0 +1,112 @@
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
+ PlaygroundWorkflowSubjectsListInput,
31
+ PlaygroundWorkflowSubjectsListOutput,
32
+ } from '../types.gen';
33
+
34
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
35
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
36
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
37
+ });
38
+
39
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
40
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
41
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
42
+ });
43
+
44
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
45
+ mutationKey: ['playground', 'billing', 'record-usage'],
46
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
47
+ });
48
+
49
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
50
+ mutationKey: ['playground', 'clickup', 'create-task'],
51
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
52
+ });
53
+
54
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
55
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
56
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
57
+ });
58
+
59
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
60
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
61
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
62
+ });
63
+
64
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
65
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
66
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
67
+ });
68
+
69
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
70
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
71
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
72
+ });
73
+
74
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
75
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
76
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
77
+ });
78
+
79
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
80
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
81
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
82
+ });
83
+
84
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
85
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
86
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
87
+ });
88
+
89
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
90
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
91
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
92
+ });
93
+
94
+ export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
95
+ mutationKey: ['playground', 'workflow', 'echo'],
96
+ mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
97
+ });
98
+
99
+ export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
100
+ queryKey: ['playground', 'workflow', 'echo-list', input] as const,
101
+ queryFn: () => sdk['playground']['workflow']['echo-list'](input),
102
+ });
103
+
104
+ export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
105
+ mutationKey: ['playground', 'workflow', 'ping'],
106
+ mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
107
+ });
108
+
109
+ export const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({
110
+ queryKey: ['playground', 'workflow', 'subjects-list', input] as const,
111
+ queryFn: () => sdk['playground']['workflow']['subjects-list'](input),
112
+ });