@lessly/sdk-app 65.1.0 → 65.2.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 @@
1
+ export * from '../_types/gen/playground/index.js';
@@ -0,0 +1 @@
1
+ export * from '../_types/gen/playground/index.js';
@@ -0,0 +1,70 @@
1
+ import { wsBindings } from '../chunk-Z3HG67EN.js';
2
+
3
+ // src/gen/playground/queryOptions.gen.ts
4
+ var playgroundAnalyticsOverviewQueryOptions = (sdk, input) => ({
5
+ queryKey: ["playground", "analytics", "overview", input],
6
+ queryFn: () => sdk["playground"]["analytics"]["overview"](input)
7
+ });
8
+ var playgroundBillingEntitlementsQueryOptions = (sdk, input) => ({
9
+ queryKey: ["playground", "billing", "entitlements", input],
10
+ queryFn: () => sdk["playground"]["billing"]["entitlements"](input)
11
+ });
12
+ var playgroundBillingRecordUsageMutationOptions = (sdk) => ({
13
+ mutationKey: ["playground", "billing", "record-usage"],
14
+ mutationFn: (input) => sdk["playground"]["billing"]["record-usage"](input)
15
+ });
16
+ var playgroundClickupCreateTaskMutationOptions = (sdk) => ({
17
+ mutationKey: ["playground", "clickup", "create-task"],
18
+ mutationFn: (input) => sdk["playground"]["clickup"]["create-task"](input)
19
+ });
20
+ var playgroundClickupGetLastWebhookQueryOptions = (sdk, input) => ({
21
+ queryKey: ["playground", "clickup", "get-last-webhook", input],
22
+ queryFn: () => sdk["playground"]["clickup"]["get-last-webhook"](input)
23
+ });
24
+ var playgroundClickupGetOverviewQueryOptions = (sdk, input) => ({
25
+ queryKey: ["playground", "clickup", "get-overview", input],
26
+ queryFn: () => sdk["playground"]["clickup"]["get-overview"](input)
27
+ });
28
+ var playgroundGdriveGetLastChangeQueryOptions = (sdk, input) => ({
29
+ queryKey: ["playground", "gdrive", "get-last-change", input],
30
+ queryFn: () => sdk["playground"]["gdrive"]["get-last-change"](input)
31
+ });
32
+ var playgroundGdriveReadFileQueryOptions = (sdk, input) => ({
33
+ queryKey: ["playground", "gdrive", "read-file", input],
34
+ queryFn: () => sdk["playground"]["gdrive"]["read-file"](input)
35
+ });
36
+ var playgroundGoogleadsReadCustomerQueryOptions = (sdk, input) => ({
37
+ queryKey: ["playground", "googleads", "read-customer", input],
38
+ queryFn: () => sdk["playground"]["googleads"]["read-customer"](input)
39
+ });
40
+ var playgroundLifecycleGetStateQueryOptions = (sdk, input) => ({
41
+ queryKey: ["playground", "lifecycle", "get-state", input],
42
+ queryFn: () => sdk["playground"]["lifecycle"]["get-state"](input)
43
+ });
44
+ var playgroundLifecycleListEventsQueryOptions = (sdk, input) => ({
45
+ queryKey: ["playground", "lifecycle", "list-events", input],
46
+ queryFn: () => sdk["playground"]["lifecycle"]["list-events"](input)
47
+ });
48
+ var playgroundWebhookGetLastQueryOptions = (sdk, input) => ({
49
+ queryKey: ["playground", "webhook", "get-last", input],
50
+ queryFn: () => sdk["playground"]["webhook"]["get-last"](input)
51
+ });
52
+ var playgroundWorkflowEchoMutationOptions = (sdk) => ({
53
+ mutationKey: ["playground", "workflow", "echo"],
54
+ mutationFn: (input) => sdk["playground"]["workflow"]["echo"](input)
55
+ });
56
+ var playgroundWorkflowEchoListQueryOptions = (sdk, input) => ({
57
+ queryKey: ["playground", "workflow", "echo-list", input],
58
+ queryFn: () => sdk["playground"]["workflow"]["echo-list"](input)
59
+ });
60
+ var playgroundWorkflowPingMutationOptions = (sdk) => ({
61
+ mutationKey: ["playground", "workflow", "ping"],
62
+ mutationFn: (input) => sdk["playground"]["workflow"]["ping"](input)
63
+ });
64
+
65
+ // src/gen/playground/connect.gen.ts
66
+ var playgroundWsEchoConnect = (sdk, input) => sdk.openStream(wsBindings["playground"]["ws"]["echo"], input);
67
+
68
+ export { playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions, playgroundWorkflowEchoListQueryOptions, playgroundWorkflowEchoMutationOptions, playgroundWorkflowPingMutationOptions, playgroundWsEchoConnect };
69
+ //# sourceMappingURL=index.js.map
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/gen/playground/queryOptions.gen.ts","../../src/gen/playground/connect.gen.ts"],"names":[],"mappings":";;;AA+BO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,EACzH,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,YAAY,KAAK,CAAA;AAAA,EACvD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AACjE,CAAA;AAEO,IAAM,yCAAA,GAA4C,CAAC,GAAA,EAAsB,KAAA,MAA+C;AAAA,EAC7H,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,gBAAgB,KAAK,CAAA;AAAA,EACzD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,cAAc,CAAA,CAAE,KAAK;AACnE,CAAA;AAEO,IAAM,2CAAA,GAA8C,CAAC,GAAA,MAA0B;AAAA,EACpF,WAAA,EAAa,CAAC,YAAA,EAAc,SAAA,EAAW,cAAc,CAAA;AAAA,EACrD,UAAA,EAAY,CAAC,KAAA,KAA6C,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,cAAc,CAAA,CAAE,KAAK;AAC9G,CAAA;AAEO,IAAM,0CAAA,GAA6C,CAAC,GAAA,MAA0B;AAAA,EACnF,WAAA,EAAa,CAAC,YAAA,EAAc,SAAA,EAAW,aAAa,CAAA;AAAA,EACpD,UAAA,EAAY,CAAC,K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AA,CAAE,WAAW,CAAA,CAAE,KAAK;AACjE,CAAA;AAEO,IAAM,qCAAA,GAAwC,CAAC,GAAA,MAA0B;AAAA,EAC9E,WAAA,EAAa,CAAC,YAAA,EAAc,UAAA,EAAY,MAAM,CAAA;AAAA,EAC9C,UAAA,EAAY,CAAC,KAAA,KAAuC,GAAA,CAAI,YAAY,EAAE,UAAU,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AACjG,CAAA;;;ACjGO,IAAM,uBAAA,GAA0B,CAAC,GAAA,EAAyB,KAAA,KAC/D,GAAA,CAAI,UAAA,CAAW,UAAA,CAAW,YAAY,CAAA,CAAG,IAAI,CAAA,CAAG,MAAM,GAAI,KAAgC","file":"index.js","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n PlaygroundAnalyticsOverviewInput,\n PlaygroundAnalyticsOverviewOutput,\n PlaygroundBillingEntitlementsInput,\n PlaygroundBillingEntitlementsOutput,\n PlaygroundBillingRecordUsageInput,\n PlaygroundClickupCreateTaskInput,\n PlaygroundClickupGetLastWebhookInput,\n PlaygroundClickupGetLastWebhookOutput,\n PlaygroundClickupGetOverviewInput,\n PlaygroundClickupGetOverviewOutput,\n PlaygroundGdriveGetLastChangeInput,\n PlaygroundGdriveGetLastChangeOutput,\n PlaygroundGdriveReadFileInput,\n PlaygroundGdriveReadFileOutput,\n PlaygroundGoogleadsReadCustomerInput,\n PlaygroundGoogleadsReadCustomerOutput,\n PlaygroundLifecycleGetStateInput,\n PlaygroundLifecycleGetStateOutput,\n PlaygroundLifecycleListEventsInput,\n PlaygroundLifecycleListEventsOutput,\n PlaygroundWebhookGetLastInput,\n PlaygroundWebhookGetLastOutput,\n PlaygroundWorkflowEchoInput,\n PlaygroundWorkflowEchoListInput,\n PlaygroundWorkflowEchoListOutput,\n PlaygroundWorkflowPingInput,\n} from '../types.gen';\n\nexport const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({\n queryKey: ['playground', 'analytics', 'overview', input] as const,\n queryFn: () => sdk['playground']['analytics']['overview'](input),\n});\n\nexport const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({\n queryKey: ['playground', 'billing', 'entitlements', input] as const,\n queryFn: () => sdk['playground']['billing']['entitlements'](input),\n});\n\nexport const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'billing', 'record-usage'],\n mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),\n});\n\nexport const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'clickup', 'create-task'],\n mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),\n});\n\nexport const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({\n queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),\n});\n\nexport const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({\n queryKey: ['playground', 'clickup', 'get-overview', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-overview'](input),\n});\n\nexport const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({\n queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,\n queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),\n});\n\nexport const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({\n queryKey: ['playground', 'gdrive', 'read-file', input] as const,\n queryFn: () => sdk['playground']['gdrive']['read-file'](input),\n});\n\nexport const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({\n queryKey: ['playground', 'googleads', 'read-customer', input] as const,\n queryFn: () => sdk['playground']['googleads']['read-customer'](input),\n});\n\nexport const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({\n queryKey: ['playground', 'lifecycle', 'get-state', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['get-state'](input),\n});\n\nexport const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({\n queryKey: ['playground', 'lifecycle', 'list-events', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['list-events'](input),\n});\n\nexport const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({\n queryKey: ['playground', 'webhook', 'get-last', input] as const,\n queryFn: () => sdk['playground']['webhook']['get-last'](input),\n});\n\nexport const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'workflow', 'echo'],\n mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),\n});\n\nexport const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({\n queryKey: ['playground', 'workflow', 'echo-list', input] as const,\n queryFn: () => sdk['playground']['workflow']['echo-list'](input),\n});\n\nexport const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'workflow', 'ping'],\n mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),\n});\n","// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport { wsBindings } from '../bindings.gen';\nimport type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';\nimport type {\n PlaygroundWsEchoInput,\n} from '../types.gen';\n\nexport const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>\n sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
- "version": "65.1.0",
3
+ "version": "65.2.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -148,6 +148,16 @@
148
148
  "default": "./dist/organization/index.cjs"
149
149
  }
150
150
  },
151
+ "./playground": {
152
+ "import": {
153
+ "types": "./dist/playground/index.d.ts",
154
+ "default": "./dist/playground/index.js"
155
+ },
156
+ "require": {
157
+ "types": "./dist/playground/index.d.cts",
158
+ "default": "./dist/playground/index.cjs"
159
+ }
160
+ },
151
161
  "./realtime": {
152
162
  "import": {
153
163
  "types": "./dist/realtime/index.d.ts",
@@ -209,5 +219,5 @@
209
219
  }
210
220
  }
211
221
  },
212
- "sdkContentHash": "sha256:467d40099a2a346cb8d475e6c1906ddc3f8cf8ec644c74585139cd805294a68c"
222
+ "sdkContentHash": "sha256:50ee697cb69dfa37812bda488ffbd1710a59d0d4b1c1a50ee22a8b43d063ca10"
213
223
  }
@@ -7189,6 +7189,173 @@ export const bindings: BindingsMap = {
7189
7189
  }
7190
7190
  }
7191
7191
  },
7192
+ "playground": {
7193
+ "analytics": {
7194
+ "overview": {
7195
+ "level": "read",
7196
+ "method": "POST",
7197
+ "operationKey": "playground_analytics_overview",
7198
+ "params": [
7199
+ {
7200
+ "in": "body",
7201
+ "name": "limit"
7202
+ }
7203
+ ],
7204
+ "path": "/playground/analytics/overview",
7205
+ "readOnly": true
7206
+ }
7207
+ },
7208
+ "billing": {
7209
+ "entitlements": {
7210
+ "level": "read",
7211
+ "method": "POST",
7212
+ "operationKey": "playground_billing_entitlements",
7213
+ "path": "/playground/billing/entitlements",
7214
+ "readOnly": true
7215
+ },
7216
+ "record-usage": {
7217
+ "level": "write",
7218
+ "method": "POST",
7219
+ "operationKey": "playground_billing_record-usage",
7220
+ "params": [
7221
+ {
7222
+ "in": "body",
7223
+ "name": "value"
7224
+ }
7225
+ ],
7226
+ "path": "/playground/billing/usage",
7227
+ "readOnly": false
7228
+ }
7229
+ },
7230
+ "clickup": {
7231
+ "create-task": {
7232
+ "level": "write",
7233
+ "method": "POST",
7234
+ "operationKey": "playground_clickup_create-task",
7235
+ "params": [
7236
+ {
7237
+ "in": "body",
7238
+ "name": "listId"
7239
+ },
7240
+ {
7241
+ "in": "body",
7242
+ "name": "name"
7243
+ }
7244
+ ],
7245
+ "path": "/playground/clickup/tasks",
7246
+ "readOnly": false
7247
+ },
7248
+ "get-last-webhook": {
7249
+ "level": "read",
7250
+ "method": "GET",
7251
+ "operationKey": "playground_clickup_get-last-webhook",
7252
+ "path": "/playground/clickup/webhooks/last",
7253
+ "readOnly": true
7254
+ },
7255
+ "get-overview": {
7256
+ "level": "read",
7257
+ "method": "GET",
7258
+ "operationKey": "playground_clickup_get-overview",
7259
+ "path": "/playground/clickup/overview",
7260
+ "readOnly": true
7261
+ }
7262
+ },
7263
+ "gdrive": {
7264
+ "get-last-change": {
7265
+ "level": "read",
7266
+ "method": "GET",
7267
+ "operationKey": "playground_gdrive_get-last-change",
7268
+ "path": "/playground/gdrive/changes/last",
7269
+ "readOnly": true
7270
+ },
7271
+ "read-file": {
7272
+ "level": "read",
7273
+ "method": "POST",
7274
+ "operationKey": "playground_gdrive_read-file",
7275
+ "params": [
7276
+ {
7277
+ "in": "body",
7278
+ "name": "fileId"
7279
+ }
7280
+ ],
7281
+ "path": "/playground/gdrive/file",
7282
+ "readOnly": true
7283
+ }
7284
+ },
7285
+ "googleads": {
7286
+ "read-customer": {
7287
+ "level": "read",
7288
+ "method": "POST",
7289
+ "operationKey": "playground_googleads_read-customer",
7290
+ "path": "/playground/googleads/customer",
7291
+ "readOnly": true
7292
+ }
7293
+ },
7294
+ "lifecycle": {
7295
+ "get-state": {
7296
+ "level": "read",
7297
+ "method": "GET",
7298
+ "operationKey": "playground_lifecycle_get-state",
7299
+ "path": "/playground/lifecycle/state",
7300
+ "readOnly": true
7301
+ },
7302
+ "list-events": {
7303
+ "level": "read",
7304
+ "method": "GET",
7305
+ "operationKey": "playground_lifecycle_list-events",
7306
+ "path": "/playground/lifecycle/events",
7307
+ "readOnly": true
7308
+ }
7309
+ },
7310
+ "webhook": {
7311
+ "get-last": {
7312
+ "level": "read",
7313
+ "method": "GET",
7314
+ "operationKey": "playground_webhook_get-last",
7315
+ "path": "/playground/webhooks/last",
7316
+ "readOnly": true
7317
+ }
7318
+ },
7319
+ "workflow": {
7320
+ "echo": {
7321
+ "level": "write",
7322
+ "method": "POST",
7323
+ "operationKey": "playground_workflow_echo",
7324
+ "params": [
7325
+ {
7326
+ "in": "body",
7327
+ "name": "note"
7328
+ },
7329
+ {
7330
+ "in": "body",
7331
+ "name": "tags"
7332
+ }
7333
+ ],
7334
+ "path": "/playground/workflow/echo",
7335
+ "readOnly": false
7336
+ },
7337
+ "echo-list": {
7338
+ "level": "read",
7339
+ "method": "GET",
7340
+ "operationKey": "playground_workflow_echo-list",
7341
+ "path": "/playground/workflow/echoes",
7342
+ "readOnly": true
7343
+ },
7344
+ "ping": {
7345
+ "level": "write",
7346
+ "method": "POST",
7347
+ "operationKey": "playground_workflow_ping",
7348
+ "params": [
7349
+ {
7350
+ "in": "body",
7351
+ "name": "kind"
7352
+ }
7353
+ ],
7354
+ "path": "/playground/workflow/ping",
7355
+ "readOnly": false
7356
+ }
7357
+ }
7358
+ },
7192
7359
  "realtime": {
7193
7360
  "archive": {
7194
7361
  "export": {
@@ -10906,4 +11073,12 @@ export const bindings: BindingsMap = {
10906
11073
  }
10907
11074
  };
10908
11075
 
10909
- export const wsBindings: WsBindingsMap = {};
11076
+ export const wsBindings: WsBindingsMap = {
11077
+ "playground": {
11078
+ "ws": {
11079
+ "echo": {
11080
+ "path": "/playground/ws/echo"
11081
+ }
11082
+ }
11083
+ }
11084
+ };
@@ -775,6 +775,36 @@ import type {
775
775
  OrganizationXInstallOutput,
776
776
  OrganizationYoutubeInstallInput,
777
777
  OrganizationYoutubeInstallOutput,
778
+ PlaygroundAnalyticsOverviewInput,
779
+ PlaygroundAnalyticsOverviewOutput,
780
+ PlaygroundBillingEntitlementsInput,
781
+ PlaygroundBillingEntitlementsOutput,
782
+ PlaygroundBillingRecordUsageInput,
783
+ PlaygroundBillingRecordUsageOutput,
784
+ PlaygroundClickupCreateTaskInput,
785
+ PlaygroundClickupCreateTaskOutput,
786
+ PlaygroundClickupGetLastWebhookInput,
787
+ PlaygroundClickupGetLastWebhookOutput,
788
+ PlaygroundClickupGetOverviewInput,
789
+ PlaygroundClickupGetOverviewOutput,
790
+ PlaygroundGdriveGetLastChangeInput,
791
+ PlaygroundGdriveGetLastChangeOutput,
792
+ PlaygroundGdriveReadFileInput,
793
+ PlaygroundGdriveReadFileOutput,
794
+ PlaygroundGoogleadsReadCustomerInput,
795
+ PlaygroundGoogleadsReadCustomerOutput,
796
+ PlaygroundLifecycleGetStateInput,
797
+ PlaygroundLifecycleGetStateOutput,
798
+ PlaygroundLifecycleListEventsInput,
799
+ PlaygroundLifecycleListEventsOutput,
800
+ PlaygroundWebhookGetLastInput,
801
+ PlaygroundWebhookGetLastOutput,
802
+ PlaygroundWorkflowEchoInput,
803
+ PlaygroundWorkflowEchoListInput,
804
+ PlaygroundWorkflowEchoListOutput,
805
+ PlaygroundWorkflowEchoOutput,
806
+ PlaygroundWorkflowPingInput,
807
+ PlaygroundWorkflowPingOutput,
778
808
  RealtimeArchiveExportInput,
779
809
  RealtimeArchiveExportOutput,
780
810
  RealtimeArchiveExportStatusInput,
@@ -1849,6 +1879,39 @@ export interface GeneratedClient {
1849
1879
  install: ((input: OrganizationYoutubeInstallInput) => Promise<OrganizationYoutubeInstallOutput>) & Operation;
1850
1880
  };
1851
1881
  };
1882
+ playground: {
1883
+ analytics: {
1884
+ overview: ((input: PlaygroundAnalyticsOverviewInput) => Promise<PlaygroundAnalyticsOverviewOutput>) & Operation;
1885
+ };
1886
+ billing: {
1887
+ entitlements: ((input: PlaygroundBillingEntitlementsInput) => Promise<PlaygroundBillingEntitlementsOutput>) & Operation;
1888
+ 'record-usage': ((input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>) & Operation;
1889
+ };
1890
+ clickup: {
1891
+ 'create-task': ((input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>) & Operation;
1892
+ 'get-last-webhook': ((input: PlaygroundClickupGetLastWebhookInput) => Promise<PlaygroundClickupGetLastWebhookOutput>) & Operation;
1893
+ 'get-overview': ((input: PlaygroundClickupGetOverviewInput) => Promise<PlaygroundClickupGetOverviewOutput>) & Operation;
1894
+ };
1895
+ gdrive: {
1896
+ 'get-last-change': ((input: PlaygroundGdriveGetLastChangeInput) => Promise<PlaygroundGdriveGetLastChangeOutput>) & Operation;
1897
+ 'read-file': ((input: PlaygroundGdriveReadFileInput) => Promise<PlaygroundGdriveReadFileOutput>) & Operation;
1898
+ };
1899
+ googleads: {
1900
+ 'read-customer': ((input: PlaygroundGoogleadsReadCustomerInput) => Promise<PlaygroundGoogleadsReadCustomerOutput>) & Operation;
1901
+ };
1902
+ lifecycle: {
1903
+ 'get-state': ((input: PlaygroundLifecycleGetStateInput) => Promise<PlaygroundLifecycleGetStateOutput>) & Operation;
1904
+ 'list-events': ((input: PlaygroundLifecycleListEventsInput) => Promise<PlaygroundLifecycleListEventsOutput>) & Operation;
1905
+ };
1906
+ webhook: {
1907
+ 'get-last': ((input: PlaygroundWebhookGetLastInput) => Promise<PlaygroundWebhookGetLastOutput>) & Operation;
1908
+ };
1909
+ workflow: {
1910
+ echo: ((input: PlaygroundWorkflowEchoInput) => Promise<PlaygroundWorkflowEchoOutput>) & Operation;
1911
+ 'echo-list': ((input: PlaygroundWorkflowEchoListInput) => Promise<PlaygroundWorkflowEchoListOutput>) & Operation;
1912
+ ping: ((input: PlaygroundWorkflowPingInput) => Promise<PlaygroundWorkflowPingOutput>) & Operation;
1913
+ };
1914
+ };
1852
1915
  realtime: {
1853
1916
  archive: {
1854
1917
  export: ((input: RealtimeArchiveExportInput) => Promise<RealtimeArchiveExportOutput>) & 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',
@@ -391,6 +391,21 @@ export const operations: Record<string, ToolLevel> = {
391
391
  'organization_support_threads_list': 'read',
392
392
  'organization_x_install': 'read',
393
393
  'organization_youtube_install': 'read',
394
+ 'playground_analytics_overview': 'read',
395
+ 'playground_billing_entitlements': 'read',
396
+ 'playground_billing_record-usage': 'write',
397
+ 'playground_clickup_create-task': 'write',
398
+ 'playground_clickup_get-last-webhook': 'read',
399
+ 'playground_clickup_get-overview': 'read',
400
+ 'playground_gdrive_get-last-change': 'read',
401
+ 'playground_gdrive_read-file': 'read',
402
+ 'playground_googleads_read-customer': 'read',
403
+ 'playground_lifecycle_get-state': 'read',
404
+ 'playground_lifecycle_list-events': 'read',
405
+ 'playground_webhook_get-last': 'read',
406
+ 'playground_workflow_echo': 'write',
407
+ 'playground_workflow_echo-list': 'read',
408
+ 'playground_workflow_ping': 'write',
394
409
  'realtime_archive_export': 'admin',
395
410
  'realtime_archive_export_status': 'read',
396
411
  'realtime_archive_get': 'read',
@@ -622,4 +637,6 @@ export const compositions: Record<string, ToolComposition> = {
622
637
  'mail_template_publish': {"label":"Publish template"},
623
638
  'mail_template_update': {"label":"Update template"},
624
639
  'mail_usage_get': {"label":"Get usage"},
640
+ 'playground_workflow_echo': {"pii":["input.note"],"label":"Store workflow echo"},
641
+ 'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
625
642
  };
@@ -0,0 +1,9 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import { wsBindings } from '../bindings.gen';
3
+ import type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';
4
+ import type {
5
+ PlaygroundWsEchoInput,
6
+ } from '../types.gen';
7
+
8
+ export const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>
9
+ sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);
@@ -0,0 +1,4 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ export * from './queryOptions.gen';
3
+ export * from './connect.gen';
4
+ export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWorkflowEchoInput, PlaygroundWorkflowEchoListInput, PlaygroundWorkflowEchoListOutput, PlaygroundWorkflowEchoOutput, PlaygroundWorkflowPingInput, PlaygroundWorkflowPingOutput, PlaygroundWsEchoInput } from '../types.gen';
@@ -0,0 +1,105 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ PlaygroundAnalyticsOverviewInput,
5
+ PlaygroundAnalyticsOverviewOutput,
6
+ PlaygroundBillingEntitlementsInput,
7
+ PlaygroundBillingEntitlementsOutput,
8
+ PlaygroundBillingRecordUsageInput,
9
+ PlaygroundClickupCreateTaskInput,
10
+ PlaygroundClickupGetLastWebhookInput,
11
+ PlaygroundClickupGetLastWebhookOutput,
12
+ PlaygroundClickupGetOverviewInput,
13
+ PlaygroundClickupGetOverviewOutput,
14
+ PlaygroundGdriveGetLastChangeInput,
15
+ PlaygroundGdriveGetLastChangeOutput,
16
+ PlaygroundGdriveReadFileInput,
17
+ PlaygroundGdriveReadFileOutput,
18
+ PlaygroundGoogleadsReadCustomerInput,
19
+ PlaygroundGoogleadsReadCustomerOutput,
20
+ PlaygroundLifecycleGetStateInput,
21
+ PlaygroundLifecycleGetStateOutput,
22
+ PlaygroundLifecycleListEventsInput,
23
+ PlaygroundLifecycleListEventsOutput,
24
+ PlaygroundWebhookGetLastInput,
25
+ PlaygroundWebhookGetLastOutput,
26
+ PlaygroundWorkflowEchoInput,
27
+ PlaygroundWorkflowEchoListInput,
28
+ PlaygroundWorkflowEchoListOutput,
29
+ PlaygroundWorkflowPingInput,
30
+ } from '../types.gen';
31
+
32
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
33
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
34
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
35
+ });
36
+
37
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
38
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
39
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
40
+ });
41
+
42
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
43
+ mutationKey: ['playground', 'billing', 'record-usage'],
44
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
45
+ });
46
+
47
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
48
+ mutationKey: ['playground', 'clickup', 'create-task'],
49
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
50
+ });
51
+
52
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
53
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
54
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
55
+ });
56
+
57
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
58
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
59
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
60
+ });
61
+
62
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
63
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
64
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
65
+ });
66
+
67
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
68
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
69
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
70
+ });
71
+
72
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
73
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
74
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
75
+ });
76
+
77
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
78
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
79
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
80
+ });
81
+
82
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
83
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
84
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
85
+ });
86
+
87
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
88
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
89
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
90
+ });
91
+
92
+ export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
93
+ mutationKey: ['playground', 'workflow', 'echo'],
94
+ mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
95
+ });
96
+
97
+ export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
98
+ queryKey: ['playground', 'workflow', 'echo-list', input] as const,
99
+ queryFn: () => sdk['playground']['workflow']['echo-list'](input),
100
+ });
101
+
102
+ export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
103
+ mutationKey: ['playground', 'workflow', 'ping'],
104
+ mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
105
+ });