@lessly/sdk-app 39.1.0 → 41.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.
Files changed (57) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.cjs +0 -5
  4. package/dist/brain/index.cjs.map +1 -1
  5. package/dist/brain/index.d.cts +2 -6
  6. package/dist/brain/index.d.ts +2 -6
  7. package/dist/brain/index.js +1 -5
  8. package/dist/brain/index.js.map +1 -1
  9. package/dist/{client.gen-Co3x1ZjK.d.cts → client.gen-CMLEyXO3.d.cts} +340 -99
  10. package/dist/{client.gen-Co3x1ZjK.d.ts → client.gen-CMLEyXO3.d.ts} +340 -99
  11. package/dist/consent/index.d.cts +1 -1
  12. package/dist/consent/index.d.ts +1 -1
  13. package/dist/deployment/index.d.cts +1 -1
  14. package/dist/deployment/index.d.ts +1 -1
  15. package/dist/index.cjs +148 -13
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +148 -13
  20. package/dist/index.js.map +1 -1
  21. package/dist/mail/index.d.cts +2 -2
  22. package/dist/mail/index.d.ts +2 -2
  23. package/dist/observe/index.d.cts +1 -1
  24. package/dist/observe/index.d.ts +1 -1
  25. package/dist/organization/index.d.cts +1 -1
  26. package/dist/organization/index.d.ts +1 -1
  27. package/dist/playground/index.cjs +66 -0
  28. package/dist/playground/index.cjs.map +1 -0
  29. package/dist/playground/index.d.cts +52 -0
  30. package/dist/playground/index.d.ts +52 -0
  31. package/dist/playground/index.js +53 -0
  32. package/dist/playground/index.js.map +1 -0
  33. package/dist/realtime/index.d.cts +1 -1
  34. package/dist/realtime/index.d.ts +1 -1
  35. package/dist/support/index.d.cts +1 -1
  36. package/dist/support/index.d.ts +1 -1
  37. package/dist/tracking/index.d.cts +1 -1
  38. package/dist/tracking/index.d.ts +1 -1
  39. package/dist/users/index.cjs +10 -0
  40. package/dist/users/index.cjs.map +1 -1
  41. package/dist/users/index.d.cts +10 -2
  42. package/dist/users/index.d.ts +10 -2
  43. package/dist/users/index.js +9 -1
  44. package/dist/users/index.js.map +1 -1
  45. package/dist/waitlist/index.d.cts +1 -1
  46. package/dist/waitlist/index.d.ts +1 -1
  47. package/package.json +7 -2
  48. package/src/gen/bindings.gen.ts +148 -13
  49. package/src/gen/brain/index.ts +1 -1
  50. package/src/gen/brain/queryOptions.gen.ts +0 -7
  51. package/src/gen/client.gen.ts +60 -5
  52. package/src/gen/manifest.gen.ts +1 -1
  53. package/src/gen/playground/index.ts +3 -0
  54. package/src/gen/playground/queryOptions.gen.ts +86 -0
  55. package/src/gen/types.gen.ts +343 -97
  56. package/src/gen/users/index.ts +1 -1
  57. package/src/gen/users/queryOptions.gen.ts +13 -0
@@ -683,19 +683,6 @@ export const bindings: BindingsMap = {
683
683
  "path": "/brain/restores/:restoreId",
684
684
  "readOnly": true
685
685
  }
686
- },
687
- "usage": {
688
- "report": {
689
- "method": "GET",
690
- "params": [
691
- {
692
- "in": "query",
693
- "name": "days"
694
- }
695
- ],
696
- "path": "/brain/usage/report",
697
- "readOnly": true
698
- }
699
686
  }
700
687
  },
701
688
  "consent": {
@@ -2120,6 +2107,10 @@ export const bindings: BindingsMap = {
2120
2107
  "in": "body",
2121
2108
  "name": "resources"
2122
2109
  },
2110
+ {
2111
+ "in": "body",
2112
+ "name": "tracing"
2113
+ },
2123
2114
  {
2124
2115
  "in": "body",
2125
2116
  "name": "canvas"
@@ -2290,6 +2281,10 @@ export const bindings: BindingsMap = {
2290
2281
  "in": "body",
2291
2282
  "name": "buildMachineType"
2292
2283
  },
2284
+ {
2285
+ "in": "body",
2286
+ "name": "tracing"
2287
+ },
2293
2288
  {
2294
2289
  "in": "path",
2295
2290
  "name": "id"
@@ -5024,6 +5019,110 @@ export const bindings: BindingsMap = {
5024
5019
  }
5025
5020
  }
5026
5021
  },
5022
+ "playground": {
5023
+ "analytics": {
5024
+ "overview": {
5025
+ "method": "POST",
5026
+ "params": [
5027
+ {
5028
+ "in": "body",
5029
+ "name": "limit"
5030
+ }
5031
+ ],
5032
+ "path": "/playground/analytics/overview",
5033
+ "readOnly": true
5034
+ }
5035
+ },
5036
+ "billing": {
5037
+ "entitlements": {
5038
+ "method": "POST",
5039
+ "path": "/playground/billing/entitlements",
5040
+ "readOnly": true
5041
+ },
5042
+ "record-usage": {
5043
+ "method": "POST",
5044
+ "params": [
5045
+ {
5046
+ "in": "body",
5047
+ "name": "value"
5048
+ }
5049
+ ],
5050
+ "path": "/playground/billing/usage",
5051
+ "readOnly": false
5052
+ }
5053
+ },
5054
+ "clickup": {
5055
+ "create-task": {
5056
+ "method": "POST",
5057
+ "params": [
5058
+ {
5059
+ "in": "body",
5060
+ "name": "listId"
5061
+ },
5062
+ {
5063
+ "in": "body",
5064
+ "name": "name"
5065
+ }
5066
+ ],
5067
+ "path": "/playground/clickup/tasks",
5068
+ "readOnly": false
5069
+ },
5070
+ "get-last-webhook": {
5071
+ "method": "GET",
5072
+ "path": "/playground/clickup/webhooks/last",
5073
+ "readOnly": true
5074
+ },
5075
+ "get-overview": {
5076
+ "method": "GET",
5077
+ "path": "/playground/clickup/overview",
5078
+ "readOnly": true
5079
+ }
5080
+ },
5081
+ "gdrive": {
5082
+ "get-last-change": {
5083
+ "method": "GET",
5084
+ "path": "/playground/gdrive/changes/last",
5085
+ "readOnly": true
5086
+ },
5087
+ "read-file": {
5088
+ "method": "POST",
5089
+ "params": [
5090
+ {
5091
+ "in": "body",
5092
+ "name": "fileId"
5093
+ }
5094
+ ],
5095
+ "path": "/playground/gdrive/file",
5096
+ "readOnly": true
5097
+ }
5098
+ },
5099
+ "googleads": {
5100
+ "read-customer": {
5101
+ "method": "POST",
5102
+ "path": "/playground/googleads/customer",
5103
+ "readOnly": true
5104
+ }
5105
+ },
5106
+ "lifecycle": {
5107
+ "get-state": {
5108
+ "method": "GET",
5109
+ "path": "/playground/lifecycle/state",
5110
+ "readOnly": true
5111
+ },
5112
+ "list-events": {
5113
+ "method": "GET",
5114
+ "path": "/playground/lifecycle/events",
5115
+ "readOnly": true
5116
+ }
5117
+ },
5118
+ "webhook": {
5119
+ "get-last": {
5120
+ "method": "GET",
5121
+ "path": "/playground/webhooks/last",
5122
+ "readOnly": true
5123
+ }
5124
+ }
5125
+ },
5027
5126
  "realtime": {
5028
5127
  "archive": {
5029
5128
  "export": {
@@ -7132,6 +7231,10 @@ export const bindings: BindingsMap = {
7132
7231
  "in": "body",
7133
7232
  "name": "notifications"
7134
7233
  },
7234
+ {
7235
+ "in": "body",
7236
+ "name": "passkeys"
7237
+ },
7135
7238
  {
7136
7239
  "in": "body",
7137
7240
  "name": "oauth"
@@ -7214,6 +7317,38 @@ export const bindings: BindingsMap = {
7214
7317
  "readOnly": false
7215
7318
  }
7216
7319
  },
7320
+ "passkeys": {
7321
+ "list": {
7322
+ "method": "GET",
7323
+ "params": [
7324
+ {
7325
+ "in": "path",
7326
+ "name": "userId"
7327
+ }
7328
+ ],
7329
+ "path": "/users/users/:userId/passkeys",
7330
+ "readOnly": true
7331
+ },
7332
+ "revoke": {
7333
+ "method": "DELETE",
7334
+ "params": [
7335
+ {
7336
+ "in": "path",
7337
+ "name": "userId"
7338
+ },
7339
+ {
7340
+ "in": "path",
7341
+ "name": "passkeyId"
7342
+ },
7343
+ {
7344
+ "in": "body",
7345
+ "name": "reason"
7346
+ }
7347
+ ],
7348
+ "path": "/users/users/:userId/passkeys/:passkeyId",
7349
+ "readOnly": false
7350
+ }
7351
+ },
7217
7352
  "sessions": {
7218
7353
  "get": {
7219
7354
  "method": "GET",
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { BrainBackupCreateInput, BrainBackupCreateOutput, BrainBackupRestoreInput, BrainBackupRestoreOutput, BrainBackupStatusInput, BrainBackupStatusOutput, BrainBackupsListInput, BrainBackupsListOutput, BrainClickupChannelsListInput, BrainClickupChannelsListOutput, BrainClickupConnectionsListInput, BrainClickupConnectionsListOutput, BrainClickupListsListInput, BrainClickupListsListOutput, BrainClickupSpacesListInput, BrainClickupSpacesListOutput, BrainCognitionDigestInput, BrainCognitionDigestOutput, BrainCognitionStatusInput, BrainCognitionStatusOutput, BrainCognitionSweepInput, BrainCognitionSweepOutput, BrainConnectorBranchesListInput, BrainConnectorBranchesListOutput, BrainConnectorConnectionsListInput, BrainConnectorConnectionsListOutput, BrainConnectorReposListInput, BrainConnectorReposListOutput, BrainDaemonBatchStatusInput, BrainDaemonBatchStatusOutput, BrainDaemonCreateInput, BrainDaemonCreateOutput, BrainDaemonGetInput, BrainDaemonGetOutput, BrainDaemonReingestInput, BrainDaemonReingestOutput, BrainDaemonRemoveInput, BrainDaemonRemoveOutput, BrainDaemonRunInput, BrainDaemonRunItemsInput, BrainDaemonRunItemsOutput, BrainDaemonRunOutput, BrainDaemonRunsInput, BrainDaemonRunsOutput, BrainDaemonStatusInput, BrainDaemonStatusOutput, BrainDaemonUpdateInput, BrainDaemonUpdateOutput, BrainDaemonsListInput, BrainDaemonsListOutput, BrainGdriveConnectionsListInput, BrainGdriveConnectionsListOutput, BrainKnowledgeEntityMemoriesInput, BrainKnowledgeEntityMemoriesOutput, BrainKnowledgeGraphInput, BrainKnowledgeGraphOutput, BrainKnowledgeNeighborhoodInput, BrainKnowledgeNeighborhoodOutput, BrainKnowledgeRelationsInput, BrainKnowledgeRelationsOutput, BrainKnowledgeSearchInput, BrainKnowledgeSearchOutput, BrainMemoryAddInput, BrainMemoryAddOutput, BrainMemoryDeleteInput, BrainMemoryDeleteOutput, BrainMemoryGetInput, BrainMemoryGetOutput, BrainMemoryListInput, BrainMemoryListOutput, BrainMemorySearchInput, BrainMemorySearchOutput, BrainMemoryStatsInput, BrainMemoryStatsOutput, BrainMemoryUpdateInput, BrainMemoryUpdateOutput, BrainProductSharedMemoryResetInput, BrainProductSharedMemoryResetOutput, BrainRestoreStatusInput, BrainRestoreStatusOutput, BrainUsageReportInput, BrainUsageReportOutput } from '../types.gen';
3
+ export type { BrainBackupCreateInput, BrainBackupCreateOutput, BrainBackupRestoreInput, BrainBackupRestoreOutput, BrainBackupStatusInput, BrainBackupStatusOutput, BrainBackupsListInput, BrainBackupsListOutput, BrainClickupChannelsListInput, BrainClickupChannelsListOutput, BrainClickupConnectionsListInput, BrainClickupConnectionsListOutput, BrainClickupListsListInput, BrainClickupListsListOutput, BrainClickupSpacesListInput, BrainClickupSpacesListOutput, BrainCognitionDigestInput, BrainCognitionDigestOutput, BrainCognitionStatusInput, BrainCognitionStatusOutput, BrainCognitionSweepInput, BrainCognitionSweepOutput, BrainConnectorBranchesListInput, BrainConnectorBranchesListOutput, BrainConnectorConnectionsListInput, BrainConnectorConnectionsListOutput, BrainConnectorReposListInput, BrainConnectorReposListOutput, BrainDaemonBatchStatusInput, BrainDaemonBatchStatusOutput, BrainDaemonCreateInput, BrainDaemonCreateOutput, BrainDaemonGetInput, BrainDaemonGetOutput, BrainDaemonReingestInput, BrainDaemonReingestOutput, BrainDaemonRemoveInput, BrainDaemonRemoveOutput, BrainDaemonRunInput, BrainDaemonRunItemsInput, BrainDaemonRunItemsOutput, BrainDaemonRunOutput, BrainDaemonRunsInput, BrainDaemonRunsOutput, BrainDaemonStatusInput, BrainDaemonStatusOutput, BrainDaemonUpdateInput, BrainDaemonUpdateOutput, BrainDaemonsListInput, BrainDaemonsListOutput, BrainGdriveConnectionsListInput, BrainGdriveConnectionsListOutput, BrainKnowledgeEntityMemoriesInput, BrainKnowledgeEntityMemoriesOutput, BrainKnowledgeGraphInput, BrainKnowledgeGraphOutput, BrainKnowledgeNeighborhoodInput, BrainKnowledgeNeighborhoodOutput, BrainKnowledgeRelationsInput, BrainKnowledgeRelationsOutput, BrainKnowledgeSearchInput, BrainKnowledgeSearchOutput, BrainMemoryAddInput, BrainMemoryAddOutput, BrainMemoryDeleteInput, BrainMemoryDeleteOutput, BrainMemoryGetInput, BrainMemoryGetOutput, BrainMemoryListInput, BrainMemoryListOutput, BrainMemorySearchInput, BrainMemorySearchOutput, BrainMemoryStatsInput, BrainMemoryStatsOutput, BrainMemoryUpdateInput, BrainMemoryUpdateOutput, BrainProductSharedMemoryResetInput, BrainProductSharedMemoryResetOutput, BrainRestoreStatusInput, BrainRestoreStatusOutput } from '../types.gen';
@@ -68,8 +68,6 @@ import type {
68
68
  BrainProductSharedMemoryResetInput,
69
69
  BrainRestoreStatusInput,
70
70
  BrainRestoreStatusOutput,
71
- BrainUsageReportInput,
72
- BrainUsageReportOutput,
73
71
  } from '../types.gen';
74
72
 
75
73
  export const brainBackupCreateMutationOptions = (sdk: GeneratedClient) => ({
@@ -271,8 +269,3 @@ export const brainRestoreStatusQueryOptions = (sdk: GeneratedClient, input: Brai
271
269
  queryKey: ['brain', 'restore', 'status', input] as const,
272
270
  queryFn: () => sdk['brain']['restore']['status'](input),
273
271
  });
274
-
275
- export const brainUsageReportQueryOptions = (sdk: GeneratedClient, input: BrainUsageReportInput) => ({
276
- queryKey: ['brain', 'usage', 'report', input] as const,
277
- queryFn: () => sdk['brain']['usage']['report'](input),
278
- });
@@ -82,8 +82,6 @@ import type {
82
82
  BrainProductSharedMemoryResetOutput,
83
83
  BrainRestoreStatusInput,
84
84
  BrainRestoreStatusOutput,
85
- BrainUsageReportInput,
86
- BrainUsageReportOutput,
87
85
  ConsentConfigCookieDomainUpsertInput,
88
86
  ConsentConfigCookieDomainUpsertOutput,
89
87
  ConsentConfigCustomizationUpsertInput,
@@ -632,6 +630,30 @@ import type {
632
630
  OrganizationSupportThreadReplyOutput,
633
631
  OrganizationSupportThreadsListInput,
634
632
  OrganizationSupportThreadsListOutput,
633
+ PlaygroundAnalyticsOverviewInput,
634
+ PlaygroundAnalyticsOverviewOutput,
635
+ PlaygroundBillingEntitlementsInput,
636
+ PlaygroundBillingEntitlementsOutput,
637
+ PlaygroundBillingRecordUsageInput,
638
+ PlaygroundBillingRecordUsageOutput,
639
+ PlaygroundClickupCreateTaskInput,
640
+ PlaygroundClickupCreateTaskOutput,
641
+ PlaygroundClickupGetLastWebhookInput,
642
+ PlaygroundClickupGetLastWebhookOutput,
643
+ PlaygroundClickupGetOverviewInput,
644
+ PlaygroundClickupGetOverviewOutput,
645
+ PlaygroundGdriveGetLastChangeInput,
646
+ PlaygroundGdriveGetLastChangeOutput,
647
+ PlaygroundGdriveReadFileInput,
648
+ PlaygroundGdriveReadFileOutput,
649
+ PlaygroundGoogleadsReadCustomerInput,
650
+ PlaygroundGoogleadsReadCustomerOutput,
651
+ PlaygroundLifecycleGetStateInput,
652
+ PlaygroundLifecycleGetStateOutput,
653
+ PlaygroundLifecycleListEventsInput,
654
+ PlaygroundLifecycleListEventsOutput,
655
+ PlaygroundWebhookGetLastInput,
656
+ PlaygroundWebhookGetLastOutput,
635
657
  RealtimeArchiveExportInput,
636
658
  RealtimeArchiveExportOutput,
637
659
  RealtimeArchiveExportStatusInput,
@@ -874,6 +896,10 @@ import type {
874
896
  UsersOpsRetentionGetOutput,
875
897
  UsersOpsSloGetInput,
876
898
  UsersOpsSloGetOutput,
899
+ UsersPasskeysListInput,
900
+ UsersPasskeysListOutput,
901
+ UsersPasskeysRevokeInput,
902
+ UsersPasskeysRevokeOutput,
877
903
  UsersSessionsGetInput,
878
904
  UsersSessionsGetOutput,
879
905
  UsersSessionsImpersonateInput,
@@ -1035,9 +1061,6 @@ export interface GeneratedClient {
1035
1061
  restore: {
1036
1062
  status(input: BrainRestoreStatusInput): Promise<BrainRestoreStatusOutput>;
1037
1063
  };
1038
- usage: {
1039
- report(input: BrainUsageReportInput): Promise<BrainUsageReportOutput>;
1040
- };
1041
1064
  };
1042
1065
  consent: {
1043
1066
  'config-cookie-domain': {
@@ -1519,6 +1542,34 @@ export interface GeneratedClient {
1519
1542
  list(input: OrganizationSupportThreadsListInput): Promise<OrganizationSupportThreadsListOutput>;
1520
1543
  };
1521
1544
  };
1545
+ playground: {
1546
+ analytics: {
1547
+ overview(input: PlaygroundAnalyticsOverviewInput): Promise<PlaygroundAnalyticsOverviewOutput>;
1548
+ };
1549
+ billing: {
1550
+ entitlements(input: PlaygroundBillingEntitlementsInput): Promise<PlaygroundBillingEntitlementsOutput>;
1551
+ 'record-usage'(input: PlaygroundBillingRecordUsageInput): Promise<PlaygroundBillingRecordUsageOutput>;
1552
+ };
1553
+ clickup: {
1554
+ 'create-task'(input: PlaygroundClickupCreateTaskInput): Promise<PlaygroundClickupCreateTaskOutput>;
1555
+ 'get-last-webhook'(input: PlaygroundClickupGetLastWebhookInput): Promise<PlaygroundClickupGetLastWebhookOutput>;
1556
+ 'get-overview'(input: PlaygroundClickupGetOverviewInput): Promise<PlaygroundClickupGetOverviewOutput>;
1557
+ };
1558
+ gdrive: {
1559
+ 'get-last-change'(input: PlaygroundGdriveGetLastChangeInput): Promise<PlaygroundGdriveGetLastChangeOutput>;
1560
+ 'read-file'(input: PlaygroundGdriveReadFileInput): Promise<PlaygroundGdriveReadFileOutput>;
1561
+ };
1562
+ googleads: {
1563
+ 'read-customer'(input: PlaygroundGoogleadsReadCustomerInput): Promise<PlaygroundGoogleadsReadCustomerOutput>;
1564
+ };
1565
+ lifecycle: {
1566
+ 'get-state'(input: PlaygroundLifecycleGetStateInput): Promise<PlaygroundLifecycleGetStateOutput>;
1567
+ 'list-events'(input: PlaygroundLifecycleListEventsInput): Promise<PlaygroundLifecycleListEventsOutput>;
1568
+ };
1569
+ webhook: {
1570
+ 'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
1571
+ };
1572
+ };
1522
1573
  realtime: {
1523
1574
  archive: {
1524
1575
  export(input: RealtimeArchiveExportInput): Promise<RealtimeArchiveExportOutput>;
@@ -1753,6 +1804,10 @@ export interface GeneratedClient {
1753
1804
  'ops-slo': {
1754
1805
  get(input: UsersOpsSloGetInput): Promise<UsersOpsSloGetOutput>;
1755
1806
  };
1807
+ passkeys: {
1808
+ list(input: UsersPasskeysListInput): Promise<UsersPasskeysListOutput>;
1809
+ revoke(input: UsersPasskeysRevokeInput): Promise<UsersPasskeysRevokeOutput>;
1810
+ };
1756
1811
  sessions: {
1757
1812
  get(input: UsersSessionsGetInput): Promise<UsersSessionsGetOutput>;
1758
1813
  impersonate(input: UsersSessionsImpersonateInput): Promise<UsersSessionsImpersonateOutput>;
@@ -1,2 +1,2 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
- export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
2
+ export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
@@ -0,0 +1,3 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ export * from './queryOptions.gen';
3
+ 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 } from '../types.gen';
@@ -0,0 +1,86 @@
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
+ } from '../types.gen';
27
+
28
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
29
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
30
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
31
+ });
32
+
33
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
34
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
35
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
36
+ });
37
+
38
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
39
+ mutationKey: ['playground', 'billing', 'record-usage'],
40
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
41
+ });
42
+
43
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
44
+ mutationKey: ['playground', 'clickup', 'create-task'],
45
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
46
+ });
47
+
48
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
49
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
50
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
51
+ });
52
+
53
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
54
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
55
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
56
+ });
57
+
58
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
59
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
60
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
61
+ });
62
+
63
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
64
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
65
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
66
+ });
67
+
68
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
69
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
70
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
71
+ });
72
+
73
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
74
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
75
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
76
+ });
77
+
78
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
79
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
80
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
81
+ });
82
+
83
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
84
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
85
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
86
+ });